Determining unknown bytes in a game's save file header

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
carlimarli
Posts: 7
Joined: Wed Jun 23, 2021 11:58 am

Determining unknown bytes in a game's save file header

Post by carlimarli »

image.png

The game uses a custom engine made by VectorUnit

I've figured out the rest of the file structure (which was pretty straight forward), only missing one part of it
I would assume these bytes would be some sort of a checksum but I haven't been able to confirm that myself

sample file:
local.dat
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Determining unknown bytes in a game's save file header

Post by aluigi »

Those 4 bytes are a 32bit checksum of the compressed data.
There is a script for quickbms called crc_scan.bms that does a great job at spotting the correct checksum algorithm of the many implementations and settings available.
Once dumped the output of the script in a text file it's enough to search fbd4a6ac (or aca6d4fb since the script dumps both endianess).
The algorithm is the number 38 corresponding to fnv32.
carlimarli
Posts: 7
Joined: Wed Jun 23, 2021 11:58 am

Re: Determining unknown bytes in a game's save file header

Post by carlimarli »

Thank you!