Quote from: MathOnNapkins on December 01, 2008, 11:27:11 am
Much like Tauwasser's gut told him, my gut told me it was a problem with the scrolls getting out of hand. I've been hacking this game for years so I know my way around. In this case it was the BG2 offset at RAM locations $7E011A and $7E011C (going off memory here). These numbers get added to the Y and X scroll values, respectively, for the screen. It causes the "quaking" look on the screen by quickly alternating between -1 and +1. I tracked down in the code of the game where $7E011C was being written to during the Ganon fight. I used a write breakpoint on 7E011C in Geiger's Snes9x Debugger. From there I determined (by going backwards) that the values for the scroll offsets were being read from CPU location $1D8000 (which translates to $E8000 in the rom). You have to know 65c816 assembly language fairly well to understand what's going on though. After I determined that those numbers were nonsense I looked at a clean rom and just copied them over to test it out. I surmise that the source of this problem was Hyrule Magic screwing up on monologue b/c you said your hack had extensive monologue changes (it's a translation after all) and by the fact that 7F is the byte that in the monologue data indicates "end of message" and that 80 indicates "go to the second set of monologue data". It's just too much of a coincidence for it to be anything else, I think.
As for the crashing itself, it seemed to be random whether it occurred at all. I didn't bother looking any further what was specifically crashing in Ganon's code due to the scrolls being off b/c I was sure this was the answer.
As for the crashing itself, it seemed to be random whether it occurred at all. I didn't bother looking any further what was specifically crashing in Ganon's code due to the scrolls being off b/c I was sure this was the answer.
Thanks for the clarification. Still one question, although this has nothing to do with the original problem. You apparently know Zelda3 pretty well. Is there some kind of a Zelda 3 rom map somewhere in the net? At least the "Copy ok" and "Erase this player" which are not accessible with the normal tools of Hyrule Magic would be nice to find. Other things might be interesting to explore experiment with as well.