ZenHAX

Free Game Research Forum | Official QuickBMS support | twitter @zenhax | SSL HTTPS://zenhax.com
It is currently Sat Oct 21, 2017 9:25 pm

All times are UTC




Post new topic  Reply to topic  [ 8 posts ] 
Author Message
PostPosted: Mon Feb 13, 2017 8:47 pm 

Joined: Sun May 31, 2015 2:23 am
Posts: 245
According to other open, though basically useless, folders in the filesystem, this game uses semi-known formats. However they all lie within these archives. Can anyone find a way to unpack them?

https://www.dropbox.com/s/teqe6i6mv6x7kug/DBHUM2arc.zip?dl=0


Top
   
PostPosted: Sat Feb 18, 2017 7:09 am 

Joined: Sun May 31, 2015 2:23 am
Posts: 245
Sorry to bump, but I really need help with this and I can't really get it anywhere else...


Top
   
PostPosted: Mon Feb 20, 2017 10:39 pm 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 6896
It's just a container so it's not really possible to extract the data but I have written a script to find all the "3DS-LZ" magics and uncompressing them. Basically the result is just an extractor :D
http://aluigi.org/bms/3ds_lz.bms


Top
   
PostPosted: Tue Jun 06, 2017 1:59 pm 
User avatar

Joined: Sun Jan 01, 2017 1:07 am
Posts: 10
aluigi wrote:
It's just a container so it's not really possible to extract the data but I have written a script to find all the "3DS-LZ" magics and uncompressing them. Basically the result is just an extractor :D
http://aluigi.org/bms/3ds_lz.bms

what's the compression algorithm?
I can't find any documentation for the lz77wii.
I want to write a python script for compressing the file back into the bin archive.


Top
   
PostPosted: Tue Jun 06, 2017 4:12 pm 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 6896
It's a set of compresison algorithms used by Nintendo, they are documented and implemented in various programming language all over github.
For example http://code.google.com/p/dsdecmp/, http://wiibrew.org/wiki/Wii.py, quickbms src\include\nintendo.c (obviously :D ) and so on.


Top
   
PostPosted: Thu Jun 08, 2017 5:28 pm 
User avatar

Joined: Sun Jan 01, 2017 1:07 am
Posts: 10
aluigi wrote:
It's a set of compresison algorithms used by Nintendo, they are documented and implemented in various programming language all over github.
For example http://code.google.com/p/dsdecmp/, http://wiibrew.org/wiki/Wii.py, quickbms src\include\nintendo.c (obviously :D ) and so on.

sorry for asking again...
I checked the source code, but there are 6 variations... :?
#define WII_NONE_TAG 0x00
#define WII_LZ77_TAG 0x10
#define WII_LZSS_TAG 0x11
#define WII_HUFF_TAG 0x20
#define WII_RLE_TAG 0x30
#define WII_040_TAG 0x40

I tried comtype scan, but none of those 6 gives me a "nice" dump....

would you mind tell me which one is called within the script??
thanks!

here is a cut off font file sample: https://puu.sh/w57Iz/e7e54d1ca5.bin


Top
   
PostPosted: Thu Jun 08, 2017 7:05 pm 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 6896
The reasons are:
- you have a "3DS-LZ\r\n" header, you must provide the raw compressed data (full file - starting 8 bytes)
- lz77wii and the algorithms you mentioned are like zlib and deflate: zlib is deflate plus header, lz77wii is those algos plus header
- in short if you want to use WII_RLE_TAG you have probably start to comtype_scan2 with the data of the file starting at offset 0xb


Top
   
PostPosted: Thu Jun 08, 2017 8:05 pm 
User avatar

Joined: Sun Jan 01, 2017 1:07 am
Posts: 10
aluigi wrote:
The reasons are:
- you have a "3DS-LZ\r\n" header, you must provide the raw compressed data (full file - starting 8 bytes)
- lz77wii and the algorithms you mentioned are like zlib and deflate: zlib is deflate plus header, lz77wii is those algos plus header
- in short if you want to use WII_RLE_TAG you have probably start to comtype_scan2 with the data of the file starting at offset 0xb

thanks alot!!!!!!! :D


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