Skip to content
View in the app

A better way to browse. Learn more.

ResHax

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
Help us keep the site running.

New Robinson - DAN files

Featured Replies

  • Author
  • Localization

Nicknine, posted Thu Jan 10, 2019 8:16 pm (42146)


So I got a Russian game called "???? ????????" 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.
  • Author
  • Localization

aluigi, posted Fri Jan 11, 2019 11:02 pm (42199)


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):
Code:
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"
clog NAME OFFSET ZSIZE SIZE
Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.