From 75970261eb468e3f8d94cfa649a54d714e639359 Mon Sep 17 00:00:00 2001 From: Luke Hubmayer-Werner Date: Fri, 11 Aug 2023 14:45:23 +0930 Subject: [PATCH] add BattleBackgroundData --- data/SNES_PSX_addresses.tsv | 2 +- data/SNES_other.tsv | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/data/SNES_PSX_addresses.tsv b/data/SNES_PSX_addresses.tsv index 1913c77..28b43ba 100644 --- a/data/SNES_PSX_addresses.tsv +++ b/data/SNES_PSX_addresses.tsv @@ -42,7 +42,7 @@ character_battle_sprite_tiles 0x120000 /mnu/men_bin.eng 0x010200 5 of 22 of 48 o character_battle_sprite_palettes 0x14A3C0 /btl/ff5_btl.bin 0x0273C0 5 of 22 of Palette16Of555 Also /mnu/men_bin.eng:0x03A5C0 enemy_battle_sprite_data 0x14B180 384 of EnemySpriteData length 0x780 character_battle_sprite_layouts 0x14B997 /btl/ff5_btl.bin 0x028997 11 of 6 of u8 -tbl_battle_backgrounds 0x14BA21 34 of 7 of u8 +tbl_battle_backgrounds 0x14BA21 34 of BattleBackgroundData battle_background_palettes 0x14BB31 84 of Palette16Of555 enemy_battle_sprite_tiles 0x150000 See enemy_battle_sprite_data for pointers worldmap_tiles.0 0x1B8000 /nar/ff5_bin3.bin 0x039B00 256 of TileSNESMode7c Add the biases diff --git a/data/SNES_other.tsv b/data/SNES_other.tsv index eabf51c..d6fd337 100644 --- a/data/SNES_other.tsv +++ b/data/SNES_other.tsv @@ -127,3 +127,12 @@ u1 is_separate_shadow u1 is_large_layout u8 palette_offset_lo u8 layout_id # Small? <<3, + 0x10D004, take 8 bytes. Large? <<5, + 0x10D334, take 32 bytes. + +struct BattleBackgroundData +u8 tileset_id +u8 pal1_id +u8 pal2_id +u8 tilemap_id +u8 tilemap_flips_id +u8 tilecycle_id +u8 palcycle_id