Users browsing this thread: 1 Guest(s)
No Gradient Patch (with optional toggle menu option)

#1
Posts: 3,969
Threads: 279
Thanks Received: 236
Thanks Given: 57
Joined: Oct 2011
Reputation: 65
Status
Tissue-aware
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
  Find
Quote  
[-] The following 4 users say Thank You to madsiur for this post:
  • DrakeyC (05-25-2017), Gi Nattak (05-23-2017), JCE3000GT (05-23-2017), JWhiteLXXXIX (05-23-2017)

#2
Posts: 484
Threads: 62
Thanks Received: 7
Thanks Given: 7
Joined: May 2011
Reputation: 6
Status
Regen
This is an awesome feature. Laugh


[Image: jce3000gt_md.png]

[Image: jce3000gt.jpg]
Quote  

#3
Posts: 734
Threads: 36
Thanks Received: 12
Thanks Given: 41
Joined: Jan 2016
Reputation: 6
Status
None
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?
  Find
Quote  

#4
Posts: 3,969
Threads: 279
Thanks Received: 236
Thanks Given: 57
Joined: Oct 2011
Reputation: 65
Status
Tissue-aware
(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.
  Find
Quote  

#5
Posts: 734
Threads: 36
Thanks Received: 12
Thanks Given: 41
Joined: Jan 2016
Reputation: 6
Status
None
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.
  Find
Quote  

#6
Posts: 3,969
Threads: 279
Thanks Received: 236
Thanks Given: 57
Joined: Oct 2011
Reputation: 65
Status
Tissue-aware
(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
  Find
Quote  



Forum Jump:

Users browsing this thread: 1 Guest(s)


Theme by Madsiur2017Custom Graphics by JamesWhite