• Welcome to Final Fantasy Hacktics. Please login or sign up.
 

Weird issue with this ASM hack

Started by Emmy, September 07, 2016, 11:45:45 pm

Emmy

So I came across a strange issue with my Amplify hack.  The intended effect is to +1 AOE on moves with the blank flag in Patcher that's between "hit allies" and "follow target" if the caster has the ability (1/2 mp slot).  Instead it sometimes seems to have some memory of if something acted in the past turn that had it, so it acts both as if the caster who has it does, and the next guy to act as well. :(  I've never had a hack 1/2 work before - usually it either works totally or doesn't work at all in a way that's more obvious (no effect, game crashes, 999 damage everywhere, etc).

For reference here it is:

http://pastebin.com/4wRhRg5s

Relevant routine:

http://ffhacktics.com/wiki/Targeting_routine
  • Modding version: PSX

Glain

From just looking it over a bit, I'd guess that the attacker's data pointer may not be loaded into 0x80192d94 yet when the targeting routine is called (a few lines down, the attacker's pointer is loaded by adding r2 and r5 at 0x17b8ec), but you're using 0x80192d94 in your new code block that hooks in from there, which might explain why it's sometimes looking at the last unit to act instead of the current one.

Also, wouldn't this support ability double the MP of every ability, not just the ones that are flagged appropriately? As in, everything has MP * 2 but only certain flagged abilities have effect area + 1?
  • Modding version: Other/Unknown