Banner
Views: 236,296,646
Time: 2013-05-22 02:31:12 PM
27 users online: o 1UPdudes, Arctic Avenger, Dipalon, o exit1337, gibbl, o grishnax, Incognito, LaughingLuigi, leod, LONTOR505, MarioBros980, MarioFan22, Masterlink, MolSno, MonkeyMan, MrDeePay, MSDFG, mzuenni, Orphen Kirisame, Pokeymeister80, RaindropDry, ShadowAlexandre, o ShadowPhoenix, Sokobansolver, o TRS, WeegeeBen, Zeldara109 - Guests: 32 - Bots: 9Users: 22,863 (1,278 active)
Latest: LONTOR505
Tip: If you place too many sprites on the same screen, it will slow the game down and cause frustration to the player.
Fixing SPC hacking code
Forum Index - SMW Hacking - General SMW Hacking Help - ASM & Related Topics - Fixing SPC hacking code
Pages: « 1 »
Guys, I have a SPC code:
Code
LDA $74 CMP #$1F BEQ MCH RTL MCH: LDA #$22 STA $2142

But when I start clmbing the music stops and nothing happens. There are no music, but SFXes plays. Any reason why this happens?
Originally posted by Luigi370
Guys, I have a SPC code:
But when I start clmbing the music stops and nothing happens. There are no music, but SFXes plays. Any reason why this happens?


Allow me to read to you your code in English:

If Mario is not climbing, stop.
Tell the music engine to start playing song 22 (which probably won't do anything useful if you're using Addmusic; you should use 1DF9-1DFC).

I don't know what you're trying to accomplish here, but I'm pretty sure it's not that.
Last edited on 2012-02-19 01:37:14 AM by Kipernal.
No, that's not.
I want it to play another song (22 in this case) when mario is climbing.
Yeah, you need to use the appropriate SMW mirror to play songs ($1DFB). Note that I don't believe Addmusic 4 will let you do this mid-level. Also note that this will trigger a pause in AddmusicM if you're switching sample banks.

EDIT: And your code is correct, though I was thrown off by your checking for #$1F instead of just checking for any non-zero value.
Last edited on 2012-02-19 01:39:40 AM by Kipernal.
Originally posted by Kipernal
Yeah, you need to use the appropriate SMW mirror to play songs ($1DFB). Note that I don't believe Addmusic 4 will let you do this mid-level. Also note that this will trigger a pause in AddmusicM if you're switching sample banks.

EDIT: And your code is correct, though I was thrown off by your checking for #$1F instead of just checking for any non-zero value.


Approprate SMW mirror?
What is that? Can you make an example of the code? It's a bit hard to understand for me.

I also tried this:
Code
LDA $13E0 CMP #$3E BEQ MCH RTL MCH: LDA #$22 STA $2142


And that code gets black screen when dying. I wanted to remake a DKC series changing dying music.
Last edited on 2012-02-19 01:43:14 AM by Luigi370.
Originally posted by Luigi370
Approprate SMW mirror?
What is that? Can you make an example of the code? It's a bit hard to understand for me.


Use $1DFB instead of $2142.

Originally posted by Luigi370
I also tried this:

And that code gets black screen when dying. I wanted to remake a DKC series changing dying music.


Try the above and see if it works. If it doesn't, you're going to have to hijack the death routine to play the correct song instead (again, AddmusicM only as far as I know).
I changed it to 1DFB, but when I die nothing is hearable. Any idea?

EDIT:
I already found a way to do it. Thanks for help anyway!
Last edited on 2012-02-19 02:02:46 AM by Luigi370.
Pages: « 1 »
Forum Index - SMW Hacking - General SMW Hacking Help - ASM & Related Topics - Fixing SPC hacking code

The purpose of this site is not to distribute copyrighted material, but to honor one of our favourite games.

Copyright © 2005 - 2013 - SMW Central
Legal Information - Link To Us


Total queries: 27

Menu