øAslickproductions.org/forum/index.php?PHPSESSID=5f0fck550j2m4m2fpbtkj2vkm1&action=profile;u=123;area=showposts;start=1470e:/My Web Sites/Slick Productions - FFIV Message Board/slickproductions.org/forum/indexe7fb.htmlslickproductions.org/forum/index.php?PHPSESSID=5f0fck550j2m4m2fpbtkj2vkm1&action=profile;area=showposts;u=123e:/My Web Sites/Slick Productions - FFIV Message Board/slickproductions.org/forum/indexe7fb.html.zx?òg^ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÈÀK4NOKtext/htmlISO-8859-1gzip@øÕ4NÿÿÿÿÿÿÿÿTue, 10 Mar 2020 20:18:30 GMT0ó°° ®0®P®€§²ð®>òg^ÿÿÿÿÿÿÿÿñ34N 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

1471
It probably just sets the attack to always hit rather than actually making use of the accuracy stat.

I thought that too, until I reread the Aim Command thread. Deathlike lists several reasons why it does seem to use a 255% Accuracy rating moreso than a "Skip Accuracy check".

1472
Final Fantasy IV Research & Development / Re: THE Command Thread
« on: January 11, 2013, 07:03:24 PM »
So after messing with Bluff I noticed that the changes in Wisdom were permanent and I started to panic, I thought how could any change in FF4kster be making Bluff not go away after battle? I tested several different Roms and each one had the same issue.

Then I thought "Why don't I see if the original game had this functionality?" And warped to Mysidia, hacked in Bluff for Palom, went into battle, used Bluff, ran away from battle and to my amazement Palom's Wisdom was still highly raised.

This is because Bluff is carried over into your normal stats and only set to normal once a Black Magic Spell is used.

I never knew that. In essence it makes Palom the early-game ultimate Boss Destroyer who can grind his Wisdom up to 99 before Cagnazzo or Scarmiglione and pretty much instantly kill them! It carries over through anything but another battle. If you enter another battle and leave another battle your Wisdom will be reset...or not.

It's glitched.

It will carry outside of battle, but when you enter another battle it will automatically reset making your accumulated Wisdom through Bluff worthless. Now I wonder what's the glitch? That the effect stays after battle or that it resets at the start of battle?

1473
Hmm, I read through the Aim thread again and there is something odd going on there, Phoenix was definitely more skilled than me in this so I'm willing to trust his word over mine, but it does not appear to increase accuracy in the Character sense. Just as Focus and Jump don't increase Strength or Attack Power in that basic sense.

1474
That's true, but it's only half of the story. I only have the damage it does to Cecil, and not yet the damage that Dark Wave does The other issue would be space, but yes. I tried changing one of those 0A's when I first found it (because I had thought it may have dealt something with the damage divisor) and at the end of battle things kind of blew up. So yeah... probably not a good idea to mess with those.

 :edit: Good work Dragonsbrethren. That was a fairly simple change after all.

 :edit: Bah, failing left and right with the Commands. I at least expected to find how Jump and Focus get their attack boosts, but no dice.

And since Aim didn't increase Accuracy I hit a wall there (it likely just removes the Hit% check, if I had to guess)

But I did at least find Bluff's command info. Mainly because I knew it would be the easiest to find. Increase one of my base stats by X amount? Why thank you! Finding it was no issue.

I just did a slight bit of tracing and came across the two most important pieces of the code...

03EAC8 - A9 10   LDA #$10   A:0011   X:0022   Y:0000 - Load up a 10 (16) into Register A (Change that to what you will)

03EAD0 - BD 17 20 LDA $2017,x[$7E:2017]   A:0010   X:0000   Y:0000   P:envMxdic - Load this 10 (16) into Intelligence Stat.


Now I should do a bit of clarifying, it seems that info. on the battle stats of rom is woefully non-existent, so I'll just throw out some of the basics.


81 - Character Identifier
00 - ??
0A  - ??
00
00
00
0045  - Current HP
0064  - Max HP
000A - Current MP
000A - Max MP
00 - ??
06 - Basic Strength
05 - Basic Agility
05 - Basic Vitality
03 - Basic Wisdom
02 - Basic Will
06 - Strength
05 - Agility
05 - Vitality
33 - Wisdom - 7E2017!!
05 - Will
10 - Defense?
00
01 - Magic Defense?
63 - Accuracy
2B - Attack Power?

So just work your way backwards or forwards from 2017 (or since it is reversed in game 17 20) and fill in whatever you'd like it to increase and how much you'd like it to increase.

NOTE: (This may only apply to the first character, since everyone has different locations for their stats in RAM. In such a case I will update appropriately.)

 :edit: Nope, look likes this game is well made. It uses 2017 as it will always be byte 17 in the corresponding character's data, regardless of which character is using it.

ROM -
0x01ECD0 - BD1720 - Writing to 2017 in RAM

1475
Well there we go! Mystery solved! Great work Dragonsbrethren. I guess the only plausible thing to make out of it is to make it hurt him more. That would also explain why the damage dealt to him in other values was random or instant death. Unfortunately when it comes to finding out the damage of Dark Wave I've taken several long looks and have come up empty.

Also I've taken a look at Aim, and it doesn't seem to increase your accuracy to 255. The accuracy byte doesn't change at all when used, but two fairly unknown bytes do, but breakpointing on them didn't help me find out Aim's working functionality.

1476
Final Fantasy IV Research & Development / Re: FF4PSP - Journey Log
« on: January 11, 2013, 12:45:11 PM »
As one would expect it seems pretty similar to FFIV. But I don't recall being able to get Critical Hits with things that weren't the fight command in normal FFIV. Also great research on the band data. Was Curse changed at all from FFIV to FFIVTAY? I can't quite recall that Damage multiplier in FFIV, then again in FFIV only one or two enemies used Curse in the first place so it was a non-issue.

1477
Yes, I'm aware. And one of the requests was how to change that. So I searched around and found that. Somewhere in that bit of programming is  the answer to Why it deals 1/8 damage to Cecil, but I couldn't figure that out. All I could manage was how to have it deal no damage to Cecil or kill him instantly, with the values I tried.

1478
Hehe, that's why I post everything the moment I can find it. Never sure what catastrophe is around the bend...

And speaking of posting I finally found the damage that Dark Wave causes!

Now I'm not sure how it's calculated, or frankly how it really works... but changing this has a profound effect on the damage that Dark Wave will cause Cecil.

I found it by first breakpointing his Battle HP, then traced backwards from there and found that it was doing a bunch of compounding of his max HP and found it was subtracting this all against a static A9. Now I don't know what the A9 really does, but changing it to 00 kills Cecil when using Dark Wave and changing it to FF makes it so he takes no damage from Dark Wave,

In RAM this is located at...

0x03E9FE - A9 - Dark Wave's self-damage

ROM at...

0x01EBFE - A9 - Dark Wave's self-damage

Now FF - A9 = 56, which when translated to normal decimal is 86. This makes me wonder if this is maybe a way for the game to deal 1/8.6 of Cecil's HP?

 :edit: No, it clearly does not.

Here's the instructions if anyone wants to make better sense out of it.

$03/E9EF   A6 A6   LDX $A6    [$00:00A6]   A:0000   X:000A   Y:0000   P:envmxdiZc
$03/E9F1   BD 09 20   LDA $2009,x[$7E:2009]   A:0000   X:0000   Y:0000   P:envmxdiZc
$03/E9F4   20 85 84   JSR $8485  [$03:8485]   A:0110   X:0000   Y:0000   P:envmxdizc
$03/8485   4A    LSR A   A:0110   X:0000   Y:0000   P:envmxdizc
$03/8486   4A    LSR A   A:0088   X:0000   Y:0000   P:envmxdizc
$03/8487   4A    LSR A   A:0044   X:0000   Y:0000   P:envmxdizc
$03/8488   60    RTS   A:0022   X:0000   Y:0000   P:envmxdizc
$03/E9F7   85 A9   STA $A9    [$00:00A9]   A:0022   X:0000   Y:0000   P:envmxdizc
$03/E9F9   38    SEC   A:0022   X:0000   Y:0000   P:envmxdizc
$03/E9FA   BD 07 20   LDA $2007,x[$7E:2007]   A:0022   X:0000   Y:0000   P:envmxdizC
$03/E9FD   E5 A9   SBC $A9    [$00:00A9]   A:00A8   X:0000   Y:0000   P:envmxdizC
$03/E9FF   9D 07 20   STA $2007,x[$7E:2007]   A:0086   X:0000   Y:0000   P:envmxdizC
$03/EA02   B0 0C   BCS $0C    [$EA10]   A:0086   X:0000   Y:0000   P:envmxdizC

1479
I at one time I found the info for the two handed and what item is on what slot data, lost the offsets in a hdd crash.  I believe it was an index range data format but I could be remembering incorrectly. I do know it exists...LOL!

I planned on locating this info for my hack I'm working on right now actually...

Right after the Arrow Index is a 90C960 which leads me to believe that is the start of armor index, but aside from that I have come up blank. I've found several possible leads, but all of those turned out to be flops. Also if I can ask, what tools do you use? I mean Geiger is great, but the issue with it is that it refuses to look into some Critical ranges, like all of the battle data.

1480
@ Deathlike2

Yeah, I think that's what all of that x2/x2/x2/x2 x x2/x2/x2/x2 that is going on there adds up to. It all ends up in Hex values in the end.

@ Dragonsbrethren

Thanks! I just also (like literally minutes ago) found how the game looks at Arrows and where that index starts and edited that into my previous post.

1481
Therein lies the problem. Chrome. Heh, looks like I'll have to use a different browser then. Thanks for the heads up.

1482
I am going to feel like an absolute idiot, but I could never get FFIV Tools to load my ROM. Is there some trick to it or some button or menu that I've been missing for years now? I could only ever use his On-site one, personally.

1483
Well it's been a while since I've done any real hacking in FFIV, and I wanted to get back into the groove of things. I managed to find the location of Ether's value (outside of battle) and how the game reaches it's value. All v1.1 ROM's for any ROM mentions.

The first thing the game does is draw a value from

0x0F9747 - A simple 01, then using the 0A ASM instructions at 01A604, 05, 06  (Which tells the game to continue to accumulate) it continues to boost that 01 to 02, 04, 08, 10, then it loads it somewhere else and accumulates it again to 20 and for it's final accumulation it adds 30.

I was always under the impression that Ethers outside of battle also restored random amounts of MP, but no. It is a static 48 (AKA Hex 30) If you change the value at 0x0F9747 to 02, Ether1's will then restore 96 MP, and so on and so forth.

In ROM this is located at...

0x079947 - 01 to anything you like. I suppose in theory it should be possible to modify it's accumulation phase as well. but as of yet I'm not sure if any other item uses that. (or this 01 even)

 Hopefully I'll be able to find the rest of the other healing items in short order.

 :edit: Hmm... the more I look at this surrounding data, the more I see a pattern emerging...

0x079947 - 0080 2001 6415 - Data involving Ether1
0x07994A - 0080 2003 6415 - Data involving Ether2?

And I see plenty of other similar data formations. I'll have to take a closer look at all of that.


 :edit: 2 Since I felt I had some good momentum going, I decided to look not just for healing items, but the stat boosting items.

So far I've found Soma Drop's location... and within that given space another pattern emerged to show me the location of the Silver Apple (Golden is conspicuously missing...)

This was done with a simple breakpoint on Rydia's Max MP that when it was written to. I was taken to the end of an instruction block, but becoming more familiar with this game's programming I had a feeling I could simply trace backwards slightly and find it (or at least find another lead) and indeed I did. It was just in the basic instructions without any crazy jumps or loops like they did with healing items.

0x01A754 - Silver Apple's amount of HP Raising - 32 (50)
0x01A761 - Soma Drop's amount of MP raising. - 0A (10)

I'll see what's up with the Golden Apple if I can.


 :edit: 3 Well that didn't take long. Looks like, for whatever reason, Golden Apple is placed roughly 20 bytes above the other two stat items. Same data formation though.
B1 60 18 69 64 00

0x01A73A - Golden Apple's amount of HP Raising 64 (100)

The aforementioned three are located in ROM at...

0xA93A - Golden Apple - 64 (100)
0xA954 - Silver Apple - 32 (50)
0xA961 - Soma Drop - 0A (10)

 :edit: 4 Oh! I'm a fool! The data for healing items had already been found before. Ah well, at least the stat boosting item info is new (I think?)

 :edit: 5 Ah, here's something a bit interesting. I think you can very easily change what stat you want the stat boosting items to raise.

09 00 B1 60 18 69 64 00 - That 09 00 At least is telling the game to write to HP.

0D 00 B1 60 18 69 0A 00 - The 0D 00 is telling the game to write to MP.

If you look at normal character data...

09 of 40 Bytes is the Max HP Byte
0D of 40 Bytes is the Max MP Byte

So if my thoughts are correct you can increase any stat you like with these items. (If I'm not mistaken, maybe even change classes too) this will require some experimentation.

 :edit: Looks like I was right. Rydia eating the Soma Drop changed her name to Yang and gave her Kick.



This does have very interesting applications if one wants to take the game in a new direction.... (Possibly, since it doesn't seem to kill Levels, have a set of 3 jobs you can change into at will.

And even better because the game gives two bytes for these to play around with you can change Class and Character without any ill side effects (well they'll have the stats and equipment of the person they switched from, since you are changing only two bytes) but they'll have their own abilities at least. However the problem that you may have noticed by now is something I didn't take into account. It only increments, it doesn't set a value. Now there may be a way to change that, but as of now I could see these items as only working towards "class upgrades" or some such.

 :edit: 7 Well that issue is solved... truly the Heavens smile on me today. First byte change and boom, exactly what I'm looking for.

0D 00 B1 60 18 69 0A 00 - All you have to do is change 60 to 00. That will get rid of the Increment and the game will read it as an overwrite. Now you can choose whichever 3 classes you like and switch to them freely (It should be noted that all that will accomplish is changing Sprite, commands, and available Equips,(possibly Level Ups as well, I haven't tested that) however you will still be equipped with whatever you had originally, (So say you wanted to change Cecil into a Mage, he would still be equipped with all of the Dark Knight gear if you used this method) Also there is no way (without making a special event place for it) for the game to know who belongs to what class. So if you use... Let's say a Mage book on Yang. That will be Yang, from now on, even if you only planned on having it be given to Cecil.

Really this plan works out Marvelously for a Solo Mod, but when there's a party involved, yeah... things get messy. However you can still increase any basic stat you would like with this, just use... http://rb.thundaga.com/ and JCE's hacking document to change the stat you want to increase or set.

 :edit: As great as Geigers is, sometimes it's just so infuriating "not allowed to go into certain ranges where battle data is contained, grumble, grumble..." so back to Cheat Engine for now, which was not made for SNES games and makes actually doing much other than memory editing a bit tricky...

However I looked up how the game puts various equipment on. The breakable bit, as earlier mentioned, does work for non-arrow items, but the issue is that the game will only ever equip one of an item on. But every inventory slot has an extra byte which would be used for diminishing uses of an item and setting that to 2 or above will show a plain number next to the item. This leads me to believe that it is looking at an index for the Arrows specifically, but if that range can be expanded to all weapons, well there might be an interesting game...


 :edit: 9

I think you'll like this one, PinkPuff (for data purposes, I can't see too many people really making use of it's potential)





No tricks here, just a little simple hacking (just one byte change actually)

I was encountering difficulty discovering where the game was looking to decide whether to add a whole stack or just one to weapon counters, I then eventually found the start of the process at 0x01C12E I was at first searching for BNE (Break if Not Equals) since I thought that would be the defining amount and was indeed looking for item 54, which is Iron Arrows. Lo and behold it seems I was looking for CMP (Compare Accumulator with Memory) and noticed that 54. I changed it to 00 and every weapon (and only weapons) equipped
became equipped in bunches. Which means that my Shadow Sword experiment from way back finally succeeded and you can make SaGa-esque weaponry now!

Down the line I would like to try to make it to where using the weapon as an item would consume it. But that's that! I think with this you have a reason to include the "Break if used" byte included on weapons.

The byte is contained at

0x01C234 in RAM and in ROM at...

0xC434 Just change the 54 to whatever index you like and the items will be equipped in bunches.



Hopefully I can find the mystery to Two-Handed ness as well soon.

1484
Very good points you raise PinkPuff, nevermind that idea then, to cut down on awkwardness would likely be for the best.

Though once you get the Overworld Triggers and Map Properties Editor, there aren't too many further things I can think of regarding events. The only thing I can think of are Event Tied Items (like the magazine, tent, dwarves' bread, etc) which I believe I showed how to change in another thread...? (I don't recall if I actually posted those), battle events (in which we know very little about, last I checked), and the "visual effects" which I'm not even sure it's plausible to edit those.

1485
I thought of that, yeah. Would Tellah have enough speed though to cast it though? Though I guess by now there's a Mirror Curtain available (at least one, maybe?)

 :edit: http://slickproductions.org/forum/index.php?topic=1769.0 This might be the thread you were looking for PinkPuff in regards to World Map Triggers.