• 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!

The GmEvent.dat

Brandondorf9999

Smash Cadet
Joined
Mar 6, 2012
Messages
71
The GmEvent.dat has data for each event in the event match mode and all of these codes are messy and hard to edit. I'm sure the example of the hex from there would be this:
Code:
00 00 2B 44 00 00 25 98 00 00 01 1B 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 1E 00 00 00 3C 2B 80 01 02 00 00 00 CA 00 00 00 00 00 00 00 00 FF FF FF FF FF FB FC FF 00 00 00 00 3F 80 00 00 3F 80 00 00 3F 80 00 00 08 00 02 00 FF 00 00 00 80 00 00 00 00 00 00 00 3F 80 00 00 3F 80 00 00 3F 80 00 00 05 01 02 00 FF 00 04 00 00 04 01 00 00 00 00 00 3F 4C CC CD 3F C0 00 00 3F 80 00 00 00 40 00 00 00 00 00 00 00 00 00 08 00 00 00 00 00 00 00 00 00 00 00 30 00 00 00 4C 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 2B 80 01 02 00 00 00 CB
I'm not sure how to find which part of that can be edited in the file, but the characters with these params will load that. It also has other parameters that are loaded in the event match when they are assigned to them. If anyone can help me edit them in that file, please help me identify the IDs for characters, music and such for the file so I could change the event parameters even the ones like "Triforce Gathering".
 

Sparkpin

Smash Rookie
Joined
Apr 28, 2010
Messages
4
Location
Texas
NNID
Sparklords
I have a feeling that bytes such as the 02 at offset 0x2B might be item spawn rate



0x50 controls the P1 character for Event Match 1

 
Last edited:

Achilles1515

Smash Master
Joined
Jun 18, 2007
Messages
3,211
Location
Cincinnati / Columbus OH
I have a feeling that bytes such as the 02 at offset 0x2B might be item spawn rate



0x50 controls the P1 character for Event Match 1

Try changing the P1 character ID to 0x21.

I figured out almost everything related to this file earlier this week, actually. But I was always changing things in the RAM right after the game loaded the file. I'm glad to know that changing the character ID in the file automatically changes the displayed character name when selecting an event match. That's so great.

Here are my sloppy notes.
[COLLAPSE="Editing Event Matches"]
Code:
---EVENT MATCH POINTERS---
    0x00  short  (0x20 multiplied by number of players in match)
            - this must be changed for more players!
    0x04  point  ?? 0x8 before Match Info?
    0x08  point  match info start pointer
            ----MATCH INFO----
            0x00  byte   timer, on-screen percents
                    - if second bit is a 1, and first bit is 0, timer will count down
                    - if second and first bit are both 1's, timer counts up
                    - if both bits are zero, time is frozen
                    04 = 1 player
                    08 = 2 players
                    0C = 3 players
                    10 = 4 players
                    14 = 5 players
                    18 = 6 players
                    20 = stock match
                    (otherwise, time)
            0x01  byte   Match Flags
                    10 = Warp stars/pokemon damage only
                    80 = Flag that this is an event match (??)
            0x02  byte   Teams Mode ON/OFF
            0x03  byte   item frequency
            0x06  short  stage ID
            0x08  word   timer, seconds
            0x10  word   item switch, word 1
            0x14  word   item switch, word 2
            0x1C  float  universal damage ratio
            0x20  float  match speed
            0x24  float  screen shake
    0x14  point  P1 player info
    0x18  point  P2 player info
    0x1C  point  P3 player info
    0x20  point  P4 player info
    0x24  point  P5 player info
    0x28  point  P6 player info
    (if player is not in-game, these are null)


---PLAYER INFO--- (0x1C apart)
0x00    byte    character ID, external
0x01    byte    player type (HMN, CPU...MasterH & CrazyH use 0x04 here?)
0x02    byte    stocks
0x03    byte    costume number
0x04    byte    spawn point
0x05    byte    subcolor (01=light, 02=dark, 03=black, 04=gray)
0x06    byte    Team ID (idk if they are the normal values, but set all CPUs to 0x04 to be on same team, FF is off)
0x08    byte    Player Flags
                          04 = stamina
                          10 = invisible
                          20 = metal stock icon
                          40 = metal
                          80 = use regular warp in portal (must not include for Giga-Bowser)
0x09    byte    CPU type
0x0A    byte    CPU level
0x0C    short    starting percent
0x0E    short    stamina HP
0x10    float    attack ratio
0x14    float    defense ratio
0x18    float    model scale ratio





GmEvent.dat holds all this info!!

0x24EC in GmEvent.dat = 00000060 (=00000080 as file offset) = first event match info pointer (first event match in table mentioned above)

The pointer to Event Match 2 is at 0x24F0, etc.
[/COLLAPSE]
 
Last edited:

Sparkpin

Smash Rookie
Joined
Apr 28, 2010
Messages
4
Location
Texas
NNID
Sparklords
Try changing the P1 character ID to 0x21.
Better suited for event 51. You'll never 100% Melee now!

If you want a slightly more possible challenge, replace the hex at 0x6C with 1D 01 63 and go to Event 1. (0x52 with 01 for a worse challenge. You've probably figured out that that represents stock ;))
 
Last edited:

Achilles1515

Smash Master
Joined
Jun 18, 2007
Messages
3,211
Location
Cincinnati / Columbus OH
Better suited for event 51. You'll never 100% Melee now!

If you want a slightly more possible challenge, replace the hex at 0x6C with 1D 01 63 and go to Event 1. (0x52 with 01 for a worse challenge. You've probably figured out that that represents stock ;))
It doesn't make it so that you can choose any character for the event?
 

Brandondorf9999

Smash Cadet
Joined
Mar 6, 2012
Messages
71
What are the all the IDs for each parameter and characters so I could get a better idea on changing that with HxD? I want to load "Zelda" in the event "Time for Checkup" instead of "Peach" for that example.

EDIT: There's one id that I found in that event and it's "Luigi". That id is 07. Dumping the ids would be a great idea.
 
Last edited:

Sparkpin

Smash Rookie
Joined
Apr 28, 2010
Messages
4
Location
Texas
NNID
Sparklords
The IDs are in the same order as the Debug Menu, with Captain Falcon as 00. Peach's ID is 0C.
 

Brandondorf9999

Smash Cadet
Joined
Mar 6, 2012
Messages
71
The IDs are in the same order as the Debug Menu, with Captain Falcon as 00. Peach's ID is 0C.
Is there a way to add another character in the event match event and use Giga Bowser as a player in this match?
 
Last edited:

Brandondorf9999

Smash Cadet
Joined
Mar 6, 2012
Messages
71
I'm not sure where the stage ID is located in the events, but I can't find it there. Can someone locate it on each event lines?

EDIT: Found it, it's through debug
 
Last edited:
Top Bottom