Kitty Corp Meow Mix Forums

Super Smash Bros. Brawl Hacking => General Hacking Discussion => Topic started by: ForOhFor Error on April 07, 2011, 08:36:02 AM



Title: BRRES Separator [Python][New auto-hexing version!]
Post by: ForOhFor Error on April 07, 2011, 08:36:02 AM
You're looking through a file, and it clearly has BRRES files in it (a memory dump, or some file from an iso, whatever.) However, it would take hours to extract them all manually.

This happened when I was looking through the stage files from okami. So I wrote a small program to fix it.

Simply start the program, select the file with the brres files contained within, and relax as the BRRES Separator creates all the BRRES files in that file, in the same directory the file is in.

What's more, this program will now AUTOMATICALLY hex the models in the BRRES!

Requires python to run.

Download:
http://dl.dropbox.com/u/5869687/AutoHexingBrresSeperator.rar


Title: Re: BRRES Separator [Python][Complete!]
Post by: SmashClash on April 07, 2011, 08:38:29 AM
Hooray! But can you tell me ,more in-depth, what it does?


Title: Re: BRRES Separator [Python][Complete!]
Post by: ForOhFor Error on April 07, 2011, 08:54:27 AM
It goes through the file you choose to open, finds all chunks of data starting with bres, and puts each one in it's own .brres file in the same directory as the original file.


Title: Re: BRRES Separator [Python][Complete!]
Post by: SmashClash on April 07, 2011, 09:09:34 AM
What can I use this for, particularly?(Sorry)


Title: Re: BRRES Separator [Python][Complete!]
Post by: ForOhFor Error on April 07, 2011, 09:35:03 AM
Well, say, memory dumps from dolphin (20+ brres files).
Or the stage files from okami (I've seen up to 43 brres files in these)


Title: Re: BRRES Separator [Python][Complete!]
Post by: SmashClash on April 07, 2011, 09:38:11 AM
Well, say, memory dumps from dolphin (20+ brres files).
Or the stage files from okami (I've seen up to 43 brres files in these)
I see will I don't really extract from ISOs, dumps, compressed incompatible-with-brawl files, atm.
I'm sure this is good for others, though.

Thanks for explaining it to me. ;)


Title: Re: BRRES Separator [Python][Complete!]
Post by: ForOhFor Error on April 07, 2011, 09:46:00 AM
No prob. It's meant for imports, anyway.


Title: Re: BRRES Separator [Python][Complete!]
Post by: Lord_of_D: on April 07, 2011, 10:12:53 AM
wait, then you can use this for replace sounds whitow need of hex calculator stuff? :happy:


Title: Re: BRRES Separator [Python][Complete!]
Post by: ForOhFor Error on April 07, 2011, 11:35:41 AM
....no.


Title: Re: BRRES Separator [Python][Complete!]
Post by: DarkPikachu on April 07, 2011, 01:27:00 PM
thank you
you've just taken a load off me

I've been wanting to do this for Pokepark,
which has the exact same occurences in it's .dan files

so again
thank you ^_^


Title: Re: BRRES Separator [Python][Complete!]
Post by: ForOhFor Error on April 07, 2011, 01:36:48 PM
You're welcome.
I completely forgot pokepark did that, too...


Title: Re: BRRES Separator [Python][Complete!]
Post by: DSX8 on April 07, 2011, 07:28:28 PM
thank you
you've just taken a load off me

I've been wanting to do this for Pokepark,
which has the exact same occurences in it's .dan files

so again
thank you ^_^


wait... so i can actually make stages from Pokepark wii then? O_o


Title: Re: BRRES Separator [Python][New auto-hexing version!]
Post by: ForOhFor Error on April 12, 2011, 03:48:39 PM
I dunno.
BTW, auto-model-hexing version:

http://dl.dropbox.com/u/5869687/AutoHexingBrresSeperator.rar


Title: Re: BRRES Separator [Python][New auto-hexing version!]
Post by: dark sonic 19 on April 12, 2011, 11:32:20 PM
I have Python32 and your stuff to work it but how do i use it?


Title: Re: BRRES Separator [Python][New auto-hexing version!]
Post by: ForOhFor Error on April 13, 2011, 04:20:27 AM
Well, this was made in python 2.7, so it may not work with python 3.2
But, just double click the brresSep file. Then select a file to separate.


Title: Re: BRRES Separator [Python][New auto-hexing version!]
Post by: dark sonic 19 on April 13, 2011, 04:42:26 AM
ok thank you :)


Title: Re: BRRES Separator [Python][New auto-hexing version!]
Post by: DarkPikachu on April 13, 2011, 01:05:13 PM
heh...
I build my stuff using 2.6, but try to keep it at < 2.5 comatibility

I havn't tried 2.3
but alot of my stuff works in 2.4

but use 2.5 for the lowest version...
I have both 25 and 26 installed (25 as a sub)

EDIT:
I'll note the lowest version my converter, or a plugin is able to run on ;)


Title: Re: BRRES Separator [Python][New auto-hexing version!]
Post by: DarkPikachu on May 01, 2011, 06:41:02 PM
hey 404...

do you have the non auto hexing one??
I wanna try something with unmodded mdl0's :-\


Title: Re: BRRES Separator [Python][New auto-hexing version!]
Post by: ForOhFor Error on May 01, 2011, 06:46:40 PM
Kay, here:
http://dl.dropbox.com/u/5869687/BrresSep%20%282%29.py


Title: Re: BRRES Separator [Python][New auto-hexing version!]
Post by: DarkPikachu on May 01, 2011, 07:36:19 PM
AHA!
I knew it

Pachirisu is a version 11 mdl0 >:D
brawl uses version 9 mdl0's

I'm adding support for version 11 mdl0's to my converter
and had the Q running through my head about Pachi :P

now to figure out this header >:)

EDIT:
you may want to scrap the auto hexing one...
not all mdl0's are compatible with it >_>

Pachi is actually one of them...
I checked the weighting data,
and it's got 4 extra 'FF' bytes before the indexes (after being converted)

it works in brawlbox yes...
but the data is different to a version 9 still


Title: Re: BRRES Separator [Python][New auto-hexing version!]
Post by: ForOhFor Error on May 01, 2011, 07:49:04 PM
Hmm.
That's interesting.
I may want to add support for those later...


Title: Re: BRRES Separator [Python][New auto-hexing version!]
Post by: DarkPikachu on May 01, 2011, 07:50:42 PM
Hmm.
That's interesting.
I may want to add support for those later...

credit to BlackJax96 for finding the difference ;)


Title: Re: BRRES Separator [Python][New auto-hexing version!]
Post by: Difegue on May 01, 2011, 11:26:37 PM
Yeah, I realized that, too. Whenever I fix models from Haruhi Wii with it they show up fine in BBox but crash ingame.

So I've been using FortWaffles' old programs again, haha. :p



Title: Re: BRRES Separator [Python][New auto-hexing version!]
Post by: DarkPikachu on May 02, 2011, 01:11:15 PM
developer Q:

do you think v11 mdl0's would work in brawl?? (if set up correctly)

like...
imagine Pika as a v11 instead of a v9
would it work is the Q :/

just a bit of inspiration there ;)


Title: Re: BRRES Separator [Python][New auto-hexing version!]
Post by: DarkPikachu on May 05, 2011, 12:59:47 PM
@BJ: alright...
so I guess I'm on my own... heh

well, here's where I'm at so far: (click for larger view)
(https://jump.matthewevan.xyz/i2p/pxbcwxbhxj2wusliwhrb6ym4vcwpihztuf2tfjejrcdzqrmnjuoa.b32/_/df0e9cd5371eff369030fe4c64c0f86140bed0b2345d9dd2e8057e4f1727c15a) (https://jump.matthewevan.xyz/i2p/pxbcwxbhxj2wusliwhrb6ym4vcwpihztuf2tfjejrcdzqrmnjuoa.b32/_/df0e9cd5371eff369030fe4c64c0f86140bed0b2345d9dd2e8057e4f1727c15a)
the entire header is different
there isn't even a nodes offset

that FF FF FD 60 offsets to -672
(way past the nodes in the middle of an offset table (prbly for bones))

almost everything in the header is different...
yea... there's alot to change

>.>
better notify 404 if he wants to convert these to v9's properly
just thought I might let you know ;)


Title: Re: BRRES Separator [Python][New auto-hexing version!]
Post by: Naruto200Man on September 04, 2012, 03:28:49 PM
ForOhForError: Hey uh the weapon files in the okami ASF files start with wpXX.dat Right?


Title: Re: BRRES Separator [Python][New auto-hexing version!]
Post by: Naruto200Man on September 06, 2012, 07:29:36 PM
Well, this was made in python 2.7, so it may not work with python 3.2
But, just double click the brresSep file. Then select a file to separate.
You could have told me this before >_>
oh well...now I know...hopefully there's an installer for this with my system :/


Title: Re: BRRES Separator [Python][New auto-hexing version!]
Post by: ForOhFor Error on September 07, 2012, 09:29:37 PM
:/
You just double posted in a year old thread?


Title: Re: BRRES Separator [Python][New auto-hexing version!]
Post by: Naruto200Man on September 09, 2012, 06:33:29 PM
:/
You just double posted in a year old thread?
Two posts not on the same day is not double posting :/
>_>

Oh and I found everyones models I was looking for.
Time to get back to work :3

Sucks I couldn't find a model of Sakuya that didn't have her hair in the way of her face >_>


Title: Re: BRRES Separator [Python][New auto-hexing version!]
Post by: mat89 on March 08, 2018, 05:17:38 AM
Hello,

The links are dead.
Could someone reupload the program ?

Best regards,
mat89