I get this error. What am I doing wrong?
I'm sorry, but an uncaught exception occurred.
While running game code:
File "game/script.rpy", line 409, in script
call screen main_choice_display(build_menu_items([build_people_list(), build_actions_list(), build_nearby_location_list()]))
File "renpy/common/000statements.rpy", line 663, in execute_call_screen
args, kwargs = a.evaluate()
File "game/script.rpy", line 409, in <module>
call screen main_choice_display(build_menu_items([build_people_list(), build_actions_list(), build_nearby_location_list()]))
File "game/script.rpy", line 294, in build_nearby_location_list
nearby = [x for x in mc.current_location_hub.visible_locations if x != mc.location and x.is_accessible]
File "game/script.rpy", line 294, in <lambda>
nearby = [x for x in mc.current_location_hub.visible_locations if x != mc.location and x.is_accessible]
NameError: name 'list_of_hubs' is not defined
-- Full Traceback ------------------------------------------------------------
Full traceback:
File "game/script.rpy", line 409, in script
call screen main_choice_display(build_menu_items([build_people_list(), build_actions_list(), build_nearby_location_list()]))
File "C:\Users\ASUS\Downloads\renpy-8.2.1-sdk\renpy\ast.py", line 1968, in execute
self.call("execute")
File "C:\Users\ASUS\Downloads\renpy-8.2.1-sdk\renpy\ast.py", line 1950, in call
return renpy.statements.call(method, parsed, *args, **kwargs)
File "C:\Users\ASUS\Downloads\renpy-8.2.1-sdk\renpy\statements.py", line 349, in call
return method(parsed, *args, **kwargs)
File "renpy/common/000statements.rpy", line 663, in execute_call_screen
args, kwargs = a.evaluate()
File "C:\Users\ASUS\Downloads\renpy-8.2.1-sdk\renpy\parameter.py", line 477, in evaluate
value = renpy.python.py_eval(v, locals=scope)
File "C:\Users\ASUS\Downloads\renpy-8.2.1-sdk\renpy\python.py", line 1209, in py_eval
return py_eval_bytecode(code, globals, locals)
File "C:\Users\ASUS\Downloads\renpy-8.2.1-sdk\renpy\python.py", line 1202, in py_eval_bytecode
return eval(bytecode, globals, locals)
File "game/script.rpy", line 409, in <module>
call screen main_choice_display(build_menu_items([build_people_list(), build_actions_list(), build_nearby_location_list()]))
File "game/script.rpy", line 294, in build_nearby_location_list
nearby = [x for x in mc.current_location_hub.visible_locations if x != mc.location and x.is_accessible]
File "game/script.rpy", line 294, in <lambda>
nearby = [x for x in mc.current_location_hub.visible_locations if x != mc.location and x.is_accessible]
File "game/main_character/MainCharacter_ren.py", line 142, in current_location_hub
return next((x for x in list_of_hubs if self.location in x), MapHub("Current", "Current", locations = [self.location], position = home_hub.position))
NameError: name 'list_of_hubs' is not defined
Windows-10-10.0.22631 AMD64
Ren'Py 8.2.1.24030407
Lab Rats 2 - Down to Business 2023.12-code-beta
Sat Apr 20 19:54:21 2024