Posts: 621
Threads: 49
Joined: Feb 2017
Reputation:
27
I was just looking into Relic balancing today, and came across the discrepancy with the Earrings vs. the Atlas Armlet. I thought I was going to have to code this myself. Thanks for saving me the trouble!
Projects:
FFVI: Divergent Paths (Completed) - a complete storyline and gameplay hack of FF6 that adds Leo as a playable character
Posts: 621
Threads: 49
Joined: Feb 2017
Reputation:
27
10-04-2022, 03:26 PM
(This post was last modified: 10-04-2022, 07:13 PM by PowerPanda.)
Necropost!
First off, I love this hack. The way that you have coded the damage bonuses makes so much more sense than the original, and is the way it should have been coded.
Now, the unfortunate side. This patch can cause damage overflow. If the Damage that was stored in $11B0 after the Offering/Gauntlet/Genji Glove calculation is higher than #$AAAA (dec 43,690), then this patch can cause a 16-bit overflow and result in fractional damage being dealt. I combined this with Drakkhen's damage overflow patch, which drops total damage to #$FFFF if it overflows the 16-bit field. This is presumably so that people can remove the 9999 cap if they want to. There are 2 ways to fix this. Since I am retaining the 9999 cap, I made a change to Drakkhen's code that it drops total damage to #$270F (9999) before it passes off the damage to your code.
However, if you wanted to fix this in this patch itself, then you'd simply need to add a check that says, "If $11B0 is already higher than #270F, skip over adding the bonus."
Projects:
FFVI: Divergent Paths (Completed) - a complete storyline and gameplay hack of FF6 that adds Leo as a playable character
Posts: 621
Threads: 49
Joined: Feb 2017
Reputation:
27
10-05-2022, 11:07 PM
(This post was last modified: 10-05-2022, 11:08 PM by PowerPanda.)
I was still having problems with this, so I went to the Discord for help. Seibaby took a look at the code, and found that the problem is in the ;update damage section. You are applying a 9999 damage cap BEFORE the enemy defense gets figured in. The CMP #$270F and LDA #$270F need to be changed to CMP #$FFFF and LDA #$FFFF. This fixes the issue.
Projects:
FFVI: Divergent Paths (Completed) - a complete storyline and gameplay hack of FF6 that adds Leo as a playable character
Posts: 22
Threads: 0
Joined: Apr 2017
Reputation:
0
Can someone please upload a fixed version? It looks like Hatzen is no longer updating his files. This patch looks wonderful, but seems a little unsafe until the noted change is made.
Posts: 621
Threads: 49
Joined: Feb 2017
Reputation:
27
I'll look at my notes on this one, and try to release an updated version.
Projects:
FFVI: Divergent Paths (Completed) - a complete storyline and gameplay hack of FF6 that adds Leo as a playable character
Posts: 22
Threads: 0
Joined: Apr 2017
Reputation:
0
12-23-2022, 10:50 AM
(This post was last modified: 12-23-2022, 04:58 PM by Dev J.)
Thank you! Could you please also upload Wilder Randomness 4.4 as an ips? I tried Gi Nattak's asm version of 4.4 & it had errors with my quirky expanded rom. I'm sure I'll have better luck with a headered ips like 4.2 is.