Posts: 676
Threads: 44
Joined: Jan 2015
Reputation:
11
Well, not a full 24 back to playing with event code and already trying to see if my head or desk will dent first.
As for the code itself, it plays through just fine. Just relocated a bit, however, when it comes to getting out of it...
The new code completes, pauses for a moment, then displays "Great people here!" Message. Press button, unwanted message box goes away, so do all controls. Music/background goes along fine, so not a crash per say. Somehow the return didn't return but took a hike through left field and decided not to come back.
I seem to remember hitting that message box before in a similar situation, but I couldn't say why or how to fix it. Is there a way to debug event code? Or send it back to where it should be with a functioning return command?
The only true wisdom is knowing you know nothing.
Posts: 676
Threads: 44
Joined: Jan 2015
Reputation:
11
07-23-2022, 09:37 PM
(This post was last modified: 07-23-2022, 10:48 PM by Catone.)
Yeah.... I've already got most of the first 5 battle in Narshe moved out to 3F/ED00, and started at CA/5E33 (show title screen). Not to mention more sprite sheets than I care to recount out in 41/A000, several portraits (including the one for the fish... Just in case it joins the party for some strange reason) and all their palettes over in 52/0000. As well as all the small changes to more than I remember everywhere else. Yeah, bit of a remembering curve after not being touched for a few years.
Point being, most programs won't touch this thing.
BUT, this problem isn't tied to any of that, somehow. It's the pretty simple event where you first enter the Narshe mines with Vicks and Wedge(originally CC/9DB2). Matter of fact it was to simple to even add to, but it needed to move. Already moved it all back to CC/ completely just moved up about 700-800 bytes... Same exact problem (so running most of it from 3F/ wasn't causing it). It activates and executes fine, then runs off and gets lost. Used A version of FF6LE to change the event tile (still in CC/ btw) but all that worked fine regardless if half the code was ended up in 3F/ or not.
On THAT note, it seems there are two unable to be actived events on either side of this event tile (Map: Narshe, Outside, North, Begining) tied to... About 10-12 bytes of code that just event code the PC to the center tile, however, both side tiles are outside the physical walking space... Nothing important, didn't even notice until after I rewrote both codes, and hit this problem. Didn't chamge anything with them gone either, for better or worse so guess they're not needed?
Well, nothing like hex to inform you that your still an idiot. I can tell you however that E5 definitly does not function as 5E in the address after a bit check. Apparently, the script would run fine, but since it ended on the event square, after the bit was set to skip, and instead of skipping to return it skips out to the great beyond and runs rampant...
Knew I had seen that exact issue before. Alright, off to redo the work I spent today undoing... It foes beat trying to recreate the same problem in a new ROM zonedoctor would work with though.
The only true wisdom is knowing you know nothing.