Kitty Corp Meow Mix Forums

Super Smash Bros. Brawl Hacking => General Hacking Discussion => Topic started by: Eternal Yoshi on October 03, 2010, 01:07:08 AM

Title: Event Matches - We Can Edit Them Now!!! All-Star mode too! As well as Classic!
Post by: Eternal Yoshi on October 03, 2010, 01:07:08 AM
You need a hex editor Tabuu to open the file that controls them, sq_event_data.dat

sq_event_data.dat = MiscData[6] in common2.pac.

Edit it, and replace MiscData[6] in common.pac.
It is ill advised to alter the file size.

Sc_sel_event.pac controls the text and such of the event match menu.

I haven't discovered all of it's floating points yet, but this quote is what we know so far.

This should make it easier to understand.

(http://i.imgur.com/emedoiz.png) (http://i.imgur.com/emedoiz.png/)

Red = Player 1 data
Blue = Player 2 data
Yellow = Player 3 data
Green = Player 4 data
Brown = Character ID
Purple = Scaling
Teal = Stage ID
Magenta = Stock Count
Royal Blue = Status
Dark Orange = Starting Damage(All Difficulties)
Pink = Team Flag
White = Color ID
Dark Red = Offense Ratio
Cyan = Defense Ratio
Gold = Game Mode
Dark Olive Green = Game Speed
Sandy Brown = Camera Shake control
Dark Green = Time Limit
Light Green = Timer Visibility?(Timer invisible when at 40000000)
Indigo = Global Offense and Defense Ratio
Light Yellow = Item Frequency

00 = Normal
01 = Metal(Portrait Dark)
02 = Invisible(No Portrait)
03 = Freezes the game.

Rule Format
00 = Time?
01 = Stock Match
02 = Coins


So as of now, we can change characters, music, and scale them.
And now stock count, control status, offense and defense ratios among the characters, and stages.

In a different format:



Header Size - 0x50

0x08 = Match Type(Value is at 2 for Coin event match)
0x0C = Time Limit
0x10 = Timer Visibility?
0x1B = Item Frequency
0x1F = Stage ID
0x38 = Game Speed
0x3C = Camera Shaking control
0x46 = Music ID
0x49 = Global Offense Ratio(Leave area as FFFFFFFF for normal ratios)
0x4B = Global Defense Ratio(Leave area as FFFFFFFF for normal ratios)

PlayerData Size = 0x38
---------------------------------
0x00  = byte CharacterID
0x01  = byte Status (Normal,Metal,Invisible,BEEP?)
0x04  = float Size(Scaling)
0x08  = Team Flag
0x0C  = ?????(Easy)
0x0F  = Offense Ratio(Easy)
0x11  = Defense Ratio(Easy)
0x14  = Stock count(Easy)
0x18  = Starting Damage(Easy)
0x1B  = ?????(Normal)
0x1D  = Offense Ratio(Normal)
0x1F  = Defense Ratio(Normal)
0x22  = Stock count(Normal)
0x26  = Starting Damage(Normal)
0x28  = ?????(Hard)
0x2B  = Offense Ratio(Hard)
0x2D  = Defense Ratio(Hard)
0x30  = Stock count(Hard)
0x34  = Starting Damage(Hard)




For the sake of reference for whoever wants to try their hand at this, here are the Character IDs and Music Lists.

Music List(Don't use nameless and unused songs!)
Sorry but you are not allowed to view spoiler contents.


Character IDs for dat file
Sorry but you are not allowed to view spoiler contents.


Note: Pokemon Trainer and his independent Pokes use different IDs.

3E has two meanings. Either none, or "Choose your Character".

Sorry but you are not allowed to view spoiler contents.


Sorry but you are not allowed to view spoiler contents.


I have an idea for an event match that's inspired by a memtic song.

As of now, let's try to find out what the floating points control.

Everyone else, drop some ideas for event matches.

Seems that the modules control the success and failure conditions for most event matches.
Title: Re: Event Matches - We Can Edit Them Now!!!
Post by: Eternal Yoshi on October 03, 2010, 01:18:52 AM
I'm reserving this.

I may make this post for the other files of common2.pac.

It holds a LOT of Miscdatas, a few of which controls All-Star Mode and Classic.

(http://img202.imageshack.us/img202/7267/colorcodeallstar.png) (http://img202.imageshack.us/i/colorcodeallstar.png/)

I need to confirm these for this file.
This is an example of an All-Star mode stage file.
The Cyan colored may be the fifth opponent. No match has 5 at a time, but it would have been the case if Mewtwo was in the game.

Edit: Don't try to add a fifth opponent at this time. The game will freeze as of now if you do.

The first row is for stages. The game randomly selects from one of the ID's there. To force it to go to one stage, just fill the others with FFFFFFFF.


Credit to mnsg for finding the stock counts and Color IDs for All-Star mode.

[SIZE=8]Classic Mode.[/SIZE]

These don't seem to be neatly organized as the other ones.
As of now, I only found the stage IDs for the possible combinations....

(http://img64.imageshack.us/img64/7091/colorcodeclassic.png) (http://img64.imageshack.us/i/colorcodeclassic.png/)

Note: This structure repeats for other stages for the many possible combinations.




MatchData size = 104 bytes

--------------------------------------------------------

0x07 = Stage ID
0x0b =  Stage ID
0x0f =  Stage ID
0x10 =  Stage ID


Just fill the others with 000000FF if you only want 1 stage.

Maybe the second to last stage holds the key for true random.......
for classic mode.
Title: Re: Event Matches - We Can Edit Them Now!!!
Post by: Eternal Yoshi on October 03, 2010, 12:58:14 PM
Wait a bit before suggesting adding this to the BV.
I'm updating the OP to make it easier for you all to edit.
Tabuu FTW.
Title: Re: Event Matches - We Can Edit Them Now!!! OP updated with more Tabuu!
Post by: New Age Retro Hacker on October 03, 2010, 01:34:02 PM
This is remarkable! Now, we should find out the offsets for every Even Match ID (if you haven't done it already).
Title: Re: Event Matches - We Can Edit Them Now!!! OP updated with more Tabuu!
Post by: Eternal Yoshi on October 03, 2010, 04:18:18 PM
Tabuu takes care of most of that for you.

Added info about All-star mode. Waiting for access to Wii to confirm my findings...
Title: Re: Event Matches - We Can Edit Them Now!!! OP updated with more Tabuu!
Post by: JOEYSX5 on October 03, 2010, 05:10:11 PM
According to the way this file is organized, is is possible to make EVERY single Event Match selectable by any character? Also, I have been private messaging Picano, telling him there should be a seperate section on the vault for this.

This should be a thread on Smash Boards, too, if you haven't already made one.
Title: Re: Event Matches - We Can Edit Them Now!!! OP updated with more Tabuu!
Post by: Eternal Yoshi on October 03, 2010, 05:59:26 PM
I did make one already.

Still waiting for the Wii...
Title: Re: Event Matches - We Can Edit Them Now!!! OP updated with more Tabuu!
Post by: Pin0yB0i on October 03, 2010, 06:02:57 PM
This is really cool.
Good job.
But who plays event matches anyways? :srs:
Title: Re: Event Matches - We Can Edit Them Now!!! OP updated with more Tabuu!
Post by: Chuy on October 03, 2010, 06:05:55 PM
Quote from: PiN0yB0i on October 03, 2010, 06:02:57 PM
This is really cool.
Good job.
But who plays event matches anyways? :srs:
Bored people like me :P
Title: Re: Event Matches - We Can Edit Them Now!!! OP updated with more Tabuu!
Post by: Eternal Yoshi on October 03, 2010, 08:31:59 PM
I successfully moved MK from the Kirby stage to the Metal Gear stage.

Also confirmed the Stage ID, Scale, Player 1-4 data, and Stage RNG for All-Star mode.
Title: Re: Event Matches - We Can Edit Them Now!!! All-Star mode too!
Post by: JOEYSX5 on October 03, 2010, 09:08:57 PM
Quote from: EternalYoshi on October 03, 2010, 08:31:59 PM
I successfully moved MK from the Kirby stage to the Metal Gear stage.

Also confirmed the Stage ID, Scale, Player 1-4 data, and Stage RNG for All-Star mode.

Great, epic. Can't wait until you release this. In the meantime imma get to work on making my custom event matches  ;)

Quote from: PiN0yB0i on October 03, 2010, 06:02:57 PM
This is really cool.
Good job.
But who plays event matches anyways? :srs:

Once this is released there will be alot more people playing Event Matches.
Title: Re: Event Matches - We Can Edit Them Now!!! All-Star mode too!
Post by: LC-DDM on October 04, 2010, 07:06:03 PM
Quote from: PiN0yB0i on October 03, 2010, 06:02:57 PM
This is really cool.
Good job.
But who plays event matches anyways? :srs:

People who're still trying to go for 100%, AHEM AHEM. >_>
Title: Re: Event Matches - We Can Edit Them Now!!! All-Star mode too!
Post by: mnsg on October 04, 2010, 07:37:51 PM
Someone should set up an Event Match where the player has to defeat the 8 Mario franchise characters in an all-star type battle; like in Event Match 10.  The characters would appear in the set order below...

Luigi -> Diddy Kong -> Bowser -> Donkey Kong -> Wario -> Yoshi -> Peach -> Mario

Additionally, Yoshi should replace Bowser for the Mario team in All-Star Mode, while Bowser takes Yoshi's spot (which comes after the Fire Emblem team).  Yoshi's Island replaces Mushroomy Kingdom, and vice versa.
Title: Re: Event Matches - We Can Edit Them Now!!! All-Star mode too!
Post by: Eternal Yoshi on October 04, 2010, 09:32:03 PM
That can be arranged.

Please test this for me. I can't get to my Wii on account of my Bro watching Basketball.

http://www.mediafire.com/?ra71a7x30k950k5

This should fufill your request.
Title: Re: Event Matches - We Can Edit Them Now!!! All-Star mode too!
Post by: JOEYSX5 on October 04, 2010, 09:57:17 PM
Quote from: EternalYoshi on October 04, 2010, 09:32:03 PM
That can be arranged.

Please test this for me. I can't get to my Wii on account of my Bro watching Basketball.

http://www.mediafire.com/?ra71a7x30k950k5

This should fufill your request.

I wouldn't be surprised if somone tried to turn all of Brawl's event matches into Melee's. I really want event match 50 (Master hand and Crazy hand fight), then Eent 51 where you fight Giga Bowser, Mewtwo, and Ganon. [Mewtwo [can] could be done with the Mewtwo hack out there, and somone [could] use the Killable Giga Bowser PSA.]

Title: Re: Event Matches - We Can Edit Them Now!!! All-Star mode too!
Post by: dark sonic 19 on October 04, 2010, 10:04:45 PM
EternalYoshi@ i can test it
Title: Re: Event Matches - We Can Edit Them Now!!! All-Star mode too!
Post by: Eternal Yoshi on October 05, 2010, 12:21:35 PM
Then please do so.

Updated the OP with the File names of the event matches, and the event matches they correspond to.

Discovered where the status values are.

It's the two bytes after the Character ID in the Brown area in the image.

00 = Normal
01 = Metal
02 = Invisible
03 = Freezes the game

Basically if you wanted Sonic to be Metal, it would go like this:

2B010000
Title: Re: Event Matches - We Can Edit Them Now!!! All-Star mode too!
Post by: mnsg on October 05, 2010, 10:49:41 PM
I decided to try this out, so I got hold of Tabuu and tried making my own Event Match request.

It turned out as follows...

Stage: Delfino Plaza
Music: Overworld Theme (NSMB)
Opponents: Luigi -> Diddy Kong -> Bowser -> Donkey Kong -> Wario -> Yoshi -> Peach -> Mario
HMN Character: Choose
Lives: 2 (you), 1 (opponents)

I also tried modifying All-Star Mode with this information.  I made Bowser and Yoshi switch places.  Additionally, Yoshi's Island replaced Luigi's Mansion, and vice versa.  In other words, when you face the Mario team, Yoshi's Island would be one of the stages used, but not Luigi's Mansion.  And for Bowser, you'd ALWAYS fight him at the Luigi's Mansion stage.

You know, I'll probably make a custom All-Star Mode, and switch around which opponents you'll fight first, and so forth.  For one example, I'd set the Mario team as the semi-final opponent, but replace Bowser with Yoshi; it would then be known as the Mario heroes team.  And for the final fight, you'd face Mr. Game & Watch, maybe even fight four of them at the same time; it would bring back Melee All-Star Mode nostalgia.

By the way, when Classic Mode is finally cracked, I might plan on swapping the positions of Bowser and Yoshi; it'll be amusing to fight the Kongs alongside the Koopa King, and vice versa.  Additionally, seeing Yoshi work with or against his old friends would be amusing too; for example, a team match where your partner is Peach, while Mario and Yoshi are your opponents.
Title: Re: Event Matches - We Can Edit Them Now!!! All-Star mode too!
Post by: mnsg on October 06, 2010, 07:12:22 PM
Well, it took me several hours of tests to pull off, but I managed to make a customized All-Star Mode that's possible to clear on the easier difficulty levels.  The solo mode modifications were tested out, but I was not able to test out the co-op mode modifications; I lack a second player to play with.

Anyway, here's what my customized All-Star Mode features...

Opponents

Stage 1: R.O.B.
Stage 2: Link, Zelda/Sheik, Ganondorf, Toon Link
Stage 3: Ness, Lucas
Stage 4: Pit
Stage 5: Ice Climbers
Stage 6: Pikachu, Pokemon Trainer, Lucario, Jigglypuff
Stage 7: Samus/Zero Suit Samus
Stage 8: Captain Falcon
Stage 9: Olimar (x1 solo; x2 co-op)
Stage 10: Donkey Kong, Diddy Kong
Stage 11: Marth, Ike
Stage 12: Bowser
Stage 13: Wario
Stage 14: Solid Snake
Stage 15: Kirby, Meta Knight, King Dedede
Stage 16: Fox, Falco, Wolf
Stage 17: Sonic
Stage 18: Mario, Peach, Yoshi, Luigi
Stage 19: Mr. Game & Watch (x4)

Stages

Note: None of the Melee stages are used.

Stage 1: Mario Bros.
Stage 2: Bridge of Eldin, Pirate Ship
Stage 3: New Pork City
Stage 4: Skyworld
Stage 5: Summit
Stage 6: Pokemon Stadium 2, Spear Pillar
Stage 7: Norfair, Frigate Orpheon
Stage 8: Port Town Aero Dive
Stage 9: Distant Planet
Stage 10: Rumble Falls, 75m
Stage 11: Castle Siege
Stage 12: Luigi's Mansion
Stage 13: WarioWare, Inc.
Stage 14: Shadow Moses Island
Stage 15: Halberd
Stage 16: Lylat Cruise
Stage 17: Green Hill Zone
Stage 18: Delfino Plaza, Mushroomy Kingdom, Mario Circuit, Yoshi's Island
Stage 19: Flat Zone 2

Notes

1: Pokemon Trainer has 3 stock lives, meaning that you have to KO all three of his Pokemon to defeat him.

2: When facing Olimar, only one Olimar appears in solo mode, but in co-op mode, two Olimars must be fought.

3: The four Mr. G&Ws can be a bit difficult to defeat (considering that they are the final opponent), but they're possible to defeat on the easier skill levels.  I did beat them on Easy, but I'm not sure about the harder skill levels.

Snapshots

The healing room has been modified to follow the match order shown above.  The snapshots below will give you some examples of the changes.

(http://i61.photobucket.com/albums/h57/TPitcher/Super%20Smash%20Bros%20Brawl/Snapshots/Hacked/th_Other-081.jpg) (http://i61.photobucket.com/albums/h57/TPitcher/Super%20Smash%20Bros%20Brawl/Snapshots/Hacked/Other-081.jpg) (http://i61.photobucket.com/albums/h57/TPitcher/Super%20Smash%20Bros%20Brawl/Snapshots/Hacked/th_Other-082.jpg) (http://i61.photobucket.com/albums/h57/TPitcher/Super%20Smash%20Bros%20Brawl/Snapshots/Hacked/Other-082.jpg) (http://i61.photobucket.com/albums/h57/TPitcher/Super%20Smash%20Bros%20Brawl/Snapshots/Hacked/th_Other-083.jpg) (http://i61.photobucket.com/albums/h57/TPitcher/Super%20Smash%20Bros%20Brawl/Snapshots/Hacked/Other-083.jpg)

Download

The link below is a download containing the modified common2.pac, along with the modified STGHEAL.pac file.

http://www.mediafire.com/?7cscwyv3amxva7w (http://www.mediafire.com/?7cscwyv3amxva7w)

Update: I tried my custom All-Star Mode on a harder skill level, and ended up having to go back and make some extra modifications to the file.  As a result, I updated the download with an updated common2.pac.  STGHEAL.pac remains the same.

Now, whenever you face Pokemon Trainer, he'll have 3 stock lives, regardless of the difficulty level.  I also made sure that everyone else only had one life for all skill levels, including Yoshi (replaced Pokemon Trainer with Yoshi).

I also tried clearing my custom All-Star Mode on the Normal difficulty level.  I was able to defeat the Mr. G&W team with Wolf.
Title: Re: Event Matches - We Can Edit Them Now!!! All-Star mode too!
Post by: New Age Retro Hacker on October 06, 2010, 07:23:39 PM
Maybe it's a stupid question, but what program do you use to edit Event match and All-Star?
Can you link to it, please?
Title: Re: Event Matches - We Can Edit Them Now!!! All-Star mode too!
Post by: mnsg on October 06, 2010, 07:44:59 PM
Quote from: New Age Retro Hacker on October 06, 2010, 07:23:39 PM
Maybe it's a stupid question, but what program do you use to edit Event match and All-Star?
Can you link to it, please?

You have to use Tabuu to edit the data for Event Matches and All-Star Mode.

http://www.smashboards.com/showthread.php?t=284044 (http://www.smashboards.com/showthread.php?t=284044)
Title: Re: Event Matches - We Can Edit Them Now!!! All-Star mode too!
Post by: Eternal Yoshi on October 08, 2010, 04:04:03 PM
>_< OK. I'm sick of the game freezing when I attempt to find the ID for random.
So if you want it to be random, you'll have to find the ID yourself.

Looking at Match 11 of Classic didn't help either as it uses Toon Link's ID.
Title: Re: Event Matches - We Can Edit Them Now!!! All-Star mode too! As well as Classic!
Post by: Eternal Yoshi on October 13, 2010, 02:25:49 PM
The OP was updated.
Modding that last unknown floating point didn't do anything noticeable.
It may be related to something like handicap or defense against items, stages or something, but my testing hasn't shown any changes.
The default value is 6400.

Now for the Success and failure conditions.
Title: Re: Event Matches - We Can Edit Them Now!!! All-Star mode too! As well as Classic!
Post by: xZedkiel on October 29, 2010, 08:25:40 PM
Any of you think it's possible to switch character appearances in SSE? like switch Metaknight for Fox?
Title: Re: Event Matches - We Can Edit Them Now!!! All-Star mode too! As well as Classic!
Post by: Eternal Yoshi on October 31, 2010, 02:40:27 PM
Maybe.
I haven't looked at SSE yet.
Title: Re: Event Matches - We Can Edit Them Now!!! All-Star mode too! As well as Classic!
Post by: libertyernie on October 31, 2010, 05:14:54 PM
I would love a simple program to edit the Classic and All-Star stages for each character in common2.pac. Has anyone found the stage ID for battling Ness and Lucas? I found the one for Marth and Ike but I think they're in the same chunk of hex data.
Title: Re: Event Matches - We Can Edit Them Now!!! All-Star mode too! As well as Classic!
Post by: Eternal Yoshi on October 31, 2010, 08:00:48 PM
Use Tabuu. It finds and seperates the stages for Classic and All-star, which is what I adapted the guide to use.
Title: Re: Event Matches - We Can Edit Them Now!!! All-Star mode too! As well as Classic!
Post by: Eternal Yoshi on December 06, 2010, 01:28:56 AM
I found the time limit for event matches....
It's at 0x0C in my picture in hex.

When the rule is set to stock, having the time run out leads to instant failure.
Not sure about if it's set to time or coin.
Title: Re: Event Matches - We Can Edit Them Now!!! All-Star mode too! As well as Classic!
Post by: songeflemy on December 06, 2010, 02:17:20 AM
Can you change the Portraits on the Classic mode Characters?
Title: Re: Event Matches - We Can Edit Them Now!!! All-Star mode too! As well as Classic!
Post by: Eternal Yoshi on December 06, 2010, 02:34:53 AM
The Classic mode portraits are located elsewhere.
Not sure where though.

Found them.

Check the directory menu/intro/enter/


BTW, the time limit is actually at 0X0C.
Title: Re: Event Matches - We Can Edit Them Now!!! All-Star mode too! As well as Classic!
Post by: Eternal Yoshi on December 14, 2010, 02:41:28 AM
0x20 aparrently determines the number of fighters in an event match.

00800000 for 4 fighters

00600000 for 3 fighters

00400000 for 2 fighters

I wonder if I can do it for event match 10 to make 3 foes appear simultaneously....