(Link to AcmlmWiki) Offline: thank ||bass
Register | Login
Views: 13,040,846
Main | Memberlist | Active users | Calendar | Chat | Online users
Ranks | FAQ | ACS | Stats | Color Chart | Search | Photo album
04-28-24 02:23 PM
0 users currently in SMW Hacking.
Acmlm's Board - I3 Archive - SMW Hacking - Power-up sprites going behind foreground. wth New poll | |
Add to favorites | Next newer thread | Next older thread
User Post
Atma

Kabu








Since: 11-27-05
From: New Mexico (what a gay place!) - Canada <3

Last post: 6301 days
Last view: 6297 days
Posted on 10-13-06 12:46 AM Link | Quote
Ok, this is one of those weird things that probably has a smiple solution. I think I'm just overlooking something constantly, and it's starting to drive me crazy.
You know how sometimes Fire Flowers and Mushrooms (maybe some others as well) just suddenly go behind the foreground and they're like the only sprites that do it; everything else works just fine (and I checked my layer priority settings, that's not a prob at all). Well this happens to me at random sometimes and I'm wondering how to get it to stop doing that >.<. Anyone got a solution to this?


(edited by Atma on 10-12-06 11:47 PM)
asdf

Link's Awakening
‭‮‭‮ಠ_ಠ








Since: 11-18-05

Last post: 6280 days
Last view: 6278 days
Posted on 10-13-06 12:52 AM Link | Quote
It's not random - it happens while the Fire Flower or Mushroom is popping up where an object in the foreground is. There was a fix for that mentioned in the ROM Address thread. As Bio posted...


change 0xC5E7 by EA EA EA to stop fire flower from going behind the FG(finally)



(edited by asdf on 10-12-06 11:52 PM)
Atma

Kabu








Since: 11-27-05
From: New Mexico (what a gay place!) - Canada <3

Last post: 6301 days
Last view: 6297 days
Posted on 10-13-06 12:54 AM Link | Quote
I actually have one that's just placed on the ground that's doing it. None coming out of a question box here.

Well anyway, tnx for the address.

ps. There sure seems to be a lot of fixes that use "EA EA EA",... lolz


(edited by Atma on 10-12-06 11:54 PM)
asdf

Link's Awakening
‭‮‭‮ಠ_ಠ








Since: 11-18-05

Last post: 6280 days
Last view: 6278 days
Posted on 10-13-06 12:59 AM Link | Quote
No problem. It's on the ground? And it's always behind the foreground while it's on the ground? If so, that's weird. It usually fixes itself when it pops out of a question box. What I think happens is that the priority is turned on while it is coming out of the box so it properly shows behind the box, but is turned off when it stops coming out. But when a flower is normally placed, it doesn't turn off that behavior - as it is on by default. I may be completely wrong, though.


(edited by asdf on 10-13-06 12:02 AM)
Atma

Kabu








Since: 11-27-05
From: New Mexico (what a gay place!) - Canada <3

Last post: 6301 days
Last view: 6297 days
Posted on 10-13-06 01:02 AM Link | Quote
Yea, it's just a fire flower by iteself that I have placed that was doing that. I do remember seeing it do it out of questions before as well, like you were thinking of. But I just changed the Address you gave me and it all works now.


(edited by Atma on 10-13-06 12:02 AM)
(edited by Atma on 10-13-06 12:03 AM)
MathOnNapkins

1100

In SPC700 HELL


 





Since: 11-18-05

Last post: 6278 days
Last view: 6278 days
Posted on 10-13-06 04:15 AM Link | Quote
SMW hacking approach: use EA EA EA

Anything else hacking approach: hook and patch using a custom routine

Makes me sad
HyperHacker

Star Mario
Finally being paid to code in VB! If only I still enjoyed that. <_<
Wii #7182 6487 4198 1828


 





Since: 11-18-05
From: Canada, w00t!
My computer's specs, if anyone gives a damn.
STOP TRUNCATING THIS >8^(

Last post: 6279 days
Last view: 6279 days
Posted on 10-13-06 12:33 PM Link | Quote
If it works, it works.
Xkeeper
Took the board down in a blaze of glory, only to reveal how truly moronical ||bass is.


 





Since: 11-17-05
From: Henderson, Nevada

Last post: 6278 days
Last view: 6278 days
Skype
Posted on 10-13-06 01:08 PM Link | Quote
NOPing out unneeded routines > wriring excessive, bloated code to accomplish the same thing
pikaguy900

Sparky


 





Since: 08-10-06

Last post: 6291 days
Last view: 6278 days
Posted on 10-13-06 06:55 PM Link | Quote
Actually, I think that Layer Priority is turned off when sprites come out of Blocks, since when Layer Priority is turned on for tiles, they'll appear above everything.
MathOnNapkins

1100

In SPC700 HELL


 





Since: 11-18-05

Last post: 6278 days
Last view: 6278 days
Posted on 10-14-06 06:41 AM Link | Quote
Originally posted by Xkeeper
NOPing out unneeded routines > wriring excessive, bloated code to accomplish the same thing


The point I was trying to make is that telling someone to NOP NOP NOP instead of hook discourages people from actually learning what the routine they are calling does. Also, it is not always the best solution to completely disable a behavior. It may be beneficial to sometimes let the behavior run, and in some cases not.

example, in place of NOPs, you could:

JSR hook

hook:

LDA levelNumber
TAX
LDA levelBehaviorList, X
CMP dontUseBehavior
BEQ disabled

JSR originalRoutine

disabled:

RTS

This is an oversimplified scenario b/c in truth, hooking a routine can be tricky at times, but I think my point stands.
Disruptive Idiot

Red Paragoomba


 





Since: 11-17-05
From: Syosset

Last post: 6406 days
Last view: 6278 days
Posted on 10-14-06 11:44 AM Link | Quote
While it won't teach them ASM or anything about the routine, it will teach them good programming practice: Do the most amount of work with the least amount of effort possible.
Kailieann



 





Since: 11-18-05

Last post: 6278 days
Last view: 6278 days
Posted on 10-14-06 12:03 PM Link | Quote
80 01 EA is more processor-efficient than EA EA EA.

Adding custom subroutines like that is only useful if you want to include the original behavior as well as alternate behavior. Most people just want a particular feature gone.

Most people don't actually want to learn ASM. They just want to make simple changes, and trying to teach them ASM when they don't want to learn is probably just going to confuse them and make them abandon the project.

If they were interested in learning ASM, they would ask.
Atma

Kabu








Since: 11-27-05
From: New Mexico (what a gay place!) - Canada <3

Last post: 6301 days
Last view: 6297 days
Posted on 10-14-06 02:10 PM Link | Quote
Wow, how did sarcasm get into a serious discussion. lol~

Originally posted by Kailieann
Most people don't actually want to learn ASM. They just want to make simple changes, and trying to teach them ASM when they don't want to learn is probably just going to confuse them and make them abandon the project.
For some people yes, and I don't know if you or anyone was refering to me here as well, but it's not a prob for me, cuz I already know it.

Anyway, got my question answered already.


(edited by Atma on 10-14-06 01:12 PM)
(edited by Atma on 10-14-06 01:44 PM)
(edited by Atma on 10-14-06 01:47 PM)
(edited by Atma on 10-14-06 01:48 PM)
(edited by Atma on 10-14-06 01:49 PM)
Add to favorites | Next newer thread | Next older thread
Acmlm's Board - I3 Archive - SMW Hacking - Power-up sprites going behind foreground. wth |


ABII

Acmlmboard 1.92.999, 9/17/2006
©2000-2006 Acmlm, Emuz, Blades, Xkeeper

Page rendered in 0.017 seconds; used 408.49 kB (max 510.78 kB)