Free Game Research Forum | Official QuickBMS support | twitter @zenhax | SSL HTTPS://zenhax.com
It is currently Sun Jun 16, 2019 5:14 pm

All times are UTC

Post new topic  Reply to topic  [ 2 posts ] 
Author Message
 Post subject: New Robinson - DAN files
PostPosted: Thu Jan 10, 2019 8:16 pm 
User avatar

Joined: Tue May 29, 2018 9:07 pm
Posts: 13
So I got a Russian game called New Robinson and it has all the assets packed into these DAN/DAT files.
Samples: https://www76.zippyshare.com/v/404Elb33/file.html
Here's what I got on them so far:
0x00 - header magic (NL)
0x04 - number of files
0x06 - number of files again
0x0E - seems to always be 0xBAAB
0x10 - uncompressed size
0x14 - compressed size
0x20 - for each file: 0x20 bytes of unknown data

After that there are actual files with start offsets aligned to 0x04 bytes. Files are usually compressed but some DAN files are uncompressed in which case uncompressed size is same as compressed size.
What I want find out is what this data at 0x20 is and the compression used.

PostPosted: Fri Jan 11, 2019 11:02 pm 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 10532
The format is simple but the compression is a small variation of lzss that I have not been able to identify.

Work-in-progress script (DOES NOT WORK):
idstring "NL"
get DUMMY short # 0x100
get BLOCKS short
get BLOCKS short
getdstring ZERO 6
get DUMMY short # 0xabba
get SIZE long
get ZSIZE long
goto 0x20
for i = 0 < BLOCKS
    getdstring DUMMY 0x20
next i
savepos OFFSET
comtype lzss #"11 4 2 2 0x20"
get NAME basename
string NAME + ".txt"

Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 2 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