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.

Snakes 3D. Extracting .txt and .adp from .dat

Featured Replies

  • Author
  • Localization

Chelovek, posted Sun Jul 02, 2017 5:09 pm (24373)


Hello. I successfully decompressed .PAK file to .dat by offzip (zlib extract) and now I have a question. How can I extract .adp (it is samples) and .txt (sequence and bank) from this raw data file? The system of this raw .dat file looks like it script files in one data. I tried to do many scripts, but it didn't help.
The game is Snakes 3D for Symbian
  • Author
  • Localization

Anexenaumoon, posted Mon Jul 03, 2017 1:11 am (24375)


Code:
# Snakes 3D *.dat

get NULL long
savepos CUR_OFF
get FNAMETB long
goto 4
xmath FCOUNT "(FNAMETB-0x4)/0x20"

for i = 0 < FCOUNT
   goto CUR_OFF
   get FNOFF long
   get NULL long
   get SIZE long
   get OFFSET long
   getdstring NULL 0x10
   savepos CUR_OFF
   goto FNOFF
   get NAME string
   log NAME OFFSET SIZE
next i


There was no way to really determine the amount of files, but I'd assume that the *.dat's have the same entry size of 0x20. I skipped over the zeroes and two longs, as I don't know what those do either.
  • Author
  • Localization

Acewell, posted Mon Jul 03, 2017 1:35 am (24376)


Code:
# script for QuickBMS http://quickbms.aluigi.org

for i = 0
   get STRING_SIZE long
   get STRING_OFFSET long
   get ZERO long
   get SIZE long
   get OFFSET long
   get ZERO2 long
   get ZERO3 long
   get NEXT_FILE long
   savepos TMP
   goto STRING_OFFSET
   get NAME string
   log NAME OFFSET SIZE
   if NEXT_FILE == 0
      break
   endif
   goto TMP
next i   

:D

edit
aw Anexenaumoon beat me :P but i will leave mine here anyway :)
  • Author
  • Localization

Chelovek, posted Mon Jul 03, 2017 4:35 am (24379)


Thanks you all guys, very fast reply. It worked.
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.