'Uncaught Exception'
Posted: Wed Jan 01, 2020 4:34 am
Hey guys, need help with this. Never had it happen before and have been working on this project for a while.
I try to launch my game but get this instead:
I'm sorry, but an uncaught exception occurred.
After initialization, but before game start.
File "game/screens.rpy", line 604, in prepare_screen
screen file_slots(title):
File "game/screens.rpy", line 604, in prepare
screen file_slots(title):
File "game/screens.rpy", line 608, in prepare
use game_menu(title):
File "game/screens.rpy", line 608, in prepare
use game_menu(title):
File "game/screens.rpy", line 610, in prepare
fixed:
File "game/screens.rpy", line 610, in prepare
fixed:
File "game/screens.rpy", line 657, in prepare
hbox:
File "game/screens.rpy", line 657, in prepare
hbox:
File "game/screens.rpy", line 667, in prepare
if config.has_autosave:
File "game/screens.rpy", line 667, in prepare
if config.has_autosave:
File "game/screens.rpy", line 668, in prepare
textbutton _("{#auto_page}A") action FilePage("auto")
File "game/screens.rpy", line 668, in prepare
textbutton _("{#auto_page}A") action FilePage("auto")
File "renpy/common/00action_file.rpy", line 566, in __init__
self.page = str(page)
File "game/script.rpy", line 122, in callback
renpy.music.play("audio/blipmale.wav", channel="sound", loop=True)
Exception: Can't play music during init phase.
-- Full Traceback ------------------------------------------------------------
Full traceback:
File "D:\renpy-7.3.5-sdk\renpy\bootstrap.py", line 316, in bootstrap
renpy.main.main()
File "D:\renpy-7.3.5-sdk\renpy\main.py", line 578, in main
run(restart)
File "D:\renpy-7.3.5-sdk\renpy\main.py", line 94, in run
renpy.display.screen.prepare_screens()
File "D:\renpy-7.3.5-sdk\renpy\display\screen.py", line 931, in prepare_screens
s.ast.prepare_screen()
File "game/screens.rpy", line 604, in prepare_screen
screen file_slots(title):
File "game/screens.rpy", line 604, in prepare
screen file_slots(title):
File "game/screens.rpy", line 608, in prepare
use game_menu(title):
File "game/screens.rpy", line 608, in prepare
use game_menu(title):
File "game/screens.rpy", line 610, in prepare
fixed:
File "game/screens.rpy", line 610, in prepare
fixed:
File "game/screens.rpy", line 657, in prepare
hbox:
File "game/screens.rpy", line 657, in prepare
hbox:
File "game/screens.rpy", line 667, in prepare
if config.has_autosave:
File "game/screens.rpy", line 667, in prepare
if config.has_autosave:
File "game/screens.rpy", line 668, in prepare
textbutton _("{#auto_page}A") action FilePage("auto")
File "game/screens.rpy", line 668, in prepare
textbutton _("{#auto_page}A") action FilePage("auto")
File "D:\renpy-7.3.5-sdk\renpy\python.py", line 2052, in py_eval_bytecode
return eval(bytecode, globals, locals)
File "<screen language>", line 668, in <module>
File "renpy/common/00action_file.rpy", line 566, in __init__
self.page = str(page)
File "D:\renpy-7.3.5-sdk\renpy\character.py", line 1142, in __call__
self.do_display(who, what, cb_args=self.cb_args, **display_args)
File "D:\renpy-7.3.5-sdk\renpy\character.py", line 842, in do_display
**display_args)
File "D:\renpy-7.3.5-sdk\renpy\character.py", line 538, in display_say
c("show", interact=interact, type=type, **cb_args)
File "game/script.rpy", line 122, in callback
renpy.music.play("audio/blipmale.wav", channel="sound", loop=True)
File "D:\renpy-7.3.5-sdk\renpy\audio\music.py", line 80, in play
raise Exception("Can't play music during init phase.")
Exception: Can't play music during init phase.
any thoughts? All the lines it's referring to I haven't changed in weeks.
I try to launch my game but get this instead:
I'm sorry, but an uncaught exception occurred.
After initialization, but before game start.
File "game/screens.rpy", line 604, in prepare_screen
screen file_slots(title):
File "game/screens.rpy", line 604, in prepare
screen file_slots(title):
File "game/screens.rpy", line 608, in prepare
use game_menu(title):
File "game/screens.rpy", line 608, in prepare
use game_menu(title):
File "game/screens.rpy", line 610, in prepare
fixed:
File "game/screens.rpy", line 610, in prepare
fixed:
File "game/screens.rpy", line 657, in prepare
hbox:
File "game/screens.rpy", line 657, in prepare
hbox:
File "game/screens.rpy", line 667, in prepare
if config.has_autosave:
File "game/screens.rpy", line 667, in prepare
if config.has_autosave:
File "game/screens.rpy", line 668, in prepare
textbutton _("{#auto_page}A") action FilePage("auto")
File "game/screens.rpy", line 668, in prepare
textbutton _("{#auto_page}A") action FilePage("auto")
File "renpy/common/00action_file.rpy", line 566, in __init__
self.page = str(page)
File "game/script.rpy", line 122, in callback
renpy.music.play("audio/blipmale.wav", channel="sound", loop=True)
Exception: Can't play music during init phase.
-- Full Traceback ------------------------------------------------------------
Full traceback:
File "D:\renpy-7.3.5-sdk\renpy\bootstrap.py", line 316, in bootstrap
renpy.main.main()
File "D:\renpy-7.3.5-sdk\renpy\main.py", line 578, in main
run(restart)
File "D:\renpy-7.3.5-sdk\renpy\main.py", line 94, in run
renpy.display.screen.prepare_screens()
File "D:\renpy-7.3.5-sdk\renpy\display\screen.py", line 931, in prepare_screens
s.ast.prepare_screen()
File "game/screens.rpy", line 604, in prepare_screen
screen file_slots(title):
File "game/screens.rpy", line 604, in prepare
screen file_slots(title):
File "game/screens.rpy", line 608, in prepare
use game_menu(title):
File "game/screens.rpy", line 608, in prepare
use game_menu(title):
File "game/screens.rpy", line 610, in prepare
fixed:
File "game/screens.rpy", line 610, in prepare
fixed:
File "game/screens.rpy", line 657, in prepare
hbox:
File "game/screens.rpy", line 657, in prepare
hbox:
File "game/screens.rpy", line 667, in prepare
if config.has_autosave:
File "game/screens.rpy", line 667, in prepare
if config.has_autosave:
File "game/screens.rpy", line 668, in prepare
textbutton _("{#auto_page}A") action FilePage("auto")
File "game/screens.rpy", line 668, in prepare
textbutton _("{#auto_page}A") action FilePage("auto")
File "D:\renpy-7.3.5-sdk\renpy\python.py", line 2052, in py_eval_bytecode
return eval(bytecode, globals, locals)
File "<screen language>", line 668, in <module>
File "renpy/common/00action_file.rpy", line 566, in __init__
self.page = str(page)
File "D:\renpy-7.3.5-sdk\renpy\character.py", line 1142, in __call__
self.do_display(who, what, cb_args=self.cb_args, **display_args)
File "D:\renpy-7.3.5-sdk\renpy\character.py", line 842, in do_display
**display_args)
File "D:\renpy-7.3.5-sdk\renpy\character.py", line 538, in display_say
c("show", interact=interact, type=type, **cb_args)
File "game/script.rpy", line 122, in callback
renpy.music.play("audio/blipmale.wav", channel="sound", loop=True)
File "D:\renpy-7.3.5-sdk\renpy\audio\music.py", line 80, in play
raise Exception("Can't play music during init phase.")
Exception: Can't play music during init phase.
any thoughts? All the lines it's referring to I haven't changed in weeks.