An Exception has Occurred

In this forum we discuss the future of Ren'Py, both bug fixes and longer-term development. Pre-releases are announced and discussed here.
Post Reply
Message
Author
bronco2021
Newbie
Posts: 1
Joined: Wed Oct 14, 2020 8:03 pm
Contact:

An Exception has Occurred

#1 Post by bronco2021 »

Code: Select all

I'm sorry, but an uncaught exception occurred.

While loading <'Image' u'images/Chapter 04/ch4_marsha_39.png'>:
Exception: Could not load image u'images/Chapter 04/ch4_marsha_39.png': error('Unsupported image format',)

-- Full Traceback ------------------------------------------------------------

Full traceback:
  File "scripts/script.rpyc", line 96, in script call
  File "scripts/locations/Sharons Home/Front Door/front door.rpyc", line 73, in script call
  File "scripts/locations/Sharons Home/Front Door/marsha ch4 p2.rpyc", line 127, in script
  File "S:\Games\Good Games\Dark Neighbourhood\DarkNeighbourhood-1.0-pc\renpy\ast.py", line 1371, in execute
    renpy.exports.with_statement(trans, paired)
  File "S:\Games\Good Games\Dark Neighbourhood\DarkNeighbourhood-1.0-pc\renpy\exports.py", line 1578, in with_statement
    return renpy.game.interface.do_with(trans, paired, clear=clear)
  File "S:\Games\Good Games\Dark Neighbourhood\DarkNeighbourhood-1.0-pc\renpy\display\core.py", line 2240, in do_with
    clear=clear)
  File "S:\Games\Good Games\Dark Neighbourhood\DarkNeighbourhood-1.0-pc\renpy\display\core.py", line 2690, in interact
    repeat, rv = self.interact_core(preloads=preloads, trans_pause=trans_pause, **kwargs)
  File "S:\Games\Good Games\Dark Neighbourhood\DarkNeighbourhood-1.0-pc\renpy\display\core.py", line 3174, in interact_core
    self.draw_screen(root_widget, fullscreen_video, (not fullscreen_video) or video_frame_drawn)
  File "S:\Games\Good Games\Dark Neighbourhood\DarkNeighbourhood-1.0-pc\renpy\display\core.py", line 2086, in draw_screen
    renpy.config.screen_height,
  File "render.pyx", line 516, in renpy.display.render.render_screen
  File "render.pyx", line 244, in renpy.display.render.render
  File "S:\Games\Good Games\Dark Neighbourhood\DarkNeighbourhood-1.0-pc\renpy\display\layout.py", line 722, in render
    surf = render(child, width, height, cst, cat)
  File "render.pyx", line 151, in renpy.display.render.render
  File "render.pyx", line 244, in renpy.display.render.render
  File "S:\Games\Good Games\Dark Neighbourhood\DarkNeighbourhood-1.0-pc\renpy\display\transition.py", line 180, in render
    renpy.display.render.render(self.transitions[-1], width, height, 0, 0)
  File "render.pyx", line 151, in renpy.display.render.render
  File "render.pyx", line 244, in renpy.display.render.render
  File "S:\Games\Good Games\Dark Neighbourhood\DarkNeighbourhood-1.0-pc\renpy\display\transition.py", line 361, in render
    top = render(self.new_widget, width, height, st, at)
  File "render.pyx", line 151, in renpy.display.render.render
  File "render.pyx", line 244, in renpy.display.render.render
  File "S:\Games\Good Games\Dark Neighbourhood\DarkNeighbourhood-1.0-pc\renpy\display\layout.py", line 722, in render
    surf = render(child, width, height, cst, cat)
  File "render.pyx", line 151, in renpy.display.render.render
  File "render.pyx", line 244, in renpy.display.render.render
  File "S:\Games\Good Games\Dark Neighbourhood\DarkNeighbourhood-1.0-pc\renpy\display\layout.py", line 722, in render
    surf = render(child, width, height, cst, cat)
  File "render.pyx", line 151, in renpy.display.render.render
  File "render.pyx", line 244, in renpy.display.render.render
  File "accelerator.pyx", line 110, in renpy.display.accelerator.transform_render
  File "render.pyx", line 244, in renpy.display.render.render
  File "S:\Games\Good Games\Dark Neighbourhood\DarkNeighbourhood-1.0-pc\renpy\display\image.py", line 500, in render
    return wrap_render(self.target, width, height, st, at)
  File "S:\Games\Good Games\Dark Neighbourhood\DarkNeighbourhood-1.0-pc\renpy\display\image.py", line 306, in wrap_render
    rend = render(child, w, h, st, at)
  File "render.pyx", line 151, in renpy.display.render.render
  File "render.pyx", line 244, in renpy.display.render.render
  File "S:\Games\Good Games\Dark Neighbourhood\DarkNeighbourhood-1.0-pc\renpy\display\im.py", line 580, in render
    return cache.get(self, render=True)
  File "S:\Games\Good Games\Dark Neighbourhood\DarkNeighbourhood-1.0-pc\renpy\display\im.py", line 266, in get
    surf = image.load()
  File "S:\Games\Good Games\Dark Neighbourhood\DarkNeighbourhood-1.0-pc\renpy\display\im.py", line 625, in load
    surf = renpy.display.pgrender.load_image(renpy.loader.load(self.filename), self.filename)
  File "S:\Games\Good Games\Dark Neighbourhood\DarkNeighbourhood-1.0-pc\renpy\display\pgrender.py", line 162, in load_image
    raise Exception("Could not load image {!r}: {!r}".format(filename, e))
Exception: Could not load image u'images/Chapter 04/ch4_marsha_39.png': error('Unsupported image format',)

Windows-8-6.2.9200
Ren'Py 7.2.1.457
Dark Neighbourhood 1.0
Thu Oct 15 10:09:06 2020

User avatar
Imperf3kt
Lemma-Class Veteran
Posts: 3791
Joined: Mon Dec 14, 2015 5:05 am
itch: Imperf3kt
Location: Your monitor
Contact:

Re: An Exception has Occurred

#2 Post by Imperf3kt »

Is your PNG file actually PNG, or is it something else like .png.somethingelse

The error is being flagged because the file type is unsupported, but the file name indicates it is PNG which is supported, so the only explanation I can think of is its not actually a .png file
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.

Current project: GGD Mentor

Twitter

Post Reply

Who is online

Users browsing this forum: No registered users