øAslickproductions.org/forum/index.php?PHPSESSID=5f0fck550j2m4m2fpbtkj2vkm1&action=profile;u=123;area=showposts;start=1455e:/My Web Sites/Slick Productions - FFIV Message Board/slickproductions.org/forum/indexbef7.htmlslickproductions.org/forum/index.php?PHPSESSID=5f0fck550j2m4m2fpbtkj2vkm1&action=profile;area=showposts;u=123e:/My Web Sites/Slick Productions - FFIV Message Board/slickproductions.org/forum/indexbef7.html.zx>òg^ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÈÀK·iOKtext/htmlISO-8859-1gzip8:Ö·iÿÿÿÿÿÿÿÿTue, 10 Mar 2020 20:18:30 GMT0ó°° ®0®P®€§²ð®>òg^ÿÿÿÿÿÿÿÿ›7·i 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

1456
This is absolutely fantastic news! Grimoire, you are my new hero. You really went above and beyond the call on this one! We now have:

* Two-handed-ness (basically)
* Key-item-ness
* Equips-like-bow
* Eqiups-like-arrow
* Shields
* Helmets

(though, not body/arms? still... awesome)

This will all be incorporated into the editor in the near future, but I'm not sure how much time it will take as I will need to fool around with the interface a little to accomodate this new information. Just to make sure, are all these addresses for headered v1.1?

Thanks PinkPuff! I suggest waiting on the Bow and Arrow, I've come across index ranges (like those of the Two-handed weapons among a few other things. I will need to research those more thoroughly before I can really say that they are usable.

As for Helmets... I wouldn't say that's the case. I don't know why it's looking at that area (maybe just to say that is where Armor begins) but there will be more to it than just that one CMP, I'm quite sure. I'll be getting to all of this in short order though.

Since I am using FF4kster to get quick access to various things, and it works without issue I would say this is a headered 1.1 version.

1457
Minor Update - I found how the game looks at Key Items. It was a very simple check.  Set the breakpoint to the Legend Sword's slot. See when the Legend Sword was being Read, try to throw it away, see why it can't be thrown away.

It was a simple (our old friend) C9 19, CMP 19. Right above that was the check to the rest of the Key Items.

In RAM at...


0x01A397 - C9 19 - Legend Sword, Key Item Status

0x01A39F - C9 EC - All other Key Items (I'm not sure why it supposedly starts above EC and a few others...)

0x01A245 - CMP E2 (Tent?)
0x01A249 - CMP E3 (Cabin?)
0x01A324 - CMP ED (Chocobo Whistle) Looks like 1AXXX seems like a good place to look around for those odder item dealings.

 :edit: A note with these item CMP's. Aside from the Key Item search, all the others are looking at That specific value. So say... for whatever reason you want a "Chocobo Sword" (It will still be greyed out in a normal menu)and that sword is Value 16. You would then change  the value of ED to 16 and voila. Using the Sword would call the Big Chocobo. And if you didn't want the sword in this example to disappear after use, you would change

DE 41 14   DEC $1441,x[$7E:1441]   A:00ED   X:0000   Y:6800   P:envMxdIZC to a Nop (I think! Dragonsbrethren can probably think of an easier way.)

1458
So I have some good news and I have some... strange news.

Good news is I found out how the game makes Two-handed weapons work! It wasn't a "CMP" byte like I expected it to be, but a value stored in the X Register of 4C44 (which is looking at the data between 44 and 4C. If you switch that index you can make items that weren't two handed, two handed. But this comes with a strange caveat...

Despite it specifically looking for weapons that are 44-4C it will still count default Two-handed weapons as two handed. You can even make a Two-Handed shield (when Defense is the best priority?) You can sadly not have "Two-Handed" Armor of any type, the game will just ignore the input indexes.

So we're nearly there! If I can just find this other range (if it exists) than Two-Handed weapons are ours to manipulate.

This data is located in RAM at...

01C02A - A2 44 4C - (Change the range of 44-4C to anything you like, say you want Kain's Spears to be two handed, per instance you would change this to 23 2A. That is only for the Weapon side of things though. The Shield side is located at...

01C02F - A2 44 4C - (As above change the Range and the game will read (If Shield then...) for the Two-handed weapons.

In ROM this is at...

0xC22A - A2 44 4C
0xC22F - A2 44 4C



We're so close now! Hopefully I can update this with an Edit, to say I've found the original range, but this in itself is quite interesting...

Did they originally intend for there to be two sets of Two Handed Equipment, rather than all shoved into one section?  Since these values apparently have no effect on normal Two-handed weapons. As of now this only works outside of battle. Inside of battle the "new" Two-Handed Equipment is treated no differently than normal,  need to track down a few more values it would appear.


 :edit: Woohoo! I found how Two Handed Weapons are calculated...! In battle. (So now I've got one side in battle and one side outside of battle, how odd.) While outside of battle there exists two ranges that the game is apparently looking at, no such thing exists for in battle, unfortunately (as far as I could see) In battle uses a simple CMP 44, as I expected it to do.

I found it by breakpointing on the Item Location of the Shadow Shield and (painstakingly since I basically had to hold down Enter, click left, see if it registered (since the breakpoint is continually going off)  click up, and A) and for one tiny sliver of opportunity to present itself, when the Equip fails. After several tries I finally got it and followed it to a Bunch of CMP values (this will prove useful) and CMP 44 was among them. So inside of battle now we can change the range (only the Range can be changed unfortunately, so you can start Two-Handed weapons earlier or later than original. I'm going to post the Instructions, since Dragonsbrethren can better understand them to see if I missed anything.




Code: [Select]
$03/F30F D0 04 BNE $04    [$F315] A:0049 X:0000 Y:0000 P:envMxdIzc
$03/F315 C9 44 CMP #$44 A:0049 X:0000 Y:0000 P:envMxdIzc
$03/F317 B0 04 BCS $04    [$F31D] A:0049 X:0000 Y:0000 P:envMxdIzC
$03/F31D C9 4D CMP #$4D A:0049 X:0000 Y:0000 P:envMxdIzC
$03/F31F B0 04 BCS $04    [$F325] A:0049 X:0000 Y:0000 P:eNvMxdIzc
$03/F321 A9 02 LDA #$02 A:0049 X:0000 Y:0000 P:eNvMxdIzc
$03/F323 80 1B BRA $1B    [$F340] A:0002 X:0000 Y:0000 P:envMxdIzc
$03/F340 85 0F STA $0F    [$00:000F] A:0002 X:0000 Y:0000 P:envMxdIzc
$03/F342 AD 95 28 LDA $2895  [$7E:2895] A:0002 X:0000 Y:0000 P:envMxdIzc
$03/F345 D0 04 BNE $04    [$F34B] A:0062 X:0000 Y:0000 P:envMxdIzc
$03/F34B C9 44 CMP #$44 A:0062 X:0000 Y:0000 P:envMxdIzc
$03/F34D B0 04 BCS $04    [$F353] A:0062 X:0000 Y:0000 P:envMxdIzC
$03/F353 C9 4D CMP #$4D A:0062 X:0000 Y:0000 P:envMxdIzC
$03/F355 B0 04 BCS $04    [$F35B] A:0062 X:0000 Y:0000 P:envMxdIzC
$03/F35B C9 54 CMP #$54 A:0062 X:0000 Y:0000 P:envMxdIzC
$03/F35D B0 04 BCS $04    [$F363] A:0062 X:0000 Y:0000 P:envMxdIzC
$03/F363 C9 61 CMP #$61 A:0062 X:0000 Y:0000 P:envMxdIzC
$03/F365 B0 04 BCS $04    [$F36B] A:0062 X:0000 Y:0000 P:envMxdIzC
$03/F36B C9 6D CMP #$6D A:0062 X:0000 Y:0000 P:envMxdIzC
$03/F36D B0 04 BCS $04    [$F373] A:0062 X:0000 Y:0000 P:eNvMxdIzc
$03/F36F A9 10 LDA #$10 A:0062 X:0000 Y:0000 P:eNvMxdIzc
$03/F371 80 03 BRA $03    [$F376] A:0010 X:0000 Y:0000 P:envMxdIzc
$03/F376 85 0E STA $0E    [$00:000E] A:0010 X:0000 Y:0000 P:envMxdIzc
$03/F378 AD 22 18 LDA $1822  [$7E:1822] A:0010 X:0000 Y:0000 P:envMxdIzc
$03/F37B C2 20 REP #$20 A:0000 X:0000 Y:0000 P:envMxdIZc


As before there are two checks, but I'm not entirely sure what the second one is doing since you can dequip the Two Handed weapon and re-equip it with the Shield still on, so it doesn't act like the instructions in the first part.

(Though it is written right above...)

This is located in RAM at...

03F315 - C9 44 (Change the 44 to where ever you want the Two-Handed weapons to start)

03F34B - C9 44 (Not sure what it's doing, but it's likely best to change this to whatever value you are changing the above to)

In ROM at...

0x1F515 - C9 44

0x1F54B - C9 44

And if I'm not mistaken the other CMP's are listing Bows and Arrows.

CMP 4D is where the Bows start
CMP 54 is where Arrows start
CMP 61 is where Shields start
CMP 6D is where Helmets start (No idea why that's being compared) So some further things to keep in mind. (And will likely get a post in on these in time)


 :edit: And we are done! I have figured out all aspects of Two-handedness! (Sort of, not really, still missing the range on what you can and can't equip while under Two-Handedness, hopefully I can find that, but it's not really too important, in my opinion.)It doesn't have any effect on the normal Two-Handed weapons because of a second check that the game has (quite redundant if you ask me...) that CMP's it with a 43 (which was what was throwing me off for a long time.)

It seems what I had found above was the first part of it...

Quote
In ROM this is at...

0xC22A - A2 44 4C
0xC22F - A2 44 4C

You change those to two values (but keep in mind, anything that comes after this will count as bows, so to be safe, it's best to keep the end indexes more or less the same, unless you plan to change the amount of bows to be less/more.)

As before there are two checks (Well technically 3, but changing that one or keeping it at 43 does not appear to make any visible difference) One for the Weapon and one for the Shield.

They are in RAM at...

1C045 - 00 43 (Change this to any value that you want the Two-Handed weapons to begin, this is the Shield check to see if you can Equip X weapon with a Shield already on)
1C075 - 00 43 (As above, this is the Weapon check to see if you can Equip a Shield with X weapon on.)

And in ROM at...

0xC245
0xC275

And in total to make more (or less) Two-Handed weapons follow these steps.

1. Go to 0xC22A - A2 44 4C, 0xC22F - A2 44 4C and change those to where ever you want Two-Handed Weapons to start and end (Keep in mind that after Two-Handed comes Bows, so be careful what what you set here, since the actual checks do not have an "end range" unfortunately)

2.  Go to 0xC245- A2 00 44, 0xC275 - A2 00 44 and change those to the second value you chose above.

3. Go to  0x1F515 - C9 44, 0x1F54B - C9 44 and change the 44 to the value above for a starting point to the Two-Handed Weapons.

There we go, The range of Two-Handed weapons altered in 3 easy steps!







And that should cover it for Two-Handedness. At least for now. If anyone has anything else they'd like me to look up about that functionality, please let me know.



1459
It is not possible to boost magic evasion permanently... because there are formulas at work that recalculate themselves when you show up to the equip screen (think like FF1's Monk Bug).

Bad example on my part, yes. It's possible to increase the five basic stats and change your identity/class, but not evasions and the like.

1460
Ah, it adds so much more variety when the modder is allowed to put their own indexes in (and not to mention allows usage of a whole bunch of blank indexes.)  It is really great to finally have that, now it feels like work can begin in earnest (with frequent backups, of course).

Quote from: PinkPuff
You mean the properties like "stackable", "multiples in chests", "consumable", etc? Yeah I'd like to include those. Since you seem to be still actively researching it I'll probably remain focused on other things for now but at some point I will definitely go back and put flags for those into the weapon editor. Also, while those are most of the properties required to make something into an "arrow", there are still a couple missing: "can equip either hand" and "deals more damage in one hand than the other" (though that might just be a bow thing? still would be good to know)

I'm really interested in the research on two-handedness though, that would be the real holy grail for weapon properties! If it turns out that we can only change the range in terms of where it starts and can't actually change the total number of two-handed weapons then that would be kinda disappointing, but if we can change the range to include more weapons (or less) then that would be fantastic! And if it turns out to be settable by individual weapon, even better!

Yes, that's partially what I meant, but I also meant the Stat Boosting Items to change whatever you wish (Like say you want the Golden Apple to increase Strength by 3 rather than increase HP by 100, or want the Soma Drop to boost Permanent Magic Evasion, or some such) and the slight bit of work I've done with Commands (really the only stable thing in there is the Steal Slot 1-4 on an enemy and Dragonsbrethren figuring out how to make Cecil take no damage from Dark Wave) I would be wary of using any of my Bluff notes at the current time.


1461
Looks like it works, thanks for the fix there.

Also I was curious to know if you planned on allowing us to edit the indexes, like the Status Indexes, Equip indexes, as well as allowing the break-bytes on normal weapons (since they do function appropriately) also do my recent findings have any place in the editor, or would it be best for those to remain separate?

 :edit: Oh very nice subtle update on having Equip Index 0 (which is really just 31) be an "Equip All" byte.

1462
Ah, here's a suggestion of a feature that I thought was implemented along time ago. Can you allow us to edit the names of the characters?

1463
A single arrows/consumable weapon is only removed when a character gets their next turn after attacking. As long as they only get one turn in each battle, the arrow can last forever. It's a non-issue with arrows for the most part, but it would be game-breaking to the system you want to implement.

Hmm, that does seem like an issue and I just tested it and it looks like you're right. What an odd way to program it. However in a difficulty mod or a solo mod (where defeating all enemies would ideally take more than one round of turns) would it work in such situations?

1464
Well, yes. But that's easy enough to deal with by getting rid of Berserk status, I would imagine? (At least that's how I thought that bug went?)

1465
Alright! Well that ends the Arrow business. I found how to make treasure chests give multiples of items, that aren't arrows.

I found it by breakpointing on where the Arrows would appear in my inventory when picked up from a chest, back traced a little from there and found another C9 54 (Compare with 54) and there it was. An unintended consequence of this is that all Weapons are given a multiple of 10 from events. So there would be 10 Excaliburs for instance when you trade the Adamant Ore for the Excalibur (however then you can just have the Smithy's apprentice sell "repairs" to Excalibur, since it's not a quest item.

In addition is the amount that these are given.

In RAM at...

0x009824 - 54 (Change that to whatever value you would like so that when you collect that specific kind of item a multiple would appear in your inventory up until the Armor begins)

0x009828 - 0A (Change that to what you wish for the quantity of item from those sorts of items.)

In ROM at...

0x1A24 - 54

0x1A28 - 0A

Looks like there's no issue now with a Durability based FFIV.

If only finding the information on Two-handedness was this simple...



1466
Just to add an update to this old thread. (As if one couldn't already guess)  you cannot equip Two Two Handed weapons on an Ambidextrous character, nor can you equip a 1 handed weapon with a Two Handed weapon on an Ambidextrous character, and finally you cannot equip a Two Handed weapon with a one handed weapon with an ambidextrous character.

A note for me, since I'm looking to solve the mystery behind two-handedness and at first I thought it would be a range of allowed equips eg. "If you have Avenger equipped you cannot equip any other item 44 or above" But I see now it won't be that simple of a check. They were absolutely thorough with this Two-Handed business,  (almost makes it seem like they may have wanted a two-handed weapon for either Edge or Yang at one point since the Ambidextrous two-handed additions are so clean) oy, makes finding out its cause ever the more difficult. It does not appear to be a Compare instruction (all changes of C9 44 did not solve the issue)

1467
Well, I didn't crack the Avenger, but I did find a little bit more out about it.

It seems there are 2 checks (maybe more since I Still haven't gotten Auto-Berserk off the Avenger) for Berserk Weapons.

The first is at

0x3A4BE - 4C it is being compared with the A Register, which if it reads 4C will continue on. If you change it to say 16 (Shadow Sword) Than the Shadow Sword will become a Berserk Weapon, just like the Avenger. And the Avenger will Still be a Berserk weapon. Oy...

 In ROM this is located at...

0x1A6BE - Change the 4C to whichever other weapon you want to have Berserk on it. (I'm now doing a sweep of the Rom for other Compare 4C's to see if that could still be the answer, I'll check that out in the morning though.)



1468
Final Fantasy IV Research & Development / Re: THE Command Thread
« on: January 11, 2013, 11:32:03 PM »
There's a Bluff thread? Judging from the index above, Bluff is the only one not to have its own thread, hence the reason for my posting here.

That is an interesting question you raise in regards to if Palom equips a different (Assuming Wisdom-Boosting) weapon during the fight, would the game recognize this change and add the Wisdom to the already increased stat or would it reset the stat for the sake of the weapon? Quite a bit of code catching they'd have to do for that one command. If they forgot to remove the boost after battle, they may have forgotten to plan for other things.

1469
Final Fantasy IV Research & Development / Re: THE Command Thread
« on: January 11, 2013, 09:22:32 PM »
That's a lot of work though to carry a battle value outside of battle though, It's done with HP and MP clearly, but there's no reason to carry the other stats and it would require extra coding in order to do so. It almost seems like they meant for you to be able to use Bluff to boost Wisdom to very high levels, but then decided against it late in the process and covered it up in a very sloppy manner.

1470
Woohoo! I finally cracked Sneak!


This was my entire goal for going into Commands in the first place!

I wanted to change Sneak's stolen item to the fourth item instead (and thereby making it, mostly a steal only item, unless you're stupidly lucky). This is great for my hack then to where there will be (fairly unique) steal-able equipment and items!

I found it by doing a lot of traces in a lot of different places. The first place I encountered trouble is that the game never seems to execute the Monster Item Byte while in battle, which lead me to believe the stored item must be put Somewhere. So I loaded up Cheat Engine, did a couple of scans, while stealing from Eagle and FloatEye to lower down the results and found where that was located.

After that I did some math to find where it was located in normal memory and went to a breakpoint from there. After a couple of false leads, I stumbled upon what was the defining element of what I wanted to change...

$03/E256   BF 00 9F 0E   LDA $0E9F00,x[$0E:9FE0]   A:00E0   X:00E0   Y:0000   P:envMxdizc

BF00 9F0E or in otherwords Load Accumulator from 0E9F00 (+ what's already in the accumulator) leading to the Imp type enemy Drop table. I changed 00 to 03 (in hopes that it would give me it's rarest item on Sneak and...




Despite all of the other failures, that made my day!

This is located in ROM at...

0x1E456 - BF00 9F0E - Change the 00 to any digit from 00-03 to receive that rank of item when you use Sneak.

 :edit:

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.

If you want to check this out for yourself (maybe with a full roster)

Go to 0x03A4DE in RAM and change the 04 there to a 00.