Skip to content

Instantly share code, notes, and snippets.

@CraftedCart
Last active March 7, 2018 16:21
Show Gist options
  • Save CraftedCart/2a804f5316b88ab8ae7291fb85774556 to your computer and use it in GitHub Desktop.
Save CraftedCart/2a804f5316b88ab8ae7291fb85774556 to your computer and use it in GitHub Desktop.
Super Monkey Ball 2 Addresses

Memory Addresses

  • 805BC470: DIP switches (32 bit bitmask)
  • 805BCA1C: Score (Int32)
  • 80553974: Timer (Signed Short16)
  • 805BC9BC: X-Velocity (Float32)
  • 805BC9C0: Y-Velocity (Float32)
  • 805BC9C4: Z-Velocity (Float32)
  • 80446C20: Monkey Visibility (Byte?)
  • 80145120: Button Input (32 bit bitmask)
  • 805BC9A4: X-Position (Float32)
  • 805BC9A8: Y-Position (Float32)
  • 805BC9AC: Z-Position (Float32)
  • 8055399C: Next Level (Computed on goal) (Short16)
  • 80553991: Current Level (First byte) (Byte)
  • 8054E058: Camera camx (Float32)
  • 8054E05C: Camera camy (Float32)
  • 8054E060: Camera camz (Float32)
  • 8054E064: Camera intx (Float32)
  • 8054E068: Camera inty (Float32)
  • 8054E06C: Camera intz (Float32)
  • 8054E070: Camera angx (Short16)
  • 8054E072: Camera angy (Short16)
  • 8054E074: Camera angz (Short16)
  • 804724BC: Ball acceleration per frame (Float32)
  • 804724C0: Ball bounce restitution (How much energy is lost in a collision | Float32)
  • 804724B8: Physical ball size (Float32)

Timer Pre Restart

  • 805E94C8: Ball red (Byte8)
  • 805E94C9: Ball green (Byte8)
  • 805E94CA: Ball blue (Byte8)
  • 805E9508: Ball speed (Int32)
  • 805E950C: Flash speed (Int32)
  • 805E9510: Flash pos? (Int32)
  • 805E9538: Ball angle (Short16)

After Restart

  • 805E93F8: Ball red (Byte8)
  • 805E93F9: Ball green (Byte8)
  • 805E93FA: Ball blue (Byte8)
  • 805E9438: Ball speed (Int32)
  • 805E943C: Flash speed (Int32)
  • 805E9440: Flash pos? (Int32)
  • 805E9468: Ball angle (Short16)

mkb2.main_loop.rel Addresses

Other curiosities

  • Modifying 27438 to 60000000 makes the timer infinite

Lighting data

  • More info: https://pastebin.com/uKdK3U2v

  • 00 Plain 0: 1E5298

  • 01 Plain 1: 1E52E0

  • 02 Jungle 1: 1E5328

  • 03 Water 1: 1E5370

  • 04 Night: 1E53B8

  • 05 Sky: 1E5400

  • 06 Space 1: 1E5448

  • 07 Sand: 1E5490

  • 08 Ice: 1E54D8

  • 09 Storm: 1E5520

  • 0A Bonus 1: 1E5568

  • 0B Unk SMB1: 1E55B0

  • 0C Unk SMB1: 1E55F8

  • 0D Unk SMB1: 1E5640

  • 0E Unk SMB1: 1E5688

  • 0F Master: 1E56D0

  • 10 Ending: 1E5718

  • 11 Lava: 1E5760

  • 12 Water 2: 1E57A8

  • 13 Jungle 2: 1E57F0

  • 14 Park: 1E5838

  • 15 Pot: 1E5880

  • 16 Space 2: 1E58C8

  • 17 Electric: 1E5910 (Has special rules)

  • 18 Gear: 1E5958

  • 1A Bonus 2: 1E59E8 (Has special rules, but they don't apply to custom yet)

  • 19 Bubbly: 1E59A0

  • 1B Soccer: 1E5A30

  • 1C Bowling 2: 1E5A78

  • 1D Target 2: 1E5AC0

  • 1E Billiards 2: 1E5B08

  • 1F Boat: 1E5B50

  • 20 Whale: 1E5B98 (Has special rules)

  • 21 Golf: 1E5BE0

  • 22 Pot Fight: 1E5C28

  • 23 Village: 1E5C70

  • 24 Bubbly Cutscene: 1E5CB8

  • 25 Park Cutscene: 1E5D00

  • 26 Gear Cutscene: 1E5D48

  • 27 Water 2 Cutscene: 1E5D90

  • 28 Ocean Surface Cutscene: 1E5DD8

  • 29 Bowling Cutscene: 1E5E20

  • 2A ???: 1E5E68

  • 2B ???: 1E5EB0

  • 2C ????????: 1E5EF8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment