Page 1 of 1

An Exception has occured?

Posted: Fri Feb 17, 2017 8:18 am
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

Re: An Exception has occured?

Posted: Fri Feb 17, 2017 9:17 am
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

Re: An Exception has occured?

Posted: Fri Feb 17, 2017 9:38 am
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!!!!!!!!

Re: An Exception has occured?

Posted: Fri Feb 17, 2017 10:36 pm
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.
:)

Re: An Exception has occured?

Posted: Sat Feb 18, 2017 3:21 am
by PyTom
It looks like you're trying to use a game that requires 6.99.12.3 with 6.99.12.2.

Re: An Exception has occured?

Posted: Sat Feb 18, 2017 3:26 am
by Steffenator
It's the Interactive Director 2000 thingy.
That did the trick.

Thanks!

Re: An Exception has occured?

Posted: Mon Feb 27, 2017 9:36 am
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

Re: An Exception has occured?

Posted: Mon Feb 27, 2017 10:41 am
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.