[solved] Empty textbox / narrator screen shows up while using renpy.pause()

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
Errilhl
Regular
Posts: 164
Joined: Wed Nov 08, 2017 4:32 pm
Projects: HSS
Deviantart: studioerrilhl
Github: studioerrilhl
Contact:

[solved] Empty textbox / narrator screen shows up while using renpy.pause()

#1 Post by Errilhl »

Okay, I've noticed some unwarranted / uncalled textboxes (empty ones) showing up sometimes in my game, but I haven't really done that much about them. However, I was testing out nvl-mode for the narrator, which made the problem a lot more... problematic.

What happens is this: (all this in uncompiled dev mode, which might play into it)
I go through a dialogue, perhaps with a menu-item, and I click the button, and the jump happens (there are sometimes variables involved, sometimes not) - when it transforms between the dialogue / menu to the label (with more variables and dialogue, normally), the narrator window flashes briefly on the screen. I was wondering if anyone has seen this, and know of a fix?

Edit: I tested the compiled release-version now, and it happens there as well. So it's got nothing to do with it being the developer version, at least.

Another edit: I changed the title, because this seems to be correlating to pause-calls. So, if I call pause, the textbox flashes, or stays on the screen, depending on what else is happening, and how long the pause is. So... is there a way to hide the textbox automatically when calling renpy.pause()?
Last edited by Errilhl on Thu Nov 30, 2017 12:25 pm, edited 1 time in total.
Currently working on: Image

Errilhl
Regular
Posts: 164
Joined: Wed Nov 08, 2017 4:32 pm
Projects: HSS
Deviantart: studioerrilhl
Github: studioerrilhl
Contact:

Re: Empty textbox / narrator screen shows up while using renpy.pause()

#2 Post by Errilhl »

Anyone have any clue about this? Any way to hide the textbox when there is no content / it's empty?
Currently working on: Image

User avatar
Imperf3kt
Lemma-Class Veteran
Posts: 3794
Joined: Mon Dec 14, 2015 5:05 am
itch: Imperf3kt
Location: Your monitor
Contact:

Re: Empty textbox / narrator screen shows up while using renpy.pause()

#3 Post by Imperf3kt »

Hide the window manually before your pause

Code: Select all

window hide
# your pause here
window auto
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.

Current project: GGD Mentor

Twitter

Errilhl
Regular
Posts: 164
Joined: Wed Nov 08, 2017 4:32 pm
Projects: HSS
Deviantart: studioerrilhl
Github: studioerrilhl
Contact:

Re: Empty textbox / narrator screen shows up while using renpy.pause()

#4 Post by Errilhl »

That is... actually sort of a hassle... don't see why this isn't a one-time setting in a config somewhere (hide_if_empty = True). But thanks, I will have to go through and fix all my pause-statements now :D
Currently working on: Image

Errilhl
Regular
Posts: 164
Joined: Wed Nov 08, 2017 4:32 pm
Projects: HSS
Deviantart: studioerrilhl
Github: studioerrilhl
Contact:

Re: Empty textbox / narrator screen shows up while using renpy.pause()

#5 Post by Errilhl »

Ended up making a transparent textbox, and adding the following to the screen say:

Code: Select all

        if who is not None and what:
            background Image("gui/textbox_cutout.png", xalign=0.5, yalign=1.0)
        elif not what:
            background Image("gui/textbox_transparent.png", xalign=0.5,yalign=1.0)
        else:
            background Image("gui/textbox.png", xalign=0.5, yalign=1.0)
Currently working on: Image

Errilhl
Regular
Posts: 164
Joined: Wed Nov 08, 2017 4:32 pm
Projects: HSS
Deviantart: studioerrilhl
Github: studioerrilhl
Contact:

Re: Empty textbox / narrator screen shows up while using renpy.pause()

#6 Post by Errilhl »

And, after I did that, I got a comment somewhere else that led me to this:

Code: Select all

define _preferences.show_empty_window = False
Which seems to be doing the job - marking as solved
Currently working on: Image

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot]