Image Error in Ren'Py?
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.
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.
- 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?
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?
- 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?
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.
No, sorry! You must be mistaking me for someone else.
TOIRE NO HANAKO (A Story About Fear)
TOIRE NO HANAKO (A Story About Fear)
- 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?
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~
And, i have no idea how to add images to this (Again, im an idiot), so can you help me with that too? Thanks~
Re: Image Error in Ren'Py?
You don't have to provide us with the images, just the code you're using to define and access them.
- 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?
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...
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...
Re: Image Error in Ren'Py?
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.
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.
hmm. Try just declaring the image straight out first.
Code: Select all
image tree = "Trees.jpeg"
scene tree
- 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?
Thanks
It still doesnt work. The error message says:
"While loading <'image' 'City.jpeg'>:
IOError: Couldn't find file 'City.jpeg'.
It still doesnt work. The error message says:
"While loading <'image' 'City.jpeg'>:
IOError: Couldn't find file 'City.jpeg'.
- 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?
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
*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
- 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?
Yep, its named 'City.jpeg'
- 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?
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:They will show just fine with show and scene.
3. How are you using the mp3 files? Please show your code.
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"
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)
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)
- 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?
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~
Thanks again~
Who is online
Users browsing this forum: Ahrefs [Bot]