Super Cars II (Atari ST) - finally cracking how the graphics and tracks work

Blogs & guides and tales of woo by forum members.
User avatar
exxos
Site Admin
Site Admin
Posts: 29655
Joined: Wed Aug 16, 2017 11:19 pm
Location: UK
Contact:

Super Cars II (Atari ST) - finally cracking how the graphics and tracks work

Post by exxos »

I have always wondered how the graphics in Super Cars II were done, because no ripper I ever tried could find a single standard graphic in it. My real aim is a level editor so we can add new tracks, but I assumed working out the level format would be close to impossible. So I threw my own dump of the disk at Claude and asked it to dig in. It turns out it was not impossible at all.

Step 1 - getting the files off the disk
The disk is a normal 10 sector per track TOS disk with a protection track at 79, so once the STX image was decoded, all the files came straight off it. There is a small loader in the AUTO folder, the main game (CARS.REL) and about a hundred files called FILExx.SCR.

Step 2 - why rippers find nothing
Every graphics file is packed with Magnetic Fields' own packers, which start with "SP", "SA" or "SF" headers. On top of that, the SP graphics unpack into whole separate bitplanes rather than the normal ST interleaved screen layout, so even unpacked they do not look like ST graphics. No wonder the rippers gave up, they were looking for something that was never there.

The unpack routines were taken straight out of the game code and ported line for line. Every file now unpacks without errors, and the title screens come out perfectly, which proved the depackers were right.

SC2_1.PNG
SC2_1.PNG (169.82 KiB) Viewed 258 times

Step 3 - the collision / height map
Each course has a 32KB map with 4 cells per 16 pixel tile. You can clearly see the track shape, bridges and crossovers in it. The best guess so far is two height values (upper and lower layer) plus a surface type, but that part is NOT confirmed yet and needs more digging in the race code.

SC2_2.PNG
SC2_2.PNG (46.49 KiB) Viewed 258 times

Step 4 - the scenery tiles
There are three scenery sets, each made of sheets of 256 tiles at 16x16 pixels. The game code shows which files get loaded for each race and which palette goes with each set.

SC2_3.PNG
SC2_3.PNG (58.34 KiB) Viewed 258 times

Step 5 - the track maps
Each course also has an 8KB tile map, a 64x64 grid of tile numbers, with the actual course using part of it (from 20x50 up to 64x16 tiles). Put that together with the right tile set and palette and out pop all 21 courses in full colour. Some of the maps even still have the designer's size notes like "32 x 32" drawn in tiles outside the track area, which was a nice touch from 1991.

SC2_4.PNG
SC2_4.PNG (1.05 MiB) Viewed 258 times

Here is Bagley Marsh, the first race, at full size:

SC2_5.PNG
SC2_5.PNG (62.31 KiB) Viewed 258 times

There is also a course database file which still has the original symbol names in it. It holds the race order, which tile set each race uses, lap counts, AI settings, and each course's size, name and description text.

Step 6 - the cars
The cars are pre-rotated sprites, 32 frames per car, with the missiles and explosions in a separate bank that carries its own mask plane. The colours here are only roughly right because I used the track palette for the preview.

SC2_6.PNG
SC2_6.PNG (64.31 KiB) Viewed 258 times

What this means for a level editor
The good news is the loader happily accepts files that are not packed, so an edited map can simply be saved back as raw data without having to write a packer. There is about 154KB free on the disk, which is enough for a couple of new or modified tracks.

What is still left to work out is exactly what the values in the collision map mean, and a few tables in the course data that are probably AI routes and gate positions. Once those are pinned down, an editor is very doable.

Not bad for a game that has kept its secrets for 35 years, it only took slightly longer than loading Elite off cassette.
elterwater
Posts: 59
Joined: Fri Jan 14, 2022 2:43 pm

Re: Super Cars II (Atari ST) - finally cracking how the graphics and tracks work

Post by elterwater »

Nice work, well done :)
My best friend and I used to love lobbing missiles at each other on these tracks :D
User avatar
exxos
Site Admin
Site Admin
Posts: 29655
Joined: Wed Aug 16, 2017 11:19 pm
Location: UK
Contact:

Re: Super Cars II (Atari ST) - finally cracking how the graphics and tracks work

Post by exxos »

elterwater wrote: Sun Oct 18, 2026 11:02 pm Nice work, well done :)
My best friend and I used to love lobbing missiles at each other on these tracks :D
Yeah, I built a "auto flobber" just for supercars for constant firing :lol:

Capture.PNG
Capture.PNG (233.12 KiB) Viewed 225 times

My problem was, I suck at games, and could only manage the easy levels. hence always wanting a track editor. :lol:

Mostly I am plotting a STE edition currently as a first build, but time is limited, so not sure how quick it will happen.
User avatar
exxos
Site Admin
Site Admin
Posts: 29655
Joined: Wed Aug 16, 2017 11:19 pm
Location: UK
Contact:

Re: Super Cars II (Atari ST) - finally cracking how the graphics and tracks work

Post by exxos »

STE hardware scrolling test :)

I'm too lazy to do a animation or video. But it scrolls to the left every 1 pixel very smoothly :) none of that pre-rendering using lots of RAM nonsense :P

Steem__00003.png
Steem__00003.png (34.39 KiB) Viewed 212 times
User avatar
exxos
Site Admin
Site Admin
Posts: 29655
Joined: Wed Aug 16, 2017 11:19 pm
Location: UK
Contact:

Re: Super Cars II (Atari ST) - finally cracking how the graphics and tracks work

Post by exxos »

Prototype STE engine :) Yeah colours are a bit messed up etc, but its a proof of concept at this point :)


First the AI track data was extracted.. ohh AI back in 1991 !! :lol:

SC2ROUTE.PNG
SC2ROUTE.PNG (65.96 KiB) Viewed 203 times

Then a demo..

SC2DEMO.GIF
SC2DEMO.GIF (739.49 KiB) Viewed 203 times

So that is actually a compiled PRG of the STE engine :)
User avatar
exxos
Site Admin
Site Admin
Posts: 29655
Joined: Wed Aug 16, 2017 11:19 pm
Location: UK
Contact:

Re: Super Cars II (Atari ST) - finally cracking how the graphics and tracks work

Post by exxos »

Must.. Resist.. doing.. a.. Falcon.. port.. . :lol:

ca1393ef-e5c0-410e-8b05-fa55a2925564.jpg
ca1393ef-e5c0-410e-8b05-fa55a2925564.jpg (193.13 KiB) Viewed 195 times
User avatar
JezC
Posts: 2898
Joined: Mon Aug 28, 2017 11:44 pm

Re: Super Cars II (Atari ST) - finally cracking how the graphics and tracks work

Post by JezC »

exxos wrote: Mon Oct 19, 2026 4:26 pm Must.. Resist.. doing.. a.. Falcon.. port.. . :lol:
Why?

Sounds like a good idea to me!

:hide:
User avatar
exxos
Site Admin
Site Admin
Posts: 29655
Joined: Wed Aug 16, 2017 11:19 pm
Location: UK
Contact:

Re: Super Cars II (Atari ST) - finally cracking how the graphics and tracks work

Post by exxos »

JezC wrote: Mon Oct 19, 2026 4:35 pm Why?

Sounds like a good idea to me!
The number of projects I want to do seems to double each week, that's the problem :lol: :roll:
User avatar
exxos
Site Admin
Site Admin
Posts: 29655
Joined: Wed Aug 16, 2017 11:19 pm
Location: UK
Contact:

Re: Super Cars II (Atari ST) - finally cracking how the graphics and tracks work

Post by exxos »

The plan, is to remove the track check against the book on loading, plus some old adverts. Then something I hadn't considered, a web based track editor! While a GEM editor could be done, I think it just be easier to let a track editor live in a browser.. at least for now.. The aim is tracks will be auto loaded into the existing menus so it's pretty-much plug and play really.

Once all that is done, I will release the files and people can have a play around with it ! Then next I will do the STE version with smoother scrolling and some blitter usage etc. I suppose technically both could be baked into the code anyway..
User avatar
exxos
Site Admin
Site Admin
Posts: 29655
Joined: Wed Aug 16, 2017 11:19 pm
Location: UK
Contact:

Re: Super Cars II (Atari ST) - finally cracking how the graphics and tracks work

Post by exxos »

Having to add a single track play selection in the menu now to avoid the tournament :lol:

SC2MENU.PNG
SC2MENU.PNG (32.89 KiB) Viewed 171 times
Post Reply

Return to “MEMBER BLOGS”