Banner
Views: 235,935,467
Time: 2013-05-19 08:33:31 PM
24 users online: aterraformer, CerberusYoshi, o Doopy Buckride, ErikAlay, o K3fka, Kenny, leod, LX5, o Mai, Masterlink, Meirdent, o mockingod, Phantom Kid, o Scrydan, o ShadowPhoenix, SomeGuy712x, THY, Tormentor2, o TRS, Wiimeiser, X-cniS, Yami, Z0mbie1337, Zubatman - Guests: 24 - Bots: 16Users: 22,845 (1,293 active)
Latest: MarioUnlimited
Tip: Create a thread for your hack in the Works in Progress once you have enough screenshots/videos to show.
ASM for Beginners: Basic, Basic Codes in 20 minutes
Forum Index - SMW Hacking - General SMW Hacking Help - Tutorials - ASM for Beginners: Basic, Basic Codes in 20 minutes
Pages: « 1 2 3 4 5 6 7 8 »
in Levelcode.asm, scroll down to where it says "level105:" then it'll have the sample code so take everything out EXCEPT the RTS
^
Last edited on 2010-09-17 09:29:56 PM by Livin4Jesus.
... I am such a n00b. XD Thanks. :)
EDIT: Thanks, Maxx! Even though it took me more then 20 minutes, I still learned in one day! :D

Extra EDIT: one small question: What is the REVERT.asm and the Levelinitcode.asm for?
Last edited on 2010-09-18 12:29:11 PM by Livin4Jesus.
I'm finished. I now know at least some of every aspect of SMW hacking. Now, time to move on to other ROMs...
What? Don't you have hacks your working on? And plus, how can you hack other games? DON'T LEAVE! :P
Well, so long. #w{=(}

BTW, Thanks Maxx, for making this simply amazing tutorial. :)
Last edited on 2010-10-15 11:28:24 PM by Livin4Jesus.
Is there a way I can have Mario collect a block (i.e. coin) and have that block raise the value of $7E0F48 (star counter) by one?

I'm trying to have something that raises a counter (which resets to 0 when you die) and then when that counter reaches 67 load to a new room. level.
this should do it

Quote
JMP MarioBelow : JMP MarioAbove : JMP MarioSide : JMP SpriteV : JMP SpriteH : JMP MarioCape : JMP MarioFireBall

MarioAbove:
MarioBelow:
MarioSide:
inc.w $0F48
lda.b #$02
sta.b $9C
jsl.l $00BEB0
SpriteV:
SpriteH:
MarioCape:
MarioFireBall:
rtl
Thanks, but for some reason the block occasionally turns to a turn block that you can bounce one. It is a minor problem that I don't mind too much, but can you think of anything that would fix that?
put PHY before LDA.b #$02 and PLY after JSL.l $00BEB0
While that did fix the block from turning into a bouncing turn block, it now doesn't always give you a star point, usually from colliding with a corner of the block. It may be that I simply entered the code wrong, since I obviously have no idea what I'm doing. here is what I currently have for the code:

Code
JMP MarioBelow : JMP MarioAbove : JMP MarioSide : JMP SpriteV : JMP SpriteH : JMP MarioCape : JMP MarioFireBall MarioAbove: MarioBelow: MarioSide: inc.w $0F48 lda.b #$02 PHY sta.b $9C jsl.l $00BEB0 PLY SpriteV: SpriteH: MarioCape: MarioFireBall: rtl

Tag (div) was not closed.
Tag (div) was not closed.
you just don't have the corner offsets
Code
db $42 ;^ This is needed for the corner offsets JMP Mario : JMP Mario : JMP Mario : JMP Return : JMP Return : JMP Return : JMP Return JMP MarioCorner : JMP HeadInside : JMP BodyInside Mario: MarioCorner: HeadInside: BodyInside: inc.w $0F48 phy lda.b #$02 sta.b $9C jsl.l $00BEB0 ply Return: rtl
Last edited on 2011-01-08 07:30:09 PM by Ramp202.
Thanks for the help everyone, I now have the block I needed finished. One last question though. Is there a list of the values for sound? I'm was trying to get the block I made to make the same sound as a dragon coin, but I only know normal coins: !sound = $01
Check this thread for a list of the sound effects.

Edit: it should be $50
Last edited on 2011-01-09 01:15:57 PM by Sind.
I typed the LDA #02 STA $7E0019 on 105 then on the cmd file it said patched applied with no errors but my mario still doesn't have a cape for some reason
Are you by any chance using xkas v0.08? It sometimes says that but doesn't really apply the patch. Try using v0.06 if that's the case.
Originally posted by Iceguy
Are you by any chance using xkas v0.08? It sometimes says that but doesn't really apply the patch. Try using v0.06 if that's the case.

Well I switched to the old version but it still didn't work. I am supposed to put -xkas smw.smc level.asm- in the cmd file to patch it right? Also I put the LDA and the other exactly how the tutorial said it in the level code file but its still not working.
Originally posted by EvilGuy0613
xkas smw.smc level.asm

The correct usage is xkas level.asm smw.smc (at least for 0.06, and I can't see any reason why other xkas versions would swap them).
Originally posted by Alcaro
Originally posted by EvilGuy0613
xkas smw.smc level.asm

The correct usage is xkas level.asm smw.smc (at least for 0.06, and I can't see any reason why other xkas versions would swap them).


Did that too, it said patches applied with no error. But I go to see if it worked and it didn't.
Word of advice, you never have to put the '7E'. And if the first two digits are zeroes, you can remove them too. However, the amount of digits should never be three, so don't put "$137" for "0137", just put "$0137".
Pages: « 1 2 3 4 5 6 7 8 »
Forum Index - SMW Hacking - General SMW Hacking Help - Tutorials - ASM for Beginners: Basic, Basic Codes in 20 minutes

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: 29

Menu