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.

Anomaly Defenders (2014) - unknown compression

Featured Replies

  • Author
  • Localization

AlphaTwentyThree, posted Tue Sep 30, 2014 6:20 pm (612)


Hi everybody, me again... ;)
The above game uses DAT/IDX pairs, which can be extracted with this temporary script:
Code:
#comtype ?
open FDDE IDX 0
open FDDE DAT 1
get DUMMY threebyte 0
get FILES threebyte 0
for i = 1    get OFFSET long 0
   get CIDENT byte 0
   get CRC long 0
   get CSIZE long 0
   get SIZE long 0
   get NAME basename
   string CRC p= "_0xx" CRC
   string NAME = CRC
   log NAME OFFSET CSIZE 1
   # clog NAME OFFSET CSIZE SIZE 1
next i

What I need is the compression. I've tried the comtype scanner but couldn't find anything usable. Can anybody help me out? Thanks!
Here's a sample: http://gsu5qfj74a.1fichier.com/
  • Author
  • Localization

aluigi, posted Tue Sep 30, 2014 6:29 pm (614)


It looks like someone had shopping on Humble Bundle :)
I have the game too, I can check it.
  • Author
  • Localization

Ekey, posted Tue Sep 30, 2014 7:50 pm (616)


Well previous games used gzip
  • Author
  • Localization

aluigi, posted Tue Sep 30, 2014 8:49 pm (618)


Yes it's gzip.
I tried with "comtype gzip" and it works perfectly, while 7zip cannot handle the file due to the wrong size/crc at the end.
  • Author
  • Localization

AlphaTwentyThree, posted Wed Oct 01, 2014 6:14 am (629)


Unfortunately it doesn't seem to work with the sounds.dat. One file isn't usable at all, the others are heavily truncated and then QuickBMS crashes with a memory allocation error.
Here's the file: http://wlkth88fnd.1fichier.com/
  • Author
  • Localization

aluigi, posted Wed Oct 01, 2014 12:07 pm (632)


Why don't you use the script that I made months ago? (I have found it just now)
http://aluigi.altervista.org/papers/bms/anomalywe.bms

I made a test here using comtype gzip instead of comtype deflate_noerror and the gzip one is smaller, probably I have to fix something in the next version of quickbms.
  • Author
  • Localization

AlphaTwentyThree, posted Wed Oct 01, 2014 4:13 pm (640)


Oh ok! ;) Thanks, hehe. ;)
Here, I've updated it a bit (func_getTYPE.bms attached):
Code:
# 11 bit studios - DAT/IDX pairs
# known supported games: Anomaly: Warzone Earth, Anomaly Defenders
# script for QuickBMS http://quickbms.aluigi.org
# written by aluigi 2013
# enhanced by AlphaTwentyThree 2014

include "func_getTYPE.bms"
comtype deflate_noerror
open FDDE "idx" 0
open FDDE "dat" 1
get DUMMY short
get DUMMY byte
get FILES long
get DUMMY long
for i = 0     get CRC long
   string CRC p= "_0xx" CRC
   get NAME basename
   string NAME = CRC
    get ZSIZE long
    get SIZE long
    get OFFSET long
    get ZIP byte
    if ZIP == 0
        log MEMORY_FILE OFFSET SIZE 1
    else
        math OFFSET = 10
        math ZSIZE -= 10
        clog MEMORY_FILE OFFSET ZSIZE SIZE 1
    endif
   callfunction getTYPE 1
   string NAME = EXT
   get SIZE asize MEMORY_FILE
   log NAME 0 SIZE MEMORY_FILE
next i

func_getTYPE.zip

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.