Language…
9 users online:  AmperSam,  BeeKaay, crocodileman94,  MarioFanGamer, matt88,  Ringo, SMW Magic, UTF, Zavok - Guests: 64 - Bots: 276
Users: 65,990 (2,164 active)
Latest user: Ennui Goldfeld

Half-screen pipe color change - Lunar Magic hijack issue?

I was recently trying to use Lunar Magic 1.9 on a newly-ported ROM that made hex-edits at $0580D5 and $0587A4 to change SMW's automatic pipe colors (see the ROM map).

However, it seems that some unknown Lunar Magic ASM hack at $0580A9 to $0580D5 is causing the hex-edit at $0580D5 to freeze the game (and the other hex-edit on its own doesn't have any effect, even though it does when using 1.65 or earlier)... it took me a while to figure out what the problem was, actually, since reverting that hex-edit to match all.log still froze the game (leading me to conclude at first that something else was the problem).

(By the way, I'm pretty sure it's Lunar Magic 1.7+ (or perhaps 1.8+), since I haven't used any other tools on the new ROM that weren't also used on the old ROM, and I already checked to make sure no other patches or hex-edits were affecting that area.)

Anyway, does anyone know a way to make that half-screen-pipe-color effect compatible with newer Lunar Magic versions (without going through existing levels and replacing every pipe manually)? (Yes, it's important enough to me.)

Also, is there any all.log equivalent for SMW after Lunar Magic has been used on it? There are some other things that I'd like to change that I can't hijack directly since Lunar Magic already did. (For that matter, if you try to edit a Lunar Magic ASM hack, will it revert your changes the next time you save in Lunar Magic?)

–=–=–=–=–=–=–
Advynia: a Yoshi's Island editor - Alyssa's Unlikely Trap demo 3
If you have an IPS of a ROM that has only been edited with LM (no other patches/tools) I can take a look and check any hijacks it makes the that area.
This should work, I think:
smw+LM190.ips

I took a clean ROM, told Lunar Magic to apply FastROM (since I'm using it in my hack), extracted/inserted the graphics, turned the Super GFX bypass on for level 180, turned it back off, saved level 180, saved the overworld once, and created a patch. Hopefully that installed all of Lunar Magic's automatic ASM changes.

–=–=–=–=–=–=–
Advynia: a Yoshi's Island editor - Alyssa's Unlikely Trap demo 3
Originally posted by Zeldara109
This should work, I think:
smw+LM190.ips

I took a clean ROM, told Lunar Magic to apply FastROM (since I'm using it in my hack), extracted/inserted the graphics, turned the Super GFX bypass on for level 180, turned it back off, saved level 180, saved the overworld once, and created a patch. Hopefully that installed all of Lunar Magic's automatic ASM changes.



Well running it through a tool of mine shows:
;$0580D3
;size = 3 bytes
4C FB 80

This assembles to:
JMP $80FB

So by making the hex edit from the ROM map, you overwrite the 80 with EA causing a bad jump.

Additionally there is a hijack just before $0587A4:

;$05879D
;size = 5 bytes
C2 30 4C C8 87

which translates to:
REP #$30
JMP $87C8

This would totally skip $0587A4 code. Oddly enough $87C8 would lead directly to another jump which goes to $87E1.

I am in a bit of a hurry at the moment and so I can't spend the time right now to solve the rest of the problem. The pipe section may be indirectly jumped to now, which means we need to track down where it is called from(assuming it is).