Ren'Py RenPy images not showing up anymore?

WhitePhantom

Active Member
Donor
Game Developer
Feb 21, 2018
970
4,354
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,327
47,049
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
970
4,354
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
Respected User
Donor
Jun 10, 2017
9,949
14,551
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
970
4,354
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