Users browsing this thread: 2 Guest(s)
Attempting to create a new event command
04-07-2015, 01:05 AM
(This post was last modified: 04-07-2015, 02:51 AM by Tenkarider.)
Drakken, you're right! loading from $1DC5,X instead... it loads the correct value of the var! but... why? If those are battle vars that keep their value after battle, then why this not actually happen even for $3EB0,X values? on a side note i was testing values, until something weird happened: the value of the var i was using(var 4) did overflow before reaching FF value: after some test i figured out that the highest value it can reach before it overflows is B1. (177 in decimal)
Does anyone know the reason?
___________________________________
Ok, shit's happening: while i'm sure the event command is working fine, that won't happen for the highest number stored inside var 04, since i saw that the limit was 177, then i changed the compare value of each check(BB) into a lower one... now it overflows if i go above 166(decimal)...
I'll post here the data that show snes debugger, so that you might notice something that i cannot see:
var 4 = 166
As you can see the var value doesn't match... here's the case in which i overflow with it:
var 4 = 167
Here i don't really know anymore which number is the highest that you can store on that var... i'm counting on you.
Does anyone know the reason?
___________________________________
Ok, shit's happening: while i'm sure the event command is working fine, that won't happen for the highest number stored inside var 04, since i saw that the limit was 177, then i changed the compare value of each check(BB) into a lower one... now it overflows if i go above 166(decimal)...
I'll post here the data that show snes debugger, so that you might notice something that i cannot see:
var 4 = 166
Code:
$00/FF00 78 SEI A:0000 X:0000 Y:0000 P:EnvMXdIzc
$C0/D613 E2 20 SEP #$20 A:0000 X:00DC Y:0000 P:enVMxdiZc
$C0/D615 A5 EB LDA $EB [$00:00EB] A:0000 X:00DC Y:0000 P:enVMxdiZc
$C0/D617 AA TAX A:0004 X:00DC Y:0000 P:enVMxdizc
$C0/D618 20 48 D6 JSR $D648 [$C0:D648] A:0004 X:0004 Y:0000 P:enVMxdizc
$C0/D648 48 PHA A:0004 X:0004 Y:0000 P:enVMxdizc
$C0/D649 E0 24 00 CPX #$0024 A:0004 X:0004 Y:0000 P:enVMxdizc
$C0/D64C B0 05 BCS $05 [$D653] A:0004 X:0004 Y:0000 P:eNVMxdizc
$C0/D64E BD C5 1D LDA $1DC5,x[$00:1DC9] A:0004 X:0004 Y:0000 P:eNVMxdizc
$C0/D651 80 03 BRA $03 [$D656] A:0069 X:0004 Y:0000 P:enVMxdizc
$C0/D656 85 EB STA $EB [$00:00EB] A:0069 X:0004 Y:0000 P:enVMxdizc
$C0/D658 68 PLA A:0069 X:0004 Y:0000 P:enVMxdizc
$C0/D659 18 CLC A:0004 X:0004 Y:0000 P:enVMxdizc
$C0/D65A 60 RTS A:0004 X:0004 Y:0000 P:enVMxdizc
$C0/D61B A5 EB LDA $EB [$00:00EB] A:0004 X:0004 Y:0000 P:enVMxdizc
$C0/D61D C5 EC CMP $EC [$00:00EC] A:0069 X:0004 Y:0000 P:enVMxdizc
$C0/D61F 30 13 BMI $13 [$D634] A:0069 X:0004 Y:0000 P:enVMxdizC
$C0/D621 C2 20 REP #$20 A:0069 X:0004 Y:0000 P:enVMxdizC
$C0/D623 A6 ED LDX $ED [$00:00ED] A:0069 X:0004 Y:0000 P:enVmxdizC
$C0/D625 86 E5 STX $E5 [$00:00E5] A:0069 X:000B Y:0000 P:enVmxdizC
$C0/D627 E2 20 SEP #$20 A:0069 X:000B Y:0000 P:enVmxdizC
$C0/D629 A5 EF LDA $EF [$00:00EF] A:0069 X:000B Y:0000 P:enVMxdizC
$C0/D62B 18 CLC A:0035 X:000B Y:0000 P:enVMxdizC
$C0/D62C 69 CA ADC #$CA A:0035 X:000B Y:0000 P:enVMxdizc
$C0/D62E 85 E7 STA $E7 [$00:00E7] A:00FF X:000B Y:0000 P:eNvMxdizc
$C0/D630 5C 6D 9A C0 JMP $C09A6D[$C0:9A6D] A:00FF X:000B Y:0000 P:eNvMxdizc
As you can see the var value doesn't match... here's the case in which i overflow with it:
var 4 = 167
Code:
$C0/D613 E2 20 SEP #$20 A:0000 X:00DC Y:0000 P:enVMxdiZc
$C0/D615 A5 EB LDA $EB [$00:00EB] A:0000 X:00DC Y:0000 P:enVMxdiZc
$C0/D617 AA TAX A:0004 X:00DC Y:0000 P:enVMxdizc
$C0/D618 20 48 D6 JSR $D648 [$C0:D648] A:0004 X:0004 Y:0000 P:enVMxdizc
$C0/D648 48 PHA A:0004 X:0004 Y:0000 P:enVMxdizc
$C0/D649 E0 24 00 CPX #$0024 A:0004 X:0004 Y:0000 P:enVMxdizc
$C0/D64C B0 05 BCS $05 [$D653] A:0004 X:0004 Y:0000 P:eNVMxdizc
$C0/D64E BD C5 1D LDA $1DC5,x[$00:1DC9] A:0004 X:0004 Y:0000 P:eNVMxdizc
$C0/D651 80 03 BRA $03 [$D656] A:0069 X:0004 Y:0000 P:enVMxdizc
$C0/D656 85 EB STA $EB [$00:00EB] A:0069 X:0004 Y:0000 P:enVMxdizc
$C0/D658 68 PLA A:0069 X:0004 Y:0000 P:enVMxdizc
$C0/D659 18 CLC A:0004 X:0004 Y:0000 P:enVMxdizc
$C0/D65A 60 RTS A:0004 X:0004 Y:0000 P:enVMxdizc
$C0/D61B A5 EB LDA $EB [$00:00EB] A:0004 X:0004 Y:0000 P:enVMxdizc
$C0/D61D C5 EC CMP $EC [$00:00EC] A:0069 X:0004 Y:0000 P:enVMxdizc
$C0/D61F 30 13 BMI $13 [$D634] A:0069 X:0004 Y:0000 P:enVMxdizC
$C0/D621 C2 20 REP #$20 A:0069 X:0004 Y:0000 P:enVMxdizC
$C0/D623 A6 ED LDX $ED [$00:00ED] A:0069 X:0004 Y:0000 P:enVmxdizC
$C0/D625 86 E5 STX $E5 [$00:00E5] A:0069 X:000B Y:0000 P:enVmxdizC
$C0/D627 E2 20 SEP #$20 A:0069 X:000B Y:0000 P:enVmxdizC
$C0/D629 A5 EF LDA $EF [$00:00EF] A:0069 X:000B Y:0000 P:enVMxdizC
$C0/D62B 18 CLC A:0035 X:000B Y:0000 P:enVMxdizC
$C0/D62C 69 CA ADC #$CA A:0035 X:000B Y:0000 P:enVMxdizc
$C0/D62E 85 E7 STA $E7 [$00:00E7] A:00FF X:000B Y:0000 P:eNvMxdizc
$C0/D630 5C 6D 9A C0 JMP $C09A6D[$C0:9A6D] A:00FF X:000B Y:0000 P:eNvMxdiz
Here i don't really know anymore which number is the highest that you can store on that var... i'm counting on you.
THE GREATEST CHALLENGE OF ALL TIMES AWAITS:
http://www.ff6hacking.com/forums/showthr...p?tid=2593
DO YOU HAVE WHAT IT TAKES TO SLAY A GOD?
------------------------------------------------------------------------
Tenkarider's project #2 is started: FF6 Curse of the Madsiur Joke (CotMJ)
http://www.ff6hacking.com/forums/showthr...p?tid=2755
What happens when Madsiur tweaks your account? This full game hack will show that!
« Next Oldest | Next Newest »
Users browsing this thread: 2 Guest(s)