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. Updated 2023-08-16: fixed a crash that happened on SA-1 ROMs if the player tried to scroll the overworld while a level name was updating. |
Tags: | level names lorom message box overworld overworld border sa-1 vwf |
Comments: | 29 (jump to comments) |
Download
36.09 KiB | 882 downloads
Comments (29)
Example here of the feature I mentioned.
This is a hack made by Daizo and some folks that use a vwf patch, I think it's the one by yoshifanatic. As soon as I press the START button, the dialogue box is closed.
Thanks for the patch, btw, it has been extremely useful for my upcoming hack.
To resolve this, go to the b4vwf.asm file, and on line 21, change it to:
And on line 223, change it to:
Where it is in bold is where it needs to be changed.
e: it turns out !HAS_STATUS_BAR = 0 does this. it works fine set to 1
This flash with these garbled tiles happens when a message is being opened for the first time. After that, there is just a black rectangle out of position.
But as I said, this is just a flash, after that the message works as intended.
(I would be willing to make a compatible version for you but as a procrastinator I highly recommend you don't ask me to do anything)
Note further that the bug mentioned in another comment was confirmed, switching from Mario to Luigi or vice versa in a 2-player game when both players are on the same map will cause a freeze on SA-1 ROMs. This update is still being accepted as this bug is present in the original accepted submission.
Bug aside, though, this patch is still really, really cool.
Tested with Asar 1.81, Lunar Magic 3.40, SA-1 1.40, Snes9x 1.62.3, BSNES Accuracy 0.7.1.
I'm not using SA-1 or anything like that, but I was playing a hack that has SA-1 and this patch.
- Overworld Indicators
- Widescreen Overworld
!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.
It does work with SA-1. I'm using in my latest hack.
Well, that's an expected behavior, since it uses BG4.
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)
If I put more than 9 font files in this patch, I get the following error:
Code
error message:
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
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:
To recreate the text in the upload screenshots, you can replace that with:
Also, how do you add longer level names on the OW. A screenshot told me you can insert 2 lines of text there.