Banner
Views: 236,500,004
Time: 2013-05-24 03:41:34 AM
6 users online: o fsvgm777, Kinopio, Marcus_1987, p4plus2, Qwholl, Yasuo - Guests: 16 - Bots: 11Users: 22,875 (1,272 active)
Latest: ratchtet
Tip: You can use the SMW Customizer to edit tons of misc. features in SMW, including the speed of Bullet Bills, how many points a 3-UP moon gives you, and more!
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 »
Originally posted by SomeGuy
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".


Just tried it, i didn't work. My Mario doesn't have a cape. Just to be sure I'm am supposed type this "xkas level.asm smw.smc" (Without the quotes of course) in the cmd file right? Or wrong.
Yep, that's correct (the way you're patching it). Why it's not working could be because:

-You have ROMName.ips in your hack folder.
-You're still using xkas v0.08 even though I told you not to.
-You're testing the wrong ROM (or wrong level).
-You have some other tool that is reverting the changes when you save your ROM through it.
-Your code isn't being executed.
-Something else I can't think of.

I am guessing #2 is the problem. A problem why it isn't even working at all may be because xkas isn't even patching it (as I said, v0.08 sometimes doesn't patch the file). I don't get why v0.06 is causing any problems, the syntax is exactly the same. What happens when you try patching with it?

Quote
However, the amount of digits should never be three, so don't put "$137" for "0137", just put "$0137".

You can use 3 digits AFAIK, it's just bad practice.
Originally posted by Iceguy
Yep, that's correct (the way you're patching it). Why it's not working could be because:

-You have ROMName.ips in your hack folder.
-You're still using xkas v0.08 even though I told you not to.
-You're testing the wrong ROM (or wrong level).
-You have some other tool that is reverting the changes when you save your ROM through it.
-Your code isn't being executed.
-Something else I can't think of.

I am guessing #2 is the problem. A problem why it isn't even working at all may be because xkas isn't even patching it (as I said, v0.08 sometimes doesn't patch the file). I don't get why v0.06 is causing any problems, the syntax is exactly the same. What happens when you try patching with it?

Quote
However, the amount of digits should never be three, so don't put "$137" for "0137", just put "$0137".

You can use 3 digits AFAIK, it's just bad practice.


Well I haven't tried in 5 days so I tried again just now with v0.06. I put the
LDA #02
STA $7E0019

Under level 105, in the level code file then saved it.

I opened the cmd file and type xkas level.asm smw.smc It doesn't say patches applied with no errors, at the same time it doesn't say there was an error either but I'm assuming it didn't work cause my mario still doesn't have a cape in level 105. I'm not sure what I'm missing.
Pardon my interrupt.

Originally posted by EvilGuy0613
LDA #02
STA $7E0019

You're missing a dollar sign after the hash.

Code
LDA #$02 STA $19 RTS
Last edited on 2011-01-20 02:32:34 PM by Buu.
Originally posted by Weeabuu
Pardon my interrupt.

Originally posted by EvilGuy0613
LDA #02
STA $7E0019

You're missing a dollar sign after the hash.

Code
LDA #$02 STA $19 RTS


Okay, I corrected it, but I guess that wasn't the problem cause its still didn't work.
Originally posted by Weeabuu
Pardon my interrupt.

Originally posted by EvilGuy0613
LDA #02
STA $7E0019

You're missing a dollar sign after the hash.

Code
LDA #$02 STA $19 RTS

# actually does work. It denotes a decimal number over hex.

#$0F is valid
#0F is not, only regular base-10 works with #
In that case, excuse me for barging in.
Well its okay now, I gave up in trying to get it to work for now
I don't really need to learn how to do it yet, I just thought it be nice to know how. #w{=)}
when i use the CMD to apply level.asm with xkas 0.08 and 0.06, Zsnes doesn't open the rom (says "bad rom"), and LM says that the rom maybe is corrupt. why?
Last edited on 2011-01-23 09:10:19 AM by linkunarre.
Sounds like you forgot setting the freespace.
And the "bad rom" thing is unavoidable. Saving a level in LM usually fixes it.
Originally posted by Alcaro
Sounds like you forgot setting the freespace.
And the "bad rom" thing is unavoidable. Saving a level in LM usually fixes it.

ok , i'll try it

E: great , it's working! only one thing , the bad rom thing , is also apearing , but i forget to say that the name of the game (super mario world) wasn't there, instead there was a lot of strange signs. now ther is super mario world and not htat strange signs
Last edited on 2011-01-23 10:24:39 AM by linkunarre.
i want to make a block with the mario "is in water" flag:


Code
$7E:0075
1 byte Flag "Mario is in water" flag

#$04 is yes, #$00 is no.

E: it has to make that if you hit it with the cape , it changes the flag
Code
JMP Return : JMP Return : JMP Return : JMP Return : JMP Return : JMP Mario : JMP Return Mario: LDA $75 CMP #$00 BEQ SWIMINGANIM CMP #$04 BEQ NOTHING RTS SWIMINGANIM: LDA #$04 STA $75 RTS NOTHING: STZ $75 Return: RTL


when i hit it with the cape , the screen gets black and the game freezes, but the music still playing. what's happening here?
Last edited on 2011-01-29 11:44:33 AM by linkunarre.
Most of your returns are RTS instead of RTL =/
Originally posted by Sind
Most of your returns are RTS instead of RTL =/


ok , but where is the diference with RTL and RTS? RTS is return to a subroutine , but RTL?

E: ok , now it doesn't brick , but it doesn't do anything!
Last edited on 2011-01-29 01:07:16 PM by linkunarre.
I have a problem. The tutorial works up until when I have to check the rom after putting in the command prompt. I then check the rom and it says checksum failed. What did I do wrong?
Does the actual game itself work?

If yes, just ignore the checksum failed message. It gets fixed after you save once in LM anyways =/
hey , can someone help me? now the code doesn't do nothing , no brick the game but not changes the "mario is swimming" flag!

here:

Code
JMP MarioBelow : JMP MarioAbove : JMP MarioSide : JMP SpriteV : JMP SpriteH : JMP MarioCape : JMP MarioFireBall: MarioBelow: MarioAbove: RTL MarioSide: LDA $75 CMP #$00 BEQ SWIMINGFLAG CMP #$04 BEQ NOTHINGFLAG RTL SWIMINGFLAG: LDA #$04 STA $75 RTL NOTHINGFLAG: STZ $75 MarioCape: SpriteV: SpriteH: MarioFireBall: RTL
Originally posted by Sind
Does the actual game itself work?

If yes, just ignore the checksum failed message. It gets fixed after you save once in LM anyways =/


No, the screen goes black.
@linkunarre: I'm assuming $75 is constantly set in game, depending on whether mario is in water or not. If that is true, writing to it would be futile.

@2cr8or: What did you insert?
@link - you want it to activate when mario hit the block with a cape no? because you made it when mario hits the side. Also, i shortened down your code a little
Code
JMP Return : JMP Return : JMP Return : JMP Return : JMP Return : JMP Cape : JMP Return Cape: LDA $75 ; No CMP? It'll automatically think CMP #$00 is after BEQ Swim STZ $75 RTL Swim: LDA #$01 STA $75 Return: RTL
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