Users browsing this thread: 1 Guest(s)
Multiple Fonts

#1
Posts: 3,966
Threads: 279
Thanks Received: 233
Thanks Given: 56
Joined: Oct 2011
Reputation: 65
Status
Tissue-aware
Multiple Fonts
version 1.4.1
released on 03/17/2017
apply to FF3us 1.0
wiki entry
Download

[Image: fetch.php?media=ff3:ff3us:patches:madsiu...:fonta.png] [Image: fetch.php?media=ff3:ff3us:patches:madsiu...:fontb.png]


This patch implement a selectable GBA Font in Config menu. The only free space it use is less than $D0 bytes at end of bank $C3 for actual menu work. Otherwise, functions have been optimized or at least shortened in order to fit in the new code, especially in bank $C0. There are other code changes but they are smaller and always within the function they originally are from. See the asm files for all details. Some code still need comments but the uncommented stuff is long vanilla code with little changes.

There are 2 hacks or implementations. The Original hack and the one made for expanded ROMs (EXP).

In the Original hack, both fonts fits where the original font was, using the free space before and after in bank $C4. The free space used before the FWF to draw black menu backgrounds has been simulated by loading blank tiles in VRAM. This mean this version of the patch does not work with icon expansion s or other hack adding characters in the FWF before index 0x80. Since original font is moved, this patch break FF3usME dialogue viewing but not dialogue editing. You can always open a second editor instance to find caption, see changes, etc.

In the Expanded Hack (EXP files), Normal font is keep where it is in original ROM while Advance (GBA) Font is moved to $F20800. Note that the $F20000-$F207FF range is reserved and filled
with 00 to copy like in bank $C4 the empty space before the Normal FWF. With this version of the hack, you can see dialogues edits made in FF3usME and you can expand FWF characters before index 0x80.

A new dialogue control code have been added. Writing $17 at the beginning of a line now center automatically the line given it ends by new line ($01), end parameter ($11, $12) or end page ($13). This is still experimental but instance of the control code have not been added to dialogue. You must do it yourself. In FF3usME, use [OP$17]. (see here)

For other modifications I included the ASM files. You can assemble the code by typing the command xkas main.asm romname.smc or xkas main_EXP.asm romname.smc with xkas 0.06. If you use the header option in the ASM files you must enable it in all files.

Thanks to seibaby for his GBA fonts!
  Find
Quote  
[-] The following 6 users say Thank You to madsiur for this post:
  • B-Run (12-21-2016), Gi Nattak (12-08-2016), JWhiteLXXXIX (12-08-2016), seibaby (12-08-2016), SilentEnigma (03-14-2020), SSJ Rick (12-09-2016)

#2
Posts: 281
Threads: 18
Thanks Received: 12
Thanks Given: 8
Joined: Mar 2014
Reputation: 8
Status
None
Great work, Madsiur!

The only thing I'd change is "GBA" -> "Advance" in the font selector option.
  Find
Quote  

#3
Posts: 3,966
Threads: 279
Thanks Received: 233
Thanks Given: 56
Joined: Oct 2011
Reputation: 65
Status
Tissue-aware
(12-08-2016, 02:09 PM)seibaby Wrote: The only thing I'd change is "GBA" -> "Advance" in the font selector option.

Good idea! In a upcoming Beta 2 or 1.0 version though ; )
  Find
Quote  

#4
Posts: 3,966
Threads: 279
Thanks Received: 233
Thanks Given: 56
Joined: Oct 2011
Reputation: 65
Status
Tissue-aware
Updated to version BETA 2a!

- Fixed a bug where changing Font was resetting wallpaper selection if not default wallpaper. The change was only while in menu, re-entering from main was displaying good wallpaper. Now the custom wallpaper selection always stay when you change font. (bug found by Gi Nattak)

- Changed "GBA" String to "Advance". (suggested by seibaby)

Evening Update
I added a version of the hack (EXP files) where the Advance Font is in Expanded ROM ($F20000-$F224FF). This allow to not break the dialogue viewing in FF3usME.
  Find
Quote  
[-] The following 2 users say Thank You to madsiur for this post:
  • Gi Nattak (12-08-2016), SSJ Rick (12-09-2016)

#5
Posts: 3,966
Threads: 279
Thanks Received: 233
Thanks Given: 56
Joined: Oct 2011
Reputation: 65
Status
Tissue-aware
Updated to version 1.1 (BETA 2a was RHDN v1.0)

- Fixed a bug with Advance (GBA) item descriptions loading in EXP version. Thanks to Gi Nattak for report!
  Find
Quote  
[-] The following 1 user says Thank You to madsiur for this post:
  • Gi Nattak (12-15-2016)

#6
Posts: 3,966
Threads: 279
Thanks Received: 233
Thanks Given: 56
Joined: Oct 2011
Reputation: 65
Status
Tissue-aware
Updated to version 1.2

- Fixed a bug where entering a flashback sequence with GBA font on would freeze the game. Thanks to James White for the report.
  Find
Quote  

#7
Posts: 3,966
Threads: 279
Thanks Received: 233
Thanks Given: 56
Joined: Oct 2011
Reputation: 65
Status
Tissue-aware
Updated to version 1.3

- Fixed a bug with FWF digits loading when on a map
- Fixed a bug that froze screen when exiting menu on some maps
  Find
Quote  
[-] The following 1 user says Thank You to madsiur for this post:
  • JWhiteLXXXIX (12-18-2016)

#8
Posts: 3,966
Threads: 279
Thanks Received: 233
Thanks Given: 56
Joined: Oct 2011
Reputation: 65
Status
Tissue-aware
Updated to version 1.4

- Fixed a bug with Font loading in VRAM for Colosseum matchup screen.
  Find
Quote  

#9
Posts: 281
Threads: 18
Thanks Received: 12
Thanks Given: 8
Joined: Mar 2014
Reputation: 8
Status
None
I love how much QA love this is getting Smile

But Madsiur, I think you're being too generous with your version numbers... :p
  Find
Quote  

#10
Posts: 763
Threads: 83
Thanks Received: 55
Thanks Given: 7
Joined: Apr 2015
Reputation: 22
Status
Obliviscence
You need to condense your code into a single .asm or use hard address calls. the JSLs to C0 dont apply in xkas cause it the C1 and C3 files don't see the label declared.

Also, this breaks my battles in CoV =(... probably because I have the 5-digit damage patch already applied. I was hoping this wouldn't affect damage numerals... or if it doesnt, i'll have to figure out the other conflict. CoV would love this patch.
  Find
Quote  



Forum Jump:

Users browsing this thread: 1 Guest(s)


Theme by Madsiur2017Custom Graphics by JamesWhite