Hi all, I've recently gotten back into the world of Ren'Py and am quite dusty. I'm having issues in places I've never had any trouble in though, primarily in getting any kind of scene to appear! I've tried changing the image name, the file name, and the file/image I'm using altogether, and I'm still having a problem.
This is how I've defined it:
image bg class1 = "classroom_morning.jpg"
This is how I put it in the code:
scene bg class1
with dissolve1
And, although I've checked for errors multiple times (including being sure I typed the correct file name) I get this:
I'm sorry, but an uncaught exception occurred.
While loading <'Image' 'classroom_morning.jpg'>:
File "game/script.rpy", line 32, in script
with dissolve1
IOError: Couldn't find file 'classroom_morning.jpg'.
-- Full Traceback ------------------------------------------------------------
Full traceback:
File "game/script.rpy", line 32, in script
with dissolve1
File "/Applications/renpy-6.99.4-sdk/renpy/ast.py", line 1236, in execute
renpy.exports.with_statement(trans, paired)
File "/Applications/renpy-6.99.4-sdk/renpy/exports.py", line 1251, in with_statement
return renpy.game.interface.do_with(trans, paired, clear=clear)
File "/Applications/renpy-6.99.4-sdk/renpy/display/core.py", line 1857, in do_with
clear=clear)
File "/Applications/renpy-6.99.4-sdk/renpy/display/core.py", line 2276, in interact
repeat, rv = self.interact_core(preloads=preloads, **kwargs)
File "/Applications/renpy-6.99.4-sdk/renpy/display/core.py", line 2608, in interact_core
self.draw_screen(root_widget, fullscreen_video, (not fullscreen_video) or video_frame_drawn)
File "/Applications/renpy-6.99.4-sdk/renpy/display/core.py", line 1717, in draw_screen
renpy.config.screen_height,
File "renpy/display/render.pyx", line 379, in renpy.display.render.render_screen (gen/renpy.display.render.c:5886)
rv = render(root, width, height, 0, 0)
File "renpy/display/render.pyx", line 185, in renpy.display.render.render (gen/renpy.display.render.c:2662)
rv = d.render(widtho, heighto, st, at)
File "/Applications/renpy-6.99.4-sdk/renpy/display/layout.py", line 649, in render
surf = render(child, width, height, cst, cat)
File "renpy/display/render.pyx", line 103, in renpy.display.render.render (gen/renpy.display.render.c:3045)
cpdef render(d, object widtho, object heighto, double st, double at):
File "renpy/display/render.pyx", line 185, in renpy.display.render.render (gen/renpy.display.render.c:2662)
rv = d.render(widtho, heighto, st, at)
File "/Applications/renpy-6.99.4-sdk/renpy/display/transition.py", line 362, in render
top = render(self.new_widget, width, height, st, at)
File "renpy/display/render.pyx", line 103, in renpy.display.render.render (gen/renpy.display.render.c:3045)
cpdef render(d, object widtho, object heighto, double st, double at):
File "renpy/display/render.pyx", line 185, in renpy.display.render.render (gen/renpy.display.render.c:2662)
rv = d.render(widtho, heighto, st, at)
File "/Applications/renpy-6.99.4-sdk/renpy/display/layout.py", line 649, in render
surf = render(child, width, height, cst, cat)
File "renpy/display/render.pyx", line 103, in renpy.display.render.render (gen/renpy.display.render.c:3045)
cpdef render(d, object widtho, object heighto, double st, double at):
File "renpy/display/render.pyx", line 185, in renpy.display.render.render (gen/renpy.display.render.c:2662)
rv = d.render(widtho, heighto, st, at)
File "/Applications/renpy-6.99.4-sdk/renpy/display/layout.py", line 649, in render
surf = render(child, width, height, cst, cat)
File "renpy/display/render.pyx", line 103, in renpy.display.render.render (gen/renpy.display.render.c:3045)
cpdef render(d, object widtho, object heighto, double st, double at):
File "renpy/display/render.pyx", line 185, in renpy.display.render.render (gen/renpy.display.render.c:2662)
rv = d.render(widtho, heighto, st, at)
File "renpy/display/accelerator.pyx", line 104, in renpy.display.accelerator.transform_render (gen/renpy.display.accelerator.c:1877)
cr = render(child, widtho, heighto, st - self.child_st_base, at)
File "renpy/display/render.pyx", line 185, in renpy.display.render.render (gen/renpy.display.render.c:2662)
rv = d.render(widtho, heighto, st, at)
File "/Applications/renpy-6.99.4-sdk/renpy/display/image.py", line 218, in render
return wrap_render(self.target, width, height, st, at)
File "/Applications/renpy-6.99.4-sdk/renpy/display/image.py", line 90, in wrap_render
rend = render(child, w, h, st, at)
File "renpy/display/render.pyx", line 103, in renpy.display.render.render (gen/renpy.display.render.c:3045)
cpdef render(d, object widtho, object heighto, double st, double at):
File "renpy/display/render.pyx", line 185, in renpy.display.render.render (gen/renpy.display.render.c:2662)
rv = d.render(widtho, heighto, st, at)
File "/Applications/renpy-6.99.4-sdk/renpy/display/im.py", line 478, in render
im = cache.get(self)
File "/Applications/renpy-6.99.4-sdk/renpy/display/im.py", line 200, in get
surf = image.load()
File "/Applications/renpy-6.99.4-sdk/renpy/display/im.py", line 529, in load
surf = renpy.display.pgrender.load_image(renpy.loader.load(self.filename), self.filename)
File "/Applications/renpy-6.99.4-sdk/renpy/loader.py", line 450, in load
raise IOError("Couldn't find file '%s'." % name)
IOError: Couldn't find file 'classroom_morning.jpg'.
Darwin-14.1.0-x86_64-i386-64bit
Ren'Py 6.99.4.467
scamps 0.0
Help! Backgrounds/Scenes not showing up?
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.
Re: Help! Backgrounds/Scenes not showing up?
And now it's saying that it can't find any of my other images either. No idea why. They're in the images folder in this game's directory.
- trooper6
- Lemma-Class Veteran
- Posts: 3712
- Joined: Sat Jul 09, 2011 10:33 pm
- Projects: A Close Shave
- Location: Medford, MA
- Contact:
Re: Help! Backgrounds/Scenes not showing up?
If the files are in the images folder, then they need to be defined like so:
image bg class1 = "images/classroom_morning.jpg"
image bg class1 = "images/classroom_morning.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
Re: Help! Backgrounds/Scenes not showing up?
Whoa, really? Did that change? I haven't done this in a few years and I genuinely have no memory of that!trooper6 wrote:If the files are in the images folder, then they need to be defined like so:
image bg class1 = "images/classroom_morning.jpg"
- 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: Help! Backgrounds/Scenes not showing up?
Please notice that if you have the latest Ren'Py and you are putting your image files inside the default 'images' folder, you don't need to declare them anymore. See the documentation here: http://www.renpy.org/doc/html/displayin ... -directory
No, sorry! You must be mistaking me for someone else.
TOIRE NO HANAKO (A Story About Fear)
TOIRE NO HANAKO (A Story About Fear)
Re: Help! Backgrounds/Scenes not showing up?
I thought I was using the latest Ren'Py, I only downloaded it a few hours ago... however, as suggested above, I had to declare it for it to work. Weird, huh?Donmai wrote:Please notice that if you have the latest Ren'Py and you are putting your image files inside the default 'images' folder, you don't need to declare them anymore. See the documentation here: http://www.renpy.org/doc/html/displayin ... -directory
- 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: Help! Backgrounds/Scenes not showing up?
Not so weird if you follow the documentation. You should only have to rename 'classroom_morning.jpg' to 'classroom morning.jpg' and then
Code: Select all
scene classroom morning
No, sorry! You must be mistaking me for someone else.
TOIRE NO HANAKO (A Story About Fear)
TOIRE NO HANAKO (A Story About Fear)
Who is online
Users browsing this forum: Bing [Bot], MisterPinetree