News:

Herr Otto Partz says you're all nothing but pipsqueaks!

Main Menu

OPP files (opponents)

Started by Daniel3D, July 09, 2020, 02:55:56 PM

Previous topic - Next topic

Cas

#15
Ah!  I understand now. So the position in the file indicates the stunt and the value indicates how much of a slowdown for that stunt. Right?  This is super easy!  We can begin experimenting :D

The curious thing is that, while it makes a lot of sense, it seems to overlap with the function of the other section. See here: http://wiki.stunts.hu/index.php?title=Opponent_files

The sped section is very brief. What you are describing, I understand, is the path section, which happens to be as long as the number of track elements. However, the function of these two sections is then very similar, in a way. I wonder how the two interact.
Earth is my country. Science is my religion.

Daniel3D

#16
Sped is purely speed data per tile type. Path is directional left / right.

Based on memory of strange ai behaviour I believe the path variable makes the opponent deviate from the ideal path by a factor. Measured from the centre of the road.

On slalom the ai should take the corner's wider.
EDIT: I see now that none of the opponents have a modifier for the slalom (row 7 variable 3 and 4).
Same for the cork u/d and the highway.
I wonder why.. could be interesting to give those high values....
/Edit

I can't test though. All testing programs and data is in storage at the moment.  :-\

The ideal path I believe is set in the track tile data with the collision data. (Maybe that combination makes it so difficult to find)
Edison once said,
"I have not failed 10,000 times,
I've successfully found 10,000 ways that will not work."
---------
Currently running over 20 separate instances of Stunts
---------
Check out the STUNTS resources on my Mega (globe icon)

Daniel3D

#17
Nice visual (taken from Gemini)


(The isometric tiles are a unrelated bonus)

In the YouTube video (link in a post about track files) Gemini maps all tile numbers in a grid (see blurred image in attachment)
Curiously that stops at b5, but the opponent path file goes to b9...
[B6 -> B9 - Paved slopes]
Those four can have path data. Dirt and ice slopes can't... Apparently..
Edison once said,
"I have not failed 10,000 times,
I've successfully found 10,000 ways that will not work."
---------
Currently running over 20 separate instances of Stunts
---------
Check out the STUNTS resources on my Mega (globe icon)

Cas

I should take a look and update the Wiki with that info :)
Earth is my country. Science is my religion.

Daniel3D

You know,..
I actually feel honoured to have found something significant enough to be added to the wiki.
Edison once said,
"I have not failed 10,000 times,
I've successfully found 10,000 ways that will not work."
---------
Currently running over 20 separate instances of Stunts
---------
Check out the STUNTS resources on my Mega (globe icon)

Cas

#20
And you surely should be mentioned there!   But before editing, we should test this thoroughly. You might find this useful:

http://www.raceforkicks.com/downloads/fodix04.zip

It's a program I made years ago. I should be rewriting the whole of it because it's not optimal (the window is small and while it's GUI-based, you have to call it from the command line with a file name as a parameter), but it works and it's very useful for viewing and editing binary files. It should make it very easy to edit the opponent files.

EDIT: Updated link. 23-02-2021
Earth is my country. Science is my religion.

Daniel3D

 8)
Thanks for the tool. Still have my laptop in storage, but I will look into this asap.
Edison once said,
"I have not failed 10,000 times,
I've successfully found 10,000 ways that will not work."
---------
Currently running over 20 separate instances of Stunts
---------
Check out the STUNTS resources on my Mega (globe icon)

Daniel3D

I've watched Skid and Bernie go through the loop (because Bernie has the largest value there in path)

But I see nothing... Besides the speed.
The path is the same for both...

Bernie dit some weird driving when I was following, Skid didn't seem to be bothered, but maybe I was closer to Bernie.

When I make a false start Bernie just does his lap.

Not an easy one ...  :-\
Edison once said,
"I have not failed 10,000 times,
I've successfully found 10,000 ways that will not work."
---------
Currently running over 20 separate instances of Stunts
---------
Check out the STUNTS resources on my Mega (globe icon)

Cas

Probably, testing "actively" will yield clearer results. I mean, not just observing the current settings, but altering them while leaving everything else the same and looking at what's different
Earth is my country. Science is my religion.