øAslickproductions.org/forum/index.php?PHPSESSID=5f0fck550j2m4m2fpbtkj2vkm1&action=profile;u=278;area=showposts;start=390e:/My Web Sites/Slick Productions - FFIV Message Board/slickproductions.org/forum/indexa290.htmlslickproductions.org/forum/index.php?PHPSESSID=5f0fck550j2m4m2fpbtkj2vkm1&action=profile;area=showposts;u=278e:/My Web Sites/Slick Productions - FFIV Message Board/slickproductions.org/forum/indexa290.html.zxÄåg^ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÈ0P.þ$OKtext/htmlISO-8859-1gzip0|Öþ$ÿÿÿÿÿÿÿÿTue, 10 Mar 2020 19:25:15 GMT0ó°° ®0®P®€§²ð®Ãåg^ÿÿÿÿÿÿÿÿ.þ$ Show Posts - chillyfeez

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 - chillyfeez

391
"NPC1" probably should be removed from FF4kster altogether...
See, "NPC1" is the NPC with the identity "00."
When FFIV looks through the list of NPCs assigned to a particular area, that list is terminated by a "00." So, when you set NPC1 as an NPC in any area, what you're effectively doing is setting an end to the list of NPCs.

392
If you watch that video closely, Cid also runs backwards.
That doesn't happen in the actual animation.

The patch actually can be applied to any ROM (as long as you don't plan on running the "Adult Rydia Returns" battle, of course), if you wanna see the real command in action.

393
Okay, Cid's Tackle is ready to go!
Couple of things to note:
  • The command is still called "Peep." I figured Pinkpuff should get to rename it to whatever she feels is appropriate
  • The spell I replaced was "Something happens to Adult Rydia," A.K.A. "y    ."
  • I made the command unperformable when critical, and thus had to make it so Kick can be executed when floating
  • The attached patch should be applied to an Unheadered ROM

For those of you interested in what's going on under the hood...
Code: [Select]
$02/FFBE 22 18 FF 03 JSL $03FF18[$03:FF18];Jump to Failure/Success (depending on whether targeting ally/enemy) subrtouine
++++++++++++++++++++++++++++++++++++++++++
$03/FF18 AD D3 26    LDA $26D3  [$7E:26D3];Load "Next Action Enemy Target" byte
$03/FF1B F0 01       BEQ $01    [$FF1E]   ;If zero (because you've targeted an ally), jump ahead
$03/FF1D 6B          RTL                  ;If enemy is targeted, return to routine
$03/FF1E FA          PLX                  ;
$03/FF1F A2 EE C7    LDX #$C7EE           ;
$03/FF22 DA          PHX                  ;Basically, this manipulates the stack, so that the RTL will return to a different routine instead of the one it jumped out of - namely, the routine for Sneak/Pray/Cover (character steps forward, strikes a pose, then steps back)
$03/FF23 6B          RTL                  ;"Return," as discussed above
------------------------------------------
$02/FFC2 EA          NOP                 
$02/FFC3 EA          NOP                  ;unused remnants of old code that would take a long time to eliminate
$02/FFC4 20 8B C2    JSR $C28B  [$02:C28B];not quite sure - it's used in the "Land" routine, I think to set some variables...
$02/FFC7 22 E3 FE 03 JSL $03FEE3[$03:FEE3];Jump to subroutine (this is done to conserve valuable space in the 02 block)
++++++++++++++++++++++++++++++++++++++++++
$03/FEE3 A5 49       LDA $49    [$00:0049];Load slot # of targeted enemy
$03/FEE5 0A          ASL A                ;multiply by 2
$03/FEE6 AA          TAX                  ;transfer A to X
$03/FEE7 BD 5D F0    LDA $F05D,x[$7E:F061];Load targeted enemy's x-position
$03/FEEA 29 F8       AND #$F8             ;Eliminate (relatively insignificant and potentially bothersome) lower 7 bits
$03/FEEC 85 00       STA $00    [$00:0000];store result in 00 (custom routine won't use this, but it's done by "Land," and since we're still using a piece of that routine, best to just keep doing this)
$03/FEEE 8D 33 F1    STA $F133  [$7E:F133];store result in 7EF133
$03/FEF1 BD 5E F0    LDA $F05E,x[$7E:F062];Load targeted enemy's y-position
$03/FEF4 38          SEC                  ;
$03/FEF5 E9 18       SBC #$18             ;Subtract 18 (because the y-position here represents the top row of sprites, and things will look better if we reference a space 0x18 pixels down from there)
$03/FEF7 29 F8       AND #$F8             ;Get rid of those insignificant and potentially bothersome lower 7 bits
$03/FEF9 8D 34 F1    STA $F134  [$7E:F134];Store result in 7EF134
$03/FEFC 85 01       STA $01    [$00:0001];Store result in 01 (see note above about 00)
$03/FEFE 6B          RTL                  ;Return
------------------------------------------
$02/FFCB 20 B6 C5    JSR $C5B6  [$02:C5B6];
$02/FFCE 90 03       BCC $03    [$FFD3]   ;
$02/FFD0 20 AC C2    JSR $C2AC  [$02:C2AC];not quite sure - it's used in the "Land" routine, I think to set some variables...
$02/FFD3 A9 03       LDA #$03             ;Load "walking animation" into A
$02/FFD5 20 F7 C7    JSR $C7F7  [$02:C7F7];Jump to subroutine that stores the specified stance into the rpoper location in RAM
$02/FFD8 20 13 85    JSR $8513  [$02:8513];Jump to subroutine that writes all the changes we've made so far to the PPU
$02/FFDB 20 B6 C5    JSR $C5B6  [$02:C5B6];not quite sure - it's used in the "Land" routine, I think to set some variables...
$02/FFDE BD C5 EF    LDA $EFC5,x[$7E:F194];Load current x-position
$02/FFE1 38          SEC                  ;
$02/FFE2 E9 06       SBC #$06             ;Subtract 6
$02/FFE4 9D C5 EF    STA $EFC5,x[$7E:F194];Store in current x-position
$02/FFE7 90 03       BCC $03    [$FFEC]   ;
$02/FFE9 20 AC C2    JSR $C2AC  [$02:C2AC];not quite sure - it's used in the "Land" routine, I think to set some variables...
$02/FFEC 22 FF FE 03 JSL $03FEFF[$03:FEFF];Jump to subroutine (again, to conserve space in the 02 block)
++++++++++++++++++++++++++++++++++++++++++
$03/FEFF BD C6 EF    LDA $EFC6,x[$7E:F195];Load current y-position
$03/FF02 CD 34 F1    CMP $F134  [$7E:F134];Compare with target's y-position (minus 18, as discussed above)
$03/FF05 F0 0D       BEQ $0D    [$FF14]   ;If equal, skip ahead (and make no changes)
$03/FF07 90 05       BCC $05    [$FF0E]   ;If current y-position is less than target's, skip ahead
$03/FF09 38          SEC                  ;
$03/FF0A E9 04       SBC #$04             ;
$03/FF0C 80 03       BRA $03    [$FF11]   ;If current y-position is greater than target's then subtract 4 from current y-position
$03/FF0E 18          CLC                  ;
$03/FF0F 69 04       ADC #$04             ;If current y-position is less than target's then add 4 to current y-position
$03/FF11 9D C6 EF    STA $EFC6,x[$7E:F195];store (added or subtracted) result in current y-position
$03/FF14 AD 33 F1    LDA $F133  [$7E:F133];Load target's x-position into A
$03/FF17 6B          RTL                  ;Return
------------------------------------------
$02/FFF0 DD C5 EF    CMP $EFC5,x[$7E:F194];Compare Target's x-position with current x-position
$02/FFF3 90 E3       BCC $E3    [$FFD8]   ;If target's x-position is lower (further left), then jump back up to pass through all the position adjustments again
$02/FFF5 A9 0C       LDA #$0C             ;If currentx-positon matches target's x-position (and thus the "advance" portion is done), load 0C ("Casting" pose)
$02/FFF7 DA          PHX                  ;
$02/FFF8 20 F7 C7    JSR $C7F7  [$02:C7F7];
$02/FFFB FA          PLX                  ;Store pose in appropriate place in RAM
$02/FFFC 4C F9 C4    JMP $C4F9  [$02:C4F9];Jump to the "Jump Back" portion of the "Land" routine

 :edit:
Just for fun...
I was playing around with some of those subroutines that I don't really know what they do. When you EA out the one at $02/FFC4, this is the result:
TackLOL
 :laugh:

394
Heh... Sorry, I did see that post, but at the time I didn't really know what you were talking about.

Anyway, I pretty !such have this thing working, but I ran out of time and had to get to work. I'm off tomorrow and will post everything.

395
Hey, Grimoire - do you think the key to displaying damage might be running the subroutine at $03/CA7E? I've been looking over your command disassembly notes. It seems this subroutine runs for every damaging command except Magic (which, IIRC, deals damage differently than everything else anyway), including (and this is the intriguing part) Steal only if the failed steal deals damage.
Even if that's not it, I'm thinking the key must be embedded in the commands'  routines. It's certainly not set before the command runs, and the only stuff that seems to run differently after the command runs depends on things that happen when the command runs...
 :hmm:

396
Critical: In the regular command information, there are two "disable if" bytes; one for permanent statutes and one for temporary. Currently, the only one using the temporary status byte is Kick,which is disabled under Float. Would it be possible  (or feasible) to change it so that it checks the category of statuses that Critical falls under? If so, it would then be a simple matter of setting the corresponding flag in FF4kster.

That's a good idea... Question, though: I know that only two of the four status bytes can be used in "disable if." Anybody know which of those bytes are eligible? Critical is part of the fourth status byte...

Re: name-suppressed spells. Is there one in particular you're not using, or by your count can be easily eliminated from Unprecedented Crisis?

If these two things work like you're thinking, I think that would solve all of pur problems!

 :edit: Oops, Grimoire beat me to the punch here.
Just need to know which spell to replace with a copy of Explode, then.
This afternoon or tomorrow morning I should have enough time to put this all together.


397
The routine actually involves several manipulations of the pose, but for some reason the critical crouch takes precedence over anything else...
I'll post a commented disassembly of my routine when I can (gonna be a busy couple of days, so maybe not til Thursday, my next day off) so you can see what I'm working with (and see it in action).

398
Actually... I/we might have to rework the routine altogether...
I wrote it into the ROM I'm working with and the results are... Less than perfect.
Cid charges at the target, hits it, jumps back, then explodes.
I EA'ed out the
Code: [Select]
$03/E15D 8D C5 33 STA $33C5  [$7E:33C5] A:0032 X:0000 Y:0000 P:envMxdizc - Store A in Audiovisual.
$03/E160 20 44 CD JSR $CD44  [$03:CD44] A:0032 X:0000 Y:0000 P:envMxdizc - Jump to after the Audiovisual check has been looked at in the Spell Routine.
And that makes the explosion go away, but it still says "explode" at the top of the screen.
Also, when Cid is critical, for some reason he stays crouching instead of "walking" when he charges at the target, so I might have to make it so it fails automatically if he's critical, too.

Also, my routine is long. One byte shorter than the AV routine for Land. That makes sense, since it's based off of the same routine, but it's longer than the amount of empty space in the 02 block, so I had to use some of the empty space in the 03 block, too (the empty space at the end, not any part of Peep or Cry).

Anyway, I think I have to stop for the day.

399
Hey, Grimoire, do you think you could write a "fail if attempted on ally" into your tackle routine?
I have the visuals working fine, but if you try to use the command on an ally, the visuals make it look like it's being used on the corresponding enemy instead (that is, if you tackle the ally in party slot 02, it will look like you attack the enemy in slot 2).
Easiest solution is just to make it impossible to use on an ally...

400
1) so does Peep...don't know if Grimoire's work takes this into account? Are we concerned about this?

2) the AV assembly is in the 02 block anyway, so I won't be using any of that space. I have about 0x40 bytes to work with, which will hopefully be enough. I can't rewrite anything because Cry and Peep both use an AV routine used by other commands. So I'm going to have to write a modified version of "Land's" routine, I think, that fits into that empty space. What's nice is that the advance needs to be modified, but the jump back into place can use the same assembly as "Land," most likely. I don't wanna sound too confident, but this doesn't seem like it should be very difficult, as long as I have the room...

This will be the first step to creating FFIV:TAY like special moves Chillyfeez! I am looking forward to seeing what you find out in this regard!

Using my findings about poses as a jumping off point, I was able pretty easily to find the pointers for each command's AV routine. When this thing is over (or maybe somewhere along the way) I'll post that info. Not a whole lot of use for it in FF4kster, though you could, in theory, assign a different AV routine to a command... That is, you could make Edward jump into the air to Hide, and land when he Shows. From an assembly hacking standpoint it could be useful, though... You could make commands that look, for all intents and purposes, like an attack... Or using that small bit of space at the end of the 02 block, you could make an attack that looks like several attacks (still only one damage count, though). Or... X-magic, maybe?!
Well, anyway, lemme focus on the task at hand...

401
1) so does Peep...don't know if Grimoire's work takes this into account? Are we concerned about this?

2) the AV assembly is in the 02 block anyway, so I won't be using any of that space. I have about 0x40 bytes to work with, which will hopefully be enough. I can't rewrite anything because Cry and Peep both use an AV routine used by other commands. So I'm going to have to write a modified version of "Land's" routine, I think, that fits into that empty space. What's nice is that the advance needs to be modified, but the jump back into place can use the same assembly as "Land," most likely. I don't wanna sound too confident, but this doesn't seem like it should be very difficult, as long as I have the room...

402
So I think I'm ready to look into this tackle thing...
In order to make the integration as ssmooth as possible, which command are we replacing with tackle?

403
Has anybody ever researched why/how the evilwall moves?
Eventually, I'll be making a Tonberry, for which I'll wanna know that...

404
The problem, if I remember right, is that the game sees, "oh, we're using the Peep command" and so it doesn't set the internal flag to display damage to the target and user because, well,  Peep doesn't deal damage (nor does it heal),  so no need to run that subroutine. As we've done in the past with "cheating in" command stances/poses (before we knew how to change them at the source), we just need to find this bit of RAM and make sure that the Lancet command's routine involves turning it on.
I promise I will help with this eventually...
If you're feeling industrious, Grimoire, I think I've seen this stuff before... Run a bunch of commands (ones that show and don't show damage), set a breakpoint to the beginning of the command, then "Step Out" at the break and observe which subroutines run after the command subroutine, and which RAM flags determine whether or not they do run. Somewhere in there is bound to be the determination to run or not run the damage display subroutine.

405
Yeah, making the character graphic a chocobo took about as much hacking as all the rest of this. The image stays if you push R, too. It's all dependent on a flag. There's a lot of flag usage in this. I already talked about how setting flags makes the timer appear and disappear, there's eight flags devoted to determining how much time appears on the timer (there can be 1, 3, 5, 10, 15, 20, 25 or 30 minutes), there's another flag that can be set to make an "Escape Scenario" instead of a Time Trial - that is, when time runs out, it's Game Over instead of just losing the trial. Actually, now that I think of it, I'll probably only need one big chunk of time (20 or 30 minutes) for an escape scenario. Maybe the rest of the time choices should all be under two minutes. If this particular trial was 45 seconds, that would probably solve the problem with it being too easy.

It's definitely going to be connected to chocobo catching. I haven't decided on the full details yet. I'd like for it to be relatively easy to gain access to the chocobo time trials, but with the player still needing to do some work. The last prize for chocobo catching comes at 100, so maybe after 30 or so you get to race. My other thought, though, was to put a solitary forest tile at the edge of that lake west of Toroia (the one in the mountains with the waterfall). Of course if I did that, then you'd need the black chocobo to get there, and that was going to be the prize for 100.

At any rate, I have close to a million and a half years to figure that all out because this was, of course, yet another sidetrack from actual story progression...