11 users online: alef,  BeeKaay, dequeiroz, gaminggiga, KaidenThelens,  MarioFanGamer, MarsAmpere, PepsiLover22, Sn0wstormS, SweatyNoodle, Zavok - Guests: 64 - Bots: 368
Users: 58,856 (2,244 active)
Latest user: smokyking

b4vwf - BG4 Variable-Width-Font Text Boxes

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

Submission Details

Name: b4vwf - BG4 Variable-Width-Font Text Boxes
Author: Katrina
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: 17 (jump to comments)
Download 36.09 KiB | 541 downloads


View all

Comments (17)

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.
AppleBoy54321 Link
Is this compatible with the DKCR Status Bar
 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.
Hayashi Neru Link
Notice: This patch is not compactable New Super Mario Bros. Wii Styled Status Bar v1.7 (Even if "!HAS_STATUS_BAR" is set to 0)
Ice Man provided a solution in the comments of the patch.
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:
/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?

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

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:
	db "", $0a
	db "YOSHI'S HOUSE", $00

To recreate the text in the upload screenshots, you can replace that with:
	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.