FF6 Hacking
Multiple Fonts - 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: Multiple Fonts (/thread-3378.html)

Pages: 1 2

Multiple Fonts - madsiur - 12-08-2016

Multiple Fonts
version 1.4.1
released on 03/17/2017
apply to FF3us 1.0
wiki entry

[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!

RE: Multiple Fonts Patch (Beta) - seibaby - 12-08-2016

Great work, Madsiur!

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

RE: Multiple Fonts Patch (Beta) - madsiur - 12-08-2016

(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 ; )

RE: Multiple Fonts Patch (Beta) - madsiur - 12-08-2016

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.

RE: Multiple Fonts Patch (Beta) - madsiur - 12-15-2016

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!

RE: Multiple Fonts Patch 1.1 - madsiur - 12-16-2016

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.

RE: Multiple Fonts Patch 1.3 - madsiur - 12-17-2016

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

RE: Multiple Fonts Patch 1.4 - madsiur - 12-21-2016

Updated to version 1.4

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

RE: Multiple Fonts Patch 1.4 - seibaby - 12-21-2016

I love how much QA love this is getting Smile

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

RE: Multiple Fonts Patch 1.4 - B-Run - 12-21-2016

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.