øAslickproductions.org/forum/index.php?PHPSESSID=5f0fck550j2m4m2fpbtkj2vkm1&action=profile;u=123;area=showposts;start=1425e:/My Web Sites/Slick Productions - FFIV Message Board/slickproductions.org/forum/index1574.htmlslickproductions.org/forum/index.php?PHPSESSID=5f0fck550j2m4m2fpbtkj2vkm1&action=profile;area=showposts;u=123e:/My Web Sites/Slick Productions - FFIV Message Board/slickproductions.org/forum/index1574.html.zx>òg^ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÈÀK¶\OKtext/htmlISO-8859-1gzip@øÕ¶\ÿÿÿÿÿÿÿÿTue, 10 Mar 2020 20:18:29 GMT0ó°° ®0®P®€§²ð®=òg^ÿÿÿÿÿÿÿÿà8¶\ Show Posts - Grimoire LD

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Grimoire LD

1426
General Discussion / Re: Hi
« on: February 01, 2013, 10:58:07 AM »
I remember when you were just a wee little hacker with an enthusiasm for Haruhi Suzumiya.
Oh god, don't remind me. :tongue: Believe it or not I'm turning 20 soon.

But I've definitely improved on the hacking front. I'm making clever use of my resources with my limited knowledge, and I have a few text patches out. I don't think I'll ever advance beyond that though, out of personal interest.

Ah, don't be so hard on yourself. When I was younger I thought there was no way I could even do simple ASM, or find things that I wanted to find of my own accord, but now that I'm older (and more knowledgeable?) going back to older games that I had a vested interest and cracking open a debugger is no longer foreign to me on what is going on. On this site alone you can see me going from quizzically not understanding much to being fairly knowing about some of the inner workings of things.

1427
Game Modification Station / Re: vivify93's FFIV hacking questions
« on: February 01, 2013, 10:54:14 AM »
The "T'"'s are placeholders or rather "placement settings". It likely kept whoever the poor script debugger was for the FFIV project in line with where he was in the script. (There's a T for every area, regardless if there is text or not, for instance.)

1428
Final Fantasy IV Research & Development / Re: "Twin" Command
« on: January 31, 2013, 08:06:43 PM »
I did some testing around and I recalled as a Kid that Twin and anything would cause FuSoYa to cast W. Meteo.

But then I wondered what would happen if FuSoYa were in a party with the twins. Who would get the priority? I obviously assumed it would be the Twins since they have the skill and FuSoYa doesn't but to my shock, FuSoYa seemed to have precedence over Twin when either of the Twins go to cast.

Even stranger! I have Palom (Top), FuSoYa (Middle), and Porom (Bottom) when I tell Porom to use Twin, both FuSoYa and Palom will start to cast but Palom, despite initiating the command, will not.

Looking at this thread I noticed there was some special priority for the character in the middle, so I switched Palom and FuSoYa, but still when Palom went to cast Twin, it was still he and the old man casting W. Meteo.

Hmm... things just got Very weird. I had Porom use Twin when Palom and FuSoYa's places had been switched. She was still ignored and though FuSoYa was in the middle of casting he could still act! When this is done, W. Meteo won't be cast but a normal Twin spell will be and MP will be taken from both FuSoYa and Palom.

So it would seem that whenever FuSoYa is in the party, Porom is overridden for Palom, unless Porom is in the first slot, then she will Twincast normally.

Porom and FuSoYa, when alone, can use Twin to cast W. Meteo, but not with Palom (as Palom will always take priority?) unless Porom is in the first slot.

Interesting little bit of functionality there.

 :edit: Looks like there's not a "Triple Cast" or anything like that. FuSoYa with the Mimic Avenger Sword, with Palom and Porom attempting to Twincast causes the system to crash after a failed Twincast.

1429
Heh, a lot of my free time as a kid was checking out Twin combinations, some outright froze the game. Some did not I don't recall finding anything peculiar though as in other skills that would be used. I am curious to know if FuSoYa is in a party with Palom and Porom if they will still Twincast with each other of if they will try with him?

But that's really a subject for another topic...

1430
It was only Kain/Cecil that I tested this on. I'll test it with a full team to see what happens...


Alright, I have a team of Dark Knight Cecil, Palom, Rydia, Yang, and FuSoYa and allowed everyone to equip the Avenger.

Yang (Top)
Rydia (Upper)
Cecil (Middle)
FuSoYa (Lower)
Palom (Bottom)

So far it seems that FuSoYa will only copy Palom. Hmm... might this have anything to do with Palom and He both being capable of Twin Magic? (When used together the two cast W. Meteo) Curiously W. Meteo doesn't take any MP. Bot sure if that was mentioned at all.

So not only do they Mimic the school of magic used. They will go as far as to use the Spell that was in their spot (I had Palom use a Modified Protect on himself that was in his second slot and FuSoYa reacted by using the spell that was in his second slot).

If the character has a spell they can't afford in that slot that is mimic'ed the game will surprisingly say "Not Enough MP" after the casting is attempted.

It is not tied to Slot, it is tied to character. Specifically with the Avenger on FuSoYa he is tied to Palom's moves, no matter where Palom is placed as bizarre as that seems. But if it's Palom... I wonder...

Do you think that maybe they had originally intended the "Twins" behavior to Literally mirror one another? (I'll edit this post as I find out more)

Hmm, this is peculiar... I put the Avenger sword on Palom now and the first turn he will mimic Cecil's actions. The next turn he will mimic FuSoYa's actions...

Third and Fourth turns he still seems to follow FuSoYa, but the fifth he follows Cecil.

Sixth he follows Cecil, seventh he follows FuSoYa.

If. when he's mirroring Cecil, Cecil uses Dark Wave, he will start a Twincast with FuSoYa and cast W. Meteo.

If I try to jump with Palom attempting to mirror Cecil, the game crashes.

Yet when Cecil uses Peep, Palom looks like he does something, but nothing happens.

When the character uses a spell outside the limits of the Mimic's own spell list they will attempt to cast a White Magic Spell which says "nothing happened" (Likely Spell 00)

Rydia will mimic FuSoYa for a couple of turns and then change to Palom, switch to Cecil, then back to FuSoYa. I have no idea how this order is determined, but it does not seem random.

After two turns of mimicking Palom, Yang stopped acting all together, regardless of who acted.

Dark Knight Cecil, after mimicking FuSoYa consecutively for four turns, then switched to Rydia.

So that's been interesting. Now I'll try out the twins, to see how that all reacts, and then move onto the final team since that's the only time to have the Avenger.

A team of Palom/Porom/Cecil, will have Porom mimicking Cecil on the first action, then Palom on the second. Then Cecil for a few more, than Palom again. Hmm... I'll give the Avenger to Palom and see where that goes.

Interesting... when Palom has the Avenger and Porom attempts to use Twin, they both move to use it, but nothing happens. It seems that with two people the game will mimic each character, or at least that's the case with Palom and the Avenger. When Cecil took an action, he took an action, when Porom took an action, he took an action.

With the normal group of five, Paladin Cecil with the Avenger will mimic Edge for several turns, and then mimic Rosa, then Kain, then Rydia, then Edge for three more turns, than Rydia, than Rosa, than Rydia, than Edge. (So on and so forth)


The rest  follow different patterns in that regard.


So it would appear to me that this was intelligently put together, but something must not have sat right with the code. Testers may not have liked the particular patterns or some such or possibly they just never finished fully programming its functionality. I do know though it is far too elaborately put together to be a simple glitch.

1431
To comment on this, the phenomenon is Very clear when you remove Berserk from the Avenger Sword.

If you ask me the Avenger Sword was not originally meant to be an Auto-Berserk Weapon but possibly a Mime weapon, here are my notes on what I saw...

"So I started looking into why the Avenger causes Berserk... then things got weird...

Following it a short ways when equipped in battle I came across a 04 which was being put into 7E2004 (The Status Byte) so I changed it and the status appeared to work, but Cecil first used the Avenger as an Item before proceeding to attack (While petrified mind you).

Then thinking that maybe if I just disabled the status byte all together, maybe that would solve the problems? No. No it did not.

What it did... and this is kind of difficult to believe, was had Cecil Mirror every Move Kain would do. Kain fights, Cecil would fight, Kain Jumps, Cecil would use Dark Wave, Kain uses an Item, Cecil will attempt to use the same item. Cecil would even go so far to try and cast spells that Kain had used.

If Kain has yet to act Cecil will just continue to use the Avenger as an item, as odd as that is.

It's almost like a proto-type Mimic class from later FF's. I can't say I Ever expected to find behavior like that present in FFIV."

They could have easily made this just an Auto-Berserk Weapon without that highly odd caveat that copies another character's commands (which explains why the Berserked User won't start to act until another party member does because the game may be "waiting" for an action to "Copy".

1432
Certainly, It would be interesting to see what could be the issue in that regards. (Not to mention to have that available as well, hehe.)

1433
I believe he means Location Labels like "Town of Baron", "Baron Castle", etc.

1434
Alright I've been taking a look at Aim now and yes, it seems that Phoenix was right. The game loads FF into a Mirror Data of Accuracy. But I have seen a low level Edward with Aim miss and not infrequently against Imps. Is there something else that's going on here?

 I'm currently looking how an FF gets put in there...

Found it. Aim is programmed in a way which makes it Very difficult to change without significantly modifying its code. This is how it works... It starts out as a 0000 Accumulator. Then it is Decremented once. Resetting it to FF. And there you have it. That's how the game gets the FF. Maybe taking a further look at the data will show me a solution, hmm...

Well here's the relevant data before it gets pushed into other sectors.

Code: [Select]
$03/E836 AD 9C 26 LDA $269C  [$7E:269C] A:0003 X:0018 Y:0000 Load Edward's Accuracy into A.
$03/E839 48 PHA A:002F X:0018 Y:0000 Push A (Not really sure what that means in this case)
$03/E83A AD 29 27 LDA $2729  [$7E:2729] A:002F X:0018 Y:0000 Load A into 7E2729 (The Mirror Data for First Character)
$03/E83D 48 PHA A:0000 X:0018 Y:0000 Push A (No idea)
$03/E83E 7B TDC A:0000 X:0018 Y:0000    Transfer something... I don't see it's relevance here.
$03/E83F 8D 29 27 STA $2729  [$7E:2729] A:0000 X:0018 Y:0000 Store A in 7E2729 (Highly redundant, isn't it? Why not just change it to 00 above rather than putting in an Accuracy which will be overwritten in several instructions?)
$03/E842 3A DEC A A:0000 X:0018 Y:0000 -1 From A, making it 00FF
$03/E843 8D 9C 26 STA $269C  [$7E:269C] A:00FF X:0018 Y:0000 Store A in True Accuracy

I'll try to comment...

This to me screams of redundant code. I cannot figure out why it pampers a value for several commands that it soon erases entirely? I think there may be room to change Aim to make it merely double accuracy (by using some Shift Right Logical commands... I think?) Instead of 255 "Always Hits".

But DragonsBrethren is much better at stuff like rewriting commands than I am. So I'll leave any actual modifications in that regard to him.

1435
I think I may have found the means to nerf Jump...

03E980 - 09 02 (Status to Inflict on person using Jump - NOTE: Not responsible for the actual jumping portion, but does seem to deal something with the damage done, when changed to Not 02 or not 00, the character will seem inflicted by Doom but the counter will read 00 and nothing will happen.)

Unfortunately all of my other efforts to find how Jump is used has gone nowhere. I found what appeared to be the Jump Status, but when changed the character Jumping will never return from their jump.


In other news I managed to find out how the game looks at what needs to be equipped to use certain skills. The entire collection is bunched together so it's not a difficult thing to figure out.

By changing these you can then set them towards different skills like say that you want a Two-Handed weapon equipped to use Jump instead of Sing (because that makes no sense, Edward doesn't even Use a Harp in his Sing command animation)

In RAM at...

03A28E - C9 05 (Compare with Dark Wave's Command)
03A292 - C9 08 (Compare with Sing's Command)
03A296 - C9 0C (Compare with Aim's Command)
03A29A - C9 10 (Compare with Twin's Command)


I'll hopefully be able to find out the direct relation between ranges for these four commands (or rather three. Because Twin is something extra special without doubt) For reference here is all the Commands in Hex

(From the Tower of Babil Docs)

#  Name  Tg Comments
-- ----  -- --------
00 Fight 50 one ally/enemy
01 Item  00 opens a sub-menu
02 White 00 opens a sub-menu
03 Black 00 opens a sub-menu
04 Call  00 opens a sub-menu
05 Dummy 60 all enemy (Dark Wave)
06 Jump  58 one ally/enemy
07 Dummy 60 all enemy (Remember)
08 Sing  50 one enemy
09 Hide  00
0A Dummy 20 all allies (Medicine)
0B Dummy 20 all allies (Pray)
0C Aim   50 one ally/enemy
0D Dummy 50 one enemy (Store)
0E Kick  60 all enemy
0F Dummy 00 (Endure)
10 Twin  60 all enemy
11 Dummy 00 (Strengthen)
12 Dummy 60 all enemies (Cry)
13 Cover 18 one ally
14 Peep  58 one ally/enemy
15 Dummy 60 (Unknown and unused command)
16 Dart  50 one ally/enemy
17 Sneak 50 one ally/enemy
18 Ninja 00 opens a sub-menu
19 Dummy 28 all allies (Spirit Wave)
1A Chang -- Yes, this really is "Chang" in the ROM; I don't know where the e
            gets put in.
1B Parry --
1C Show  --
1D Off   --

 :edit: Alright! Found the item ranges that the game looks at for Commands. They are quite close to the original offsets above.



03A2F8 - C9 61 (If the Weapon value is this or above this (or 00?) Dark Wave cannot be used)
03A304 - C9 61 (Unsure, it does not appear to effect Dark Wave (May be Equipped Hand)

03A30E - C9 44 (If the value is this or above this, Sing can be used)
03A312 - C9 4D (If the value is this or above this, Sing cannot be used)
03A31C - C9 44 (I'm beginning to wonder if maybe these are Hand dealings? But every character that has a special command like this is Right Handed, curiously enough. I guess it shows them to be thorough. For now on I'll mark these as "Right" and "Left" handed. )
03A320 - C9 4D (Left Handed - If the value is this or above this Sing cannot be used)

03A32A - C9 54 (Right Handed - If the value is this or above this Aim can be used.
03A32E - C9 61 (Right Handed - If the values it this or above this Aim cannot be used (Looking for Bow? This would hint that Aim can be used with two Arrows equipped or two bows... well I'll give it a shot... Yep. Looks like it's right. Aim can be used with Two Bows or Two Arrows. An interesting non-check. Good on the programmers.)

Interestingly enough there is no duplicate data for Left/Right handed for Bows/Arrows.


And unfortunately as I thought, looks like Twin wasn't going to be in here.


The possibilities are immense! Do you want to make magic require a Staff or Rod equipped? Or for Dark Wave to actually require a Dark Sword? How about a Whip to use Call, or Two Handed Weapon for Jump?

While there are plenty of possibilities, there's only three that can be utilized. You may change Dark Wave's limits to another command and restrict (or expand?) the range of which it can be used (In example, Require Rosa to use a Staff to use a (better?) Pray.)

And the same applies for the other commands! This opens up a lot for me and I hope it helps you all as well!


In ROM this is located at...

01A48E - C9 05 (Compare with Dark Wave's Command)
01A492 - C9 08 (Compare with Sing's Command)
01A496 - C9 0C (Compare with Aim's Command)
01A49A - C9 10 (Compare with Twin's Command)


01A4F8 - C9 61 (Right Handed - If the Weapon value is this or above this (or 00?) Dark Wave cannot be used)
01A504 - C9 61 (Left Handed -  If the Weapon value is this or above this (or 00?) Dark Wave cannot be used (May be Equipped Hand)

01A50E - C9 44 (Right Handed - If the value is this or above this, Sing can be used)
01A512 - C9 4D (Right Handed - If the value is this or above this, Sing cannot be used)
01A51C - C9 44 (Left Handed  - If the value is this or above this, Sing can be used)
01A520 - C9 4D (Left Handed - If the value is this or above this Sing cannot be used)

01A52A - C9 54 ( - If the value is this or above this Aim can be used.
01A52E - C9 61 (Right Handed - If the values it this or above this Aim cannot be used (Looking for Bow? This would hint that Aim can be used with two Arrows equipped or two bows... well I'll give it a shot... Yep. Looks like it's right. Aim can be used with Two Bows or Two Arrows. An interesting non-check. Good on the programmers.)

 :edit: 2 -

I've taken another look about the surrounding data and I noticed an interesting pattern...

03A2F3 - BD 33 20 (7E2033 the location of the character's Right Hand Weapon)
03A2F6 - F0 07 (???)
03A2F8 - C9 61 (Right Handed Dark Wave Ranges)

In essence this means you can switch What it requires for you to use a particular command (in using the Character Data Table a few posts up). I find it difficult to think of a skill that would require that, but that's now a possibility. This data is always two bytes separated from the main Command Range, but if someone would like me to record their exact ROM locations, I can do it on request.


1436
Final Fantasy IV Research & Development / Re: Aim Command
« on: January 30, 2013, 01:42:01 PM »
In order to use the Aim command you must have a Bow equipped on one hand and any other item in the other hand. Contrary to what I had thought Aim cannot be used by simply having two items equipped, but requires at least a Bow.

1437
Final Fantasy IV Research & Development / Re: FF4PSP - Journey Log
« on: January 29, 2013, 10:17:55 AM »
Hmm, a level based attack? Wish I could find where some of these formulas are  or even how to identify what formulas look like in Hex, bah.

Interesting information there about Advent of the Phoenix. I really have to wonder why it deals 10% more damage when it's Fire Elemental to a Fire Resistant monster. Does it react this way to other Fire resistant foes?

1438
I updated the file on the timecave. Menus now feature a Page Up / Page Down funciton, as well as an "index toggle". Pressing the slash key "/" in any menu will add indexes to the front of the options (or remove them). This will help for things with index references, but it may not be as useful in some menus than in others. For example, the item menus in the actor starting equipment will not have the actual index of the item, since it is only a partial list. This functionality has not been fully tested yet so there may be a few strange things but it will not affect the roms in any way, as it only affects the display and not anything in the underlying data.


Oh man... you have no idea how nice PgUp/PgDown working is! Everything becomes so much more fluid, no more time holding down, getting lag, missing your target, scrolling back up, etc. A great addition!

Looks like Indexes work great! Very helpful for items/commands and event editing (since you know what each command is numbered)

I got very excited when I clicked on Map Info and saw a list of maps, but alas clicking on it took me back to the menu, too cruel PinkPuff! Haha!

Great work, neat little additions which increase user-friendlyness. Looking forward to the next update.

1439
Easy enough to test! I'll try it out...

Yep! Looks like Deathlike2 was correct. Setting Gird to cast Berserk, will throw the Auto-Girding character into Berserk.

Tested it with Dispel as well and he will continue to cast Gird on himself until he's re-Berserked and it he gets out of critical range, and you cast Dispel, he will not continue to cast Berserk.

1440
Well I've made some headway on Hide, but I'm still missing a piece... In any case I managed to turn off Auto-Hide on Edward (Leaving him in a state of inaction, there's still something I'm missing here...), you can now change it to Auto-Command anything you like (As long as it involves allies or hits all enemies otherwise it will be used upon Edward) So in other words... Dark Wave, Hide (Really?!), Pray,  Kick, Endure, Bluff, Cry, Regen, and Parry. It has limited use, really. But, in my opinion, some of those options are better than Hide.

In RAM at...

03AB56 C9 05 (Compare A with 05) - Character ID of the character that will Hide of its own volition when in Critical)

03AD0B A9 09 (Command the Character who ordinarily Hides will perform on themselves)

As I had thought, I was missing Just one piece and after some more data-diving I managed to find that final piece.




You may now set Auto-Hide (Or Auto-Pray, Auto-Regen, Auto-Salve, whatever you wish (as long as it targets You!) on whoever you wish! Do you want Rosa to take emergency precautions and use Pray automatically (very often as well) until she gets herself out of Critical? Or how about Edward actually uses Salve until he escapes Critical?

It has its uses. And above all, you can easily change it to 00 so Edward no longer Auto-Hides!

In RAM at...

03A407 - C9 05 (Character ID of the character that, if they happen to have Auto-Hide, will auto-hide even when their menu is shown)

03AB56 -  C9 05  (Character ID of the character that will Hide of its own volition when in Critical)

03AD0B -  A9 09 (The Command the Character who ordinarily Hides will perform on themselves)

In ROM at...


0x1A607  - C9 05 (Character ID of the character that, if they happen to have Auto-Hide, will auto-hide even when their menu is shown)

0x1AD56 -  C9 05  (Character ID of the character that will Hide of its own volition when in Critical)

0x1AF0B -  A9 09 (The Command the Character who ordinarily Hides will perform on themselves)

The only thing I am missing from Hide is its targeting, and I don't know if that refers to the normal command's targeting or not.