READ THE RULES: Click here

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

Wii - VC - Neogeo - Game.bin.z file -decompress and compress

The Original Forum. Game archives, full of resources. How to open them? Get help here.
Post Reply
srcorsario
n00b
Posts: 18
Joined: Mon Aug 16, 2010 4:08 pm
Has thanked: 2 times

Wii - VC - Neogeo - Game.bin.z file -decompress and compress

Post by srcorsario » Fri Aug 20, 2010 4:09 pm

Hello!!

I would like to ask for some help.
I worked time ago in what was called "neogeo injections" (change the game form a genuine vc game to another)
http://www.wiiso.com/mu-all-possible-t19984.html
http://www.youtube.com/watch?v=5i1W9aLbjRw (old video)
I was able to do "all possible" (they have a maximum file size), but now, in new genuine games, appeared the "game file" compressed (game.bin ->game.bin.z)

File
http://uppit.com/0jbjnc01ebuo/file_to_unpack.rar


The "problem" was the game.bin.z file. And Stev418 and GameZelda suggest a Zlib compresion.
Image


Last week i could decompress that file using offzip (Luigi Auriemma):
http://aluigi.altervista.org/mytoolz/offzip.zip
I renamed game.bin.z to game.z and then:
"offzip -A game.z game 0x0" (where "game" is the directory where i what to extract the file)

Offset file unzipper 0.3.3 (offzip)
a very useful tool to unpack the zip (zlib/gzip/deflate) data contained in any type of file included raw files, packets, zip archives, executables and anything else.
it's needed only to specify the offset where the zip data starts or using the useful -S search options able to find any possible zip block contained in the provided file.
naturally there are also other options for extracting all the zip blocks which have been found or dumping them as in their original compressed form.
it's also possible to choose a windowBits value for scanning both the zlib (RFC1950) and deflate (RFC1951) blocks (for example -z -15 for common zip files and so on).

I got a file called "00000000.dat" with good data insite, its not a corrupted file (i recognice the content because its more or less the same form "old files", with some modifications)

Now, after the study of 00000000.dat file, i need to compress a new file... (with diferent data in it)

Could you please help me with this?

Thanks in advance.

Sr Corsario

User avatar
chrrox
Moderator
Posts: 2535
Joined: Sun May 18, 2008 3:01 pm
Has thanked: 57 times
Been thanked: 1260 times

Re: Wii - VC - Neogeo - Game.bin.z file -decompress and compress

Post by chrrox » Fri Aug 20, 2010 5:54 pm

did you try -a -z -15

srcorsario
n00b
Posts: 18
Joined: Mon Aug 16, 2010 4:08 pm
Has thanked: 2 times

Re: Wii - VC - Neogeo - Game.bin.z file -decompress and compress

Post by srcorsario » Fri Aug 20, 2010 6:09 pm

I need to repack/recompress but the zlib compresion its not standard.

Have you got any idea?

User avatar
Strobe
Moderator
Posts: 414
Joined: Mon Oct 24, 2005 8:52 am
Location: Sweden
Been thanked: 16 times
Contact:

Re: Wii - VC - Neogeo - Game.bin.z file -decompress and compress

Post by Strobe » Fri Aug 20, 2010 6:10 pm

is the file you want to unpack the game.bin.z? or did i miss something?
since the game.bin unpacks fine here using zlib decompression, it depacks into a 50MB ROM file.

Edit: aha, you need to recompress it aswell. now i understand.

srcorsario
n00b
Posts: 18
Joined: Mon Aug 16, 2010 4:08 pm
Has thanked: 2 times

Re: Wii - VC - Neogeo - Game.bin.z file -decompress and compress

Post by srcorsario » Fri Aug 20, 2010 6:40 pm

Thanks for having a look!!

Thats important for me, because this could be the missed step for big neogeo games injections... (in case wii can support it... its difficult to explain)

Thanks

Sr Corsario

WRS
ultra-veteran
ultra-veteran
Posts: 601
Joined: Fri Nov 06, 2009 12:13 am
Has thanked: 74 times
Been thanked: 132 times

Re: Wii - VC - Neogeo - Game.bin.z file -decompress and compress

Post by WRS » Fri Aug 20, 2010 10:02 pm

i wrote a quick program to handle your .z files (with maximum compression) - its a 7z archive within a zip so i could upload it

not sure if this was your question ?
You do not have the required permissions to view the files attached to this post.
Useful tool links:

srcorsario
n00b
Posts: 18
Joined: Mon Aug 16, 2010 4:08 pm
Has thanked: 2 times

Re: Wii - VC - Neogeo - Game.bin.z file -decompress and compress

Post by srcorsario » Fri Aug 20, 2010 10:41 pm

WRS wrote:i wrote a quick program to handle your .z files (with maximum compression) - its a 7z archive within a zip so i could upload it

not sure if this was your question ?
EDit:Something is wrong, the compressed and "re-compressed" are differents.
I will continue testing this afternoon and post results.

Thanks a lot!!



Sr Corsario
Last edited by srcorsario on Sat Aug 21, 2010 5:29 pm, edited 1 time in total.

srcorsario
n00b
Posts: 18
Joined: Mon Aug 16, 2010 4:08 pm
Has thanked: 2 times

Re: Wii - VC - Neogeo - Game.bin.z file -decompress and compress

Post by srcorsario » Sat Aug 21, 2010 1:43 pm

Sorryyyy!!


There are a problem!!

When i Repack the file it is smaller than the original compresed file :(

The last 56.145bytes are missing :( but all the other data is perfect!

Image



I tried with another game.bin.z file (from another game) and i got the same problem!! in that case the last 56.069bytes are missing


Thanks again

srcorsario
n00b
Posts: 18
Joined: Mon Aug 16, 2010 4:08 pm
Has thanked: 2 times

Re: Wii - VC - Neogeo - Game.bin.z file -decompress and compress

Post by srcorsario » Mon Aug 23, 2010 2:59 pm

Sorry for insist... but i cant do anything else if i cant repack the file properlly :(


Pleeeeaseee!! Are you on hollidays? xD

Thanks again!

User avatar
lavers
ultra-n00b
Posts: 6
Joined: Sun Oct 25, 2009 5:58 am
Been thanked: 1 time

Re: Wii - VC - Neogeo - Game.bin.z file -decompress and compress

Post by lavers » Wed Aug 25, 2010 3:49 am

hey there, try xpert2 and the buit in zlib de/compressor worked perfectly for me - i pmd you also on gbatemp

srcorsario
n00b
Posts: 18
Joined: Mon Aug 16, 2010 4:08 pm
Has thanked: 2 times

Re: Wii - VC - Neogeo - Game.bin.z file -decompress and compress

Post by srcorsario » Wed Aug 25, 2010 2:27 pm

:D thats working perfect!!

Thanks!!

I hope it will works for my purpouse ;)

Sr Corsario

WRS
ultra-veteran
ultra-veteran
Posts: 601
Joined: Fri Nov 06, 2009 12:13 am
Has thanked: 74 times
Been thanked: 132 times

Re: Wii - VC - Neogeo - Game.bin.z file -decompress and comp

Post by WRS » Sat Aug 28, 2010 1:48 pm

i was away but im glad you found one that works
Useful tool links:

srcorsario
n00b
Posts: 18
Joined: Mon Aug 16, 2010 4:08 pm
Has thanked: 2 times

Re: Wii - VC - Neogeo - Game.bin.z file -decompress and comp

Post by srcorsario » Tue Sep 07, 2010 4:42 pm

WRS wrote:i was away but im glad you found one that works

Thanks for your help anyway. :D

Im preparing another request... xD this time about audio encoding xD (GCA files)
I will formalice the request when i compile all the information.

Thanks

Post Reply