Add WorldMap dynamic regional changes

This commit is contained in:
Luke Hubmayer-Werner 2024-07-05 02:11:24 +09:30
parent 20a0820324
commit 9703225f12
2 changed files with 14 additions and 1 deletions

View File

@ -1,4 +1,10 @@
Label SNES PSX_file PSX_offset format Comment Label SNES PSX_file PSX_offset format Comment
ptrs_worldmap_event_replacements 0x006ABD 6 of u16 5 worlds + the end address
worldmap_event_replacements.0 0x00726C 61 of WorldMapEventReplacement hardcoded of above
worldmap_event_replacements.1 0x0073DA 53 of WorldMapEventReplacement hardcoded of above
worldmap_event_replacements.2 0x007518 106 of WorldMapEventReplacement hardcoded of above
worldmap_event_replacements.3 0x007794 1 of WorldMapEventReplacement hardcoded of above
worldmap_event_replacements.4 0x00779A 98 of WorldMapEventReplacement hardcoded of above
character_battle_sprite_stone_palette 0x00F807 N/A N/A 16 of ColorBGR555 Also 0x199835 character_battle_sprite_stone_palette 0x00F807 N/A N/A 16 of ColorBGR555 Also 0x199835
character_battle_sprite_disabled_palette 0x00F867 /mnu/memsave.bin 0x000034 16 of ColorBGR555 character_battle_sprite_disabled_palette 0x00F867 /mnu/memsave.bin 0x000034 16 of ColorBGR555
locations_bg_palettes 0x03BB00 /nar/ff5_binx.bin 0x03BF80 43 of 128 of ColorBGR555 locations_bg_palettes 0x03BB00 /nar/ff5_binx.bin 0x03BF80 43 of 128 of ColorBGR555
@ -19,7 +25,7 @@ worldmap_compressed_tilesets 0x070000 tilesets 0 up to 0x434
worldmap_compressed_tilesets2 0x080000 tilesets 0x434 up to 0x500 worldmap_compressed_tilesets2 0x080000 tilesets 0x434 up to 0x500
ptrs_jp_speech 0x082220 2160 of u16 ptrs_jp_speech 0x082220 2160 of u16
ptrs_extended_event_data 0x083320 1940 of u24 ptrs_extended_event_data 0x083320 1940 of u24
extended_event_data 0x0849DF See above for addresses extended_event_data 0x0849DC See above for addresses
jp_speech 0x0A0000 See 0x082220 for offsets jp_speech 0x0A0000 See 0x082220 for offsets
ptrs_tilemaps 0x0B0000 328 of u16 ptrs_tilemaps 0x0B0000 328 of u16
tilemaps 0x0B0290 See above for offsets tilemaps 0x0B0290 See above for offsets

1 Label SNES PSX_file PSX_offset format Comment
2 ptrs_worldmap_event_replacements 0x006ABD 6 of u16 5 worlds + the end address
3 worldmap_event_replacements.0 0x00726C 61 of WorldMapEventReplacement hardcoded of above
4 worldmap_event_replacements.1 0x0073DA 53 of WorldMapEventReplacement hardcoded of above
5 worldmap_event_replacements.2 0x007518 106 of WorldMapEventReplacement hardcoded of above
6 worldmap_event_replacements.3 0x007794 1 of WorldMapEventReplacement hardcoded of above
7 worldmap_event_replacements.4 0x00779A 98 of WorldMapEventReplacement hardcoded of above
8 character_battle_sprite_stone_palette 0x00F807 N/A N/A 16 of ColorBGR555 Also 0x199835
9 character_battle_sprite_disabled_palette 0x00F867 /mnu/memsave.bin 0x000034 16 of ColorBGR555
10 locations_bg_palettes 0x03BB00 /nar/ff5_binx.bin 0x03BF80 43 of 128 of ColorBGR555
25 worldmap_compressed_tilesets2 0x080000 tilesets 0x434 up to 0x500
26 ptrs_jp_speech 0x082220 2160 of u16
27 ptrs_extended_event_data 0x083320 1940 of u24
28 extended_event_data 0x0849DF 0x0849DC See above for addresses
29 jp_speech 0x0A0000 See 0x082220 for offsets
30 ptrs_tilemaps 0x0B0000 328 of u16
31 tilemaps 0x0B0290 See above for offsets

View File

@ -197,3 +197,10 @@ u8 palette_id
u8 23 u8 23
u8 24 u8 24
u8 music_id u8 music_id
struct WorldMapEventReplacement
u8 y
u8 x
u8 num_bytes
u8 event_flag # Add 0x1D0 to this for actual event flag
u16 ptr_bytes # Read num_bytes from this address (0xC0 bank implied, so just from the start of the ROM)

Can't render this file because it has a wrong number of fields in line 43.