marcussacana / MwareStuff

My tools to the Mware Engine
The Unlicense
60 stars 12 forks source link

Text goes out of the text box #38

Closed Lumminal closed 2 years ago

Lumminal commented 2 years ago

I got the tools working correctly, the font already supports my language so I didn't change it but one problem that I have encountered in game is that the text goes out of the text box and I wonder if there's any way to add a line break or something to fix this. The game is full metal Daemon Muramasa. Thanks

marcussacana commented 2 years ago

This will required change the font size. You need know if the game use a otf or windows font, if yes, use the StringReloads tool to resize the font. If the game use a font in the MwareEngine format, this is the max that I can hint you: https://github.com/marcussacana/MwareStuff/issues/3#issuecomment-630182382

Lumminal commented 2 years ago

Hello, Marcus! I'm truly sorry for the late response... I was out. Anyways, the game is using a .TTF font and I managed to change the font size, however for some unknown reason the game crashes if I put any value lower or higher than +5 in the Height option.

marcussacana commented 2 years ago

That's strange, enable the SRL log and set the loglevel to TRC and see if any error information is shown.

Lumminal commented 2 years ago

https://pastebin.com/FEfj0d8b

The log crashes there

Thanks again

marcussacana commented 2 years ago

Not sure if is related, but you put a invalid font name. The SRL don't expect a font file name, but a font face name. if you want load your own font file, enable the LoadLocalFonts and set the Facename to your font facename.

Lumminal commented 2 years ago

Alright! It works! I just had to change the to parameter to Droid Serif instead of droidserif-muramasa.ttf like you said. Thanks a lot marcus, and generally thanks for helping other people quick and providing useful tools for us to use! I'll be sure to donate something soon when I get the chance.