Esper Learning Rate HELP!
#1
It looks like I have everything setup in FF6usME right for spell learning with equipped espers, but when I play the game the characters do not learn the spells properly.

Ramuh for Example:
Bolt x15
Bolt 2 x5
Bolt 3 x1

In battle every spell is learned at 15.

I did some more testing.

All espers spells are learned at the first spell for Ramuh. Let's say the first spell for Ramuh is Bolt set to x15. Every spell from any esper will be learned at 15x. If I change it to 10x, I get the same thing happening with every spell learned at x10.

This is not effecting spells learned by items. It has something to do with that first spell spot on the Ramuh esper.

The only other thing I did was use the Restrict Esper asm. I did it just like the readme says and everything works except for the spell learning. Could that have caused the bug?

More testing.
It's not the Restrict Esper asm. It does it on a backup I had before I applied the Restrict Esper asm.

Where do I look to find out what's going on?
Reply
#2
This is the spell learning routine.

You could check:

A) If the code of your hack is the same as the disassembly (most likely yes, but we never know).

B) If the data starting at D8/6E00 is correct (I'm pretty sure it would show up in FF3usME if it was incorrect).

C) Set a breakpoint in the routine using Geiger's debugger and see what goes wrong.

I would personally go as A-C-B since B can be done in step C.



Code:
C2/602A: DA           PHX
C2/602B: 20 93 62     JSR $6293     (Multiply A by #$0B and store in X)
C2/602E: A0 05 00     LDY #$0005    (Do for each spell taught by esper)
C2/6031: 7B           TDC           (Clear A)
C2/6032: BF 01 6E D8  LDA $D86E01,X (Spell taught)
C2/6036: C9 FF        CMP #$FF
C2/6038: F0 0A        BEQ $6044     (Branch if no spell taught)
C2/603A: 5A           PHY
C2/603B: A8           TAY
C2/603C: BF 00 6E D8  LDA $D86E00,X (Spell learn rate)
C2/6040: 20 4B 60     JSR $604B     (Add amount to known% for spell)
C2/6043: 7A           PLY
C2/6044: E8           INX
C2/6045: E8           INX
C2/6046: 88           DEY
C2/6047: D0 E8        BNE $6031     (Check next spell taught)
C2/6049: FA           PLX
C2/604A: 60           RTS
Reply
#3
Checked everything. It's all correct. It works perfectly in the debugger.

I was running the latest version zsnes. When I used an older version, it worked properly.

There was something in the new version of zsnes that was stopping it from running correctly.

Ever here of anything like that before?
Reply
#4
I have read a thread on RHDN about a hack who was crashing in ZSNES because of a JSL instruction and it was not the case in SNES9x or bsnes. The guy didn't stated which version of ZSNES he was using though.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Add learning new spells doofenH 11 9,014 02-13-2020, 08:02 PM
Last Post: C-Dude
  Item Drop Rate idea Kugawattan 2 3,212 06-28-2017, 12:35 PM
Last Post: seibaby
  Increase the Learn Rate of Magic Fenrir 4 4,897 06-07-2016, 04:33 PM
Last Post: Tenkarider
  Questions: Learning magic for PC's 12-16 Zozma 8 7,237 11-26-2015, 05:39 PM
Last Post: Zozma
  Gau: Automatic Rage Learning aatc85 9 10,889 11-30-2013, 10:48 PM
Last Post: aatc85
  learning new Lore magic? xeblon 3 4,186 07-06-2013, 01:34 PM
Last Post: xeblon
  Learning Magic B-Run 24 27,628 07-14-2012, 07:25 AM
Last Post: B-Run

Forum Jump:


Users browsing this thread: 1 Guest(s)