Page 1 of 1

Newline not working and text being cut off on NVL

Posted: Thu May 20, 2021 10:27 pm
by Evernow
Hello there!

Currently have an issue where when a text gets too long (either by length of when using a newline) it does not show up properly.

For example:

Code: Select all


    d "From this time forward, my sword shall be with you and your fate shall be \n  with me. Now, our contract is complete.\" "
    
It simply results in it being cut off. This happens with or without the newline.

https://cdn.discordapp.com/attachments/ ... nknown.png

These are my NVL settings

Code: Select all




define gui.nvl_borders = Borders(0, 15, 0, 30)
define gui.nvl_height = None
define gui.nvl_spacing = 20
define gui.nvl_text_xpos = 350
define gui.nvl_text_ypos = 40
define gui.nvl_text_width = 1300

define config.nvl_list_length = 100

Another example of text being cut off when using a newline is this: https://cdn.discordapp.com/attachments/ ... -46-37.mp4

Code in question in that video:

Code: Select all


    e "Trying to dodge it would be useless."
    e "Being lightning, it’s invisible to the human eye.\n"
    nvl hide

...other stuff...

    nvl show

    e "\nBut..."
    e "The lightning that tries to pierce me…"

I have tried having just one newline both at the line before and at the line in question. This also happens anywhere I try to do a newline with nvl.

Any help is greatly appreciated!

Re: Newline not working and text being cut off on NVL

Posted: Fri May 21, 2021 5:35 am
by Ocelot
Check gui.nvl_height variable. It controls height of a single Nvl entry. If you plan on using multiline sentences, it would make sense to set it to None to make it dynamically sized.

Re: Newline not working and text being cut off on NVL

Posted: Fri May 21, 2021 11:35 am
by Evernow
Ocelot wrote:
Fri May 21, 2021 5:35 am
Check gui.nvl_height variable. It controls height of a single Nvl entry. If you plan on using multiline sentences, it would make sense to set it to None to make it dynamically sized.
Sadly already set to none

Code: Select all





define gui.nvl_borders = Borders(0, 15, 0, 30)
define gui.nvl_height = None
define gui.nvl_spacing = 20
define gui.nvl_text_xpos = 350
define gui.nvl_text_ypos = 40
define gui.nvl_text_width = 1300

define config.nvl_list_length = 100



Re: Newline not working and text being cut off on NVL

Posted: Sun May 23, 2021 12:37 am
by Evernow
If anyone else encounters this, make sure to do CTRL + F and find other occurrences of the gui.nvl_height variable. I had it set to None at the top, but I did not know there was another value elsewhere.