[SOLVED] Empty narrator textbox at the start of game

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
Amphia
Newbie
Posts: 3
Joined: Tue Apr 06, 2021 10:05 am
Contact:

[SOLVED] Empty narrator textbox at the start of game

#1 Post by Amphia »

Hi. This is probably a stupid question, but it really stumps me.

I want to achieve a smooth appearance of the textbox (test сharacter).
But for some reason I see empty narrator textbox (judging by the coordinates) for a split second, then the test textbox.

Empty narrator textbox for a split second (with dissolve effect)
Image
Test textbox (without dissolve effect) immediately thereafter
Image

I can't understand why it appears. Can you please tell me why this narrator textbox appears at the beginning? How do I get it out?
I thought define the character textbox would be enough, but it looks like there is some other code.

The only code I added (everything else is default):

Code: Select all

define test = Character('Test', window_background="gui/textbox.png", window_xmaximum=650, window_xsize=650, window_ysize=370, window_xpos=1535, window_ypos=657, what_xsize=515, what_ysize=370, what_xpos=0.1, what_ypos=0.35, who_ypos=63)
define narrator = Character(window_background="gui/textbox.png", window_xmaximum=650, window_xsize=650, window_ysize=370, window_xpos=1550, window_ypos=400, what_xsize=515, what_ysize=370, what_xpos=0.1, what_ypos=0.35, who_ypos=63)
label start:
  scene bg room
  show eileen happy
  window show dissolve
  test "You've created a new Ren'Py game."
  return
Which I have already tried to do:
I checked the code and didn't find anything that indicated the narrator's window priority or anything like that.

Code: Select all

window hide
The empty narrator window stops appearing, but another problem arises.
With this line of code, the possibility of a smooth appearance of the "test" textbox disappears (window show dissolve).

Code: Select all

$ _window_during_transitions = True
Nothing has changed.

Code: Select all

define config.window = 'hide'
Nothing has changed.

Code: Select all

define _preferences.show_empty_window = False
Nothing has changed.



I found several similar topics on the forum, but their solutions do not include saving the possibility of a smooth textbox appearance.
viewtopic.php?t=46842
viewtopic.php?t=46790
viewtopic.php?t=27155
Last edited by Amphia on Tue Apr 13, 2021 7:51 am, edited 1 time in total.

User avatar
emz911
Regular
Posts: 103
Joined: Fri Jun 23, 2017 2:23 pm
Contact:

Re: Empty narrator textbox at the start of game

#2 Post by emz911 »

Why "window show dissolve"? This line shows the empty textbox with a dissolve.
You can take that out and simply do a:

Code: Select all

label start:
  scene bg room
  show eileen happy
  test "You've created a new Ren'Py game." with dissolve
  return
  

User avatar
Amphia
Newbie
Posts: 3
Joined: Tue Apr 06, 2021 10:05 am
Contact:

Re: Empty narrator textbox at the start of game

#3 Post by Amphia »

Did it work for you? Because it didn't for me. But thanks for the answer anyway!

User avatar
emz911
Regular
Posts: 103
Joined: Fri Jun 23, 2017 2:23 pm
Contact:

Re: Empty narrator textbox at the start of game

#4 Post by emz911 »

Amphia wrote: Sun Apr 11, 2021 12:14 am Did it work for you? Because it didn't for me. But thanks for the answer anyway!
Hmmm I can’t test it out right now, but I forgot to add “window hide” before the scene line OR before the test line, try both out. This should make the split second window disappear. Don’t forget the “with dissolve” at the end of the test line as well, this gives you the dissolve effect you want.

User avatar
Amphia
Newbie
Posts: 3
Joined: Tue Apr 06, 2021 10:05 am
Contact:

Re: Empty narrator textbox at the start of game

#5 Post by Amphia »

emz911 wrote: Sun Apr 11, 2021 12:21 am Hmmm I can’t test it out right now, but I forgot to add “window hide” before the scene line OR before the test line, try both out. This should make the split second window disappear. Don’t forget the “with dissolve” at the end of the test line as well, this gives you the dissolve effect you want.
It works!

Previously I used the following solution:

Code: Select all

window hide
$ renpy.transition(dissolve)
test "You've created a new Ren'Py game."
window auto
Thank you, Lezalith and renpytom for these tips.
It works, so we can consider the problem solved.

Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot]