asar
asar copied to clipboard
Asar is reporting errors but isn't listing any.
So I have a patch. It inserts properly with Asar. However, I want to move some subroutines around so the file is more organized. However, if I do that, Asar gives me this and won't insert the patch.
(Although this screen shot shows Version 1.71, it happens on Version 1.81, too.)
The weird thing is, this situation should be impossible. Asar is reporting an error, but it's not telling what is is and where it is. Keep in mind that all I did is move the locations of subroutines around in the file. The code should function in exactly the same way, so there shouldn't be any errors, should there?
I tried transferring everything to a new ROM thinking that might fix the problem, but it didn't.
The patch is quite complex, though. It's anonimzwx's Player Revolution Patch, a sub-patch of Dynamic Z that requires Dynamic Z to be inserted first. In this hack folder, go ahead and use the .ips patch on a clean Super Mario World ROM to create my hack, then insert super luna game - github\Dynamic Z V3.75 Beta 3\PlayerRevolution\PlayerRevoution ASM\PlayerRevolution.asm into that ROM to reproduce the problem.
The problem lies in the super luna game - github\Dynamic Z V3.75 Beta 3\PlayerRevolution\Players\DepoweredLuna.asm file that's included as part of the patch. It's exactly the same as DepoweredLuna - Copy.asm except some subroutines are in different places in the file, and that file inserts fine.
RPGHacker and I think this might be a bug with Asar. Can someone please debug Asar and figure out what the problem might be?
Here's a minimized version of this bug:
org $8000
DefaultLogic:
freecode
namespace Luna
JSR DefaultLogic
DefaultLogic:
namespace off
Looks like same root cause as https://github.com/RPGHacker/asar/issues/268#issue-1402239530.
Looks like people other than troublemakers can find that bug after all.