In order to decompress it, I tested every dk2 bms script I could find; the majority of them don't recognize the file signature. The skate3.bms script produces the best results - however it says it can't read 4 bytes from offset 0001FFBC. There is nothing at this offset inside NAM_1.dat; the file ends there.
Since that file is a part of .str archive, I opened the archive with HxD; the required values are 43 4F 48 53 (COHS). If these values are manually added to 0001FFBC, the error message remains - then the script is unable to read 4 bytes from the next offset. Even if the rest of .str archive is added, the error remains.
While I couldn't decompress the NAM_1.dat with QuickBMS, the Game Extractor is able to decompress its content by extracting it as kapR file from the .str. The text is then readable and can be edited. But then I can't compress the kapR content back into NAM_1.dat - the Game Extractor can't edit .str files and I haven't found a working dk2 script.
I need some help with this. Can skate3.bms script be modified for successfull editing of NAM_1.dat?
The last script line before the error is:
Code: Select all
30 get crc long
It looks like this
https://ibb.co/D1JVZYt
I've attached a rar archive with dac49de4.str, NAM_1.dat and kapR.