Free Game Research Forum | Official QuickBMS support | twitter @zenhax | SSL HTTPS://zenhax.com
It is currently Sat Feb 27, 2021 6:14 pm

All times are UTC

Post new topic  Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Thu Jan 21, 2021 12:28 am 

Joined: Tue Aug 13, 2019 10:12 pm
Posts: 14
With QuickBMS and dead_space_3.bms script I was able to extract the content of dac49de4.str file (text archive). The extracted chunks can successfully be reimported into the .str. But, large portion of text is compressed with refpack (dk2) variation inside NAM_1.dat file.

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:
30 get crc long

It looks like this
I've attached a rar archive with dac49de4.str, NAM_1.dat and kapR.

files.rar [190.86 KiB]
Downloaded 37 times
PostPosted: Tue Jan 26, 2021 3:04 am 

Joined: Tue Aug 13, 2019 10:12 pm
Posts: 14
This aluigi's script decompresses and extracts the compresed data inside dac49de4.str:
comtype dk2
goto 0x34
get SIZE long
goto 0x44
get ZSIZE long
savepos OFFSET
get NAME basename

However, it cannot compress it back.

PostPosted: Fri Jan 29, 2021 1:27 am 

Joined: Tue Aug 13, 2019 10:12 pm
Posts: 14


Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 3 posts ] 

All times are UTC

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Limited