øAslickproductions.org/forum/index.php?PHPSESSID=5f0fck550j2m4m2fpbtkj2vkm1&topic=795.msg7585e:/My Web Sites/Slick Productions - FFIV Message Board/slickproductions.org/forum/indexa2ee.htmlslickproductions.org/forum/index.php?PHPSESSID=5f0fck550j2m4m2fpbtkj2vkm1&topic=795.0e:/My Web Sites/Slick Productions - FFIV Message Board/slickproductions.org/forum/indexa2ee.html.zx‡g^ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÈ0°j;OKtext/htmlISO-8859-1gzip@øÕ;ÿÿÿÿÿÿÿÿTue, 10 Mar 2020 12:43:02 GMT0ó°° ®0®P®€§²ð®‡g^²; Learned spells not being added to list

Author Topic: Learned spells not being added to list  (Read 10012 times)

Phoenix

  • FF4 Hacker
  • *
  • Posts: 456
    • View Profile
    • Phoenix Hacks
Learned spells not being added to list
« on: September 07, 2008, 06:52:22 PM »
I was just testing out the spell learning for my hack, and I noticed that spells outside the White spells won't be learned when adding to a White spell list. I assume the same goes for the other types of lists. JCE, I know you changed some of the spell learning for your hack. Did you run into this? Does anyone know a way around it?

Deathlike2

  • Moderator
  • *
  • Posts: 3,538
  • I'm looking at you, bitch!
    • View Profile
Re: Learned spells not being added to list
« Reply #1 on: September 07, 2008, 07:00:43 PM »
I'd hazard a guess and say that's somewhere in the spell learning code.
Working on the next Yet To Be Named FF4 "Hardtype" Hack Download Latest: v1.48

Video Demos: #1 #2 #3

Phoenix

  • FF4 Hacker
  • *
  • Posts: 456
    • View Profile
    • Phoenix Hacks
Re: Learned spells not being added to list
« Reply #2 on: September 07, 2008, 07:05:13 PM »
Yeah, I'm sure it is -- I'm going back through my documents now to see if I ever found the location of that, but I wondered if anyone else knew the fix.

Phoenix

  • FF4 Hacker
  • *
  • Posts: 456
    • View Profile
    • Phoenix Hacks
Re: Learned spells not being added to list
« Reply #3 on: September 07, 2008, 08:37:18 PM »
I found the code -- I had the location of something close to it, and was able to find it without too much problem. I think I've got a fix for it; change the data to 801D at the following locations:

FF2us v1.0: 1F342
FF2us v1.1: 1F357
FF4j: 1F35C

Anyone that's willing please test this out for me and let me know if you run into any problems. I did one or two tests which worked, but that's hardly conclusive. Let me know if you run into problems.

Deathlike2

  • Moderator
  • *
  • Posts: 3,538
  • I'm looking at you, bitch!
    • View Profile
Re: Learned spells not being added to list
« Reply #4 on: September 07, 2008, 08:56:52 PM »
Well, there's only 3 spell learning types (though, it is unknown how Summons are handled)...

Do scripted events add a spell via the spell learning method method as well?

It would also be interesting to investigate how the item-monster summons work as well...
Working on the next Yet To Be Named FF4 "Hardtype" Hack Download Latest: v1.48

Video Demos: #1 #2 #3

Dragonsbrethren

  • Forum Overlord
  • *
  • Posts: 1,820
    • View Profile
    • Dragonsbrethren Industries
Re: Learned spells not being added to list
« Reply #5 on: September 07, 2008, 09:07:49 PM »
Phoenix, are your offsets headered or unheadered?

Phoenix

  • FF4 Hacker
  • *
  • Posts: 456
    • View Profile
    • Phoenix Hacks
Re: Learned spells not being added to list
« Reply #6 on: September 07, 2008, 11:01:49 PM »
Quote
Do scripted events add a spell via the spell learning method method as well?

No, using an event script will add a spell to any list with no problem.

Quote
It would also be interesting to investigate how the item-monster summons work as well...

I haven't come across that piece of code yet, but I'll let you know if I do.

Quote
Phoenix, are your offsets headered or unheadered?

Sorry -- they're all headered.


Dragonsbrethren

  • Forum Overlord
  • *
  • Posts: 1,820
    • View Profile
    • Dragonsbrethren Industries
Re: Learned spells not being added to list
« Reply #7 on: September 07, 2008, 11:37:49 PM »
I found a pretty big problem with this without even changing the spells learned:


Deathlike2

  • Moderator
  • *
  • Posts: 3,538
  • I'm looking at you, bitch!
    • View Profile
Re: Learned spells not being added to list
« Reply #8 on: September 07, 2008, 11:41:22 PM »
It looks like you've disabled/removed that code or something...

The learning code probably says "goto to selected/initial spell slot, add spell , jump to end".

What you did was probably change "jump to end" to "goto next spell slot".
« Last Edit: September 07, 2008, 11:53:34 PM by Deathlike2 »
Working on the next Yet To Be Named FF4 "Hardtype" Hack Download Latest: v1.48

Video Demos: #1 #2 #3

Dragonsbrethren

  • Forum Overlord
  • *
  • Posts: 1,820
    • View Profile
    • Dragonsbrethren Industries
Re: Learned spells not being added to list
« Reply #9 on: September 07, 2008, 11:52:06 PM »
Yeah, it's adding the white spells to all three lists and the black spells to the last two.

 :edit:

By "white spells" I mean spells from the first magic list, not necessarily white magic. Your hack is allowing any type of spell to be added to any list, just with this unintended side effect.
« Last Edit: September 08, 2008, 12:12:32 AM by Dragonsbrethren »

Deathlike2

  • Moderator
  • *
  • Posts: 3,538
  • I'm looking at you, bitch!
    • View Profile
Re: Learned spells not being added to list
« Reply #10 on: September 07, 2008, 11:55:45 PM »
Thinking about it, the spells are learned within a section (like the spell animation code).. so you might be looking in the wrong place...
Working on the next Yet To Be Named FF4 "Hardtype" Hack Download Latest: v1.48

Video Demos: #1 #2 #3

Dragonsbrethren

  • Forum Overlord
  • *
  • Posts: 1,820
    • View Profile
    • Dragonsbrethren Industries
Re: Learned spells not being added to list
« Reply #11 on: September 08, 2008, 12:11:59 AM »
Well, there's only 3 spell learning types (though, it is unknown how Summons are handled)...

Summons can be learned just like anything else.

Deathlike2

  • Moderator
  • *
  • Posts: 3,538
  • I'm looking at you, bitch!
    • View Profile
Re: Learned spells not being added to list
« Reply #12 on: September 08, 2008, 12:13:05 AM »
Well, there's only 3 spell learning types (though, it is unknown how Summons are handled)...

Summons can be learned just like anything else.

Well, it's never exposed as such....
Working on the next Yet To Be Named FF4 "Hardtype" Hack Download Latest: v1.48

Video Demos: #1 #2 #3

Dragonsbrethren

  • Forum Overlord
  • *
  • Posts: 1,820
    • View Profile
    • Dragonsbrethren Industries
Re: Learned spells not being added to list
« Reply #13 on: September 08, 2008, 12:32:15 AM »
Without Phoenix's hack it doesn't work properly, it doesn't get added to the list, it is displayed after battle though:



I should have specified that I meant with the hack. Even if you add it to Rydia's unused summon learning list, which should work, it won't work without the hack.

Phoenix: Spells from the third slot only get added to the third, spells from the second slot are added to the second and third, and spells from the first at added to all three.

Phoenix

  • FF4 Hacker
  • *
  • Posts: 456
    • View Profile
    • Phoenix Hacks
Re: Learned spells not being added to list
« Reply #14 on: September 08, 2008, 09:36:28 AM »
Thanks for the info, I'll work on a fix. I did indeed just skip the entire check -- I thought it wasn't necessary, but we can now see why it's in place. I'll work on it and post it when I have time to figure it out.