This relatively unknown game (link) has great music and backgrounds but uses a weird archive format, so I could use some help
game.res.7z - 7.98 MB
Air Bandits (game.res)
-
- Posts: 16
- Joined: Mon Feb 02, 2015 7:11 am
Re: Air Bandits (game.res)
I'm absolutely lost with this one
-
- Site Admin
- Posts: 12984
- Joined: Wed Jul 30, 2014 9:32 pm
Re: Air Bandits (game.res)
The game uses a compression algorithm which is not implemented in quickbms and I don't know what it is, it looks like a variant of LZW.
The following script extracts the files but only the non-compressed files are readable while the others are stored in an "unknown_compression" folder:
The following script extracts the files but only the non-compressed files are readable while the others are stored in an "unknown_compression" folder:
Code: Select all
comtype uncompress # wrong!
goto -0x10
idstring "sRBV"
get OFFSET long
get DUMMY long
get DUMMY long
goto OFFSET
idstring "ix50"
get SIZE long
get FILES long
# compression not supported yet ("bogus", seems lzw)
set MEMORY_FILE compressed "eNqll2lclOUaxq+ZYRZQWQRFQ0MIO4iCIIugKWAuYCYuaAYovDMMMM4wg+/MgKRouaaSooW554Km5opLevS4pMc1F8rKcq3sZ2Vuaalx1PO898wLIzJfnA/Xp/n/rvd67ud+7ueZeMTFRKm12siEcI2W04THcLG54erI+Mjw+NiEmMg8LioyJiouS1ukM5tytdFZBm2x1hAVkctZesqA0KZAu4HARe+Vtz8dEJQqB/CCjjqjLs8LKGEWs0IAdf/VOpccuwgZL/kBb3nYMoasLf/IRUeWMSYQKGUWb74CVEuOTXbJMVrIuDEEuNvEljHcW5rkoiPLuCwSOMos9nUCjsyMP+uSY4yQURvHHO113FfSyc9FR5axUzKQoAAqwoBRQYFNX8wxxqEftf0AeNoyrh+q7umiI8uoHQakNAE2lQHNS552csmxC+11DjDCvtfLy926u+jIMsoNQJg7UKsGmuWc7O2SI/VjZyuwt5ktY8S9xedddGQZb0wCHrGMURwwUO2xwSVH6sdr5cAke8aA8Lu/ueZIs2cRIFcAbp2BxNydb7yYY6xDP+qXAxvsGUf24M666Mgy+m8C3vcBLh4D4tqO2+2SI/XjJ/uBcHs/qocmXnfRkWX88gTwqQ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n+pQHphOa7KGcw3Rvc4lKMmQFSm4S5b4mwZx38Dpl+FfIOpGUgndw8yqMPcQ41sHBGPTmeW/EO/jcZpB++y+z2PKnLt/0DPdt+HGLKQLJUfnBMJL3qSJ6ji9ht1Ti0ygNJWao4/bwlr9Xa3kru45E2C6RL90vvNUJaNXqB1H80HrwBpJZ+j4JEsnkdaTUa2SVGbYUyvG4GaU3gdmOfhm1VbDYL/6rNGk07SxnOSkAKPH1plIiqIGQUzO5Yy7D5oopUft3/idij/wcbjY/w"
for i = 0 < FILES
get NAMESZ short MEMORY_FILE
getdstring NAME NAMESZ MEMORY_FILE
get OFFSET long MEMORY_FILE
get ZSIZE long MEMORY_FILE
get SIZE long MEMORY_FILE
get DUMMY long MEMORY_FILE
get DUMMY long MEMORY_FILE
get FLAGS long MEMORY_FILE
if FLAGS == 0
log NAME OFFSET SIZE
else
#math OFFSET += 4 # "ResJ"
#math ZSIZE -= 4
#clog NAME OFFSET ZSIZE SIZE
string NAME p= "unknown_compression/%s" NAME
log NAME OFFSET ZSIZE
endif
next i
-
- Posts: 1383
- Joined: Sat Aug 09, 2014 2:34 pm
Re: Air Bandits (game.res)
Open source'd HGE Engine
-
- Site Admin
- Posts: 12984
- Joined: Wed Jul 30, 2014 9:32 pm
Re: Air Bandits (game.res)
Unfortunately doesn't help much.
The source code contains only references to zlib, so I tried to use zipcrypto with the password "bogus" using both with and without "1" as ivec (used internally in quickbms) but no results.
Additionally there are no references to "ResJ" or 'R','e','s','J' in the code.
The source code contains only references to zlib, so I tried to use zipcrypto with the password "bogus" using both with and without "1" as ivec (used internally in quickbms) but no results.
Additionally there are no references to "ResJ" or 'R','e','s','J' in the code.
-
- Posts: 16
- Joined: Mon Feb 02, 2015 7:11 am
Re: Air Bandits (game.res)
Holy shit, that was a tough nut to crack! Glad I'm finally done with this thing
game.res contents!
P.S. Actual mod dates were manually restored from the archive, but that's a different thread
game.res contents!
P.S. Actual mod dates were manually restored from the archive, but that's a different thread
-
- Site Admin
- Posts: 12984
- Joined: Wed Jul 30, 2014 9:32 pm
Re: Air Bandits (game.res)
Did you found the compression algorithm?
-
- Posts: 16
- Joined: Mon Feb 02, 2015 7:11 am
Re: Air Bandits (game.res)
aluigi wrote:Did you found the compression algorithm?
Nah, just injected code to dump the files.