Ren'Py RenPy images not showing up anymore?

WhitePhantom

Active Member
Donor
Game Developer
Feb 21, 2018
979
4,443
I have no idea what I've just done or how to fix it, so hopefully somebody can help?

I've always added an image in the past by typing:

scene theimage

and saving theimage.jpg in the images folder of my Renpy thing.

However now all I'm getting is a light grey screen with "theimage" up the top?

Now I can fix it by putting in:

image theimage = "theimage.jpg"

but that's a real pain in the ass to do that several hundred times and I've never had to do it before?

Anybody got any ideas?
 

Papa Ernie

Squirrel!?
Uploader
Donor
Dec 4, 2016
12,330
47,485
I have no idea what I've just done or how to fix it, so hopefully somebody can help?

I've always added an image in the past by typing:

scene theimage

and saving theimage.jpg in the images folder of my Renpy thing.

However now all I'm getting is a light grey screen with "theimage" up the top?

Now I can fix it by putting in:

image theimage = "theimage.jpg"

but that's a real pain in the ass to do that several hundred times and I've never had to do it before?

Anybody got any ideas?
 

WhitePhantom

Active Member
Donor
Game Developer
Feb 21, 2018
979
4,443
Fixed it, forgot images need to be all lower case, doh.

Can delete this
 

anne O'nymous

I'm not grumpy, I'm just coded that way.
Modder
Donor
Respected User
Jun 10, 2017
10,384
15,293
Now I can fix it by putting in:

image theimage = "theimage.jpg"

but that's a real pain in the ass to do that several hundred times and I've never had to do it before?
is what you're looking for. It's exactly like the image statement, except that Ren'py do all the works for you.
Let's say you have this in the images folder:
  • character
    • mc
      • happy.jpg
      • not_happy.jpg
Then you can display the image with :
Code:
show character mc happy
show character mc not happy
 

WhitePhantom

Active Member
Donor
Game Developer
Feb 21, 2018
979
4,443
Hi,

Erm, I fixed this ages ago.

For my images I use "scene imagenamehere"
and in the game/images folder I put imagenamehere.jpg
It's easier than subfolders, I just save my file names starting with my own weird little code so I know how to call up exactly each one.

the problem was I was typing "scene Imagenamehere"
instead of "scene imagenamehere"
so Ren'Py didn't like it, make it all lower case and I haven't had a problem since.

I don't know what would be causing ateanakid's problem though.
 

ateanakid

New Member
Jul 25, 2018
6
1
Thank you for your feedback.
Firstly, I would like to describe my situation in details like
1. All pictures are in "game/images/" which is defaults setting of Renpy
2. I got a problem that "scene image_to_show_A" does not show image A
- This problem only appears for some jpg images that I downloaded from the fanart section. I can totally view these images in Window. The image name is "abc1.jpg, abc2.jpg, etc."
- I can show other images without a single problem
3. What I have tried
- Changed name to all lower case ---> still get the same problem
- define image abc1 = "abc1.jpg", then scene abc1. I got another problem that IOError: couldn't find the file abc1.jpg ---> This one already inside images/ folder (I have double checked it).

It is very weird, any suggestion is more than welcome :D

Have a nice day all,
 

ishigreensa

New Member
Jul 6, 2019
9
1
You don't need define and image together in the area before start, or in init blocks:

Did you try:
image abc1 = "abc1.jpg"
?

also, I don't know why the auto feature didn't work....
but for the declarations, did you remember the folders?
if your abc1 image is in the girls folder under images, and you are manually defining images:
You should include every folder for renpy to look in.
I do this because I use composite and layered images, so I have to tell renpy manually where to find my images for that, especially when I add more code set to variables I want to control in game.

so:
if image abc1 is in images, and underimages is in bg_scenes:
image abc1 = "images/bg_scenes/abc1.jpg"
...would work.

Using that, you can actually set your code:
image bg room = "images/bg_scenes/[room].jpg"

label afterstart:
$ room = abc1
scene bg room

Then every time the scene should change, you don't have to type scene bg room everytime. Only when you wanted to get ride of speaking fields or use transitions:

so:
label sometimelater:
$ room = "acc1"
label somemoretimelater:
$ room = "adf1"

and the rooms would autochange though there would be no transition like a dissolve or whatever between the scenes.
if you wanted that, then you should still then type out...
$ room = "adf1"
scene bg room with fade

I hope this helps someone. I know the thread is old, but the question may still linger for some.
 
  • Like
Reactions: Madmanator99

osanaiko

Engaged Member
Modder
Jul 4, 2017
2,306
3,970
My issue is a bit different, the image is passed over entirely and jumps to the next image
If there is no "interaction" between them then having two "show" or "scene" image statements in a row will just skip the first one.

An interaction is stuff like "show a line of dialogue" or "wait for keypress" pause statement or "wait for a certain number of seconds" pause(1.5) statement.

There is an exception to this: if you have a timed ATL statement or transition applied to the image, it will not show the next image until the animation is finished.

Code:
# this will skip the first image (display it and then the next one faster than the screen refresh, so you never see it)
show  sylvie blue normal
show  sylvie green normal

# these three sets of statements will show both images, and need a click to continue for the first two

# display a dialogue line between the images
show  sylvie blue normal
mc "change your color!"
show  sylvie green normal

# wait for keypress between the images
show  sylvie blue normal
pause
show  sylvie green normal

# wait for 1.2 seconds or a keypress and then show the next images
show  sylvie blue normal
pause(1.2)
show  sylvie green normal


# and the transition/animations will cause it to wait until  the animation plays before showing the second image

# dissolve transition
show sylvie blue normal with Dissolve(2.0)
show  sylvie green normal

# ATL animation
show  sylvie blue normal:
    zoom 1.0
    linear 3.0 zoom 1.2
show  sylvie green normal
EDIT: actually i might be wrong about the last one, the ATL example. that probably needs a timed pause to wait for the animation to finish.
 
Last edited:

osanaiko

Engaged Member
Modder
Jul 4, 2017
2,306
3,970
1. There's nothing obvious I can see in that code that would cause images to "stop showing". Can you double check all the image file names? also you can use the developer tools to check a list of loaded images.

2. if you use the "Renpy show image with tags" functionality, you will not need to hide the images again, they will get auto-hidden if you use the same tag as a visible image.

The docs here explain the functionality.

Here's how to change your code to use it:

Code:
#rename your images from "mc_happy.png" and "yuki_angry.png" etc. to "mc happy.png", "yuki angry.png"

show yuki neutral
y "what did you say?"

show mc leering
p "I said you need to rim my asshole to show your gratitude."

show yuki angry
y "You fucking shitstain, what sort of whore do you think I am?"

show mc happy
p "Lol, you are so cute when you are angry..."

show yuki deredere
y "R... Really? [m], you think I'm cute?"
 
  • Red Heart
Reactions: LostBR

LostBR

Active Member
Sep 21, 2018
983
2,166
1. There's nothing obvious I can see in that code that would cause images to "stop showing". Can you double check all the image file names? also you can use the developer tools to check a list of loaded images.

2. if you use the "Renpy show image with tags" functionality, you will not need to hide the images again, they will get auto-hidden if you use the same tag as a visible image.

The docs here explain the functionality.

Here's how to change your code to use it:

Code:
#rename your images from "mc_happy.png" and "yuki_angry.png" etc. to "mc happy.png", "yuki angry.png"

show yuki neutral
y "what did you say?"

show mc leering
p "I said you need to rim my asshole to show your gratitude."

show yuki angry
y "You fucking shitstain, what sort of whore do you think I am?"

show mc happy
p "Lol, you are so cute when you are angry..."

show yuki deredere
y "R... Really? [m], you think I'm cute?"
Thank you, changing the name worked, but i have to say, this is so stupid just the '_' made it stop working
 
  • Like
Reactions: osanaiko