[Solved] (Thank you ren'py discord!)SyntaxError: unexpected EOF while parsing (screens.rpy, line 1169)

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
A_tired_dev
Newbie
Posts: 3
Joined: Thu Apr 29, 2021 8:36 pm
Github: kat_glitch_turtle
Contact:

[Solved] (Thank you ren'py discord!)SyntaxError: unexpected EOF while parsing (screens.rpy, line 1169)

#1 Post by A_tired_dev »

Hello! I have been working on my vn for a bit now and I got this exception error

Code: Select all

I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/script.rpy", line 53, in script call
    call mark_main301
  File "game/mark_main301.rpy", line 180, in script call
    call mark_main302
  File "game/mark_main302.rpy", line 171, in script
    call screen joke_ask
  File "renpy/common/000statements.rpy", line 569, in execute_call_screen
    store._return = renpy.call_screen(name, *args, **kwargs)
SyntaxError: unexpected EOF while parsing (screens.rpy, line 1169)

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

Full traceback:
  File "game/script.rpy", line 53, in script call
    call mark_main301
  File "game/mark_main301.rpy", line 180, in script call
    call mark_main302
  File "game/mark_main302.rpy", line 171, in script
    call screen joke_ask
  File "renpy/ast.py", line 2009, in execute
    self.call("execute")
  File "renpy/ast.py", line 1997, in call
    return renpy.statements.call(method, parsed, *args, **kwargs)
  File "renpy/statements.py", line 278, in call
    return method(parsed, *args, **kwargs)
  File "renpy/common/000statements.rpy", line 569, in execute_call_screen
    store._return = renpy.call_screen(name, *args, **kwargs)
  File "renpy/exports.py", line 3057, in call_screen
    rv = renpy.ui.interact(mouse="screen", type="screen", roll_forward=roll_forward)
  File "renpy/ui.py", line 298, in interact
    rv = renpy.game.interface.interact(roll_forward=roll_forward, **kwargs)
  File "renpy/display/core.py", line 3276, in interact
    repeat, rv = self.interact_core(preloads=preloads, trans_pause=trans_pause, pause=pause, pause_start=pause_start, **kwargs)
  File "renpy/display/core.py", line 3693, in interact_core
    root_widget.visit_all(lambda i : i.per_interact())
  File "renpy/display/core.py", line 567, in visit_all
    d.visit_all(callback, seen)
  File "renpy/display/core.py", line 567, in visit_all
    d.visit_all(callback, seen)
  File "renpy/display/core.py", line 567, in visit_all
    d.visit_all(callback, seen)
  File "renpy/display/screen.py", line 432, in visit_all
    callback(self)
  File "renpy/display/core.py", line 3693, in <lambda>
    root_widget.visit_all(lambda i : i.per_interact())
  File "renpy/display/screen.py", line 443, in per_interact
    self.update()
  File "renpy/display/screen.py", line 631, in update
    self.screen.function(**self.scope)
  File "renpy/ast.py", line 159, in apply_arguments
    return parameters.apply(args, kwargs, ignore_errors)
  File "renpy/ast.py", line 125, in apply
    rv[name] = renpy.python.py_eval(default)
  File "renpy/python.py", line 2247, in py_eval
    code = py_compile(code, 'eval')
  File "renpy/python.py", line 835, in py_compile
    raise e
SyntaxError: unexpected EOF while parsing (screens.rpy, line 1169)

Windows-10-10.0.19041
Ren'Py 7.4.6.1693
Ego Dating Simulator 1.0
Sat Jul  3 21:14:45 2021
I have no clue what caused this, or how to fix it, anywho, here's my code leading up to this error in screens,rpy

Code: Select all

screen confirm(message, yes_action, no_action):

    ## Ensure other screens do not get input while this screen is displayed.
    modal True

    zorder 200

    style_prefix "confirm"

    add "gui/overlay/confirm.png"

    frame:

        vbox:
            xalign .5
            yalign .5
            spacing 30

            label _(message):
                style "confirm_prompt"
                xalign 0.5

            hbox:
                xalign 0.5
                spacing 100

                textbutton _("Yes") action yes_action
                textbutton _("No") action no_action

    ## Right-click and escape answer "no".
    key "game_menu" action no_action
Thanks! :D

Post Reply

Who is online

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