My sponsors keep bugging out and forcing the game to return to the main screen. Does anyone know how to fix this?
I'm sorry, but an uncaught exception occurred.
While running game code:
File "game/scripts/sc_sponsors.rpy", line 126, in script
call screen sponsors_screen
File "renpy/common/000statements.rpy", line 609, in execute_call_screen
store._return = renpy.call_screen(name, *args, **kwargs)
File "game/scripts/sc_sponsors.rpy", line 1, in execute
screen sponsors_screen():
File "game/scripts/sc_sponsors.rpy", line 1, in execute
screen sponsors_screen():
File "game/scripts/sc_sponsors.rpy", line 21, in execute
frame:
File "game/scripts/sc_sponsors.rpy", line 29, in execute
vpgrid:
File "game/scripts/sc_sponsors.rpy", line 39, in execute
for _sponsor in sponsors:
File "game/scripts/sc_sponsors.rpy", line 40, in execute
frame:
File "game/scripts/sc_sponsors.rpy", line 77, in execute
if _sponsor.inPartnership:
File "game/scripts/sc_sponsors.rpy", line 78, in execute
if _sponsor.additionalRequestThisWeek < _maxAddRequest:
File "game/scripts/sc_sponsors.rpy", line 78, in <module>
if _sponsor.additionalRequestThisWeek < _maxAddRequest:
NameError: name '_maxAddRequest' is not defined
-- Full Traceback ------------------------------------------------------------
Full traceback:
File "game/scripts/sc_sponsors.rpy", line 126, in script
call screen sponsors_screen
File "renpy/ast.py", line 2234, in execute
self.call("execute")
File "renpy/ast.py", line 2222, in call
return renpy.statements.call(method, parsed, *args, **kwargs)
File "renpy/statements.py", line 281, in call
return method(parsed, *args, **kwargs)
File "renpy/common/000statements.rpy", line 609, in execute_call_screen
store._return = renpy.call_screen(name, *args, **kwargs)
File "renpy/exports.py", line 3161, in call_screen
rv = renpy.ui.interact(mouse="screen", type="screen", roll_forward=roll_forward)
File "renpy/ui.py", line 299, in interact
rv = renpy.game.interface.interact(roll_forward=roll_forward, **kwargs)
File "renpy/display/core.py", line 3377, in interact
repeat, rv = self.interact_core(preloads=preloads, trans_pause=trans_pause, pause=pause, pause_start=pause_start, **kwargs) # type: ignore
File "renpy/display/core.py", line 3804, in interact_core
root_widget.visit_all(lambda i : i.per_interact())
File "renpy/display/core.py", line 582, in visit_all
d.visit_all(callback, seen)
File "renpy/display/core.py", line 582, in visit_all
d.visit_all(callback, seen)
File "renpy/display/core.py", line 582, in visit_all
d.visit_all(callback, seen)
File "renpy/display/screen.py", line 451, in visit_all
callback(self)
File "renpy/display/core.py", line 3804, in <lambda>
root_widget.visit_all(lambda i : i.per_interact())
File "renpy/display/screen.py", line 462, in per_interact
self.update()
File "renpy/display/screen.py", line 653, in update
self.screen.function(**self.scope)
File "game/scripts/sc_sponsors.rpy", line 1, in execute
screen sponsors_screen():
File "game/scripts/sc_sponsors.rpy", line 1, in execute
screen sponsors_screen():
File "game/scripts/sc_sponsors.rpy", line 21, in execute
frame:
File "game/scripts/sc_sponsors.rpy", line 29, in execute
vpgrid:
File "game/scripts/sc_sponsors.rpy", line 39, in execute
for _sponsor in sponsors:
File "game/scripts/sc_sponsors.rpy", line 40, in execute
frame:
File "game/scripts/sc_sponsors.rpy", line 77, in execute
if _sponsor.inPartnership:
File "game/scripts/sc_sponsors.rpy", line 78, in execute
if _sponsor.additionalRequestThisWeek < _maxAddRequest:
File "game/scripts/sc_sponsors.rpy", line 78, in <module>
if _sponsor.additionalRequestThisWeek < _maxAddRequest:
NameError: name '_maxAddRequest' is not defined
Windows-10-10.0.19041 AMD64
Ren'Py 7.5.1.22070801
WTM Academy 0.323
Mon Jun 17 21:39:21 2024