RAM map (Boktai 2): Difference between revisions

From Boktai Hacking Wiki
No edit summary
No edit summary
Line 11: Line 11:
|-
|-
| 0x54 || i32 || Magic inventory (bitmask)
| 0x54 || i32 || Magic inventory (bitmask)
|-
| 0x242 || i16 || Current [[Maps (Boktai 2)|Map ID]]
|-
| 0x24c || i32 || Current map's init script ID
|}
== World struct ==
{| class="wikitable"
|-
! Offset || Type || Description
|-
| 0x1e8 || i16 || Current door ID
|}
== Scratch struct ==
{| class="wikitable"
|-
! Offset || Type || Description
|}
|}


Line 34: Line 52:
|-
|-
| 0x030046a0 || void* || Pointer to [[#World struct]], defaults to 0x0203c400 on hard reset (but moves on soft resets)
| 0x030046a0 || void* || Pointer to [[#World struct]], defaults to 0x0203c400 on hard reset (but moves on soft resets)
|-
| 0x030046b8 || i32 || [[Random number generator|RNG index]]
|}
|}



Revision as of 15:51, 8 August 2024

This is the RAM map for Boktai 2 (U).

EWRAM

Stat struct

Offset Type Description
0x50 i32 Total EXP
0x54 i32 Magic inventory (bitmask)
0x242 i16 Current Map ID
0x24c i32 Current map's init script ID

World struct

Offset Type Description
0x1e8 i16 Current door ID

Scratch struct

Offset Type Description

IWRAM

Address Type Description
0x030016c0 byte[0x28] Global save data, loaded from save file @ 0x00-0x28
... 0x030016d8 u16 Unlock Blindbox Lv. 3 event
... 0x030016da u16 Unlock Blindbox Lv. 4 event
... 0x030016dc u16 Unlock Blindbox Lv. 5 & valentine's day event
... 0x030016de u16 Unlock Something has happened to ???'s body event
0x03004690 void* Pointer to #Scratch struct, defaults to 0x0203da00 on hard reset (but moves on soft resets)
0x03004698 void* Pointer to #Stat struct, defaults to 0x0203e200 on hard reset (but moves on soft resets)
0x030046a0 void* Pointer to #World struct, defaults to 0x0203c400 on hard reset (but moves on soft resets)
0x030046b8 i32 RNG index

EEPROM

TODO

Save data checksums

Version differences

TODO

WORLD block is different