The PokéCommunity Forums

The PokéCommunity Forums (https://www.pokecommunity.com/index.php)
-   Binary ROM Hacking (https://www.pokecommunity.com/forumdisplay.php?f=284)
-   -   Other Issue with Multi-Choice (https://www.pokecommunity.com/showthread.php?t=359002)

EViLGRiN November 25th, 2015 7:28 PM

Issue with Multi-Choice
 
Ok, so a long long time ago, I used LSA - Complete Multi-Choice Box Editor to create some multi-choices for myself. Everything looked good. Tested it out, everything was fine. All is good in the world. I continue along, adding a script here and there. Now, I look back, and for some reason, my multi-choice went from:
Spoiler:

Option1
Option2
Option3
Option4
Option5

To:
Spoiler:

Option1
Option2
Option3á À Âk ñÃÀÁ
Option4
Option5


On a scale of 1-10, how screwed am I? Did another script I entered mess this up? Can I fix this without breaking something else?

esperance November 25th, 2015 8:01 PM

Well, you might not be in too much trouble. The FF value stands for the "end of string" character in the text encoding. What likely happened is another tool you used did not realize it was being used for such a purpose and assumed it was the first in a series of unused bytes. It then started writing some data there, which the game is interpreting as a longer string.

The fix is simple. Copy the necessary parts of the string to some new free space, adding an extra FF byte to it to ensure the game knows to end the string there. Then, repoint the pointers from the old spot to the new one. Easy.

EViLGRiN November 25th, 2015 8:44 PM

Quote:

Originally Posted by Hopeless Masquerade (Post 9010214)
Well, you might not be in too much trouble. The FF value stands for the "end of string" character in the text encoding. What likely happened is another tool you used did not realize it was being used for such a purpose and assumed it was the first in a series of unused bytes. It then started writing some data there, which the game is interpreting as a longer string.

The fix is simple. Copy the necessary parts of the string to some new free space, adding an extra FF byte to it to ensure the game knows to end the string there. Then, repoint the pointers from the old spot to the new one. Easy.

Ok, awesome, thanks. I thought there might be an easy fix, but figured I should ask before doing anything crazy!


All times are GMT -8. The time now is 2:26 AM.


Like our Facebook Page Follow us on Twitter © 2002 - 2018 The PokéCommunity™, pokecommunity.com.
Pokémon characters and images belong to The Pokémon Company International and Nintendo. This website is in no way affiliated with or endorsed by Nintendo, Creatures, GAMEFREAK, The Pokémon Company or The Pokémon Company International. We just love Pokémon.
All forum styles, their images (unless noted otherwise) and site designs are © 2002 - 2016 The PokéCommunity / PokéCommunity.com.
PokéCommunity™ is a trademark of The PokéCommunity. All rights reserved. Sponsor advertisements do not imply our endorsement of that product or service. User generated content remains the property of its creator.

Acknowledgements
Use of PokéCommunity Assets
vB Optimise by DragonByte Technologies Ltd © 2023.