FF6 Hacking
No Gradient Patch (with optional toggle menu option) - Printable Version

+- FF6 Hacking (https://www.ff6hacking.com/forums)
+-- Forum: Hacks, Resources and Tutorials (https://www.ff6hacking.com/forums/forum-1.html)
+--- Forum: Jidoor Auction House (https://www.ff6hacking.com/forums/forum-4.html)
+---- Forum: Patches, Bugfixes, Tweaks (https://www.ff6hacking.com/forums/forum-15.html)
+---- Thread: No Gradient Patch (with optional toggle menu option) (/thread-3483.html)



No Gradient Patch (with optional toggle menu option) - madsiur - 05-23-2017

No Gradient Hack
version 1.0
released on 05/23/2017
apply to FF3us 1.0
wiki entry
Download

[Image: fetch.php?media=ff3:ff3us:patches:madsiu...battle.png] [Image: fetch.php?media=ff3:ff3us:patches:madsiu...config.png] [Image: fetch.php?media=ff3:ff3us:patches:madsiu...alogue.png]


Offsets Affected
bank $C0, $C1, $C3, $D4 (see ASM files)

Free Space Used
no_gradient: 0 byte
menu_gradient: $C3F091-$C3F13C, $EFFBC8-$EFFDF2


Description
This hack remove the gradient. There are two patches, one that removes it permanently, one that adds a menu option to toggle the gradient. Code could maybe be optimized (HDMA data and gradient table for no gradient option), but for now it is what it is.

For the free space used, $C0F091 code can be relocated elsewhere in same bank and $EFFBC8 code elsewhere in the ROM. I included some custom menu background screenshots examples with no gradient but these are not included with the hack.

no_gradient can be assembled with bass and menu_gradient with xkas (yeah, weird and this will change in future release if one).

 Victory


RE: No Gradient Patch (with optional toggle menu option) - JCE3000GT - 05-23-2017

This is an awesome feature. Laugh


RE: No Gradient Patch (with optional toggle menu option) - DrakeyC - 05-25-2017

I have to move the $C0F091 code elsewhere, but I looked through the asm and didn't see where it looks there for info? I'd presume some sort of pointer or something would have to be reset to the new location?


RE: No Gradient Patch (with optional toggle menu option) - madsiur - 05-25-2017

(05-25-2017, 09:56 AM)DrakeyC Wrote: I have to move the $C0F091 code elsewhere, but I looked through the asm and didn't see where it looks there for info? I'd presume some sort of pointer or something would have to be reset to the new location?

I'm not sure I understand your question... the org $C3F091 command is on line 104 of the ASM file:

Code:
org $C3F091
initSram:                ; Initialize Gradient value to True (00)

You just need to change this line to a free $C3 offset that covers $AB bytes (only option is between $C3F091 and ~$C3FF40). The label system used does all the other changes in code.


RE: No Gradient Patch (with optional toggle menu option) - DrakeyC - 05-25-2017

Oooooooh, I misread, sorry. I was going to use the no toggle variant and was looking at that .asm, I misread the OP. Sorry. Works fine for me, carry on.


RE: No Gradient Patch (with optional toggle menu option) - madsiur - 05-25-2017

(05-25-2017, 01:09 PM)DrakeyC Wrote: Oooooooh, I misread, sorry. I was going to use the no toggle variant and was looking at that .asm, I misread the OP. Sorry. Works fine for me, carry on.

yeah the straight no_gradient patch take 0 byte of free space but it's really for gradient haters :P