Points of Required Attention™
Please chime in on a proposed restructuring of the ROM hacking sections.
Views: 88,440,971
Main | FAQ | Uploader | IRC chat | Radio | Memberlist | Active users | Latest posts | Calendar | Stats | Online users | Search 04-20-24 07:23 AM
Guest: Register | Login

0 users currently in ROM Hacking | 2 guests | 2 bots

Main - ROM Hacking - Air Man's Stage foreground New thread | New reply


Mastershake
Posted on 05-21-10 07:26 AM Link | Quote | ID: 131371

Newcomer
Level: 3

Posts: 1/1
EXP: 71
Next: 57

Since: 05-21-10

Last post: 5082 days
Last view: 5082 days
I'm working on a hack of MM2, and have been working on Air Man's stage, today, and there's a problem; the background is a foreground, and I want to make it be a background. Which line/variable controls the background of Airman's stage, and tells it to be a foreground, and what would I have to change it to, in order to make it a background?

NetSplit
Posted on 05-23-10 01:37 AM Link | Quote | ID: 131408


Level: 32

Posts: 153/178
EXP: 187939
Next: 18503

Since: 02-26-07

Last post: 2211 days
Last view: 2136 days
Alright, so, the foreground stuff in MM2 is on for the entire Air Man stage and not on for any other, so in finding this, looking for a check against the stage number would be a good idea. So, I needed to know what RAM address the current stage was. I fiddled around on the stage select screen in FCEUXD and figured out it was $2A, though there are other ways to do that. With that, it's a matter of either watching $2A during gameplay to see what reads it and checks if it's Air Man's stage (stage number 01), or just searching in a hex editor. It's safe to say it's probably doing a load and then compare, so if you searched for LDA $2A CMP #$01, you'd probably find it. In this case, that works, though I was easily able to locate it during gameplay by watching that address, as well.

So, now that I've given that explanation: $3CCF8 is the #$01 in that CMP. That defines which stage has things entirely in the foreground. You can mess with that routine to change how the game does foreground stuff, or just change that value to make a different stage have foreground (you can make no stage have foreground by making the value a non-stage value).

Jigglysaint
Posted on 05-23-10 10:38 PM Link | Quote | ID: 131428


Red Paragoomba
Level: 20

Posts: 51/62
EXP: 38520
Next: 3919

Since: 04-04-07

Last post: 4611 days
Last view: 2348 days
You can also use that location as an entry point for an ASM hack that can have more than one stage use foreground, or even have it so each stage could have a list of what screens have foreground. Toadman's stage in Megaman 4 is kind of like this too, though more than one stage in that game use foreground.

Main - ROM Hacking - Air Man's Stage foreground New thread | New reply

Acmlmboard 2.1+4δ (2023-01-15)
© 2005-2023 Acmlm, blackhole89, Xkeeper et al.

Page rendered in 0.019 seconds. (339KB of memory used)
MySQL - queries: 42, rows: 65/65, time: 0.015 seconds.