Weeellll first of all renpy has
You must be registered to see the links
. So basically the "renpy defined name" usually is from the images folder -> subdirectory name -> name of image without .extension usually ren'py already takes those apart without / for folders or anything so lets say I have a folder called v1 in the images folder and inside this v1 folder there's an image called scene01_image01.png renpy would split all this instead of /v1/scene01_image01.png it would just be scene v1 scene01 image01
with dissolve
i.e.
But I personally like to define my images in a seperate file so that I can use auto completion in atom for those scenes without always checking if the image existed or not, it will just list all the images that are there and so on.
For this I create a really little .bat file which takes all new images I get from the creator, and puts them defined in a textfile..... Well here's an example of how my image definitions look in my game (so I can use their names instead of the folder structure and so on) :
Code:
################## SHARED IMAGES ################################
image openback = "/shared/backgrounds/openbackground.png"
image gameover = "/shared/backgrounds/badending1.png"
image meanwhile = "/shared/backgrounds/meanwhile.png"
image elsewhere = "/shared/backgrounds/elsewhere.png"
image hoursb4 = "/shared/backgrounds/hoursb4.png"
image tobecontinued = "/shared/backgrounds/2bcontinued.png"
image support = "/shared/backgrounds/support.png"
image thoughts = "/shared/backgrounds/thoughtpower.png"
image warning = "shared/backgrounds/_warning.png"
image sometimelater = "shared/backgrounds/sometimelater.png"
image shorttimeafter = "shared/backgrounds/shorttimeafter.png"
image saveStatsBG = "shared/backgrounds/saveStats.png"
################## Credits & Ads #################################
image cpt06p1_credits01 = "/credits/cpt06p1_credits01.png"
image cpt06p1_credits02 = "/credits/cpt06p1_credits02.png"
################## Side Images for the whole Game #########################
########## Lynara ###########
### Lace Bodice ###
# Afraid #
image side lynara blace afraid01 = im.Scale("/sides/lynara/lynara_blace/afraid/afraid_01.png", 345, 460)
image side lynara blace afraid02 = im.Scale("/sides/lynara/lynara_blace/afraid/afraid_02.png", 345, 460)
image side lynara blace afraid03 = im.Scale("/sides/lynara/lynara_blace/afraid/afraid_03.png", 345, 460)
*snip*
# Define main images for chapter five part 02 #
image cpt05p2_000 = "/chapter_five_part02/cpt05p2_000.png"
image cpt05p2_000a = "/chapter_five_part02/cpt05p2_000b.png"
image cpt05p2_000b:
"/chapter_five_part02/cpt05p2_000b.png" with dissolve
0.5
"/chapter_five_part02/cpt05p2_000c.png" with dissolve
0.5
"/chapter_five_part02/cpt05p2_000d.png" with dissolve
0.5
"/chapter_five_part02/cpt05p2_000e.png" with dissolve
3.0
"/chapter_five_part02/cpt05p2_000f.png" with dissolve
0.5
"/chapter_five_part02/cpt05p2_000g.png" with dissolve
0.5
"/chapter_five_part02/cpt05p2_000h.png" with dissolve
0.5
"/chapter_five_part02/cpt05p2_000i.png" with dissolve
0.5
image cpt05p2_001a = "/chapter_five_part02/cpt05p2_001a.png"
image cpt05p2_001b = "/chapter_five_part02/cpt05p2_001b.png"
image cpt05p2_002a = "/chapter_five_part02/cpt05p2_002a.png"
image cpt05p2_002b = "/chapter_five_part02/cpt05p2_002b.png"
So as you can see, the last image would be auto defined (can be setup as much as you want so that it actually auto defines them like I named them... but then they wouldn't show up in the Lint logfile
) as:
"chapter five part02 cpt05p2 002b"
So instead I just named it cpt05p2_002b
And since all "scene" images got called just like that (file name without extension) I made a little batch script that would search through the folder and all subfolders it is in an would just write for every .png it finds:
image imageNameWithoutExtension = "/folderName/fileNameWithExtension"
then it prints it into a .txt file which I can just copy paste into my .rpy file and tadaaa done.