Anyone know how to fix this error when running Max's Life in Ren'py launcher?
I'm sorry, but an uncaught exception occurred.
While running game code:
File "renpy/common/00start.rpy", line 198, in script call
call _gl_test
File "renpy/common/00gltest.rpy", line 440, in script
File "game/script.rpy", line 133, in display_items_overlay
inventory_show = "Money:" + str(inventory.money) #+ " HP: " + str(player.hp) + " bullets: " + str(player.mp) + " element: " + str(player.element) + "\nInventory: "
NameError: global name 'inventory' is not defined
-- Full Traceback ------------------------------------------------------------
Full traceback:
File "/Users//Downloads/Games/renpy-7.0.0-sdk/renpy/bootstrap.py", line 306, in bootstrap
renpy.main.main()
File "/Users//Downloads/Games/renpy-7.0.0-sdk/renpy/main.py", line 513, in main
run(restart)
File "/Users//Downloads/Games/renpy-7.0.0-sdk/renpy/main.py", line 139, in run
renpy.execution.run_context(True)
File "/Users//Downloads/Games/renpy-7.0.0-sdk/renpy/execution.py", line 879, in run_context
context.run()
File "renpy/common/00start.rpy", line 198, in script call
call _gl_test
File "renpy/common/00gltest.rpy", line 440, in script
File "/Users//Downloads/Games/renpy-7.0.0-sdk/renpy/ast.py", line 1337, in execute
renpy.exports.with_statement(trans, paired)
File "/Users//Downloads/Games/renpy-7.0.0-sdk/renpy/exports.py", line 1452, in with_statement
return renpy.game.interface.do_with(trans, paired, clear=clear)
File "/Users//Downloads/Games/renpy-7.0.0-sdk/renpy/display/core.py", line 2200, in do_with
self.with_none()
File "/Users//Downloads/Games/renpy-7.0.0-sdk/renpy/display/core.py", line 2224, in with_none
self.compute_overlay()
File "/Users//Downloads/Games/renpy-7.0.0-sdk/renpy/display/core.py", line 2321, in compute_overlay
i()
File "game/script.rpy", line 133, in display_items_overlay
inventory_show = "Money:" + str(inventory.money) #+ " HP: " + str(player.hp) + " bullets: " + str(player.mp) + " element: " + str(player.element) + "\nInventory: "
NameError: global name 'inventory' is not defined
Darwin-17.7.0-x86_64-i386-64bit
Ren'Py 7.0.0.196
Max's life 0.17
Sat Aug 25 07:54:12 2018