Use mini-engine can't archive file image?
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Use mini-engine can't archive file image?
I used this mini engine to auto define images http://www.renpy.org/wiki/renpy/doc/coo ... ing_Images for my project to develop. But when i public it and run the code error. Is it mean that the engine can't call when file images were archived? Or is there any way for it. Please help me
- PyTom
- Ren'Py Creator
- Posts: 16096
- Joined: Mon Feb 02, 2004 10:58 am
- Completed: Moonlight Walks
- Projects: Ren'Py
- IRC Nick: renpytom
- Github: renpytom
- itch: renpytom
- Location: Kings Park, NY
- Contact:
Re: Use mini-engine can't archive file image?
That code is obsolete.
You can now use renpy.list_files() to get a list of files, including files in the archive. So code like:
You can now use renpy.list_files() to get a list of files, including files in the archive. So code like:
Code: Select all
init python:
for fn in renpy.list_files():
if fn.startswith("gfx/") and fn.endswith((".jpg", ".png")):
name = fn[4:-4]
renpy.image(name, fn)
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom(When was the last time you backed up your game?)
Software > Drama • https://www.patreon.com/renpytom
Re: Use mini-engine can't archive file image?
Ok, it's good now, thanks
Who is online
Users browsing this forum: Google [Bot]