News: 11 March 2016 - Forum Rules
Current Moderators - DarkSol, KingMike, MathOnNapkins, Azkadellia, Danke

Author Topic: Final Fantasy IV - 3D Magic Lists (GBA & PSP)  (Read 1433 times)

PowerPanda

  • Full Member
  • ***
  • Posts: 146
    • View Profile
Final Fantasy IV - 3D Magic Lists (GBA & PSP)
« on: May 23, 2020, 10:01:40 pm »
A few weeks ago, I had the urge to play FFIV again for the first time since my childhood. I wanted to play the original game before I tried out any of the great hacks available on this website. I agonized over whether to play the 2D Complete Collection on the PSP or the 3D remake on PC, followed by the 3D remake of After Years (all of which I had acquired over the years). The 2D version had the right feel for the game, but I liked a lot of the additions that the 3D version made. But the 2D version had the Interlude chapter. But the 3D version had extra story scenes. But the 2D version let you add Yang, Cid, Palom, and Porom back into your party at the end. But the 3D version let you just add their abilities onto other characters with augments. And so on and so on.

Finally, I just decided to play until Cecil became a Paladin in both version, and then keep playing whichever one felt more natural. I landed on the PSP Complete Collection. To make the Complete Collection feel like the definitive version, I wanted to figure out how to expand Cecil's spell list to the 3D list, adding in Protect, Shell, and Raise to make him a much more versatile magic user in the end game. I thought it would be a quick project. I was wrong. Nobody had mapped any code in the PSP version. I knew the code was based off of the GBA version, so I dug out a rom of that and stared working backwards. I will be uploading my notes to the documents section so that everyone has access to it. Anyway, because I started with the GBA version, there was no reason to not make the same changes there too. So I am offering this mod for both the GBA and PSP versions. For the PSP version, the mod is for both the original game and the Interlude chapter.

Details:
This mod adds the additional white magic spells from the 3D version of the game back into the 2D version. It's not a 1:1 match though. The games have a different leveling progression system, so I have placed the spells at levels where they would make sense in the 2D version. The final magic lists are as follows (new spells marked with an asterix):

-=Cecil's White Magic=-
Lvl   Spell
0   Cure
3   Sight
8   Libra
10*   Protect
15   Cura
19   Teleport
22*   Shell
27   Esuna
30*   Life/Raise

Interlude: Cecil starts with all 9 spells.

-=Rydia's White Magic=-
Lvl   Spell
3   Cure
4   Sight
7   Hold
9*   Confuse
11*   Esuna
14*   Cura
16*   Life/Raise

Releases:
Documentation:
FF4 Advance Command Pointers - https://www.romhacking.net/documents/812/
FF4 Advance Spell List Data - https://www.romhacking.net/documents/814/
FF4 CC (PSP) Spell List Data - https://www.romhacking.net/documents/815/

Patches:
FF4 Advance 3D Magic - https://www.romhacking.net/hacks/5168/
FF4 Complete Collection 3D Magic - https://www.romhacking.net/hacks/5200/

One other thing:
In digging through the PSP code, I found something surprising. The additional Ninjutsu spells from The After Years are all present and functional, aside from "Frost" (which is basically the White Fang item anyway). They are not finished though. In the 3D versions, Edge has 3 of the additional Ninjutsu spells, Gale, Tremor, and Frost. If anyone is interested in trying to get this dummied content working, I'm happy to share notes with you.
« Last Edit: June 09, 2020, 02:29:17 pm by PowerPanda »

Vanya

  • Hero Member
  • *****
  • Posts: 1722
    • View Profile
Re: Final Fantasy IV - 3D Magic Lists (GBA & PSP)
« Reply #1 on: May 24, 2020, 12:38:40 pm »
Cool stuff!
I do like the PSP games quite a bit.
I really wish they had made V and VI in that style.
In fact I welcome any information that could be helpful in hacking these games as it may lead to some very nice projects in the future.

PowerPanda

  • Full Member
  • ***
  • Posts: 146
    • View Profile
Re: Final Fantasy IV - 3D Magic Lists (GBA & PSP)
« Reply #2 on: May 24, 2020, 03:01:15 pm »
Cool stuff!
I do like the PSP games quite a bit.
I really wish they had made V and VI in that style.
In fact I welcome any information that could be helpful in hacking these games as it may lead to some very nice projects in the future.

I'd love to see the PSP version become the go-to version for hacking. I understand the nostalgia for the original SNES game, but I feel like the PSP version is the first (and only) version of the game released outside of Japan that got everything right.

Madsiur

  • RHDN Patreon Supporter!
  • Full Member
  • *****
  • Posts: 179
  • FF6 hacker
    • View Profile
Re: Final Fantasy IV - 3D Magic Lists (GBA & PSP)
« Reply #3 on: May 25, 2020, 10:20:19 am »
That's a pretty cool hack! I also agree FFIV:CC is the ultimate FFIV version but until there is more documentation on the game code or an all-purpose editor made for it, people will still hack the SNES version more for accessibility reasons. FF6A suffered a bit the same fate compared to FF3us.

Grimoire LD

  • Sr. Member
  • ****
  • Posts: 449
    • View Profile
Re: Final Fantasy IV - 3D Magic Lists (GBA & PSP)
« Reply #4 on: May 25, 2020, 11:09:22 am »
I only hope the code has been cleaned up from the GBA version. Everything has put together a rather comprehensive editor for FFIV:A at this point and the event coding is the stuff of nightmares. That makes me shudder at what the battle programming must amount to.

Since they made three games with this engine, I hope the data management methods they used should be rather intact and malleable. Best case scenario, all of the files for the game can be accessed from any game in it. Worst case scenario, it's another TOSE hack job held together by glue and tape.

PowerPanda

  • Full Member
  • ***
  • Posts: 146
    • View Profile
Re: Final Fantasy IV - 3D Magic Lists (GBA & PSP)
« Reply #5 on: May 25, 2020, 03:18:36 pm »
FF6A suffered a bit the same fate compared to FF3us.

As an active hacker of FF6, I can say that's not quite it. The GBA version doesn't add any obvious advantages over the SNES version, besides the tacked-on content that doesn't really fit with the rest of the game. In order to get that content, you need to sacrifice color depth, musical fidelity, screen height, and ease of emulation. For many, it's just seen as not worth the effort.

Looking into the FF4:CC PSP code a bit, it seems the biggest hurdle is going to be repacking the iso. I still haven't figured out how to do it.  :banghead:

PowerPanda

  • Full Member
  • ***
  • Posts: 146
    • View Profile
Re: Final Fantasy IV - 3D Magic Lists (GBA & PSP)
« Reply #6 on: June 08, 2020, 12:21:08 pm »
Update. Most of this project has been posted. I'm just waiting on the PSP version to be approved.

Documentation:
FF4 Advance Command Pointers - https://www.romhacking.net/documents/812/
FF4 Advance Spell List Data - https://www.romhacking.net/documents/814/
FF4 CC (PSP) Spell List Data - https://www.romhacking.net/documents/815/

Patches:
FF4 Advance 3D Magic - https://www.romhacking.net/hacks/5168/
[EDIT]FF4 Complete Collection 3D Magic - https://www.romhacking.net/hacks/5200/

The document for the PSP Spell List Data contains some interesting tidbits. There are 3 white magic spells (Heal, Basuna, Poisana) and 2 black magic spells (Mage Arrows, Dancing Daggers), that are fully-functional, except that they don't cost MP. Also, all of The After Years's additional spells, minus Frost, are in the original game's code in an unfinished state (targeting data, spell damage, menu text, and MP may or may not be missing). If I can figure out how to finish out the missing data, Edge could get a massive upgrade.
« Last Edit: June 09, 2020, 02:29:38 pm by PowerPanda »

Grimoire LD

  • Sr. Member
  • ****
  • Posts: 449
    • View Profile
Re: Final Fantasy IV - 3D Magic Lists (GBA & PSP)
« Reply #7 on: June 08, 2020, 10:08:54 pm »
The spells you're referring to are Item only spells. Heal is used by the Healing Staff, Basuna is used by the Mythril Staff and Poisona is used by the normal Staff. Mage Arrows is used by the Rod and Dancing Daggers is used by... the Dancing Dagger, haha.

It is interesting to see that the TAY spells are in FFIV, I wonder if there's a way to give them their proper data?

PowerPanda

  • Full Member
  • ***
  • Posts: 146
    • View Profile
Re: Final Fantasy IV - 3D Magic Lists (GBA & PSP)
« Reply #8 on: June 09, 2020, 10:56:49 am »
The spells you're referring to are Item only spells. Heal is used by the Healing Staff, Basuna is used by the Mythril Staff and Poisona is used by the normal Staff. Mage Arrows is used by the Rod and Dancing Daggers is used by... the Dancing Dagger, haha.

It is interesting to see that the TAY spells are in FFIV, I wonder if there's a way to give them their proper data?

Yes, I knew about the item spells. The reason I bring them up in the PSP version is that I tried to hack them into the GBA version, and it didn't work. There are some additional restrictions on which spells can go on which spell list.

For TAY spells, I'm assuming that there's just a line of hex code that I could modify to set the casting time, targeting data, power, hit %, effect, element, and MP cost. It's probably even identical to the GBA format for spell data. I just have to FIND it. Unfortunately, the hex arrangement differs from the SNES version, which is the only version I've been able to find documentation on. I'm not actually a programmer; I'm stuck just staring at hex values until I can make some sense of them.  :laugh: