News:

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

Main Menu

Reversing Grand Prix Circuit

Started by HerrNove, April 15, 2026, 12:15:42 PM

Previous topic - Next topic

HerrNove

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

HerrNove

This is how the map appears in the game.

monza-real.png

alanrotoi


HerrNove

#3
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

HerrNove

#4
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

Cas

Earth is my country. Science is my religion.

alanrotoi

Wow congrats! It looks great! I think you can edit Grand Prix Cycles (1989) as well, since they are very similar games. :D

HerrNove

#7
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

HerrNove

#8
Good news: the whole engine parameters for GPC have already been documented, thanks to the guys behind the 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

KyLiE

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. ;)

HerrNove

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

alanrotoi

#11
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...

HerrNove

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 :)

alanrotoi

#13
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!

HerrNove

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