Barsonvenus / Memories-of-Self-Care-and-Literature

An okay 'Monika After Story' submod
23 stars 9 forks source link

Origami folding -- "Couldn't find file" exception -- Linux #22

Closed cafuneandchill closed 8 months ago

cafuneandchill commented 8 months ago

Attempting to fold paper cranes throws an IOError exception. The file is present, obviously.

EDIT: Saw the note in the wiki:

As of 5.2.7 & higher, The 'Better Loading' mod has been reported to cause issues with this mod if installed and will cause errors loading assets.

I'm assuming that this issue is the expected behaviour, then.

I'm sorry, but an uncaught exception occurred.

While loading <'Image' u'/submods/MoSCL/submod_assets/sprites/origamione.png'>:
  File "game/Submods/Utilities/better_loading.rpy", line 50, in bl_load
    raise IOError("Couldn't find file '%s'." % name)
IOError: Couldn't find file '/submods/MoSCL/submod_assets/sprites/origamione.png'.

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

Full traceback:
  File "/home/cafune/script-ch30.rpyc", line 2141, in script call
  File "/home/cafune/event-handler.rpyc", line 3119, in script call
  File "/home/cafune/submods/MoSCL/SCLdialogue.rpyc", line 5163, in script
  File "/home/cafune/Monika After Story/renpy/ast.py", line 613, in execute
    renpy.exports.say(who, what, interact=self.interact)
  File "/home/cafune/Monika After Story/renpy/exports.py", line 1147, in say
    who(what, interact=interact)
  File "/home/cafune/Monika After Story/renpy/character.py", line 877, in __call__
    self.do_display(who, what, cb_args=self.cb_args, **display_args)
  File "/home/cafune/Monika After Story/renpy/character.py", line 716, in do_display
    **display_args)
  File "/home/cafune/Monika After Story/renpy/character.py", line 508, in display_say
    rv = renpy.ui.interact(mouse='say', type=type, roll_forward=roll_forward)
  File "/home/cafune/Monika After Story/renpy/ui.py", line 285, in interact
    rv = renpy.game.interface.interact(roll_forward=roll_forward, **kwargs)
  File "/home/cafune/Monika After Story/renpy/display/core.py", line 2526, in interact
    repeat, rv = self.interact_core(preloads=preloads, trans_pause=trans_pause, **kwargs)
  File "/home/cafune/Monika After Story/renpy/display/core.py", line 2883, in interact_core
    self.draw_screen(root_widget, fullscreen_video, (not fullscreen_video) or video_frame_drawn)
  File "/home/cafune/Monika After Story/renpy/display/core.py", line 1955, in draw_screen
    renpy.config.screen_height,
  File "renpy/display/render.pyx", line 427, in renpy.display.render.render_screen (gen/renpy.display.render.c:6806)
    rv = render(root, width, height, 0, 0)
  File "renpy/display/render.pyx", line 196, in renpy.display.render.render (gen/renpy.display.render.c:2978)
    rv = d.render(widtho, heighto, st, at)
  File "/home/cafune/Monika After Story/renpy/display/layout.py", line 693, in render
    surf = render(child, width, height, cst, cat)
  File "renpy/display/render.pyx", line 110, in renpy.display.render.render (gen/renpy.display.render.c:3440)
    cpdef render(d, object widtho, object heighto, double st, double at):
  File "renpy/display/render.pyx", line 196, in renpy.display.render.render (gen/renpy.display.render.c:2978)
    rv = d.render(widtho, heighto, st, at)
  File "/home/cafune/Monika After Story/renpy/display/layout.py", line 693, in render
    surf = render(child, width, height, cst, cat)
  File "renpy/display/render.pyx", line 110, in renpy.display.render.render (gen/renpy.display.render.c:3440)
    cpdef render(d, object widtho, object heighto, double st, double at):
  File "renpy/display/render.pyx", line 196, in renpy.display.render.render (gen/renpy.display.render.c:2978)
    rv = d.render(widtho, heighto, st, at)
  File "/home/cafune/Monika After Story/renpy/display/layout.py", line 693, in render
    surf = render(child, width, height, cst, cat)
  File "renpy/display/render.pyx", line 110, in renpy.display.render.render (gen/renpy.display.render.c:3440)
    cpdef render(d, object widtho, object heighto, double st, double at):
  File "renpy/display/render.pyx", line 196, in renpy.display.render.render (gen/renpy.display.render.c:2978)
    rv = d.render(widtho, heighto, st, at)
  File "renpy/display/accelerator.pyx", line 108, in renpy.display.accelerator.transform_render (gen/renpy.display.accelerator.c:2027)
    cr = render(child, widtho, heighto, st - self.child_st_base, at)
  File "renpy/display/render.pyx", line 196, in renpy.display.render.render (gen/renpy.display.render.c:2978)
    rv = d.render(widtho, heighto, st, at)
  File "/home/cafune/Monika After Story/renpy/display/image.py", line 387, in render
    return wrap_render(self.target, width, height, st, at)
  File "/home/cafune/Monika After Story/renpy/display/image.py", line 208, in wrap_render
    rend = render(child, w, h, st, at)
  File "renpy/display/render.pyx", line 110, in renpy.display.render.render (gen/renpy.display.render.c:3440)
    cpdef render(d, object widtho, object heighto, double st, double at):
  File "renpy/display/render.pyx", line 196, in renpy.display.render.render (gen/renpy.display.render.c:2978)
    rv = d.render(widtho, heighto, st, at)
  File "/home/cafune/Monika After Story/renpy/display/im.py", line 473, in render
    im = cache.get(self)
  File "/home/cafune/Monika After Story/renpy/display/im.py", line 200, in get
    surf = image.load()
  File "/home/cafune/Monika After Story/renpy/display/im.py", line 524, in load
    surf = renpy.display.pgrender.load_image(renpy.loader.load(self.filename), self.filename)
  File "game/Submods/Utilities/better_loading.rpy", line 50, in bl_load
    raise IOError("Couldn't find file '%s'." % name)
IOError: Couldn't find file '/submods/MoSCL/submod_assets/sprites/origamione.png'.

Linux-5.15.0-97-lowlatency-x86_64-with-debian-bookworm-sid
Ren'Py 6.99.12.4.2187
Monika After Story 0.12.15
Barsonvenus commented 8 months ago

You are correct, it is the better loading submod. I'm not sure how much usage you get out of it, but for now it is incompatible so you would want to consider removing it unless it other submods have it as a dependency.