Image Error in Ren'Py?

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
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.
Post Reply
Message
Author
User avatar
404ShinigamiNotFound
Newbie
Posts: 9
Joined: Sun May 31, 2015 8:19 pm
Tumblr: 404shinigaminotfound
Deviantart: 404shinigaminotfound
Location: Under your bed
Contact:

Image Error in Ren'Py?

#1 Post by 404ShinigamiNotFound »

So, ive just started ren'py and i made a quick test game to get the hang of it, and i followed the tutorial and added the images+music in my game folder, and declared them in my game, yet my error message says it cant find the image+music. Am i doing something wrong?

User avatar
Donmai
Eileen-Class Veteran
Posts: 1960
Joined: Sun Jun 10, 2012 1:45 am
Completed: Toire No Hanako, Li'l Red [NaNoRenO 2013], The One in LOVE [NaNoRenO 2014], Running Blade [NaNoRenO 2016], The Other Question, To The Girl With Sunflowers
Projects: Slumberland
Location: Brazil
Contact:

Re: Image Error in Ren'Py?

#2 Post by Donmai »

Code: Select all

To help you, we need to see your code. Show us the part of your code where you declared your images and the part where you are showing them.
Image
No, sorry! You must be mistaking me for someone else.
TOIRE NO HANAKO (A Story About Fear)

User avatar
404ShinigamiNotFound
Newbie
Posts: 9
Joined: Sun May 31, 2015 8:19 pm
Tumblr: 404shinigaminotfound
Deviantart: 404shinigaminotfound
Location: Under your bed
Contact:

Re: Image Error in Ren'Py?

#3 Post by 404ShinigamiNotFound »

Ah, sorry about that. Im an idiot.
And, i have no idea how to add images to this (Again, im an idiot), so can you help me with that too? Thanks~

Onishion
Veteran
Posts: 295
Joined: Mon Apr 20, 2015 10:36 am
Contact:

Re: Image Error in Ren'Py?

#4 Post by Onishion »

You don't have to provide us with the images, just the code you're using to define and access them.

User avatar
404ShinigamiNotFound
Newbie
Posts: 9
Joined: Sun May 31, 2015 8:19 pm
Tumblr: 404shinigaminotfound
Deviantart: 404shinigaminotfound
Location: Under your bed
Contact:

Re: Image Error in Ren'Py?

#5 Post by 404ShinigamiNotFound »

im using (for image "tree"):
image tree = "Trees.jpeg"
Some of my images are jpeg, and some are png, and neither are working (along with mp3)
and to access them:
scene tree
or, if its a character
show rin at right (i declared these images in the same way)
I put the images in the game folder for this game, (as the tutorial and many YouTube tutorials said), but i think the problem is where i put the files. Im not sure though...

Onishion
Veteran
Posts: 295
Joined: Mon Apr 20, 2015 10:36 am
Contact:

Re: Image Error in Ren'Py?

#6 Post by Onishion »

ok, when you put code in on these forums, start that block of text with [ code ] and then end it with [/ code ] only without the spaces inside. That way it keeps the margins set right.

hmm. Try just declaring the image straight out first.

Code: Select all

image tree = "Trees.jpeg"

scene tree
see if that works, then if it does you can do the fancy bit. If it still doesn't work, are you sure that you got all the capitalization and stuff just right? It should find them if they're in the right directory.

User avatar
404ShinigamiNotFound
Newbie
Posts: 9
Joined: Sun May 31, 2015 8:19 pm
Tumblr: 404shinigaminotfound
Deviantart: 404shinigaminotfound
Location: Under your bed
Contact:

Re: Image Error in Ren'Py?

#7 Post by 404ShinigamiNotFound »

Thanks
It still doesnt work. The error message says:
"While loading <'image' 'City.jpeg'>:
IOError: Couldn't find file 'City.jpeg'.

User avatar
trooper6
Lemma-Class Veteran
Posts: 3712
Joined: Sat Jul 09, 2011 10:33 pm
Projects: A Close Shave
Location: Medford, MA
Contact:

Re: Image Error in Ren'Py?

#8 Post by trooper6 »

Is your file actually named "City.jpeg" or is it named "City.jpg"?
A Close Shave:
*Last Thing Done (Aug 17): Finished coding emotions and camera for 4/10 main labels.
*Currently Doing: Coding of emotions and camera for the labels--On 5/10
*First Next thing to do: Code in all CG and special animation stuff
*Next Next thing to do: Set up film animation
*Other Thing to Do: Do SFX and Score (maybe think about eye blinks?)
Check out My Clock Cookbook Recipe: http://lemmasoft.renai.us/forums/viewto ... 51&t=21978

User avatar
404ShinigamiNotFound
Newbie
Posts: 9
Joined: Sun May 31, 2015 8:19 pm
Tumblr: 404shinigaminotfound
Deviantart: 404shinigaminotfound
Location: Under your bed
Contact:

Re: Image Error in Ren'Py?

#9 Post by 404ShinigamiNotFound »

Yep, its named 'City.jpeg'

User avatar
xavimat
Eileen-Class Veteran
Posts: 1461
Joined: Sat Feb 25, 2012 8:45 pm
Completed: Yeshua, Jesus Life, Cops&Robbers
Projects: Fear&Love
Organization: Pilgrim Creations
Github: xavi-mat
itch: pilgrimcreations
Location: Spain
Discord: xavimat
Contact:

Re: Image Error in Ren'Py?

#10 Post by xavimat »

Maybe the jpeg is the problem?

1. Try renaming to jpg.

2. Try: http://renpy.org/doc/html/displaying_im ... ing-images
If you change the extension to ".jpg" (instead of .jpeg), and your images are in the "images" directory you don't need to declare them with the line:

Code: Select all

image trees = "images/Trees.jpg"
They will show just fine with show and scene.

3. How are you using the mp3 files? Please show your code.
Comunidad Ren'Py en español: ¡Únete a nuestro Discord!
Rhaier Kingdom A Ren'Py Multiplayer Adventure Visual Novel.
Cops&Robbers A two-player experiment | Fear&Love Why can't we say I love you?
Honest Critique (Avatar made with Chibi Maker by ~gen8)

User avatar
404ShinigamiNotFound
Newbie
Posts: 9
Joined: Sun May 31, 2015 8:19 pm
Tumblr: 404shinigaminotfound
Deviantart: 404shinigaminotfound
Location: Under your bed
Contact:

Re: Image Error in Ren'Py?

#11 Post by 404ShinigamiNotFound »

Thank you for your help :) i got the images working, and i also played around with the music code and got it working too.
Thanks again~

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot]