This week’s changes are all to Sully. There was a lot of refactoring (mainly of the mundane folder-moving variety), where I killed the redundant ./res/battle/ dirtree and moved it’s inhabitants all into various folders under ./res/image/battle/. This was mainly to make Gayo and I a small amount saner.
Also tracked down and fixed were various issues around the textbox. An issue had arisen where you’d constantly reactivate a textbox event that was triggered by adjacent activation with the same keypress you’d hit to leave the textbox. That was solved with an Unpress(); at the bottom of the inner textbox-handling function.
Another major error was tracked down and solved where, in the jujube sign-blowy-up scene, the game would refuse to move past a certain textbox. The problem was that I switched the HookRetrace function to do some animation there, and the new retrace function (VictoryDance()) didn’t call the old on inside of it (V1RPG_RenderFunc()), and V1RPG_RenderFunc() is responsible for updating the state of keypresses. So the textbox right after the switch to HookRetrace(“VictoryDance”); had no way of exiting out.
Next up is a sully battle system bug that’s been bugging (ha, groan, etc) me for a while, where any PC battle actor other than Darin/Crystal sorta… blows up. This looks mainly to be a case of bad indexing in places to track down, because everything works right when slot indexes 0 and 1 are filled with cast indexes 0 and 1, but go to shit when slot index 0 contains cast index 3, for example.