I’ve been working on a personal FE6 hack using FEBuilderGBA that, among other things, incorporates some of the unused boss portrait recolors in speaking roles. However, this has led me to the realization that FE6 appears to have an incredibly inconvenient bug/programming quirk which causes the game to crash when loading any of these unused portraits for actual dialogue. The specific crash I get, running on mGBA, is
The game has crashed with the following error:
Jumped to invalid address: 97043050
Several instances of this message pop up consecutively, and the game is completely locked up beneath them.
Here’s the raw text of the battle quote in question. I tried setting it on Damas to confirm that it is something wrong with the text data rather than the unit it’s tied to, and it crashes the exact same way on him, too. Damas’s normal boss quote works, well, normally, so it’s not that boss quotes in general have gotten messed up somehow, either.
[LoadFace][0x1CC]Who do you think you are?[A]
You think you can stand
up to Frank the Fiend?[A]
As seen here, the specific portrait causing the crash in this case is portrait 0xCC, the green-haired Henning/Randy recolor with beige armor and a yellow shirt. Changing the portrait to a used one (0xC9, Randy’s portrait) fixed the crash, so it is tied to the specific portrait the game is being told to load here.
If it’s relevant, the boss quote is located in text slot 0x5, though I didn’t expect that to be a problem since Damas’s own boss dialogue is at 0xE and the text for Chapter 1 is at the very beginning of the text index.
I’m not finding anything in the “Patch” tab to fix it, and @Vesly’s patch to store conversation portrait IDs as shorts instead of bytes doesn’t seem to do anything to address the issue, either. @Brunhilda’s Project Ember incorporates new units with new portraits in speaking roles without replacing anybody, so I’d imagine they got this issue figured out for that hack, or at least found a workaround.
Any help is appreciated!