Users browsing this thread: 1 Guest(s)
Usable Magic for all Characters
08-03-2012, 03:51 PM
Fixed. After a couple weeks of off-and-on searching, downloading a debugger (super useful) and searching all over the dissasemblies for C0, C1, C2, and C3... it was all one tiny little place that uses ADC to get to the magic starting address instead of outright loading it.
On the plus-side... i learned a TON about how magic works in the game. Apparently the magic list for battle is stored for each character in the battle, including the players equipped esper, their magic list, and a lore list (per character). All of the lists get populated with all magic that is known by anyone in the battle (I'm guessing this is since Gogo doesn't learn his own). Then the game goes back and blanks out the spells that are NOT known by each character, leaving them with their individual lists. Crazy stuff. Here's a neat little table:
Anyway, the updated patches are up for anyone who wants them.
Code:
C2/5589: BD D8 3E LDA $3ED8,X
C2/558C: 22 CF 50 C3 JSR $C3/50CF***
C2/5590: EB XBA
C2/5591: A9 36 LDA #$36
C2/5593: 20 81 47 JSR $4781
C2/5596: C2 21 REP #$21
C2/5598: 69 6E ADC #$6E
C2/559A: 1A INC
C2/559B: F0 STA $F0
*** - My changes
On the plus-side... i learned a TON about how magic works in the game. Apparently the magic list for battle is stored for each character in the battle, including the players equipped esper, their magic list, and a lore list (per character). All of the lists get populated with all magic that is known by anyone in the battle (I'm guessing this is since Gogo doesn't learn his own). Then the game goes back and blanks out the spells that are NOT known by each character, leaving them with their individual lists. Crazy stuff. Here's a neat little table:
Code:
Battle Magic Data
$208E - battle magic list 1
$21CA - battle magic list 2
$2306 - battle magic list 3
$2442 - battle magic list 4
spell offsets (4 bytes each)
$0 - Esper
$1-$36 - Magic list
$37-$4E - Lore list
spell bytes
1-Spell-ID
2-Unknown [related to spell availability]
3-Targetting
4-Spell-MP cost
Anyway, the updated patches are up for anyone who wants them.
« Next Oldest | Next Newest »
|
||||
Users browsing this thread: 1 Guest(s)