Textbox Error After Updating

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
jacobjumper
Regular
Posts: 44
Joined: Tue Jan 07, 2014 9:45 pm
Projects: Familiarity
Organization: Airheart
Location: Houston
Contact:

Textbox Error After Updating

#1 Post by jacobjumper »

So, I updated to Ren'py 6.12, and edited the new screen say code, so it would be compatible, and I got this error.

Code: Select all

I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/screen_say.rpy", line 31, in script
    style window:
  File "game/screen_say.rpy", line 35, in <module>
    ysize gui.textbox_height
AttributeError: 'StoreModule' object has no attribute 'textbox_height'

-- Full Traceback ------------------------------------------------------------

Full traceback:
  File "game/screen_say.rpy", line 31, in script
    style window:
  File "C:\Users\Jacob\Desktop\renpy-6.99.12.4-sdk\renpy\ast.py", line 2241, in execute
    self.apply()
  File "C:\Users\Jacob\Desktop\renpy-6.99.12.4-sdk\renpy\ast.py", line 2224, in apply
    value = renpy.python.py_eval(expr)
  File "C:\Users\Jacob\Desktop\renpy-6.99.12.4-sdk\renpy\python.py", line 1749, in py_eval
    return py_eval_bytecode(code, globals, locals)
  File "C:\Users\Jacob\Desktop\renpy-6.99.12.4-sdk\renpy\python.py", line 1743, in py_eval_bytecode
    return eval(bytecode, globals, locals)
  File "game/screen_say.rpy", line 35, in <module>
    ysize gui.textbox_height
AttributeError: 'StoreModule' object has no attribute 'textbox_height'

Windows-8-6.2.9200
Ren'Py 6.99.12.4.2187
Familiarity 0.3.0
Here is that screen's code.

Code: Select all

screen say(who, what):
    style_prefix "say"

    window:
        id "window"

        if who is not None:

            window:
                style "namebox"
                text who id "who"

        text what id "what"


    ## If there's a side image, display it above the text. Do not display on the
    ## phone variant - there's no room.
    if not renpy.variant("small"):
        add SideImage() xalign 0.0 yalign 1.0


style window is default
style say_label is default
style say_dialogue is default
style say_thought is say_dialogue

style namebox is default
style namebox_label is say_label


style window:
    xalign 0.5
    xfill True
    yalign gui.textbox_yalign
    ysize gui.textbox_height

    background Image("ui/dialog.png", xalign=0, yalign=.0)

style namebox:
    xpos gui.name_xpos
    xanchor gui.name_xalign
    xsize gui.namebox_width
    ypos gui.name_ypos
    ysize gui.namebox_height

    background Frame("ui/nameboxfinal.png")
    padding gui.namebox_borders.padding

style say_label:
    properties gui.text_properties("name", accent=True)
    xalign gui.name_xalign
    yalign 0.5

style say_dialogue:
    properties gui.text_properties("dialogue")

    xpos gui.dialogue_xpos
    xsize gui.dialogue_width
    ypos gui.dialogue_ypos
I'm sure there's an easy solution if someone can take the time to help.

User avatar
jacobjumper
Regular
Posts: 44
Joined: Tue Jan 07, 2014 9:45 pm
Projects: Familiarity
Organization: Airheart
Location: Houston
Contact:

Re: Textbox Error After Updating

#2 Post by jacobjumper »

Also important to note, if I change this to the normal say code, it'll work up until I get to any dialouge, where it'll crash, giving an error about not being able to use two windows. It'll also crash if I try and include the quick menu

Post Reply

Who is online

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