øAslickproductions.org/forum/index.php?PHPSESSID=5f0fck550j2m4m2fpbtkj2vkm1&action=profile;u=123;area=showposts;start=390e:/My Web Sites/Slick Productions - FFIV Message Board/slickproductions.org/forum/indexd04c-3.htmlslickproductions.org/forum/index.php?PHPSESSID=5f0fck550j2m4m2fpbtkj2vkm1&action=profile;area=showposts;u=123e:/My Web Sites/Slick Productions - FFIV Message Board/slickproductions.org/forum/indexd04c-3.html.zxòg^ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÈ…¬ù”OKtext/htmlISO-8859-1gzip@øÕù”ÿÿÿÿÿÿÿÿTue, 10 Mar 2020 20:17:46 GMT0ó°° ®0®P®€§²ð®òg^ÿÿÿÿÿÿÿÿC9ù” 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

391
All normal monster's random AI routines are complete, with 13 spaces left for the remaining bosses!


(Mist D.)
(OctoMamm)
(MomBomb)
(Dark Elf)
(Valvalis)
(Calbrena)
(Golbez)
(Lugaborg)
(Rubicante)
(Bahamut)
(Wyvern)
(Pale Dim)
(Zeromus)

Then the AI Routine of this project will be all but finished. As for playthrough I am currently right past Cagnazzo and because of all that opens up I completed all normal Random AI routines for normal enemies before continuing on. This will let me test accordingly until I reach the Dark Elf/Dragon where I will have to choose his four random attacks to use.

All in all things are moving along smoothly, not as fast as I would like, but that's what I can accomplish with 45 Hour work weeks, 13 hours a day at times, with school on the side.

392
Oy, menu expansion... it always seemed like a bit of a quagmire, but it would reveal quite a bit of useful information going forward so good work on this Chillyfeez! I would love to see some pictures of its applications.

You're probably aware of this by now, but just in case you aren't...

http://rb.thundaga.com/data/window_data.txt

It would save you a Lot of time, but I somewhat imagine this is what you're working off of.

393
In which bank is Cecil's line "That's enough!", from the intro?

I can't seem to find it. The message number would be most helpful, but I also need to know if it's bank 1 or 3.

Message is 407 in Bank 1. (If you mean the "Stop it!" "Enough!" line.)

394
Since I have a day off (Impossible!!!) I'm about up to Cagnazzo in playing through Side Project, and I noticed something odd, but expected now that I think on it. Once the Paladin event happens the game looks ?somewhere? for Paladin Cecil's HP to display on the save menu. It is a minor issue at most, but it's still an unknown. My instincts tell me that it's probably an event flag which switches what Actor is looked at for that, but I cannot say for certain.

I'll take a look and see if I can find an answer.

...And it did not deal with an event flag shockingly enough. I'm not sure what activates this then...

Ah! Found it, just did a search for C90B in Bank 01 and found it almost immediately... it deals nothing with Event Flags, as said. The game first looks to see if Actor 01, the Dark Knight is present and if not looks for Actor 0B, Paladin Cecil.
Code: [Select]
$01/9A81 BD 00 00 LDA $0000,x[$70:0000] A:0000 X:0000 Y:0000 P:envmxdIZc - Load A from... 700000? (Maybe something dealing with save data temp storing?)
$01/9A84 29 3F 00 AND #$003F A:8748 X:0000 Y:0000 P:eNvmxdIzc - Get rid of variables.
$01/9A87 C9 01 00 CMP #$0001 A:0008 X:0000 Y:0000 P:envmxdIzc - Is it the Dark Knight?
$01/9A8A F0 0D BEQ $0D    [$9A99] A:0008 X:0000 Y:0000 P:envmxdIzC - If so, branch to end.
-------------------------------------------------------------------------------------------------------------
$01/9A8C C9 0B 00 CMP #$000B A:0008 X:0000 Y:0000 P:envmxdIzC - Is it Paladin Cecil?
$01/9A8F F0 08 BEQ $08    [$9A99] A:0008 X:0000 Y:0000 P:eNvmxdIzc - If so, branch to end.
----------------------------------------------------------------------------------------------------------------
$01/9A91 8A TXA A:0008 X:0000 Y:0000 P:eNvmxdIzc - Transfer X to A
$01/9A92 18 CLC A:0000 X:0000 Y:0000 P:envmxdIZc - Clear Carry Flag
$01/9A93 69 40 00 ADC #$0040 A:0000 X:0000 Y:0000 P:envmxdIZc - Add 0040 (look at the next character)
$01/9A96 AA TAX A:0040 X:0000 Y:0000 P:envmxdIzc - Transfer A to X.
$01/9A97 80 E8 BRA $E8    [$9A81] A:0040 X:0040 Y:0000 P:envmxdIzc -Loop back. (I don't know how it breaks out of this, technically speaking it seems like it should be an infinite loop? Maybe eventually the system will always find a 0001 or 000B to draw from in a sequence of 40 bytes?)

Changing 0B to Paladin Cecil's new ID of 0A will solve the problem I was facing. You may also want to make note of this as well for your Shadow Party Mod all-in-all Chillyfeez since you've changed Paladin Cecil's ID and changing it with FF4kster is not plausible.

395
Here is the patch. It's as basic as basic can be only including the new routines, allowing Rosa, Porom, FuSoYa, and Tellah to have the three dummied spells, giving Asura Protect back, changing the MP cost of Protect and Shell to 25 and changing the targeting of those spells to a single person and reimplementing the weapons to have those dummied spells, and allowing Cecil to learn those spells...

Alright so not As basic as can be, but it will give it a standalone feel that doesn't seem useless without additional modding.


396
Finally! After an hour or so of pondering the issue I used all I had to create probably my most efficient routine.

This builds the Dispel Routine right into Black Hole and replaces the Entire Dispel Routine (Not a Single byte to spare in the end) with the means to get rid of Protect/Shell successfully.

Code: [Select]
$03/DDC0 AD 74 27 LDA $2774  [$7E:2774] A:0000 X:0054 Y:0000 P:envMxdiZc - Load A from Protect/Shell Byte.
$03/DDC3 4C B0 D8 JMP $D8B0  [$03:D8B0] A:0003 X:0054 Y:0000 P:envMxdizc - Jump to Dispel Routine
$03/D8B0 29 02 AND #$02 A:0003 X:0054 Y:0000 P:envMxdizc - Isolate Shell if Present.
$03/D8B2 C9 02 CMP #$02 A:0002 X:0054 Y:0000 P:envMxdizc - Is it Shell?
$03/D8B4 D0 11 BNE $11    [$D8C7] A:0002 X:0054 Y:0000 P:envMxdiZC - If not, branch to Protect section.
$03/D8B6 A2 00 00 LDX #$0000 A:0002 X:0054 Y:0000 P:envMxdiZC - Load 0000 into .
$03/D8B9 BD 24 27 LDA $2724,x[$7E:2724] A:0002 X:0000 Y:0000 P:envMxdiZC - Load A from Magical Defense (Or Defense) into A.
$03/D8BC 48 PHA A:0008 X:0000 Y:0000 P:envMxdizC - Push Magical Defense/Defense onto stack.
$03/D8BD 4A LSR A A:0008 X:0000 Y:0000 P:envMxdizC -
$03/D8BE 4A LSR A A:0004 X:0000 Y:0000 P:envMxdizc - /4
$03/D8BF 85 E3 STA $E3    [$00:00E3] A:0002 X:0000 Y:0000 P:envMxdizc - Store A in placeholder.
$03/D8C1 68 PLA A:0002 X:0000 Y:0000 P:envMxdizc - Pull Magical Defense/Defense from stack.
$03/D8C2 E5 E3 SBC $E3    [$00:00E3] A:0008 X:0000 Y:0000 P:envMxdizc - Subtract Magical Defense/Defense from it's value /4 (sets it back to normal)
$03/D8C4 8D 24 27 STA $2724  [$7E:2724] A:0005 X:0000 Y:0000 P:envMxdizC - Store A in Magical Defense/Defense.
------------------------------------------------------------------------------------
$03/D8C7 AD 74 27 LDA $2774  [$7E:2774] A:0005 X:0000 Y:0000 P:envMxdizC - Load A from Protect/Shell Byte.
$03/D8CA 9C 74 27 STZ $2774  [$7E:2774] A:0003 X:0000 Y:0000 P:envMxdizC - Store Zero in Protect/Shell Byte.
$03/D8CD 29 01 AND #$01 A:0003 X:0000 Y:0000 P:envMxdizC - Isolate Protect if Present
$03/D8CF C9 01 CMP #$01 A:0001 X:0000 Y:0000 P:envMxdizC - Is it Protect?
$03/D8D1 D0 05 BNE $05    [$D8D8] A:0001 X:0000 Y:0000 P:envMxdiZC - If not, branch past.
$03/D8D3 A2 06 00 LDX #$0006 A:0001 X:0000 Y:0000 P:envMxdiZC - Load 0006 into X (allows the adress to reach normal Defense)
$03/D8D6 80 E1 BRA $E1    [$D8B9] A:0001 X:0006 Y:0000 P:envMxdizC - Loop back to stat /4 Routine except looking at Defense this time.
"                                                                                                                                                  "
$03/D8C7 AD 74 27 LDA $2774  [$7E:2774] A:000B X:0006 Y:0000 P:envMxdizC - Once loop is complete, reload Protect/Shell Byte.
$03/D8CA 9C 74 27 STZ $2774  [$7E:2774] A:0000 X:0006 Y:0000 P:envMxdiZC - Is it now 00 due to the first STZ in the first loop.
$03/D8CD 29 01 AND #$01 A:0000 X:0006 Y:0000 P:envMxdiZC - Cannot be passed now.
$03/D8CF C9 01 CMP #$01 A:0000 X:0006 Y:0000 P:envMxdiZC
$03/D8D1 D0 05 BNE $05    [$D8D8] A:0000 X:0006 Y:0000 P:eNvMxdizc - Branch to end.
$03/D8D8 60 RTS A:0000 X:0006 Y:0000 P:eNvMxdizc - Return.


This is some of my finest optimized code due to the extraordinarily limited scope I had to work with. I will release a Protect/Shell improvement patch shortly.

The one normal functionality of Black Hole that had to be deleted for this was the resetting of Speed, but keep in mind that Esuna also reflects Speed, so if people want Zeromus to still reset Speed, just have him cast Esuna on the party, since he doesn't use any Status Ailments after all.

 :edit: Or I'm an idiot. There was still at least another 20 bytes to work with. Bah, I'll fix this, all that would really happen here is that the JMP to the Dispel Routine will close the Speed Reset.

397
Hmm, I'm having a lot of trouble getting Dispel to work with this at all, only because of limited space.

Would a patch that does not have Dispel working properly to get rid of Protect/Shell still be desired? I could easily do it with empty space, but since I would like this compatible with other people's hacks I feel that would kill the entire process, I tried using Black Hole into Dispel's Routine, but still ran out of room to get rid of the +1/4 bonus to the defenses.

398
FFIV is the last FF (possibly FFII NES had a proper status as well) to make Protect and Shell a stat boosting spell which increases it in increments... in FFI this was really good, in FFII it was variable... FFIV however it is mostly useless. Not once have I read in any guide "Use Protect/Shell" so I was thinking of a way to make more statuses that we can create but didn't want to create the broken measures of +25 Defense, +25% Defense for each cast, so I put together a short formula which looks at a (presumed) unused stat byte that is cleared at the start of each battle and use that for more statuses. This would make it vulnerable to a redone Dispel/Black Hole routine. Here was my plan, it was simple and efficient and seemed to work flawlessly when tested...

Protect Status Routine

Code: [Select]
$03/D84F         AD 74 27 LDA $2774  [$7E:2774] A:0003 X:001A Y:0000 P:envMxdizc - Load A from Unused Byte.
$03/D852 29 01 AND #$01 A:0002 X:001A Y:0000 P:envMxdizc - Get rid of all bits but 01.
$03/D854 F0 03 BEQ $03    [$D859] A:0000 X:001A Y:0000 P:envMxdiZc - If 00, branch.
---------------------------------------------------------------------------------------------------------------------
$03/D856 4C 2D E0 JMP $E02D  [$03:E02D] A:0001 X:001A Y:0000 P:envMxdiZC - Jump to Magic Fail Routine.
----------------------------------------------------------------------------------------------------------------------- 
$03/D859 AD 2A 27 LDA $272A  [$7E:272A] A:0000 X:001A Y:0000 P:eNvMxdizc - Load A from Target's Defense.
$03/D85C 4A LSR A A:000A X:001A Y:0000 P:envMxdizc
$03/D85D 4A LSR A A:0005 X:001A Y:0000 P:envMxdizc /4.
$03/D85E 6D 2A 27 ADC $272A  [$7E:272A] A:0002 X:001A Y:0000 P:envMxdizC - Add the Target's Defense to the /4 Defense.
$03/D861 8D 2A 27 STA $272A  [$7E:272A] A:000D X:001A Y:0000 P:envMxdizc - Store A in Target's Defense.
$03/D864 AD 74 27 LDA $2774  [$7E:2774] A:000D X:001A Y:0000 P:envMxdizc - Load Unused Byte into A.
$03/D867 09 01 ORA #$01 A:0000 X:001A Y:0000 P:envMxdiZc - Add 01 if applicable.
$03/D869 8D 74 27 STA $2774  [$7E:2774] A:0001 X:001A Y:0000 P:envMxdizc - Store A in Unused Byte
$03/D86C 60 RTS A:0001 X:001A Y:0000 P:envMxdizc - Return

Shell Status Routine
Code: [Select]
$03/D873 AD 74 27 LDA $2774  [$7E:2774] A:0003 X:001C Y:0000 P:envMxdizc - Load A from Unused Byte
$03/D876 29 02 AND #$02 A:0001 X:001C Y:0000 P:envMxdizc - Is 02 (Shell) already there?
$03/D878 F0 03 BEQ $03    [$D87D] A:0000 X:001C Y:0000 P:envMxdiZc - If not, branch.
----------------------------------------------------------------------------------------------------------------

-----------------------------------------------------------------------------------------------------------------
$03/D87D AD 24 27 LDA $2724  [$7E:2724] A:0000 X:001C Y:0000 P:envMxdiZc - Load A from Target's Magic Defense Byte.
$03/D880 4A LSR A A:0006 X:001C Y:0000 P:envMxdizc -
$03/D881 4A LSR A A:0003 X:001C Y:0000 P:envMxdizc - /4
$03/D882 6D 24 27 ADC $2724  [$7E:2724] A:0001 X:001C Y:0000 P:envMxdizC - Add the value in Magic Defense Byte into Magic Defense /4,
$03/D885 8D 24 27 STA $2724  [$7E:2724] A:0008 X:001C Y:0000 P:envMxdizc - Store A in Magic Defense Byte
$03/D888 AD 74 27 LDA $2774  [$7E:2774] A:0008 X:001C Y:0000 P:envMxdizc - Load Unused Byte.
$03/D88B 09 02 ORA #$02 A:0001 X:001C Y:0000 P:envMxdizc - Add 02 if applicable.
$03/D88D 8D 74 27 STA $2774  [$7E:2774] A:0003 X:001C Y:0000 P:envMxdizc  - Store 02 (Shell) in Unused Byte.



5 Bytes shorter than the original code with a little more optimization I may be able to make just one routine contain several checks. For instance say you wanted to add Brave and Faith from FFIV:DS in...

You could put checks in for spell power to see where the proper branching point should be all stored by bits as illustrated above. Should I release a standalone patch for a Shell/Protect Mod which makes it into a status moreso than a continually applied buff?

This was made more or less for the Side Project to give those spells more utility all in all (FFIV:CB used them in a way where the gradual increment would be preferable)

And that's all it took! These are both tested and they look to be working optimally and due to the open nature of it, it can be applied to pretty much any statistic.

399
...hah. I guess I shouldn't be surprised that FFIV would take the essentially same visual cue and make another routine for it. It seems rather par for the course at this point,

400
Final Fantasy V Research & Development / Re: LUT @ C0/FEC0 used for RNG
« on: February 13, 2015, 11:24:51 PM »
I thought those sequence of bytes looked familiar...

That Exact Same RNG set up is used in FFIV at 7E1900 in RAM

07 B6 F0 1F 55 5B 37 E3 AE 4F B2 5E 99 F6 77 CB
60 8F 43 3E A7 4C 2D 88 C7 68 D7 D1 C2 F2 C1 DD
AA 93 16 F7 26 04 36 A1 46 4E 56 BE 6C 6E 80 D5
B5 8E A4 9E E7 CA CE 21 FF 0F D4 8C E6 D3 98 47
F4 0D 15 ED C4 E4 35 78 BA DA 27 61 AB B9 C3 7D
85 FC 95 6B 30 AD 86 00 8D CD 7E 9F E5 EF DB 59
EB 05 14 C9 24 2C A0 3C 44 69 40 71 64 3A 74 7C
84 13 94 9C 96 AC B4 BC 03 DE 54 DC C5 D8 0C B7
25 0B 01 1C 23 2B 33 3B 97 1B 62 2F B0 E0 73 CC
02 4A FE 9B A3 6D 19 38 75 BD 66 87 3F AF F3 FB
83 0A 12 1A 22 53 90 CF 7A 8B 52 5A 49 6A 72 28
58 8A BF 0E 06 A2 FD FA 41 65 D2 4D E2 5C 1D 45
1E 09 11 B3 5F 29 79 39 2E 2A 51 D9 5D A6 EA 31
81 89 10 67 F5 A9 42 82 70 9D 92 57 E1 3D F1 F9
EE 08 91 18 20 B1 A5 BB C6 48 50 9A D6 7F 7B E9
76 DF 32 6F 34 A8 D0 B8 63 C8 C0 EC 4B E8 17 F8

I wonder if this also carries to other Square games of the era that used any RNG? I've been wondering how much if FFV is unique to itself and how much was lifted from FFIV or if it was restarted from scratch. This is actually the first proof I've seen of any relation between the two games.

401
Well, he has running because he has walking (needed to move forward to cast spells). I'm surprised about the rest of that, though. Does he simply stand still when those other actions are performed?

That he does, I expected to see something odd occur when he was petrified (since it forces you into the weakened stance) but he just still stands in his default positioning. Casting, Item Use, and Walking appear to be the only animations used for Golbez, he was purely created Just for that single Auto-Battle, thanks Square...


402
The yellow is just part of Rydia's special pose. It's part of her battle palette that just isn't prevalent in any other pose. There isn't a different arrangement for each character - they just worked each character's sprites in such a way that each pose fits into those arrangements.
Because Golbez doesn't have the full complement of sprites, I imagine if you forced him into your party and he got into critical HP range, he would start to show some of Anna's sprites, but likely mixed up (as she also doesn't have a crouched pose) and with Golbez's palette.

I thought that would be the case as well, but no, he simply does not crouch when weakened. Nor does he use any animation for attacking or using a Special command. Only for Spell casting and item use are any of his animations used (and running, funnily enough.)

403
That is pretty nifty. So changing that to a LDA $#08 would be the key, then?
I'm not sure I have immediate use for it , but I just might down the road.
I bet the fellas working on Project II would be interested in hearing this...

Forgot to explain that,, yeah. All you'd have to do is change that to a 08. I was wondering as well, does each character have their own separate animation calls for their actions in battle? For instance Cecil doesn't glow Yellow when he uses his Dark Wave ability, but Rydia's special stance causes her to do just that. I was wondering if there was some set of animation bytes which tells each character what specific set of animation they should do?

This is sort of notable because Golbez by default lacks a Low HP Sprite which means it can't be a universal call which says "load this sprite in this position".


404
$15/C8C0   BD 01 10   LDA $1001,x[$00:1101]   A:0000   X:0100   Y:0000   P:envMxdIZc - Load Slot X's Class.
$15/C8C3   29 1F   AND #$1F   A:0003   X:0100   Y:0000   P:envMxdIzc - Clear 1F portion.
$15/C8C5   85 06   STA $06    [$00:0606]   A:0003   X:0100   Y:0000   P:envMxdIzc - Store A in 0606
$15/C8C7   0A    ASL A   A:0003   X:0100   Y:0000   P:envMxdIzc - x2 A
$15/C8C8   18    CLC   A:0006   X:0100   Y:0000   P:envMxdIzc - Clear Carry Flag
$15/C8C9   65 06   ADC $06    [$00:0606]   A:0006   X:0100   Y:0000   P:envMxdIzc - Add the value from 0606 (so essentially x3)
$15/C8CB   18    CLC   A:0009   X:0100   Y:0000   P:envMxdIzc - Clear Carry Flag
$15/C8CC   69 80   ADC #$80   A:0009   X:0100   Y:0000   P:envMxdIzc - Add 80 onto A.
$15/C8CE   85 4B   STA $4B    [$00:064B]   A:0089   X:0100   Y:0000   P:eNvMxdIzc - Store A in 064B (where the game will later draw from for sprite)
$15/C8D0   64 4A   STZ $4A    [$00:064A]   A:0089   X:0100   Y:0000   P:eNvMxdIzc - Store Zero in 4A.
$15/C8D2   A2 00 40   LDX #$4000   A:0089   X:0100   Y:0000   P:eNvMxdIzc - Load X from 4000.
$15/C8D5   86 4C   STX $4C    [$00:064C]   A:0089   X:4000   Y:0000   P:envMxdIzc - Store X in 064C.
$15/C8D7   A2 00 02   LDX #$0200   A:0089   X:4000   Y:0000   P:envMxdIzc - Load 0200 into X.
$15/C8DA   86 4E   STX $4E    [$00:064E]   A:0089   X:0200   Y:0000   P:envMxdIzc - Store X in 064E.
$15/C8DC   A9 1B   LDA #$1B   A:0089   X:0200   Y:0000   P:envMxdIzc - Load 1B into A.
$15/C8DE   85 49   STA $49    [$00:0649]   A:001B   X:0200   Y:0000   P:envMxdIzc - Store A into 0659.
$15/C8E0   22 00 B0 15   JSL $15B000[$15:B000]   A:001B   X:0200   Y:0000   P:envMxdIzc - Jump to Sprite Display Routine.

This tells us some interesting things, but this regimented system is rather disappointing, from a gameplay perspective it makes sense, they knew what they wanted and had no reason to do it any other way. But from a modding perspective it is annoying to have Sprite tied to Class. Mainly because it makes classes past 0D as all but unusable. For instance if you wanted to fix Golbez to actually work on the Overworld map (and not be a frog with the em Whit class...) you would need to do a lot more than what is currently in play. If we switch the Sprite Check to say the Character's never used Steal Defense byte, then that opens up All of those sprites for use (outside of battle, in-battle is an entirely different beast)

When you try to use classes above 11 you'll notice odd things start to occur. I cannot say why that happens, but when used from the previous Steal Defense byte, these sprite's work properly, but it doesn't follow the normal sprite index, presumably because normal sprites are loaded in a different way and soon the sprite index gets thrown off after Man, it then jumps to Dancer. Bizarrely enough, Golbez is unreachable in this setup. Because Golbez is 24 and the sprite decides to stop at 23 then 25, and skips over Golbez. I assume this is because the party sprites have (likely twice) as many animations as normal NPC's. Humorously enough his detached hand is an applicable choice of sprite though.

Of course if you flip around those two sprites you can have a working (Overworld and Battle) Golbez. you'll just need to switch the indexes around a bit.

However that may just be a little more trouble than it's worth, but this method at least does free the Sprite from Class Byte as it was originally set.


405
Hmm, Chillyfeez, I've been looking for what depends on what the sprite displayed is (there Has to be a way to free up class slots 0E,0F,10 to not display mini,pig,toad!) and while doing so I stumbled upon the character length of Jobs

$01/8FE5   A9 07   LDA #$07   A:D800   X:0000   Y:D8DC   P:envMxdIZc

Since I'm not too savvy with graphics or text by any stretch it wouldn't give me too much use or utility, but you might be able to find a use for it.

Here's an example of what I did with it...



There is loads of free space, a lot more than the game ever seems to use so 8 characters instead of 7 won't break the bank.