1. I want to reuse my artwork as the thumbnail for the gallery(why add another resource?) so I figure I need to do this:
Code: Select all
image bg bridge normal ="images/bridge.png"
image tb bridge = im.Scale("bg bridge normal",155,112)
# Later...
g.page("Backgrounds")
# Our first button is a picture of the bridge where you first met.
g.button("tb bridge")
g.unlock_image("bg bridge normal")
# This shows a displayable...
g.display("bg bridge normal")
# ... if all prior images have been shown.
g.allprior()
Code: Select all
I'm sorry, but an exception occured while executing your Ren'Py
script.
Exception: Couldn't find file 'tb bridge'.
While running game code:
- script at line 244 of /Applications/Games/renpy-6.3.1/Starlight/game/script.rpy
- python at line 322 of /Applications/Games/renpy-6.3.1/Starlight/game/script.rpy.
- python at line 256 of /Applications/Games/renpy-6.3.1/Starlight/game/new_gallery.rpy.
-- Full Traceback ------------------------------------------------------------
File "/Applications/Games/renpy-6.3.1/renpy/bootstrap.py", line 204, in bootstrap
File "/Applications/Games/renpy-6.3.1/renpy/main.py", line 303, in main
File "/Applications/Games/renpy-6.3.1/renpy/main.py", line 98, in run
File "/Applications/Games/renpy-6.3.1/renpy/execution.py", line 194, in run
File "/Applications/Games/renpy-6.3.1/renpy/ast.py", line 491, in execute
File "/Applications/Games/renpy-6.3.1/renpy/python.py", line 860, in py_exec_bytecode
File "/Applications/Games/renpy-6.3.1/Starlight/game/script.rpy", line 322, in <module>
File "/Applications/Games/renpy-6.3.1/Starlight/game/new_gallery.rpy", line 256, in show
File "/Applications/Games/renpy-6.3.1/renpy/ui.py", line 66, in interact
File "/Applications/Games/renpy-6.3.1/renpy/display/core.py", line 1237, in interact
File "/Applications/Games/renpy-6.3.1/renpy/display/core.py", line 1354, in interact_core
File "/Applications/Games/renpy-6.3.1/renpy/display/core.py", line 236, in predict
File "/Applications/Games/renpy-6.3.1/renpy/display/core.py", line 210, in visit_all
File "/Applications/Games/renpy-6.3.1/renpy/display/core.py", line 236, in <lambda>
File "/Applications/Games/renpy-6.3.1/renpy/display/im.py", line 324, in predict_one
File "/Applications/Games/renpy-6.3.1/renpy/display/im.py", line 127, in get
File "/Applications/Games/renpy-6.3.1/renpy/display/im.py", line 351, in load
File "/Applications/Games/renpy-6.3.1/renpy/loader.py", line 241, in load
Exception: Couldn't find file 'tb bridge'.
While running game code:
Ren'Py Version: Ren'Py 6.3.1b
2. Dumb question 2. Why do my images show up unlocked before I start the game? Obviously the state of what has been shown is somehow persistent. But where/how is it set so I can clear it during development?
I'm guessing it has something to do with "persistent._seen_images" How is this stored (so I can write a button to clear it)? Also would there be name space conflicts?
Thanks again for your patience!