Herringway / earthbound

attempt at decompiling+porting earthbound
30 stars 7 forks source link

Actionscript pointer can get misaligned due to bad jump offsets #111

Closed charasyn closed 1 year ago

charasyn commented 1 year ago

When ACTIONSCRIPT_C0A88D was changed to use a string parameter (https://github.com/Herringway/earthbound/commit/cc2fe94c9), the size in bytes of the command was changed, but none of the relative addresses in the actionscript were changed (for example, actionScript37). This leads to the actionscript execution pointer getting misaligned from the actual instructions and then usually the game crashes. This is the root cause for the crash when you go downstairs after "Later that night..."