The Forum is up for sale: XeNTaX Forum looking for new owner

cage & hab files.

The Original Forum. Game archives, full of resources. How to open them? Get help here.
jackpack
advanced
Posts: 47
Joined: Tue Sep 08, 2009 7:28 pm

cage & hab files.

Post by jackpack »

well this section said post file archives you dont know about.

iv been playing "darkest of days" good game.

iv decided that the wepons will be nice in fallout3 but iv done some research into the file types & absoulutly nothing has come up. dos anyone know anything thay can share with me :)

i can post one some if anyone wants to mess with it.

Image
Rick
Moderator
Posts: 388
Joined: Tue Aug 09, 2005 10:10 pm
Been thanked: 84 times
Contact:

Re: cage & hab files.

Post by Rick »

Cage is archive format, zlib compressed blocks, filenames preceding data blocks (null terminated).

zstring file_name
dword file_uncompressed_size
dword file_compressed_size
. dword block_uncompressed_size
. dword block_compressed_size
. byte[block_compressed_size] block_data
. repeat until end of file_compressed_size
repeat until end of cage file.

So simple a caveman could do it.
Last edited by Rick on Thu Sep 10, 2009 11:11 pm, edited 1 time in total.
https://blog.gib.me/

Don't ask me about localization tools; if you don't have the resources to develop them yourself you don't need them.
jackpack
advanced
Posts: 47
Joined: Tue Sep 08, 2009 7:28 pm

Re: cage & hab files.

Post by jackpack »

yeh srry, i must be a monkey then haha.


i guess you want me to open the file with notepad & put that stuff in it?.

is there anyware on this site where i could learn somethings?

-

the most iv done is extract hl2 stuff to fallout 3, vie crafty & max.

i think im getting in too deap lol, but im willing to learn :]
nikitatp
ultra-n00b
Posts: 5
Joined: Thu Sep 10, 2009 9:34 pm

Re: cage & hab files.

Post by nikitatp »

Rick wrote:Cage is archive format, zlib compressed blocks, filenames preceding data blocks (null terminated).

zstring filename
dword total_uncompressed_size
dword total_compressed_size

. dword block_uncompressed_size
. dword block_compressed_size
. byte[block_compressed_size] block_data
. repeat until end of total_compressed_size
repeat until end of cage file.

So simple a caveman could do it.
So they repeat the Bigfiles entire size for every file in there? arent that kinda weird :P
aww nevermind i misread :P
im new at this so just one question..
Do i need to unpack each block seperately then and merge them afterwards?

Again.. found it out myself.. Extracted my first wav :P
Rick
Moderator
Posts: 388
Joined: Tue Aug 09, 2005 10:10 pm
Been thanked: 84 times
Contact:

Re: cage & hab files.

Post by Rick »

nikitatp wrote:So they repeat the Bigfiles entire size for every file in there? arent that kinda weird :P
aww nevermind i misread :P
im new at this so just one question..
Do i need to unpack each block seperately then and merge them afterwards?

Again.. found it out myself.. Extracted my first wav :P
Yes I wasn't clear, that was total of the file data, not archive. Good work! :)
https://blog.gib.me/

Don't ask me about localization tools; if you don't have the resources to develop them yourself you don't need them.
jackpack
advanced
Posts: 47
Joined: Tue Sep 08, 2009 7:28 pm

Re: cage & hab files.

Post by jackpack »

nik, are you doing the same game?

any chance one of you guys can walk me thru it a bit,
pietastesgood
advanced
Posts: 72
Joined: Sun Oct 26, 2008 2:41 am
Has thanked: 3 times
Been thanked: 4 times

Re: cage & hab files.

Post by pietastesgood »

So if I'm interested in extracting the music, I can simply cut out the compressed parts and run offzip or on it?
nikitatp
ultra-n00b
Posts: 5
Joined: Thu Sep 10, 2009 9:34 pm

Re: cage & hab files.

Post by nikitatp »

well basicly you can just cut out a file and use a zlib decompressor on it
the actually zlib packed file starts with ASCII xæ in a hex editor or HEX 78 9C
End of string filename +18 bytes and then the compressed file runs from the xæ mark
all the way to the next filename string.. If you cut that out and save to a new file
you can use a zlib depacker on that file. and bang your good to go.

Anyone knows if there are some freeware fast loading activex binary editor (non-visual)
the one integrated in my language is slow as hell as long files gets over 50mb

~ Tina
pietastesgood
advanced
Posts: 72
Joined: Sun Oct 26, 2008 2:41 am
Has thanked: 3 times
Been thanked: 4 times

Re: cage & hab files.

Post by pietastesgood »

What zlib depacker are you using by the way?
chrrox
Moderator
Posts: 2602
Joined: Sun May 18, 2008 3:01 pm
Has thanked: 57 times
Been thanked: 1411 times

Re: cage & hab files.

Post by chrrox »

if you posted the files someone could write a decompreessor ibn 2 seconds or if you do not care about file names just use
offzip.exe -a filename output 0x0
that will extract every zlibed file in the archive for you.
pietastesgood
advanced
Posts: 72
Joined: Sun Oct 26, 2008 2:41 am
Has thanked: 3 times
Been thanked: 4 times

Re: cage & hab files.

Post by pietastesgood »

I'll post a few files when I get home.
jackpack
advanced
Posts: 47
Joined: Tue Sep 08, 2009 7:28 pm

Re: cage & hab files.

Post by jackpack »

The contents of this post was deleted because of possible forum rules violation.
nikitatp
ultra-n00b
Posts: 5
Joined: Thu Sep 10, 2009 9:34 pm

Re: cage & hab files.

Post by nikitatp »

well heres a small cage file..
6mb so easy to work with.
pietastesgood
advanced
Posts: 72
Joined: Sun Oct 26, 2008 2:41 am
Has thanked: 3 times
Been thanked: 4 times

Re: cage & hab files.

Post by pietastesgood »

Hey nikita, what archive were the wav's in? Do you know where the music was? The 360 version has a music folder but my copy seems to have been damaged in the music folder. Will take a look at the PC version.
nikitatp
ultra-n00b
Posts: 5
Joined: Thu Sep 10, 2009 9:34 pm

Re: cage & hab files.

Post by nikitatp »

the music and sounds are in the level/map files.. Seems they packed the sounds and music to be used in a map in the actual map.. Allthough this means some of the audio is there like 10 times.. Bad way of doing a game, why spend more space than they actually needs :P would be nice with an unpacker to see if the game would run out of the cage, with a simple directory structure, and thereby save alot of space.
Post Reply