• Welcome to Smashboards, the world's largest Super Smash Brothers community! Over 250,000 Smash Bros. fans from around the world have come to discuss these great games in over 19 million posts!

    You are currently viewing our boards as a visitor. Click here to sign up right now and start on your path in the Smash community!

SSBB Snapshot files. We need to crack em!

GaryCXJk

Smash Lord
Joined
Jun 2, 2006
Messages
1,809
Yeah, so, anyway, the checksum script posted earlier just erased a big chunk of my file. I'll have to check a compiled version of a checksum checker, but I'll keep you updated.

EDIT: I get what the problem is.

Endians.

EDIT2: Never mind...

EDIT3: So, using the decrypter, deLZSS, CheckCRC and encrypter, I was able to make a new stage file that works.
 

we_like_mike

Smash Rookie
Joined
Oct 6, 2008
Messages
5
Location
Boston, MA
Kakkoister.com down, downloads nowhere to be found

EDIT:

I will be updating> http://ssbb.kakkoister.com
As new things are accomplished.




Thanks to all the hard work put in by the people in this topic, Especially "GTCoder" for creating the converter & "Xane" for making an online version.

We now have a online Brawl Snapshot converter in it's beta stages.
http://brawl.kakkoister.com/
It will convert most images you take in Brawl from .BIN's into .Jpeg's

Offline version located here:
http://GT.kakkoister.com

THP Video Converter
http://ssbb.kakkoister.com/thp

Replay file to Video service
http://ssbb.kakkoister.com/replay

Hey, I'm trying to find download links for these tools, and kakkoister seems to be down. I'm trying to write my own brawl stage editor for PC, and I need a way to convert between my data and the .bin files used by the wii.
Can someone help me find these files?? mainly i'm looking for DeLZSS and SplitStage.
Thanks! ~turley@ccs.neu.edu
 

GaryCXJk

Smash Lord
Joined
Jun 2, 2006
Messages
1,809
StageTools.zip

Although I assume it's mostly just for the source code. However, a better alternative for the SplitStage program would be the earlier posted Python scripts.

By the way, it's not that big of a bump. I posted in it just a few hours ago.

EDIT:

st_fhqwhgads_sw.bin

The tools I used were Isaac356's crypter tools, a CRC32 calculator and DeLZSS.

First, I decrypted the stage file, then stripped the first sixteen bytes. This should not be done actually, and is actually unnecessary, since I later add it as well. Anyway, next, I DeLZSS it. After the process is done, I add the stripped bytes (I believe just padding with zeroes is sufficient as well). Next, I change 0x1C to be the same as 0x18. Then, I change 0x10 to 0xD8D75498. This will then be replaced by the recalculated CRC32 value I got from the calculator. Finally, I encrypted the file back, and it works.
 

we_like_mike

Smash Rookie
Joined
Oct 6, 2008
Messages
5
Location
Boston, MA
Yea, it's currently not available to the public~

Well, everything might be possible after someone finally finds out how the checksum is being calculated. Fingers still crossed.
Was this ever resolved? I kinda came into this thread late in the game. I don't want to start working on my own PC stage editor if there's already one in production-- keep me updated ^_^
 

GaryCXJk

Smash Lord
Joined
Jun 2, 2006
Messages
1,809
Well, Xane said "when it's done", but for now I haven't heard anything about it.

Anyway, I *might* make my own version on Java, which means it would be platform independent.
 

Xane

Smash Journeyman
Joined
Sep 19, 2007
Messages
335
Location
Germany
NNID
XaneFeather
3DS FC
3866-8124-2065
Was this ever resolved? I kinda came into this thread late in the game. I don't want to start working on my own PC stage editor if there's already one in production-- keep me updated ^_^
The checksum is cracked and I'm already working on a Stage Builder:



Sadly, I don't have my Wii right now and I'm busy so the development is slowing down a bit.
Hopefully I'll find some spare time in near future. :>
 

we_like_mike

Smash Rookie
Joined
Oct 6, 2008
Messages
5
Location
Boston, MA
Holy ****, is that really a SS for a PC-based Stage Editor (in progress)?!

...you guys are too good.
Indeed that is.... wow. Xane... wow. I've been trying to do this on my own for weeks... as soon as i find a thread about it, someone's ahead of me ^^;

excellent work. i am thoroughly impressed.
keep it up! i can't wait to use this thing!
 

Isaac356

Smash Rookie
Joined
Sep 30, 2008
Messages
12
Really? How big are your uncompressed files? Maybe Brawl has a size cutoff where if a file is so big, it doesn't read it. (If you're 100% sure any size file can be read uncompressed, then I need to check and make sure I'm doing everything right)
Ah, I think I know what I did wrong. I took the CRC of the entire thing, including the null bytes at the end. Big mistake.

Speaking of mistakes, (by theory), AES works in blocks of 16 bytes, so you should only need to add null bytes up to the end of the line (in a hex editor). What did I say before, 384? Where did I get THAT number...:)

EDIT: Worked.

...that means we have everything! Ah, a good feeling.

Also, that stage editor looks REALLY COOL! Talk about being true to the original, lol! A thought just crossed my mind, if you're looking for feature suggestions :) It would definitely be useful to have a feature to align the timing of moving platforms, etc.

BTW, (this is getting long, so I'll end here) does anyone have a copy of the replay format? I've always wanted to mess with button presses and characters to see what effect it has on the replay :)
 

Xane

Smash Journeyman
Joined
Sep 19, 2007
Messages
335
Location
Germany
NNID
XaneFeather
3DS FC
3866-8124-2065
(...)It would definitely be useful to have a feature to align the timing of moving platforms, etc.
(...)
That's already in. Thanks to Heinerman for helping.
 

Paff

Smash Journeyman
Joined
Sep 2, 2008
Messages
316
Location
Portland, Oregon
StageTools.zip

Although I assume it's mostly just for the source code. However, a better alternative for the SplitStage program would be the earlier posted Python scripts.

By the way, it's not that big of a bump. I posted in it just a few hours ago.

EDIT:

st_fhqwhgads_sw.bin

The tools I used were Isaac356's crypter tools, a CRC32 calculator and DeLZSS.

First, I decrypted the stage file, then stripped the first sixteen bytes. This should not be done actually, and is actually unnecessary, since I later add it as well. Anyway, next, I DeLZSS it. After the process is done, I add the stripped bytes (I believe just padding with zeroes is sufficient as well). Next, I change 0x1C to be the same as 0x18. Then, I change 0x10 to 0xD8D75498. This will then be replaced by the recalculated CRC32 value I got from the calculator. Finally, I encrypted the file back, and it works.
Hmm, I just spent a while trying to duplicate this, with no success. This post didn't mention the need to pad out the file for the encrypter - is there anything else that might have gotten left out?

(It might be a good idea for someone to compile an "official" step-by-step guide. Or to release a single program to decrypt and delzss and set 0x1c, with another single program to pad the file out, calculate the checksum, and encrypt it. At least while we're waiting for a PC stage editor.)

Also: excellent job everyone, it's exciting to watch the progress here.
 

GaryCXJk

Smash Lord
Joined
Jun 2, 2006
Messages
1,809
WII!!!

Stage Fromage text files for teh winz!!!

Could anyone make MEM1 dumps and MEM2 dumps when playing on stage builder stages?

For now:

Code:
Custom stage texture swap (PAL)
4A000000 9018F128
38000032 FF000035
48000000 8065AE4C
DE000000 80008180
58010000 00000008
DE000000 80008180
58010000 000000B0
DE000000 90009380
90010000 00000000
80000001 90179760
82200002 90179768
88000001 00000002
82200002 9017976C
88000001 00000002
4A001001 00000000
DE000000 90009380
30000000 544C4430
80000003 00000000
4A100000 00000010
DE000000 90009380
60000000 00000000
90010007 00000000
92210004 00000004
86400004 0000FFFF
88000004 00000003
86400004 0000FFFF
4A001001 00000008
94210004 00000000
34000000 00000000
4A001007 00000000
92210005 00000000
88000005 00000001
92210006 00000004
88000006 00000000
4A001005 00000006
92110008 00000000
60000000 00000001
48000000 80001850
4A100000 00000018
94110008 00000001
8A000056 00000000
4A001007 00000008
64000000 00000000
E0000000 80008000
And the stage to use:

st_fhqwhgads_ts.bin

Images:

 

GaryCXJk

Smash Lord
Joined
Jun 2, 2006
Messages
1,809
W..o...w... that IS AMAZING!!

(think of the possibilities...)
Yeah, don't get your hopes too high. So far I've checked it, and it appears that there is a maximum size of each stage file. I'll check what the maximum size is, but it sure isn't a lot.
 

Deep2

Smash Apprentice
Joined
Feb 10, 2008
Messages
192
Location
Florida
Hey Xane is it possible if you can release a beta version soon? I can't wait until it comes out. :D
 

we_like_mike

Smash Rookie
Joined
Oct 6, 2008
Messages
5
Location
Boston, MA
Does anyone know if a stage file MUST be in the st_YYMMDD_NNNN.bin naming format for the wii to recognize it? it'd make stage hacks/sharing much easier if i could name my stages somestagename.bin
 

espio87

Smash Ace
Joined
Jan 22, 2006
Messages
654
Location
Bahía Blanca, Argentina
Yeah, don't get your hopes too high. So far I've checked it, and it appears that there is a maximum size of each stage file. I'll check what the maximum size is, but it sure isn't a lot.
by maximum size you mean filesize, right?.
by the looks of it, did you modify the background and the textures?
 

Xane

Smash Journeyman
Joined
Sep 19, 2007
Messages
335
Location
Germany
NNID
XaneFeather
3DS FC
3866-8124-2065

rikkuni

Smash Rookie
Joined
Sep 9, 2008
Messages
1
Could someone please reupload the THP Video Converter? Since the site is down and all...

Thank you very much! Links to SSE videos (not YouTube quality) would also do.
 

GaryCXJk

Smash Lord
Joined
Jun 2, 2006
Messages
1,809
Okay, I've checked, and the safest you can go is with an uncompressed filesize of 64 kB. That's exactly the size the images can have.

I've also checked, and with image format CMPR, texture files are about 32 kB. That's the best compression so far. But it's also the most lossy.
 

Xane

Smash Journeyman
Joined
Sep 19, 2007
Messages
335
Location
Germany
NNID
XaneFeather
3DS FC
3866-8124-2065
Hey Xane is it possible if you can release a beta version soon? I can't wait until it comes out. :D
Can't give you a fixed date, but maybe sometime next month when I find some more time. :/
 

Fumon

Smash Rookie
Joined
Oct 9, 2008
Messages
3
Greetings denizens of the code,

I apologize if this post asks a lot but I hope it will consolidate a few things for both myself and future searchers for the same information as I have been searching for almost a day for it without much luck save endless threads which I would have to read each and every page to get any useful information. This thread seems to be the most informed and the gathering place for several of the developers working on projects related to what I am interested in.

I have extracted the decrypted data from a Brawl image and at this point am attempting to extract model, texture, armature (bone) and animation data from the character files (found in ROOT/fighters) as well as the model and texture data for trophies (root/toy/fig) and the effects data. I am attempting to convert this data to the closest equivalent 3D modeler formats such as OBJ, FBX, COLLADA and the like so as to facilitate modification and use of the data.

SSBExtract has provided me with some useful extracts from some of the related files but obviously does not then allow me to convert the resultant files. TLPx would be the logical choice for the textures themselves but I have found it difficult to locate the file.

If I had the filestructure of said ARC, TLP and such files I would be able to create a converter myself but, unfortunately, the file http://heinermann.kakkoister.com/brawlFormats.txt which contains some of the info I need seems to be down and has been since I started looking for this information.

So what I ask is this, could someone either point me to a location where I can find some of the utilities I am looking for to convert the files I am interested in? If not, could someone point me to a place where I could find the filestructure analysis for all concerned files?
 

GaryCXJk

Smash Lord
Joined
Jun 2, 2006
Messages
1,809
Yet Another GameCube Documentation. One of the most mentioned sources.

Also, TEX0, the actual texture data for Brawl, has a slightly different build-up:

0x00 - 4 - Header (TEX0)
0x04 - 4 - Total block size
0x08 - 4 - Amount of textures contained (?)
0x0C - 4 - ???
0x10 - 4 - ??? (possible location of texture data)
0x14 - 4 - ??? (possible location of palette data)
0x18 - 4 - ???
0x1C - 2 - Width
0x1E - 2 - Height
0x20 - 4 - Texture type
0x24 - 4 - ???

Anyway, any USB Gecko user from any NTSC region, could you please post a memory dump of both MEM1 and MEM2 while playing on a custom stage? It would really help in porting the texture code.
 

Fumon

Smash Rookie
Joined
Oct 9, 2008
Messages
3
This nearly counts as a double post but if anyone has even the brawlFormats.txt from the kakkoister site or something similar it would be beyond helpful to me.
 

Pharrox

Smash Journeyman
Joined
Jan 26, 2007
Messages
397
Location
Belleville, MI
I think I have it around here somewhare (and a few other specs sheets). I'll see what I can find.

EDIT: Here are most of the reference files pulled from Heinermann's website before it went down (all credit goes to him).
 

Isaac356

Smash Rookie
Joined
Sep 30, 2008
Messages
12
So, guess what?

I finally have an understanding as to how the lzss compression works for stages, etc.

I was able to hand compress (remind me never to do that again:mad:) a file so that delzss would return the decompressed one.

The problem is: the Wii wouldn't accept it. This must mean that the Wii has more rules as to how the compression works, and delzss is more lenient.

Compression is defiantly something we need to look at for textures, etc. because as GaryCXJk stated, we could easily hit the max file size.

So, if anyone has any ideas, I'm open to suggestions.

Oh, and just for kicks: http://www.mediafire.com/?uzjmqjyzwmm (I hope you don't mind my testing this on your stage)

You can see that delzss'ing it returns the original file.
 

Xane

Smash Journeyman
Joined
Sep 19, 2007
Messages
335
Location
Germany
NNID
XaneFeather
3DS FC
3866-8124-2065
Both filesize values, compressed and uncompressed file sizes, are identical.
That's why the game thinks it's uncompressed and thus unreadable..
Haven't tested if anything else went wrong.
 

Isaac356

Smash Rookie
Joined
Sep 30, 2008
Messages
12
Nice. Thanks for pointing that out (that must be like the third time I've made that mistake :) )

Anyways, the stage works, but the preview image got a little screwed up. Strange... (I still might not have the exact values for the sizes)
 

Girrrtacos

Smash Rookie
Joined
Mar 28, 2008
Messages
15
Okay, there's been a lot of work on the SD Card BIN stage files. But what about the BIN stage files of the actual stages, like Green Hill Zone or Delfino Plaza, located inside their PAC files in the stage\melee folder? They can't be opened with SSBExtract, and don't say that their LZ77 encrypted. Is there any luck in extracting the contents of these?
 

Pharrox

Smash Journeyman
Joined
Jan 26, 2007
Messages
397
Location
Belleville, MI
All standard stage files are lz77 compressed. They are open to modifying to the same extent characters are, though nothing has been done with them yet.
 
Top Bottom