Weird default name in my text input space

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
sillyandquiteawkward
Newbie
Posts: 4
Joined: Tue Jul 29, 2014 10:36 pm
Contact:

Weird default name in my text input space

#1 Post by sillyandquiteawkward »

When I test my game and get to the text input area it says "ATLTransform" as default input text for some reason. I can't imagine why it would say that especially since there is nothing that says that in my coding (at least I think)?
How can I make it have a blank space?

Code: Select all

 python:
        povname = renpy.input("Please enter your name or other silly term of which you want to be refered too during this game.", default)
        povname = povname.strip()
        
        if not povname:
            povname == "Player"
This is the input text code I have in my game. Everything works perfectly in my game except the default text.

User avatar
OokamiKasumi
Eileen-Class Veteran
Posts: 1779
Joined: Thu Oct 14, 2010 3:53 am
Completed: 14 games released -- and Counting.
Organization: DarkErotica Games
Deviantart: OokamiKasumi
Location: NC, USA
Contact:

Re: Weird default name in my text input space

#2 Post by OokamiKasumi »

sillyandquiteawkward wrote:When I test my game and get to the text input area it says "ATLTransform" as default input text for some reason. I can't imagine why it would say that especially since there is nothing that says that in my coding (at least I think)?
-- How can I make it have a blank space?
Don't leave it blank -- like so:

Code: Select all

    $ povname = renpy.input("What would you like to use as your Name? \n{i} -- Backspace to erase the current name. When you're done, hit Enter.{/i}\n", "Player", length=15)
    $ povname = povname.strip()
It looks like this:
input.jpg
For reference, this is my input code:

Code: Select all

# Input

screen input:

    window:
        style "input_window" 
        xalign 0.5
        yalign 0.5
        has vbox
 
        text prompt:
            yoffset 5
            style "input"
            color "#cc9966"
            xoffset 30
       
        input:
            id "input"
            style "input"
            color "#c8ffc8" 
            yoffset 5
            xoffset 50

    use quick_menu

###########################################    
init -2 python:
    style.input_text.size = 26

    style.input_window.background = Frame("ui/textbox.png", 0, 0)
    
        # margins ---------------------------------
    style.input_window.top_margin = 0
    style.input_window.bottom_margin = 0
    style.input_window.left_margin = 200
    style.input_window.right_margin = 200
     
    # padding ---------------------------------
    style.input_window.left_padding = 100
    style.input_window.right_padding = 180
    style.input_window.top_padding = 30
    style.input_window.bottom_padding = 60
    
    style.input_window.yminimum = 158
Ookami Kasumi ~ Purveyor of fine Smut.
Most recent Games Completed: For ALL my completed games visit: DarkErotica Games

"No amount of great animation will save a bad story." -- John Lasseter of Pixar

sillyandquiteawkward
Newbie
Posts: 4
Joined: Tue Jul 29, 2014 10:36 pm
Contact:

Re: Weird default name in my text input space

#3 Post by sillyandquiteawkward »

Thank you so much this worked perfectly!

User avatar
OokamiKasumi
Eileen-Class Veteran
Posts: 1779
Joined: Thu Oct 14, 2010 3:53 am
Completed: 14 games released -- and Counting.
Organization: DarkErotica Games
Deviantart: OokamiKasumi
Location: NC, USA
Contact:

Re: Weird default name in my text input space

#4 Post by OokamiKasumi »

sillyandquiteawkward wrote:Thank you so much this worked perfectly!
Excellent!
-- I'm glad I could help.
Ookami Kasumi ~ Purveyor of fine Smut.
Most recent Games Completed: For ALL my completed games visit: DarkErotica Games

"No amount of great animation will save a bad story." -- John Lasseter of Pixar

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot]