READ THE RULES: Click here

Follow us on Facebook: https://www.facebook.com/xentax/ :)

Fantasy Life [3DS] File Archive.bin

Read or post about compression. And decompression. Or ask questions how to decompress your files.
Post Reply
User avatar
lionheartuk
double-veteran
double-veteran
Posts: 686
Joined: Tue May 16, 2006 10:55 pm
Location: Tokyo, Japan
Has thanked: 26 times
Been thanked: 23 times

Fantasy Life [3DS] File Archive.bin

Post by lionheartuk » Fri Dec 05, 2014 3:09 pm

Hey Guys.

So I managed to decrypt and extract the files from Fantasy Life for the 3DS.

Outside of some smaller shader files theres a large 312mb _File_Archive.bin file.

This should contain all the games models and textures, probably other stuff too but i can't say.

I've used FileCutter and since its 1mb too large to attach to this post, I've placed it into my dropbox here:

https://dl.dropboxusercontent.com/u/779 ... rchive.zip

I'm really interested in whats inside this file along with how some things were put together, I'm sure that whatever files are in here are probably going to be a weird compressed/encrypted format anyway, but won't know until this has been opened up.
"Lemons are people nice hardworking & honest people too..."

User avatar
lionheartuk
double-veteran
double-veteran
Posts: 686
Joined: Tue May 16, 2006 10:55 pm
Location: Tokyo, Japan
Has thanked: 26 times
Been thanked: 23 times

Re: Fantasy Life [3DS] File Archive.bin

Post by lionheartuk » Mon Dec 08, 2014 5:33 pm

Damn.

Was really hoping somebody might be interested in this too.
"Lemons are people nice hardworking & honest people too..."

User avatar
Falo
advanced
Posts: 78
Joined: Fri Oct 23, 2009 1:29 pm
Been thanked: 33 times

Re: Fantasy Life [3DS] File Archive.bin

Post by Falo » Sun Dec 14, 2014 11:01 am

It's an easy format to unpack, but no filenames.

Code: Select all

8 byte = numFiles
numFiles * 4 Byte = OffsetTable
Between OffsetTable[0] and the end of the table is an InfoTable, but it's not needed for unpacking and it does not contain any filenames.

Compression is Lz77, 0x10/0x11.
Number of Files is 58.095, but there are 0-byte files, the true count is 38.204.
Fileformats are ztex, zmdl, actmot, BPAK and other.

Here a quickbms script to unpack:

Code: Select all

comtype COMP_LZ77WII

get numFiles long
get temp long

set lastfile numFiles
math lastfile -= 1

for x = 0 < numFiles

	get Offset long
	savepos temp

	if x == lastfile
		get Size asize
	else
		get Size long
	endif

	math Size -= Offset

	#note: offset table contains 0-byte files, we skip them
	if Size > 0
		goto Offset
		get Ident byte
		get USize threebyte

		if Ident == 0x10
			clog "" Offset Size USize
		elseif Ident == 0x11
			clog "" Offset Size USize
		else
			log "" Offset Size
		endif
	endif
	
	goto temp

next x

User avatar
lionheartuk
double-veteran
double-veteran
Posts: 686
Joined: Tue May 16, 2006 10:55 pm
Location: Tokyo, Japan
Has thanked: 26 times
Been thanked: 23 times

Re: Fantasy Life [3DS] File Archive.bin

Post by lionheartuk » Sun Dec 14, 2014 12:23 pm

Thanks Falo.

Though I actually just ran this script from what you sent me over at GBAtemp, haha.

Now its just figuring out the formats within really.

.dat files contain, I've really no idea, areas, events, and possibly animations, zte are ztex files, it looks like they're a container for various .tga files.

the .bpa files are bpak, I can't really tell what they contain, lots of SOBJ fils and CNOD files though, looks like a container of sorts.

Same situation with the .zmd files, they're archives containing models, 99% header is zmdl, I see a fair few things in there, nothing I'd be able to do anything with due to my limited skills, but theres deffinitly some models in those.
"Lemons are people nice hardworking & honest people too..."

Post Reply