Stunts Forum

Stunts - the Game => Stunts Reverse Engineering => Topic started by: HerrNove on April 15, 2026, 12:15:42 PM

Title: Reversing Grand Prix Circuit
Post by: HerrNove on April 15, 2026, 12:15:42 PM
Has anyone ever analyzed Grand Prix Circuit? It's an earlier product of DSI and some routines were clearly taken from it. It contains .PCS (CGA) and .PES (EGA) resource files that are compressed the same way as Stunts.

Once extracted, the resource files can be open with Stressed, but the format has differences. E.g. Stressed is unable to detect the asset format, and even after manually choosing "Bitmap", the resulting image has wrong colors and seems 3x or 4x compressed horizontally. The image in the screenshot should be Monza GP's map: it is still recognizable but clearly some further processing is needed.

monza.png
Title: Re: Reversing Grand Prix Circuit
Post by: HerrNove on April 15, 2026, 12:18:52 PM
This is how the map appears in the game.

monza-real.png
Title: Re: Reversing Grand Prix Circuit
Post by: alanrotoi on April 15, 2026, 11:49:39 PM
niiiiiiiiice!!
Title: Re: Reversing Grand Prix Circuit
Post by: HerrNove on April 16, 2026, 12:22:17 PM
Happy to report a partial success. We can now read most (EDIT: all) of Grand Prix Circuit's EGA assets!

ferrari.png

And the changes also allow to read the handful of Stunts' EGA resources, including the editor's icons.

dsilogo.png

There are still some glitches (EDIT: now fixed :)) but LLM-based development has its plus sides :-)

@dstien @llm
Title: Re: Reversing Grand Prix Circuit
Post by: HerrNove on April 23, 2026, 12:39:48 PM
My mod is coming out quite well :-)

The title is set: "Don Matrelli's Legacy"

Pity I could not figure out how to change the sky color. (EDIT: ah, just found out how to put a background going up to the top)

217.jpg
Title: Re: Reversing Grand Prix Circuit
Post by: Cas on April 27, 2026, 02:13:11 AM
Really cool! :)
Title: Re: Reversing Grand Prix Circuit
Post by: alanrotoi on April 27, 2026, 02:02:27 PM
Wow congrats! It looks great! I think you can edit Grand Prix Cycles (1989) as well, since they are very similar games. :D
Title: Re: Reversing Grand Prix Circuit
Post by: HerrNove on April 27, 2026, 05:25:39 PM
Quote from: alanrotoi on April 27, 2026, 02:02:27 PMWow congrats! It looks great! I think you can edit Grand Prix Cycles (1989) as well, since they are very similar games. :D

Yes it works! Turns out the format of The Cycles is an intermediate evolution step between GPC and Stunts, but easily added. Also, thanks to your hint I found out that someone has already built a vehicle engine editor for these earlier DSI titles, and a guy was investigating the music format. The DSI ecosystem is getting quite big 🎉

https://github.com/albertus82/cyclesmod

Screenshot_20260427_172055.png
Title: Re: Reversing Grand Prix Circuit
Post by: HerrNove on April 30, 2026, 04:00:44 PM
Good news: the whole engine parameters for GPC have already been documented, thanks to the guys behind the cyclesmod (https://github.com/albertus82/cyclesmod) project (an equivalent sort of CarWorks for earlier DSI games).

Discovery of the day: the power curves displayed in the car showroom are only vaguely related to the values that the game really uses. In particular, the McLaren receives an artificial boost around 9500 rpm.

mclaren-torque.png
Title: Re: Reversing Grand Prix Circuit
Post by: KyLiE on May 02, 2026, 03:46:29 AM
Quote from: HerrNove on April 30, 2026, 04:00:44 PMIn particular, the McLaren receives an artificial boost around 9500 rpm.

That's when the VTEC kicks in. ;)
Title: Re: Reversing Grand Prix Circuit
Post by: HerrNove on May 03, 2026, 01:55:56 PM
Stressed is now 99% able to load GPC assets. The only mysterious glitch is that some of the bitmaps are loaded with inverted colors, like the Ferrari and McLaren logo (but not the Williams').

Screenshot_20260503_121551.png

Another curiosity: the car selection screens are stored as XOR-difference with respect to the Ferrari one.

Screenshot_20260503_131328.png
Title: Re: Reversing Grand Prix Circuit
Post by: alanrotoi on May 04, 2026, 07:00:20 PM
It looks messy but as used you can't notice it :D

Btw, is it possible to edit tracks? I think Grand Prix Circuit and The cycles have some differences here because the second has hills and ramps and GPC is just always flat. Maybe it's not a big difference in the code since in any case they are 2D tracks. Just thinking...
Title: Re: Reversing Grand Prix Circuit
Post by: HerrNove on May 04, 2026, 07:43:54 PM
Quote from: alanrotoi on May 04, 2026, 07:00:20 PMBtw, is it possible to edit tracks?

Yes, I figured out the format last month :D  But the layout is stored in the .exe, not in the datafiles. So for now the only way to build the track is with a text or hex editor.

Here a video with my first circuit (before I add curves): https://www.youtube.com/watch?v=yohwZZDyO-o

Off topic, but I'm happy for Colapinto's good result yesterday :)
Title: Re: Reversing Grand Prix Circuit
Post by: alanrotoi on May 05, 2026, 05:55:19 AM
Thanks! Here many people if fan of Colapinto. There is a big audience of the F1 because of him.
I would like to watch it but I'm not attracted to races. I don't know why. The same happens with local racing tournaments like Turismo Carretera (TC) is like DTM but with Camaro, Challenger, Camry, Mustang and Torino. I like the cars, I like the competition... But I always forget to watch it. It's not in my system.

About your video.... It's awesome! I liked the dark part, like it was a night mode! Cool improvement!
Title: Re: Reversing Grand Prix Circuit
Post by: HerrNove on May 06, 2026, 12:35:36 AM
Another small thing Spanish speakers might appreciate: it took some hours but I managed to hack the font used by GPC. So the name of this driver (son of a famous rally driver nicknamed "El Rey") can be written correctly :D

Screenshot_20260506_003143.png
Title: Re: Reversing Grand Prix Circuit
Post by: HerrNove on May 18, 2026, 11:53:37 PM
Ryoma has used the new `stressed` to create an edition of GPC that reproduces more faithfully the 1988 season:

https://www.youtube.com/watch?v=JqtWVCGKUnE
Title: Re: Reversing Grand Prix Circuit
Post by: HerrNove on June 03, 2026, 11:26:58 AM
The mod is approaching completion. Here a preview with a new car on a new ( but actually quite old  :) ) track

https://www.youtube.com/watch?v=f4_90RCFmcE (https://www.youtube.com/watch?v=f4_90RCFmcE)
Title: Re: Reversing Grand Prix Circuit
Post by: HerrNove on June 25, 2026, 10:46:56 AM
Mod published (see the other thread). I also published the extended verion of Stressed allowing to open GPC files. Hope it will be merged to the official edition soon.

https://marnetto.net/projects/grand-prix-circuit#stressed--gpc-edition