|
|
 |
|
 |
|
Views: 236,296,646 Time: 2013-05-22 02:31:12 PM | 27 users online: 1UPdudes, Arctic Avenger, Dipalon, exit1337, gibbl, grishnax, Incognito, LaughingLuigi, leod, LONTOR505, MarioBros980, MarioFan22, Masterlink, MolSno, MonkeyMan, MrDeePay, MSDFG, mzuenni, Orphen Kirisame, Pokeymeister80, RaindropDry, ShadowAlexandre, ShadowPhoenix, Sokobansolver, TRS, WeegeeBen, Zeldara109 - Guests: 32 - Bots: 9 | Users: 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  |
|
|
|
| Posted on 2012-02-18 11:24:47 PM |
Link | Quote |
|
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?
|
|
| Posted on 2012-02-19 01:32:30 AM |
Link | Quote |
|
Originally posted by Luigi370Guys, 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. |
|
| Posted on 2012-02-19 01:35:08 AM |
Link | Quote |
|
No, that's not.
I want it to play another song (22 in this case) when mario is climbing.
|
|
| Posted on 2012-02-19 01:37:00 AM |
Link | Quote |
|
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. |
|
| Posted on 2012-02-19 01:41:17 AM |
Link | Quote |
|
Originally posted by KipernalYeah, 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. |
|
| Posted on 2012-02-19 01:47:55 AM |
Link | Quote |
|
Originally posted by Luigi370Approprate 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 Luigi370I 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).
|
|
| Posted on 2012-02-19 01:51:49 AM |
Link | Quote |
|
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 UsTotal queries: 27
|
|
|
|