I was fiddling with the images directory, and I noticed a potential problem when it comes to defining images in subfolders.
Renpy's automatic use of the images folder assumes that every image you find is 'top-level'; in other words, if you have subfolders, the subfolder names will not become part of the name of the final image.
If you want to organize by subfolders, it makes sense to combine Renpy's use of the images folder, with config.automatic_images and config.automatic_images_strip.
For instance, if you have 'char', 'bg', and 'event' folders in your images folder, and then use this:
Code: Select all
config.automatic_images = ['/',' ']
config.automatic_images_strip = ['images','char']
Then you'll have a bunch of bg and event images that are named 'bg forest', 'bg school', 'event firstmeeting', and so on - while any character images will just have their single names, 'eileen' and so on.
However, this is a little inconvenient - I don't like that I have to remember to include 'images' in my prefix list for config.automatic_images_strip.
Also, there's a problem in that Renpy's automatic use of the images folder will
also create a number of top-level images - so, you'll find that 'forest', 'school', and 'firstmeeting' are part of your image list. This can cause further problems if, say, you have "images/bg/eileen.png" and "images/char/eileen.png". Renpy will create a top-level 'eileen' from the bg folder, since 'bg' comes before 'char' alphabetically, and this will override the eileen character image you want to create.
Could you think of a way to harmonize the images directory, and config.automatic_images?