Reimporting Shattered Horizon dat files

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
Fracturoid
Posts: 3
Joined: Sun Oct 23, 2016 9:42 am

Reimporting Shattered Horizon dat files

Post by Fracturoid »

I extracted a .dat file for Shattered Horizon using futuremark.bms
Then, when I attempted to reimport using quickbms without changing anything (only 1 lua file being "reimported" untouched), the resulting .dat file is different from the original.

When I did a diff, it seems like the whole file has been stripped from the new .dat file with almost nothing added. Game gets an error when trying to load the file.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Reimporting Shattered Horizon dat files

Post by aluigi »

It's probably a bug in quickbms while handling the filecrypt command in reimport mode.
That command is used only in 2 scripts so that's why probably it has not been found/reported before.
I will check it when I will work at the next version of quickbms.
Fracturoid
Posts: 3
Joined: Sun Oct 23, 2016 9:42 am

Re: Reimporting Shattered Horizon dat files

Post by Fracturoid »

Sweet thanks! I got more sample files if needed.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Reimporting Shattered Horizon dat files

Post by aluigi »

Ok, it was a bug in quickbms in rotate_crypt in encryption mode (ctx->size must be << 3 for calculating num).
Will be fixed in quickbms 0.7.8 :)