Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
63 commits
Select commit Hold shift + click to select a range
f70f87e
Update test to include [bold]...[normal] encasing of speaking charact…
manz Sep 13, 2025
8bec1ec
Adds missing shops translations.
manz Sep 13, 2025
ff259b9
Updates formatting, make font metrics use the new font asset format.
manz Sep 13, 2025
9b7f819
Update fonts, adds more accents to the variable width 8x8.
manz Sep 13, 2025
b01321a
Moves ù at 0xAF instead of 0xB0.
manz Sep 13, 2025
3f45ef7
Update format bank.
manz Sep 13, 2025
c047985
Restores avoiding to start sentences that would overflow the current …
manz Sep 13, 2025
0c14644
Updates the 8x8 vwf font asset to interleave glyphs and width.
manz Sep 13, 2025
8388321
Updates the 8x8 vwf glyph & width loading for both battle and item de…
manz Sep 13, 2025
52fec25
Removes the menu_font_length_table.
manz Sep 13, 2025
6a53e74
Bumps a816 to 1.1.0a2 to properly support jmp (..., x).
manz Sep 13, 2025
1646012
Enable kerning for dialog font.
manz Sep 13, 2025
321034b
Makes TextMetrics kerning aware.
manz Sep 15, 2025
c7c0d90
Updates how the [new] is handled when character changes.
manz Sep 15, 2025
968ad55
Adds debugging methods, tries to make touches detection better.
manz Sep 15, 2025
1ee5819
Adds more pair to check restores custom kernings.
manz Sep 15, 2025
d2838ca
Add a flag to ENABLE_KERNING.
manz Sep 15, 2025
1202efa
Fixes the intro map that had inverted tiles at the end of the fourth …
manz Sep 15, 2025
17642af
Updates bank formatting.
manz Sep 15, 2025
f79afae
Translates save menu remaining strings.
manz Sep 15, 2025
2d2fc5e
Changes lowercase g height its shadow is cased on the next char top l…
manz Sep 15, 2025
07b7d1c
Fixes the quote in battle_message and place names.
manz Sep 16, 2025
a8279aa
The menu vwf is now stored as 1bpp just like the dialog fonts. Kernin…
manz Sep 16, 2025
8e180b0
render_kerned_string allows using an external width table.
manz Sep 16, 2025
bdbbb6d
Fix format_bank font order.
manz Sep 16, 2025
fbb37eb
Adds press button indicator character in main font.
manz Sep 16, 2025
75b201f
Draw arrow when we are expecting the player to press a button to disp…
manz Sep 16, 2025
247cb38
Translate can't fight status in main menu, greys out the whole area.
manz Sep 16, 2025
f32ff5f
Moves all code using the bank 0x1 free space at the end to the same p…
manz Sep 16, 2025
92a5631
Adds down arrow to the table.
manz Sep 16, 2025
ee4d046
Add force font tags (right now just doubling it to avoid stripping th…
manz Sep 16, 2025
01bc480
Update font metrics to support font changes.
manz Sep 16, 2025
e4ba4d4
Format dialogs again.
manz Sep 16, 2025
0aeb766
More formatting include avoiding the fourth line last tiles to make r…
manz Sep 17, 2025
a965349
Makes sure we are iterating over kerning pairs correctly, if the kern…
manz Sep 17, 2025
fb97e20
Battle text use PV/PM instead of HP/MP
manz Sep 17, 2025
fb50e55
Adds support for kerning adjustments for the vwf8 with caveats.
manz Sep 17, 2025
539968e
Display action indicators when user input is expected.
manz Sep 17, 2025
affde71
Removes previous attempt at dialog formatting
manz Sep 17, 2025
25afba3
Add more dialog action indicator characters.
manz Sep 17, 2025
cdad74f
Makes sure we don't use heavily used direct page memory.
manz Sep 18, 2025
f383bfd
Make display_char_name not use direct page memory.
manz Sep 18, 2025
fbca136
Always use the button icon colored arrows are wierd.
manz Sep 18, 2025
acdfa1f
Updates smallvwf though unused (and can probably replaced by metrics).
manz Sep 18, 2025
16969ec
removes precomputation of small text it is unused.
manz Sep 18, 2025
2db7422
Fixes missing opening brace in messages.s.
manz Sep 18, 2025
b7d421f
Adds a build date with a version in debug mode.
manz Sep 18, 2025
482b574
Updated colors draw shadow in a darker shade of the main color, adds …
manz Sep 19, 2025
a15a31f
Prevent vwf8 kerning to turn the text into garbage.
manz Sep 19, 2025
dba3fa4
Updates the menu font f.
manz Sep 19, 2025
b2b507a
Updates the table to remove 0xC3=..
manz Sep 19, 2025
304ed4c
Minor script fixes.
manz Sep 19, 2025
6913215
Update battle script for Tellah/Gilbert confrontation.
manz Sep 19, 2025
37c1958
Update build scripts.
manz Sep 19, 2025
c1ccf3a
Update ingame menu magic window scrolling position.
manz Sep 19, 2025
9b9b679
Translates the "gils" part of the inn keeper screen.
manz Sep 20, 2025
b8457a6
Fixes the wait_for_action_button patch in open_dialog_window.
manz Sep 21, 2025
9e847c3
Check if any button are pressed while drawing vwf8 descriptions, desc…
manz Sep 21, 2025
792484a
Adds Œ, œ to 8x8 vwf font.
manz Oct 6, 2025
26ed2dd
Don't use É in attack names.
manz Oct 6, 2025
a0e8749
Adds monsters long names.
manz Oct 6, 2025
994546d
Use the 8x8vwf for monster names, names and commands.
manz Oct 6, 2025
bf41e33
Remove english in game text for now.
manz Oct 6, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
247 changes: 160 additions & 87 deletions build.py

Large diffs are not rendered by default.

29 changes: 21 additions & 8 deletions ff4.s
Original file line number Diff line number Diff line change
@@ -1,14 +1,19 @@
; ----------------
; Final Fantasy IV the new hack.
; ----------------

DEBUG := 1
; Feature Flips
ENABLE_DIALOG_SKIP := 1
ENABLE_INTRO := 1
ENABLE_VWF_ATTACK_NAMES := 1
BATTLE_ENABLED := 1
MAGIC_ENABLED := 1

ENABLE_KERNING := 1
ENABLE_KERNING_MENU := 0
ENABLE_BUTTON_DISPLAY := 1
BATTLE_CMD_VWF := 1
BATTLE_NAMES_VWF := 1
BATTLE_MONSTERS_VWF := 1
; Debug flags
TRIGGER_ENDING_CUTSCENE := 0

Expand All @@ -24,7 +29,12 @@ TRIGGER_ENDING_CUTSCENE := 0
}
.include 'src/battle/message_patches.s'
.include 'src/battle/sram_patches.s'

.if BATTLE_MONSTERS_VWF {
.include 'src/battle/monsters_patches.s'
}
}

.include 'src/places_names.s'
.include 'src/new_game.s'
.include 'src/credits.s'
Expand All @@ -45,7 +55,7 @@ dialog_bank_ptr_base = 0x218000
*=0xFFD6
.db 0x02 ; Cartridge Type
.db 0x0B ; ~ 0BH ROM Size
.db 0x06 ; RAM Size
.db 0x07 ; RAM Size



Expand Down Expand Up @@ -91,12 +101,11 @@ clear_ram:
_loop:
sta.l 0x702000, x
inx
cpx.w #0x4000
cpx.w #0x5000
bne _loop
}
rtl

;
.include 'src/libmz.s'
.if ENABLE_INTRO {
.include 'src/intro.s'
Expand All @@ -108,9 +117,11 @@ _loop:
.include 'src/battle/sram.s'
.include 'src/battle/message.s'
.include 'src/battle/graphics.s'
.include 'src/battle/monsters_reloc.s'
.if MAGIC_ENABLED {
.include 'src/battle/magic/reloc.s'
}
.include 'src/battle/commands_reloc.s'
}
.include 'src/dialog.s'
.include 'src/places_names_window.s'
Expand All @@ -125,6 +136,10 @@ _loop:

.incbin 'assets/attack_names.ptr'
.incbin 'assets/attack_names.dat'
.incbin 'assets/monsters_long.ptr'
.incbin 'assets/monsters_long.dat'
.incbin 'assets/battle_commands_nul.ptr'
.incbin 'assets/battle_commands_nul.dat'
.incbin 'assets/magic.dat'
.incbin 'assets/places_names.dat'
.incbin 'assets/classes.ptr'
Expand All @@ -150,7 +165,6 @@ _loop:

*=0x288000
.incbin 'assets/menu_font.dat'
.incbin 'assets/menu_font_length_table.dat'
.incbin 'assets/font.dat'
.incbin 'assets/wicked_font.dat'
.incbin 'assets/book_font.dat'
Expand Down Expand Up @@ -186,5 +200,4 @@ font_table:
lda #0x39
nop
}


;end
Binary file modified fonts/8x8.bin
Binary file not shown.
Binary file modified fonts/8x8vwf.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed fonts/8x8vwf2p.png
Binary file not shown.
Binary file modified fonts/book_vwf.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified fonts/vwf.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading