øA slickproductions.org /forum/index.php?PHPSESSID=5f0fck550j2m4m2fpbtkj2vkm1&action=printpage;topic=1729.0 e:/My Web Sites/Slick Productions - FFIV Message Board/slickproductions.org/forum/index1d99.html slickproductions.org /forum/index.php?PHPSESSID=5f0fck550j2m4m2fpbtkj2vkm1&topic=1729.0 e:/My Web Sites/Slick Productions - FFIV Message Board/slickproductions.org/forum/index1d99.html.z x „`g^ ÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÈ °,0 S OK text/html ISO-8859-1 gzip @øÕ S ÿÿÿÿÿÿÿÿ Tue, 10 Mar 2020 09:56:44 GMT 0ó° °® 0® P® €§² ð® „`g^ € S
Print Page - How does dialogue bank 2 work?
Board of Slick
Library of the Ancients => Final Fantasy IV Research & Development => Topic started by: Pinkpuff on May 27, 2012, 05:50:54 AM
Title: How does dialogue bank 2 work?
Post by: Pinkpuff on May 27, 2012, 05:50:54 AM
For the purposes of the event editor I'm working on for my FF4 rom editor, I was trying to figure out how the dialogues are encoded. Banks 1 and 3 were easy enough to reverse engineer from the information given in Phoenix's FF4Tools. There is a chunk of data representing the list of messages, preceded by a list of pointers, each one pointing to one of those messages. However, bank 2 seems to work somewhat differently.
For one thing, the bank 2 pointer table given by default in FF4Tools does not seem to appear anywhere in the ROM, and I found what looks like a pointer table immediately before the bank 2 data, but it doesn't contain a pointer to each message, just certain ones.
Does anyone have any information on how this works?
Thanks.
Title: Re: How does dialogue bank 2 work?
Post by: Grimoire LD on June 26, 2012, 01:44:57 AM
I think I figured this out and much of the way I came to these conclusions is in your main topic, but here's the fruit of the work anyhow.
All of these coincide with the pointers in the NPC Speech data that was written in Phoenix's NPCs.txt. And you can see this at work in the events themselves, when an event randomly calls to a map, it's calling based on these algorithms. Starts and stops are not clearly defined. Every map has one entry (if there is no applicable text a T is used to mark it) so some work has to be done to figure out where things are. But they go hand in hand with the map labels so there's no worry on that. It will just take a little time and record keeping to figure these out.
And it's finished! Here are the results and I hope they help you manage to put them into the editor (like you did with Banks 1 and 3)
Town of Baron - 000 - 011 Mist - 012 - 015 Kaipo - 16 - 1C Mysidia - 1D - 32 (There is curiously a "D"' texts here. I was able to get the respective NPC to appear by starting the game in Mysidia. Apparently an Event Flag seems to cancel it. The fellow it belonged to was a Black Mage that stood beside the entrance to the stairway of the Hall of Wishes, I wonder what purpose he was to have to have been cancelled out in that manner.) Silvera - 33 - 3C Troia - 3D - 44 Agart 45 - 4C (There's a D here as well) Numerous shops - 4D - 50 Baron Inn - 51-5D (Another D here, you get the feeling there's a bit of unused content) Baron Weapon/Armor Shop - 5E Cid's House - 5F - 67 Rosa's House - 68 - 6A Rydia's House - 6B Kaipo Inn 1F - 6C - 70 (This is a bit of a guess, since I'm not sure whether the D's were originally for Rydia's House or the Inn. Kaipo Inn 2F - 71 - 74 Kaipo Sickhouse - 75 - 7A (Oddly enough in the text there is an instruction to play music. In essence would that mean that you can "sneak" other events into normal text? Mysidia Inn 1F - 7B - 8C Mysidia Inn 2F - 8D Mt Ordeals (Room of Mirrors) - 8E Mysidia (House of Wishes) - 8F - A5 (Quite a few D's here but they seem legitimate placeholders so they can easily access things for the books.) Mysidia (Tower of Wishes) - A6 - AD (I have to say, I never realized that the Elder had a special line for Tellah's death.) Troia Cafe 1F - AE - B7 (A bit of guesswork here, I can't quite tell when one floor begins and another ends here) Troia Cafe 2F - B8 - BD (More guesswork) Saloon KING - BD - C4 (Seems to have been a few cut lines here it seems, judging by the D's and no shopkeeper placeholders for their to be a reason.) 1B - unused - C5 Black Chocobo Farm - C6 - C9 (A bit of guess work here as well) Black Chocobo Farm B1 - D5 (An absurd amount of D's here) Astro Tower - 0D6 - 0DA Astro Tower 2F - DB Agart Inn - DC - E3 Chocobo Village - E4 Town Water Background - E5 Castle Interior floor Background - E6 Baron Castle - E7 - F9 Damcyan - FA Fabul - FB - FE Troia - FF - 106 Eblan - 107 Castle Exterior Desert Background - 108 Baron 1F - 109 - 114 (I believe so. I could be wrong here.) Baron 2F - 115 - 123 King's Room - 124 - 134 Baron Left Hallway - 135 - 13F (A lot of D's. I wonder what they planned here at one point) Baron Right Hallway - 140 Baron Dungeon 1F - 141 Baron Dungeon 2F - 142 - 146 Baron Knight's Quarters - 147 - 150 Baron Left Tower F1 - 151 Left Tower F2 - 152 Left Tower F3 - 153 Baron Right Tower- 154 Right Tower 2F - 155 Right Tower 3F - 156 Right Tower B1 - 157 Right Tower B2 - 158 Old Water-way (entrance) - 159 Old Water-way B3 - 15A Old Water-way B1 - 15B Old Water-way Save Point - 15C Old Water-way B2 - 15D Damcyan 1F - 15E Damcyan 2F - 15F Damcyan 3F - 160 - 16E Damcyan Treasure Room - 16F Damcyan Basement - 170 Baron (entrance to Old Water-way) - 171 Agart Weapon Shop - 172 Agart Armor Shop - 173 Fabul F1 - 174 - 177 (A bit of a guess on this one, but as the next one is the first text of the normal soldiers on the second floor I think it's a safe assumption.) Fabul F2 - 178 - 17B (There's also a fair amount of D's here but according to the NPC's.txt the Chancellor has event 2A which would be the 03 Message in the sequence which is 04, which also goes to explain the presence of the D's. This is done to use that same space allocation with other references to the Old Man sprite in other maps.) Fabul King's Room - 17C - 17F Fabul Crystal Room - 180 Fabul Weapons/Armor - 181 Fabul Inn/Item Shop - 182 Fabul Right Tower 1F - 183 - 185 Fabul Right Tower 2F - 186 - 18C Fabul Right Tower 3F - 18D - 194 Fabul Left Tower 1F - 195 Fabul Left Tower 2F - 196 - 199 Fabul Left Tower 3F - 19A - 1A4 Small Grove (After Mist events) - 1A5 Watery Pass (Save Point) - 1A6 - 1A7 Troia Castle 1F - 1A8 - 1Af (There's a D at the end here that I'm nearly certain belongs here. If you go directly to Troia without setting any flags the text is a bit screwy and a guard may have some Dummied dialogue) Troia Castle Epopt's Room - 1B0 - 1CD (The Epopts have a lot more text than I remember.) Troia Crystal Room - 1CE Troia Hospital - 1CF - 1D7 (Another Tellah related line I missed. He's my favorite character in the game and all these years I missed the Elder and Edward both having special lines regarding his death) Troia Castle Right Room F1 - 1D8 Troia Castle Dungeon - 1D9 - 1DC Troia Castle Small Room - 1DD Troia Castle Treasure Room - 1DE Troia Castle Big Treasure Room - 1DF Eblan 1F - 1E0 Eblan 2F - 1E1 Eblan Throne Room - 1E2 Eblan Left Tower 1F - 1E3 Eblan Left Tower 2F - 1E4 Eblan Right Tower 1F - 1E5 Eblan Right Tower 2F - 1E6 Eblan Basement - 1E7 Baron Black Magic Room - 1E8 - 1ED Baron White Magic Room - 1EF - 1F4 Castle Exterior Desert Background - 1F5 Training Room (original) - 1F6 Waterfall - 1F7 Castle Exterior Water Background - 1F8 Misty Cave - 1F9 - 1FB Room of Mirrors Background - 1FC Watery Pass Background - 1FD Watery Pass South - 1FE Watery Pass B2 (Heading to save point) - 1FF Watery Pass B3 (Islands) - 200 Watery Pass B2 (Tunnels) - 201 Watery Pass North - 202 Watery Pass (Waterfalls) - 203 Watery Pass (B2, Bottom of Falls) - 204 Watery Pass (Lake) - 205 - 207 Antlion's Cave B1 - 208 Antlion's Cave B2 - 209 Antlion's Cave (Antlion's Den) - 20A Antlion's Cave (Save point) - 20B Antlion's Cave (Treasure Room) - 20C Castle Interior Black Background - 20D Misty Cave Background - 20E Mt. Hobs (West) - 20F - 216 Mt. Hobs (Summit) - 217 - 220 Mt. Hobs (East) - 221 Mt. Hobs (Save Point) - 222 Mountains Background - 223 Watery Pass (Secret Waterfall Room) - 224 Mt. Ordeals (Entrance) - 225 Mt. Ordeals (3rd Station) - 226 Mt. Ordeals (7th Station) - 227 Mt. Ordeals Summit - 228 - 229 Mysidia Crystal Room - 22A Mysidia Serpent Road - 22B Baron (Shrinking Hallway) - 22C - 239 Agart (Well) - 23A Cave Magnes (Entrance) - 23B Cave Magnes (B2 Large Pits) - 23C Cave Magnes (B2 Pits) - 23D Cave Magnes (B3) - 23E Cave Magnes (B2 Treasure Room) - 23F Cave Magnes (B2 Passage) - 240 Cave Magnes (Save Point) - 241 Cave Magnes (B4) - 242 Cave Magnes (Crystal Room) - 243 - 246 (Strange, I don't recall the message "Sealed by Dark Elf." ever in the game.) Cave Magnes Background - 247 Watery Pass (Inside tent) - 248 Baron Serpent Road - 249 - 24B Tower of Zot (Entrance) - 24C Tower of Zot (2F) - 24D Tower of Zot (3F) - 24E Tower of Zot Background - 24F Tower of Zot (4F) - 250 Tower of Zot (5F) - 251 Tower of Zot (6F) - 252 Tower of Zot Command Center - 253 - 259 Adamant Grotto - 25A - 25D Cave Magnes (Save Point 2) - 25E Tower of Zot (Save Point) - 25F Enterprise (Flying with People) - 260 - 261 Enterprise (Flying with no People) - 262 Enterprise (Flying with Edward) - 263 Tower of Babil (Save Point) - 264 Tower of Babil Entrance - 265 - 266 Tower of Babil B2 - 267 Tower of Babil B3 - 268 Tower of Babil B4 - 269 Tower of Babil Crystal Room - 26A Tower of Babil B5 - 26B Underground Tunnel (Transparent layer) - 26C Underground Tunnel Background) - 26D Crystal Room Background - 26E Cecil's Room (Ending) - 26F Training Room 1F - 270 - 279 Training Room 2F - 27A - 285 Unused - 286 Unused - 287 Giant of Babil Mouth - 288 Giant of Babil Neck - 289 Giant of Babil Chest - 28A Unused - 28B Giant of Babil Stomach - 28C Giant of Babil Passage - 28D Unused - 28E Giant of Babil Lung - 28F - 298 Giant of Babil CPU - 299 Giant of Babil Background - 29A Unused - 29B Airship (single prop, screen center) - 29C Port of Fabul - 29D Ship (Sailing) - 29E Enterprise (docked) - 29F Airships (connected by a bridge) - 2A0 - 2A7 Airship (single prop, screen left) - 2A8 Enterprise (Flying Underground) - 2A9 Eblan Cave Entrance - 2AA Eblan Cave Settlement - 2AB - 2B4 (With no flags marked there is one soldier that says "D") Eblan Cave (Pass to Babil) - 2B5 - 2B6 Eblan Cave (Exit) - 2B7 - 2B9 Eblan Cave Inn/Item - 2BA Eblan Cave Weapon - 2BB Eblan Cave Save Point - 2BC Eblan Cave Infirmary - 2BD - 2C7 Chobobo Forest (Fabul) - 2C8 Enterprise (Blue sky) - 2C9 - 2CC Chocobo Forest (Mt. Ordeals) - 2CD Chocobo Forest (Baron) - 2CE Chocobo Forest (Troia) - 2CF Chocobo Forest (Island) - 2D0 Baron (Empty King's Room) - 2D1 Enterprise (Black background, Pilot) - 2D2 Enterprise (Blue sky, Pilot) - 2D3 Enterprise (Underground, Pilot) - 2D4 Enterprise (Black Background, Pilot) - 2D5 Mysidia (Room of Wishes) - 2D6 Airship Background - 2D7 Large Dock - 2D8 Unused - 2D9/ Unused - 2D9/2DA Small Dock - 2DB Village Mist (Inn) - 2DC Village Mist (Weapon) - 2DD Village Mist (Armor) - 2DE Kaipo (Weapon) - 2DF Kaipo (Armor) - 2E0 Mysidia Weapon Shop - 2E1
(This is very strange. I've counted and counted again and Mysidia Weapon Shop should be 2E1, as you can see, it is, but it shares that with the Mysidia Weapon Shop. I have checked and rechecked to see if I made an error in counting or missed a map or something along those lines, but there's no such thing. My only thought is that one of the two Unused maps were not included into the Map Dialogue Bank. Other then that I don't know what the issue is.
Mysidia Armor shop. - 2E2 - 2EB (A lot of placeholders to align with Black Mage Actor's text) Mysidia Item Shop - 2EC Silvera Inn - 2ED - 2ED Silvera (Weapon) - 2EE Silvera (Armor) - 2Ef Silvera (Item) - 2F0 Baron (Item) - 2F1 House of Wishes (Ending) - 2F2 Palom and Leonora (Ending) - 2F3 Edge in Eblan (Ending) - 2F4 Rydia with summoned monsters (Ending) - 2F5 Edward in Damcyan (Ending) - 2F6 Castle of Dwarves (Ending) - 2F7 Kain on Mt. Ordeals (Ending) - 2F8 Observatory (Ending) - 2F9 Cecil's Room (Ending) - 2FA Baron King's Room (Ending) - 2FB Yang in Fabul (Ending) - 2FC Unused - 2FD Unused - 2FE Unused - 2FF Overworld Map - 300 Underworld Map - 301 Moon Map - 302 Same Map? - 303 Location trigger/ Visual Effects call - 304 Kokkol, the Smith's - 305 (There's some discrepancy that I can't quite figure out. I'm apparently missing 306 and 307 because Tomra starts at 308.) ? - 306 ? - 307 Tomra - 308 - 30D Kokkol's Smith (1F) - 30E - 315 Kokkol's Smith (2F) - 316 - 319 Tomra Inn - 31A - 31B Tomra Weapons/Armor - 31C Tomra Storage House - 31D - 31E Castle of Dwarves (Entrance) - 31F - 326 Castle of Dwarves (1F) - 327 - 331 Castle of Dwarves Throne Room - 332 - 339 Castle of Dwarves B1 - 33A - 344 Castle of Dwarves B2 - 345 - 346 Crystal Room Background - 347 Castle of Dwarves Crystal Room - 348 Castle of Dwarves Weapon/Armor - 349 - 34A Castle of Dwarves (Dwarven Base) - 34B - 350 CoD Right Tower 1F - 351 CoD Inn/Item Shop - 352 CoD Infirmary - 353 - 35E CoD Left Tower 1F - 35F Tower of Babil (Save Point) - 360 Tower of Babil (IceBrand Room) - 361 Tower of Babil (Blizzard Spear Room) - 362 Tower of Babil (Ice Shield Room) - 363 Tower of Babil (Ice Armor Room) -364 CoD Right Tower 3F - 365 CoD Left Tower 3F - 366 CoD L/R Tower 2F - 367 - 368 CoD Background - 369 Tower of Babil 8F (1) - 36A Tower of Babil 7F (1) - 36B Tower of Babil 6F (1) - 36C CoD Cafe Howdy! - 36D - 36E Tower of Babil (Underworld Entrance) - 36F Tower of Babil 2F - 370 Tower of Babil 3F - 371 Tower of Babil 4F - 372 Tower of Babil 5F - 373 Tower of Babil 6F - 374 Tower of Babil 7F - 375 Tower of Babil 8F - 376 - 382 Unused - 383 Unused - 384 Unused - 385 Big Whale - 386 - 387 Tower of Babil (Cannon Room) - 388 - 38F Tank - 390 Big Whale (Different NPC's) - 391 Tower of Babil Background - 392 Palom and Leonora (Ending) - 393 Tomra Item Shop - 394 Mysidia (Tower of Wishes) - 395 - 3A0 Castle Interior Floor Background - 3A1 Town Water Background - 3A2 Cave of Summons(entrance)- 3A3 Cave of Summons B2 - 3A4 Cave of Summons B3 - 3A5 Sylvan Cave Background - 3A6 Town of Monsters - 3A7 - 3AA Town of Monsters (Treasure Floor) - 3AB Town of Monsters (B2) - 3AC - 3AF Town of Monsters (Save Point) - 3B0 Town of Monsters (Library) - 3B1 - 3C0 Town of Monsters (Library B2) - 3C1 - 3CC Town of Monsters (Throne Room) - 3CD - 3D4 Town of Monsters (Weapon) - 3D5 - 3D6 Town of Monsters (Armor) - 3D7 - 3D8 Town of Monsters (Inn/Item Shop) - 3D9 - 3DB Sealed Cave Entrance - 3DC Sylvan Cave Entrance - 3DD Sylvan Cave B1 - 3DE Sylvan Cave B2 - 3DF Sylvan Cave Treasure Room - 3E0 Sylvan Cave (Sylph's House) - 3E1 - 3F3 Sealed Cave B1 - 3F4 Sealed Cave Treasure Room 2 Chests Spaced - 3F5 Sealed Cave Passage - 3F6 Saled Cave B2 - 3F7 Sealed Cave Treasure Room 2 Chests Closed - 3F8 Sealed Cave Treasure Room 3 Chests - 3F8 Sealed Cave Treasure Room 1 Chest - 3FA Sealed Cave Passage 1 Chest - 3FB Sealed Cave B3 - 3FC Sealed Cave Passage 2 Chests, Pillar - 3FD Sealed Cave Treasure Room with Boxes - 3FE Sealed Cave B4 - 3FF Sealed Cave Save Point - 400 Sealed Cave Bridge to Crystal Room - 401 Sealed Cave Empty Room/Save Point - 402 Sealed Cave Crystal Room - 403 Cave Bahamut B1- 404 Cave Bahamut B2 - 405 Cave Bahamut B3 - 406 - 40B Unused - 40C Unused - 40D Unused - 40E Crystal Palace (Entrance) - 40F Crystal Palace (Crystal Room) - 410 - 41F Lunar Maps background - 420 Lunar Path 1 - 421 Lunar Path 2 - 422 Hummingway's Cave - 423 - 426 Crystal Palace Background - 427 Lunar Subterraen B1 - 428 Lunar Subterraen B2 - 429 Lunar Subterraen B2 - 42A Lunar Subterraen B3 - 42B Lunar Subterraen B4 - 42C Lunar Subterraen B5 - 42D Lunar Subterraen B6 - 42E Lunar Subterraen B7 - 42F Lunar Core B1 - 430 Lunar Core B2 - 431 Lunar Core B3 - 432 Lunar Core B4 - 433 Lunar Core (Core) - 434 LS (B4 Treasure Room 1 Chest) - 435 LS (B4 Treasure Room 2 Chests) - 436 LS (B5 Treasure Room 3 Chests) - 437 LS (B5 Treasure Room 1 Chest) - 438 LS (B5 Save Point) - 439 LS (B6 Treasure Room) - 43A LS (B7 White Lance Room) - 43B LS (B7 Save Point) - 43C LS (B7 Treasure Room, 2 Chests) - 43D Lunar Core Background - 43E Unused - 43F Unused - 440 (Nothing) - 441
Whew! There we go! Each of the text pointers and to what map they correspond with, I really hope this helps you out.
Title: Re: How does dialogue bank 2 work?
Post by: Grimoire LD on July 03, 2012, 11:53:32 AM
I made a slight mistake with the Town of Monsters portion...
Town of Monsters (B2) - 3AC - 3B3 Town of Monsters (Save Point) - 3B4 Town of Monsters (Library) - 3B5 - 3C0
These should be the right values. I confused a piece of text for one that was elsewhere.