[Solved] NVL Mode text clipping and overlapping

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
User avatar
AFI-kun
Newbie
Posts: 7
Joined: Mon Oct 03, 2016 11:13 am
Contact:

[Solved] NVL Mode text clipping and overlapping

#1 Post by AFI-kun »

Images of what I'm experiencing:
Image
Image
Here's the code for my NVL narrator:

Code: Select all

narrator_adv = Character(None, kind=nvl)
Any help would be much appreciated, thanks!


ps. Sorry for posting two new threads in a row.

pps. Background art is a placeholder, just trying out RenPy, game isn't for public release. Kudos to anyone who can recognize where the image is from!
Last edited by AFI-kun on Thu Oct 20, 2016 10:26 pm, edited 1 time in total.

User avatar
papiersam
Veteran
Posts: 231
Joined: Fri Aug 12, 2016 2:24 pm
Completed: Gem Hunt Beta, 1/Probably, Animunch
Projects: The Panda Who Dreamed
Contact:

Re: Text in NVL mode cuts off and next line overlaps prev li

#2 Post by papiersam »

Did you try using nvl clear each time you want to clear the window?

User avatar
AFI-kun
Newbie
Posts: 7
Joined: Mon Oct 03, 2016 11:13 am
Contact:

Re: Text in NVL mode cuts off and next line overlaps prev li

#3 Post by AFI-kun »

r_sami wrote:Did you try using nvl clear each time you want to clear the window?
Yup! I've tried placing the offending line so that it's the very first message in the game and the text still cuts off at the fifth line. I've had the same problem when trying to move the text by changing what_yoffset; the text would cut off at about the same place where the text cuts off in the image I've posted.

User avatar
papiersam
Veteran
Posts: 231
Joined: Fri Aug 12, 2016 2:24 pm
Completed: Gem Hunt Beta, 1/Probably, Animunch
Projects: The Panda Who Dreamed
Contact:

Re: Text in NVL mode cuts off and next line overlaps prev li

#4 Post by papiersam »

It's just a guess, but try splitting the text into smaller strings.

User avatar
AFI-kun
Newbie
Posts: 7
Joined: Mon Oct 03, 2016 11:13 am
Contact:

Re: Text in NVL mode cuts off and next line overlaps prev li

#5 Post by AFI-kun »

r_sami wrote:It's just a guess, but try splitting the text into smaller strings.
Yeah, that works, but it doesn't seem optimal :\ Thanks anyway!

User avatar
papiersam
Veteran
Posts: 231
Joined: Fri Aug 12, 2016 2:24 pm
Completed: Gem Hunt Beta, 1/Probably, Animunch
Projects: The Panda Who Dreamed
Contact:

Re: Text in NVL mode cuts off and next line overlaps prev li

#6 Post by papiersam »

but it doesn't seem optimal
I've known for a long time that large texts aren't too friendly with Renpy screens and all, but maybe somewhere there's a better way to integrate it that I haven't seen yet. I think I used Python's long string to work around it, I don't quite remember.

User avatar
AFI-kun
Newbie
Posts: 7
Joined: Mon Oct 03, 2016 11:13 am
Contact:

Re: Text in NVL mode cuts off and next line overlaps prev li

#7 Post by AFI-kun »

r_sami wrote:
but it doesn't seem optimal
I've known for a long time that large texts aren't too friendly with Renpy screens and all, but maybe somewhere there's a better way to integrate it that I haven't seen yet. I think I used Python's long string to work around it, I don't quite remember.
Seems it's not just string length, though. Changing the y-offset for the text produces the same clipping effect. I'm also having problems changing NVL's window padding.

User avatar
PyTom
Ren'Py Creator
Posts: 16096
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

Re: Text in NVL mode cuts off and next line overlaps prev li

#8 Post by PyTom »

The NVL-mode height is wrong. You can fix this by either setting gui.nvl_height to a bigger number, or set it to None to auto-size things.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
Software > Drama • https://www.patreon.com/renpytom

User avatar
AFI-kun
Newbie
Posts: 7
Joined: Mon Oct 03, 2016 11:13 am
Contact:

Re: Text in NVL mode cuts off and next line overlaps prev li

#9 Post by AFI-kun »

PyTom wrote:The NVL-mode height is wrong. You can fix this by either setting gui.nvl_height to a bigger number, or set it to None to auto-size things.
That did the trick! Thanks!!

Post Reply

Who is online

Users browsing this forum: No registered users