Stunts Forum

Stunts - the Game => Stunts Reverse Engineering => Topic started by: dukeofurl on July 01, 2021, 10:14:52 PM

Title: Is there a way to race multiple opponents simultaneously?
Post by: dukeofurl on July 01, 2021, 10:14:52 PM
I only recently joined the forum here and started reading about how you folks have done cool things to hack stunts... I didn't see anything mentioning it but, do you suppose it would be possible to modify things in order to race more than one opponent at the same time?
Title: Re: Is there a way to race multiple opponents simultaneously?
Post by: Daniel3D on July 02, 2021, 12:54:12 PM
Within the boundaries of the game as it is there is no way to play against more than one opponent.
We can't modify the main game engine.

We also can't upgrade graphics or add track elements.

To make changes to that there are two ways we are currently exploring.
Title: Re: Is there a way to race multiple opponents simultaneously?
Post by: dukeofurl on July 03, 2021, 02:14:00 AM
What about the custom cars though, those seem to be new or modified 3d elements?  I take it the 3D track pieces are not similarly modifiable.
Title: Re: Is there a way to race multiple opponents simultaneously?
Post by: Daniel3D on July 03, 2021, 07:50:41 AM
The cars are well defined separate files and mostly understood.
Track elements are part of the main code.
We can easily change the 3D model but not the corresponding road and collision data.
So visual changes are possible, but not new types.
Title: Re: Is there a way to race multiple opponents simultaneously?
Post by: dukeofurl on July 03, 2021, 06:18:41 PM
That's cool, even if the collision/dimension aspects can't be modified, has anyone remodeled any track pieces to look different?

Related question that doesn't deserve its own thread - do the dirt roads and icy roads actually handle differently than the normal roads?
Title: Re: Is there a way to race multiple opponents simultaneously?
Post by: Daniel3D on July 03, 2021, 07:40:15 PM
There have been some. A different tunnel and start finish. The problem is that they are all in two files. Its not easy to get them in the game.

dirt and ice roads handle differently for players. It seems that opponents don't really have trouble traversing them.
Title: Re: Is there a way to race multiple opponents simultaneously?
Post by: Cas on July 03, 2021, 10:57:41 PM
The original engine cannot handle more than one opponent at a time. Even if it were modded, it'd be really hard to implement more opponents. In memory, there's the space to load the information for "THE" current opponent and there's only one designated started position for him/her. A new engine should be created from scratch or an enormous amount of work should be put on modding the current one. With a new engine, several opponents at a time are not hard to implement. Much harder it is to simply create a fully functional collision mechanism, which is what got me stuck with the engine I've been making.

As Daniƫl said, cars are separate and it's more straightforward to edit them. They collision information is also very simple. In contrast, track elements have some information hard-coded in the game and the collision info that's not hard-coded is not very well understood yet and appears difficult to edit. There have been a number of visual modifications to the current 3D shapes. That can be done with Stressed.