I don't know if I'm weird or if it's just normal to get random reverse engineering urges.
-
and I have crashed the game. maybe this isn't emulated terribly well
-
okay so I set a interrupt breakpoint (bpint in the DOSBOX debugger) on AH=3D, and AH=0F. Those are the two main ways to open files on DOS, the early way (0F) and the later way (3D). Flew around until the game pauses, and it's trying to load A2.ARE
-
the game has 36 .ARE files, named A0 through AZ.
-
Which makes sense if we look at the map included in the box:
It's a 6x6 grid, labeled A-F, 1-6.So clearly the game is storing map chunks in these .ARE files and loading them as needed.
-
Each .ARE file is only 3 kilobytes so all 36 of them only use up 96 kilobytes, but this game was born on the c64, where that was more RAM than the whole system had
-
arg I don't have a memory scanner that'll work on the game right now. I can't easily make cheats for infinite health and fuel and shit
-
@foone I'm only interested in .ARR files.
-
EXE isn't packed, it's about 90 kilobytes.
Other files: 16 CMP files, and a bunch of HUF files.
6 labeled P0 - P5, TITLE, DASH0/1, COVE0/1? Sounds like they're image files . -
there's a reference to a covex.huf file in the EXE, but it's not included in this version.
Maybe COVE0/COVE1 are short for COVEX? -
@grumpygamer well I did pirate this version of the game, since I'm too lazy to go find that 5.25" disk in my storage unit, so technically all these files are .ARR files!
-
I think the HUF files are compressed, at least somewhat. Just not very well.
Either that or they're some kind of image drawing microcode but I kinda doubt it
-
@foone HUF for Huffman, surely?
-
anyway, the game starts up by showing you TITLE.HUF.
let's just swap out all the other HUF files one by one and see what they are!
-
@growf that'd make sense!
-
it seems to only render the first half and then the rest is gibberish. I bet it's something to do with these files being multi-format, since they have to encode the image for VGA/CGA/Monochrome
-
okay so P0-5 are the artifact pictures, DASH is the dashboard, COVE is some castle (end of game?) and title is... the title
-
for the ones with 0/1 versions (COVE and DASH), 0 seems be the CGA/Monochrome version, while 1 is the VGA version
-
here's P0.HUF to show what I mean about corruption:
-
CMP files seem to contain object info, since I see text in them.
the game supposedly has 240 objects on the map, which can be transported onto your ship when found. Some are useless, some are clues to The Main Puzzle, and some are instant death bombs
-
I suspect the maps are compressed too.
time to find the decompress routine in the exe!