No Text Box

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
TheChatotMaestro
Regular
Posts: 91
Joined: Mon Jul 31, 2017 8:33 am
Deviantart: LedianWithACamera
Contact:

No Text Box

#1 Post by TheChatotMaestro » Mon Oct 02, 2017 2:47 pm

When I try to use a custom textbox...
window_background="textbox_phone.png" results in an error, but "window_background="gui/textbox_phone.png"" makes the text box disappear. I'm pretty sure the image is in the right place, it's in the GUI folder...

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

Re: No Text Box

#2 Post by Imperf3kt » Mon Oct 02, 2017 4:47 pm

You don't need to fiddle with the code, merely replace the image "textbox.png" found in the gui folder, with your image. Keep the name the same.
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.

Current project: GGD Mentor
Free Android GUI - Updated occasionally
Twitter
Imperf3kt Blackjack - a WIP blackjack game for Android made using Ren'Py

TheChatotMaestro
Regular
Posts: 91
Joined: Mon Jul 31, 2017 8:33 am
Deviantart: LedianWithACamera
Contact:

Re: No Text Box

#3 Post by TheChatotMaestro » Mon Oct 02, 2017 9:57 pm

But I want certain characters to have 'textbox' and certain characters to have 'textbox_phone'.

User avatar
Divona
Miko-Class Veteran
Posts: 678
Joined: Sun Jun 05, 2016 8:29 pm
Completed: The Falconers: Moonlight
Organization: Bionic Penguin
itch: bionicpenguin
Contact:

Re: No Text Box

#4 Post by Divona » Mon Oct 02, 2017 10:58 pm

"window_background="gui/textbox_phone.png" is the correct one. The problem of text box disappearing is maybe due to the adjustment of the textbox position?
Completed:
Image

TheChatotMaestro
Regular
Posts: 91
Joined: Mon Jul 31, 2017 8:33 am
Deviantart: LedianWithACamera
Contact:

Re: No Text Box

#5 Post by TheChatotMaestro » Mon Oct 02, 2017 11:07 pm

The textbox for the phone is the same as the normal textbox, just recolored, and the normal one works fine.

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

Re: No Text Box

#6 Post by Imperf3kt » Mon Oct 02, 2017 11:11 pm

You could do a window hide at the start of the game and just 'show' an ordinary image that covers where the text box area instead.
Not ideal, but it'd work.

Code: Select all

label start:
    window hide
    show textbox
    charactera "Hi."
    show textbox_phone as textbox
    characterb "Oh, hello"
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.

Current project: GGD Mentor
Free Android GUI - Updated occasionally
Twitter
Imperf3kt Blackjack - a WIP blackjack game for Android made using Ren'Py

User avatar
Divona
Miko-Class Veteran
Posts: 678
Joined: Sun Jun 05, 2016 8:29 pm
Completed: The Falconers: Moonlight
Organization: Bionic Penguin
itch: bionicpenguin
Contact:

Re: No Text Box

#7 Post by Divona » Mon Oct 02, 2017 11:33 pm

What is the file of the textbox? PNG or JPEG? (just want to be sure). Is there another styling besides "window_background" for that specific character? You could attach the textbox file here so I can check it out.
Completed:
Image

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

Re: No Text Box

#8 Post by Imperf3kt » Tue Oct 03, 2017 2:38 am

Just remembered a common issue.
In Windows are you hiding known file extensions (default)
You may have inadvertently named the file "textbox_phone.png.png"
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.

Current project: GGD Mentor
Free Android GUI - Updated occasionally
Twitter
Imperf3kt Blackjack - a WIP blackjack game for Android made using Ren'Py

User avatar
Divona
Miko-Class Veteran
Posts: 678
Joined: Sun Jun 05, 2016 8:29 pm
Completed: The Falconers: Moonlight
Organization: Bionic Penguin
itch: bionicpenguin
Contact:

Re: No Text Box

#9 Post by Divona » Tue Oct 03, 2017 3:52 am

OK. Scrap the theory of incorrect file name, as Ren'Py should throw "IOError: Couldn't find file". Tell me, what happens when you use "window_background="gui/window_icon.png"? Does something show on screen or nothing show up at all?
Completed:
Image

Post Reply

Who is online

Users browsing this forum: Google [Bot]