EarthBound Zero/RAM map: Difference between revisions

From Data Crystal
Jump to navigation Jump to search
mNo edit summary
(add ally status)
Line 30: Line 30:


=SRAM (save data)=
=SRAM (save data)=
Due to something that is not figured out yet (checksum?), so you can only edit it by using a save RAM editor on a live game, otherwise it will erase your save data.
Due to something that is not figured out yet (checksum?), so you can only edit things by using a save RAM editor on a live game, otherwise it will erase your save data.
===Unknown===
===Unknown===
* 0000-13FF: '''Unknown'''
* 0000-13FF: '''Unknown'''
Line 45: Line 45:
* 1431-1440: '''Unknown'''
* 1431-1440: '''Unknown'''
===Ally status===
===Ally status===
* 1441-1688: '''Unknown'''
This is documented [[#Ally status|below]].
* 1441-147E: Ninten
* 1481-14BE: Ana
* 14C1-14FE: Lloyd
* 1501-153E: Teddy
* 1541-157E: Pippi
* 1581-15BE: EVE
* 15C1-15FE: Flying Man
===Other===
* 1601-1688: '''Unknown'''
* 1689-1983: Favorite food name
* 1689-1983: Favorite food name
* 1984-16AF: '''Unknown'''
* 1984-16AF: '''Unknown'''
Line 51: Line 60:
===Unknown===
===Unknown===
* 16D0-1FF0: Other
* 16D0-1FF0: Other
==Ally status==
Each ally's status is stored at a place corresponding to the character, see
* 01: Status condition <!-- TODO: figure this out -->
* 02: '''Unknown'''
* 03-04: Max HP
* 05-06: Max PP
* 07-08: Offense
* 09-0A: Defense
* 0B: Fight
* 0C: Speed
* 0D: Wisdom
* 0E: Strength
* 0F: Force
* 10: Level
* 11-13: Experience
* 14-15: Current HP
* 16-17: Current PP
* 18-19: '''Unknown'''
* 20-27: Items
* 28: Weapon
* 29: Coin
* 2A: Ring
* 2B: Pendant
* 30-37: Learned PSI
* 38-3E: Name
{{Internal Data|game=EarthBound Zero}}
{{Internal Data|game=EarthBound Zero}}

Revision as of 17:11, 27 September 2023

Chip tiny.png The following article is a RAM map for EarthBound Zero.

RAM

RAM Purpose
0x0006 Part of an instruction for "copy protection". $E5 on checksum failure. $00 to bypass. "Correct"/non-hack value unknown.
0x0015 Used for assigning area to objects?
0x0060 HP target value for stat increase during level up
0x0611 Looks like the first EXP byte, but changing it even mid-battle will result in insta-death. Anti-cheat?
0x0818-B The X and Y coordinates, stored strangely; see below

Coordinates

The coordinates in RAM to not correspond to coordinates in the rest of the game. To convert it, run this Python code (in this example, bytes $818-B are `80 19 C0 2D`):

# replace with the values from the RAM
ram_x = 0x1980
ram_y = 0x2dc0

real_x = ((byte1 << 8) | (byte0 & 0xC0)) >> 2
real_y = ((byte3 << 8) | (byte2 & 0xC0) - 0x2000) >> 2

SRAM (save data)

Due to something that is not figured out yet (checksum?), so you can only edit things by using a save RAM editor on a live game, otherwise it will erase your save data.

Unknown

  • 0000-13FF: Unknown

Main data

  • 1400-1403: Unknown
  • 1404-1407: Position
  • 1408-140B: Current party members
    each number corresponds to an ally in Ally data, 0 means empty and skips to the next value
  • 140C-140F: Unknown
  • 1410-1411: Current money
  • 1412-1414: Money in bank
  • 1415-141F: Unknown
  • 1420-1430: Your name (the player name, not Ninten's name)
  • 1431-1440: Unknown

Ally status

This is documented below.

  • 1441-147E: Ninten
  • 1481-14BE: Ana
  • 14C1-14FE: Lloyd
  • 1501-153E: Teddy
  • 1541-157E: Pippi
  • 1581-15BE: EVE
  • 15C1-15FE: Flying Man

Other

  • 1601-1688: Unknown
  • 1689-1983: Favorite food name
  • 1984-16AF: Unknown
  • 16B0-16CF: Items in storage

Unknown

  • 16D0-1FF0: Other

Ally status

Each ally's status is stored at a place corresponding to the character, see

  • 01: Status condition
  • 02: Unknown
  • 03-04: Max HP
  • 05-06: Max PP
  • 07-08: Offense
  • 09-0A: Defense
  • 0B: Fight
  • 0C: Speed
  • 0D: Wisdom
  • 0E: Strength
  • 0F: Force
  • 10: Level
  • 11-13: Experience
  • 14-15: Current HP
  • 16-17: Current PP
  • 18-19: Unknown
  • 20-27: Items
  • 28: Weapon
  • 29: Coin
  • 2A: Ring
  • 2B: Pendant
  • 30-37: Learned PSI
  • 38-3E: Name