QCMP (QuickCompression) - Mod Nation Racers (PS3)
Posted: Tue Dec 21, 2021 8:58 am
I'm trying to decompress the track files from ModNation Racers (PS3 kart game).
When I open the .TRK files in a hex-editor I see the following hex:
Where the first four would decode to
There is an old thread about Sleeping Dogs (on this forum) and a github repo that deals with decompression of QCMP. And QuickBMS has a script/plugin to decode/decompress QCMP files but when I try it I get the following error:
Is QCMP just zlib compressed streams? I tried to decompress them using Python but got various error messages.
Does anyone have any idea how to proceed?
When I open the .TRK files in a hex-editor I see the following hex:
Code: Select all
51 43 4D 50 00 01 00 01 00 00 00 40 00 00 00 38
...
Code: Select all
QCMP
Code: Select all
offset filesize filename
--------------------------------------
00000040 1170056 000A0199_SUZUKUCITYMKIII_unpack.TRK
Error: the compressed zlib/deflate input is wrong or incomplete (-3)
Info: algorithm 1
offset 00000040
input size 0x0004ef10 323344
output size 0x0011da88 1170056
result 0xffffffff -1
Error: uncompressed data (-1) bigger than allocated buffer (1170056)
It usually means that data is not compressed or uses another algorithm
Last script line before the error or that produced the error:
20 clog NAME dataOffset compressedSize uncompressedSize
- OFFSET 0x00000040
- ZSIZE 0x0004ef10
- SIZE 0x0011da88
coverage file 0 99% 323384 323408 . offset 0004ef50
Press ENTER or close the window to quit
Does anyone have any idea how to proceed?