Language…
10 users online: Darolac, howardadam1126, isaix, lean4, obiet, Oskise,  Segment1Zone2, Shiki_Makiro, SpacePea, Zavok - Guests: 262 - Bots: 325
Users: 64,795 (2,377 active)
Latest user: mathew

b4vwf - BG4 Variable-Width-Font Text Boxes

SMW Patches → b4vwf - BG4 Variable-Width-Font Text Boxes

This file is obsolete. The latest version is b4vwf - BG4 Variable-Width-Font Text Boxes. For other versions, check the version history.

Submission Details

Name: b4vwf - BG4 Variable-Width-Font Text Boxes
Author: Katrina
Added:
Version History: View
Tool: Asar
Requires Free Space: Yes
Bug Fix: No
Featured: No
Description: This patch replaces SMW's text box system with a fancier one with that displays text on BG4.

The default text boxes work with common types of HDMA (like color gradients and parallax), and any layer 3 background that doesn't use the graphics file in slot LG3, which includes every vanilla layer 3 background except tides.

The patch optionally supports using variable-width text for level names on the overworld, so it can replace long level name patches as well.

The text boxes have some formatting options so you can customize their look on a global or per-text-box basis.
Tags: level names lorom message box overworld overworld border sa-1 vwf
Comments: 20 (jump to comments)
Download 36.09 KiB | 668 downloads

Screenshots

View all

Comments (20)

GatoSlashFish Link
Just a heads up, I believe I may have found an issue with using overworld names via this patch. If you attempt to scroll the map on the main overworld while the text is still writing itself, it will cause your game to crash. Not sure if it's just something with any patches I have installed currently, but it's a problem I've run into even with just SA-1 and the UberASM Retry patch.
Katrina Author Link
I looked into this bug for just a moment and it didn't happen on my test ROM, so it seems like a patch conflict, but I don't know which patch (the test ROM is not SA-1). I'll try to look into it again soon, but I recently changed setups and it's not convenient for me to try out combinations of patches right now.
Katrina Author Link
This crash totally happens with just b4vwf and the SA-1 pack. Thanks for the bug report. I haven't looked into how it happens so it might be a while before I get a fix done
Heitor Porfirio Link
Is this patch compatible with these patches, if using the OW Level Names option?

- Overworld Indicators
- Widescreen Overworld
 Anorakun Link
Yes, it is. I'm using both of them in my hack.
Apple Boy Link
Is this compatible with the DKCR Status Bar
Katrina Author Link
In b4vwf/settings.asm, set:
!HAS_STATUS_BAR = 0

and in status_bar_config.asm, set:
!UseVWFDialogues = 1
!VWFState = $1426|!base

It's dorky but seems to work. Also, apologies if this reply is unwelcome after the extremely long delay.
 Anorakun Link
Originally posted by Rykon-V73
Shame this doesn't use SA-1. It's a good candidate for my hack.


It does work with SA-1. I'm using in my latest hack.
Rykon-V73 Link
Shame this doesn't use SA-1. It's a good candidate for my hack.
 Anorakun Link
Originally posted by Hayashi Neru
※ Do not use in Mode 0 level. If using in mode 0, Layer 4 background is gone.


Well, that's an expected behavior, since it uses BG4.
Hayashi Neru Link
※ Do not use in Mode 0 level. If using in mode 0, Layer 4 background is gone.
Soul Link
"This isn't a house Yoshi, These are trees." Gives this a 6/5 rating
Vitor Vilela Link
Moderation comments - an excellent and well-written patch. The readme and instructions made the process easier to understand and this patch is one that you don't need to be afraid to use if you are looking to a more flexible text box system with different kind of fonts.

It's hard to test with all combinations, but I believe the critical sections of the patch have been verified and it should be safe to use.

Keeping in mind naturally given the complexity and scope of the patch, it may not compatible with the following patches due of hijack conflicts found:
- Inline Layer 3 Messages v1.0.1
- Automatic Intro Message Dismiss
- Extended "Extended OW Level Names" (if using the overworld hijack option)
- Yoshi Player Patch v1.13 (if using the overworld hijack option)

Vitor Vilela Link
Interesting patch, very creative way to use BG4
Hayashi Neru Link
If I put more than 9 font files in this patch, I get the following error:

error message:
Code
/b4vwf/font.asm:311: error: (E5032): A bank border was crossed, SNES address $5010800. [incbin "gfx/Uni4100.bin"]



If using Japanese, Chinese, or Korean fonts, there are need to use a lot of glyphs. Of course, Japanese can only use hiragana and katakana, but Chinese and Korean do not.

How can I solve this problem?


Solved
Rykon-V73 Link
I see. Thanks and as for that error, I think my emulator is bugged in a weird way.
Katrina Author Link
Rykon,

I'm not getting disappearing layer 3. If you found a bug I missed, I will need more information to find out what is causing it. Submission comments aren't great for this, so I would appreciate if you could send me a PM or contact me on Discord with some information about your setup.

As for level names: the patch is set up for two-line level names by default. If you look in levelnames.asm, you will see that all of SMW's level names have an empty line on top to put them on the second line:
Code
name104:
	db "", $0a
	db "YOSHI'S HOUSE", $00


To recreate the text in the upload screenshots, you can replace that with:
Code
name104:
	db "This isn't a house, Yoshi.", $0a
	db "These are trees.", $00
Rykon-V73 Link
Great patch. I did find a bug. Even if you trigger the layer 4 message box, layer 3 still vanishes.
Also, how do you add longer level names on the OW. A screenshot told me you can insert 2 lines of text there.
Black Goku Link
Forgot Sa-1 tag
Vivian Darkbloom Link
This is so cool and so useful. I'm glad it exists, I was waiting for it for over a year.