An Exception has occured?

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.
Locked
Message
Author
Owl.Child
Newbie
Posts: 15
Joined: Thu Feb 16, 2017 9:07 pm
Tumblr: petrichorstudent
Deviantart: killingoneafterone
itch: owl.child
Contact:

An Exception has occured?

#1 Post by Owl.Child »

I keep getting this error and I'm very confused.

Code: Select all

I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/script.rpy", line 17, in script
    $ povname = renpy.input(_("What is your name?"))
  File "game/script.rpy", line 17, in <module>
    $ povname = renpy.input(_("What is your name?"))
  File "game/screens.rpy", line 170, in execute
    screen input(prompt):
  File "game/screens.rpy", line 170, in execute
    screen input(prompt):
  File "game/screens.rpy", line 173, in execute
    window:
  File "game/screens.rpy", line 175, in execute
    vbox:
  File "game/screens.rpy", line 175, in keywords
    vbox:
AttributeError: 'StoreModule' object has no attribute 'dialogue_xalign'

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

Full traceback:
  File "game/script.rpy", line 17, in script
    $ povname = renpy.input(_("What is your name?"))
  File "C:\Users\carm1\Downloads\renpy-6.99.12.3-sdk\renpy\ast.py", line 814, in execute
    renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
  File "C:\Users\carm1\Downloads\renpy-6.99.12.3-sdk\renpy\python.py", line 1715, in py_exec_bytecode
    exec bytecode in globals, locals
  File "game/script.rpy", line 17, in <module>
    $ povname = renpy.input(_("What is your name?"))
  File "C:\Users\carm1\Downloads\renpy-6.99.12.3-sdk\renpy\exports.py", line 797, in input
    rv = renpy.ui.interact(mouse='prompt', type="input", roll_forward=roll_forward)
  File "C:\Users\carm1\Downloads\renpy-6.99.12.3-sdk\renpy\ui.py", line 285, in interact
    rv = renpy.game.interface.interact(roll_forward=roll_forward, **kwargs)
  File "C:\Users\carm1\Downloads\renpy-6.99.12.3-sdk\renpy\display\core.py", line 2519, in interact
    scene_lists.replace_transient()
  File "C:\Users\carm1\Downloads\renpy-6.99.12.3-sdk\renpy\display\core.py", line 822, in replace_transient
    self.remove(layer, tag)
  File "C:\Users\carm1\Downloads\renpy-6.99.12.3-sdk\renpy\display\core.py", line 1107, in remove
    self.hide_or_replace(layer, remove_index, "hide")
  File "C:\Users\carm1\Downloads\renpy-6.99.12.3-sdk\renpy\display\core.py", line 1031, in hide_or_replace
    d = oldsle.displayable._hide(now - st, now - at, prefix)
  File "C:\Users\carm1\Downloads\renpy-6.99.12.3-sdk\renpy\display\screen.py", line 443, in _hide
    self.update()
  File "C:\Users\carm1\Downloads\renpy-6.99.12.3-sdk\renpy\display\screen.py", line 578, in update
    self.screen.function(**self.scope)
  File "game/screens.rpy", line 170, in execute
    screen input(prompt):
  File "game/screens.rpy", line 170, in execute
    screen input(prompt):
  File "game/screens.rpy", line 173, in execute
    window:
  File "game/screens.rpy", line 175, in execute
    vbox:
  File "game/screens.rpy", line 175, in keywords
    vbox:
  File "<screen language>", line 177, in <module>
AttributeError: 'StoreModule' object has no attribute 'dialogue_xalign'

Windows-8-6.2.9200
Ren'Py 6.99.12.3.2123
Notomorii 1.0

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: An Exception has occured?

#2 Post by Divona »

"gui.dialogue_xalign" seem to be missing for some reason. Add the following line after "gui.dialogue_ypos = 50" in "gui.rpy":

Code: Select all

define gui.dialogue_xalign = 0
It should look like:

Code: Select all

## The placement of dialogue relative to the textbox. These can be a whole
## number of pixels relative to the left or top side of the textbox, or 0.5 to
## center.
define gui.dialogue_xpos = 268
define gui.dialogue_ypos = 50
define gui.dialogue_xalign = 0
Completed:
Image

Owl.Child
Newbie
Posts: 15
Joined: Thu Feb 16, 2017 9:07 pm
Tumblr: petrichorstudent
Deviantart: killingoneafterone
itch: owl.child
Contact:

Re: An Exception has occured?

#3 Post by Owl.Child »

Divona wrote:"gui.dialogue_xalign" seem to be missing for some reason. Add the following line after "gui.dialogue_ypos = 50" in "gui.rpy":

Code: Select all

define gui.dialogue_xalign = 0
It should look like:

Code: Select all

## The placement of dialogue relative to the textbox. These can be a whole
## number of pixels relative to the left or top side of the textbox, or 0.5 to
## center.
define gui.dialogue_xpos = 268
define gui.dialogue_ypos = 50
define gui.dialogue_xalign = 0

Thank you so much!!!!!!!!

User avatar
Steffenator
Regular
Posts: 53
Joined: Fri Feb 17, 2017 11:58 am
Contact:

Re: An Exception has occured?

#4 Post by Steffenator »

I get a similar error...

_______________________________________________________________________-
I'm sorry, but an uncaught exception occurred.

After initialization, but before game start.
File "renpy/common/00start.rpy", line 76, in _init_language
renpy.change_language(language)
File "game/screens.rpy", line 13, in <module>
properties gui.text_properties()
AttributeError: 'StoreModule' object has no attribute 'text_properties'

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

Full traceback:
File "C:\Users\Jared\Desktop\XFer\renpy-6.99.12.2\renpy\bootstrap.py", line 290, in bootstrap
renpy.main.main()
File "C:\Users\Jared\Desktop\XFer\renpy-6.99.12.2\renpy\main.py", line 487, in main
run(restart)
File "C:\Users\Jared\Desktop\XFer\renpy-6.99.12.2\renpy\main.py", line 69, in run
renpy.translation.init_translation()
File "C:\Users\Jared\Desktop\XFer\renpy-6.99.12.2\renpy\translation\__init__.py", line 506, in init_translation
renpy.store._init_language() # @UndefinedVariable
File "renpy/common/00start.rpy", line 76, in _init_language
renpy.change_language(language)
File "C:\Users\Jared\Desktop\XFer\renpy-6.99.12.2\renpy\translation\__init__.py", line 583, in change_language
new_change_language(tl, language)
File "C:\Users\Jared\Desktop\XFer\renpy-6.99.12.2\renpy\translation\__init__.py", line 553, in new_change_language
i.apply()
File "C:\Users\Jared\Desktop\XFer\renpy-6.99.12.2\renpy\ast.py", line 2224, in apply
value = renpy.python.py_eval(expr)
File "C:\Users\Jared\Desktop\XFer\renpy-6.99.12.2\renpy\python.py", line 1725, in py_eval
return py_eval_bytecode(code, globals, locals)
File "C:\Users\Jared\Desktop\XFer\renpy-6.99.12.2\renpy\python.py", line 1719, in py_eval_bytecode
return eval(bytecode, globals, locals)
File "game/screens.rpy", line 13, in <module>
properties gui.text_properties()
AttributeError: 'StoreModule' object has no attribute 'text_properties'

Windows-7-6.1.7601-SP1
Ren'Py 6.99.12.2.2029
Interactive Director Test Game 1.1
______________________________________________________________________________-

The above fix made this list shorter, but a problem remains.
Any help would... help.
:)

User avatar
PyTom
Ren'Py Creator
Posts: 16088
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

Re: An Exception has occured?

#5 Post by PyTom »

It looks like you're trying to use a game that requires 6.99.12.3 with 6.99.12.2.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
Software > Drama • https://www.patreon.com/renpytom

User avatar
Steffenator
Regular
Posts: 53
Joined: Fri Feb 17, 2017 11:58 am
Contact:

Re: An Exception has occured?

#6 Post by Steffenator »

It's the Interactive Director 2000 thingy.
That did the trick.

Thanks!

User avatar
Scribbles
Miko-Class Veteran
Posts: 636
Joined: Wed Sep 21, 2016 4:15 pm
Completed: Pinewood Island, As We Know It
Projects: In Blood
Organization: Jaime Scribbles Games
Deviantart: breakfastdoodles
itch: scribbles
Location: Ohio
Contact:

Re: An Exception has occured?

#7 Post by Scribbles »

this is the error I've started getting too! I deleted renpy, reinstalled it, and started a brand new game with *only* the user input code and it pops up > < it's been driving me crazy.

Code: Select all

screen input(prompt):
    style_prefix "input"

    window:

        vbox:
            xpos gui.dialogue_xpos
            xanchor gui.dialogue_xalign
            ypos gui.dialogue_ypos
            xsize gui.dialogue_width

            text prompt style "input_prompt"
            input id "input"


style input_prompt is say_dialogue

style input_prompt:
    properties gui.text_properties("input_prompt")
    xmaximum gui.dialogue_width

style input:
    xmaximum gui.dialogue_width
That's the code it takes me too, why aren't the xpos and so on defined?

oh and this is the code that I put in:

Code: Select all

define pov = Character("[povname]")

default povname = "Pat Smith"

label start:
    $ povname = renpy.input("What is your name?")
    $ povname = povname.strip()

    if not povname:
         $povname = "Pat Smith"

pov "My name is [povname]!"

return
Image - Image -Image

User avatar
PyTom
Ren'Py Creator
Posts: 16088
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

Re: An Exception has occured?

#8 Post by PyTom »

"An Exception has occurred" is the generic start of most errors Ren'Py produces. Scribbles, there's an issue with new games that caused your problems that's been fixed in 6.99.12.4.

I'm going to lock this thread now so it doesn't become a magnet for a ton of unrelated errors.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
Software > Drama • https://www.patreon.com/renpytom

Locked

Who is online

Users browsing this forum: No registered users