Banner
Views: 235,718,478
Time: 2013-05-18 05:39:12 AM
6 users online: Egadd, Meltfire, Pokeymeister80, Reggiamoto, o Tokiko, WhiteYoshiEgg - Guests: 11 - Bots: 16Users: 22,832 (1,278 active)
Latest: Lithuanian Dude
Tip: Keep track of ALL patches and hex edits in case you need to transfer your data to a new ROM. It's definitely worth the trouble.
This VWF Dialogues code
Forum Index - SMW Hacking - General SMW Hacking Help - This VWF Dialogues code
Pages: « 1 »
I have this code...
Code
dl .checklevels db "But you can't enter the castle just yet until you get more info.",$FA db $FA,$FF .ready db "I hope you're ready for the fight.",$FA,$EF dw $00C6 db %00000000 db $FA,$FF .checklevels LDA $0F5E AND #%00011111 BEQ .ready RTL


But whenever it gets to this code ingame, the game crashes completely. What have I missed?
Code
AND #%00011111

If you're trying to use a binary value, remove the "#".
Originally posted by JowTH
Code
AND #%00011111

If you're trying to use a binary value, remove the "#".

Wrong. The # tells that it's not a RAM address. Removing it will not give any kind of desirable results.
Originally posted by shrine
Code
dl .checklevels

Looks like you're missing the $F1 command. Just putting the address of a label there with no command to handle it, things are almost certain to crash.

Short story even shorter, put a db $F1 before that and you should be good.
Last edited on 2012-04-15 09:14:07 AM by WhiteYoshiEgg.
IIRC, when using binary values, it's safest to specify the size of the opcode (.b, .w, or .l) So in your case, just make it AND.b #%00011111

This probably isn't causing the crash, but it's just safe to do so.
Also...
Code
LDA $0F5E AND #%00011111 BEQ .ready

You're making the code branch to text. That is not what you want to do, since that will make the text execute as opcodes. You want to branch to more code that changes the text pointer, !vwftextsource. The readme has an example of this in the information for the $F1 command.
Last edited on 2012-04-15 11:43:47 AM by imamelia.
Pages: « 1 »
Forum Index - SMW Hacking - General SMW Hacking Help - This VWF Dialogues 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: 29

Menu