|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?立即注册
×
本帖最后由 wataryuu 于 2021-5-24 08:11 编辑
把制作了个序章的demo打包后测试时发现的问题。
其他图片显示都正常,但是人物有关(立绘和头像)的两张图片(和其他图片都在同一个文件夹里)打包为rpa后进行测试时,都显示以下错误:
- I'm sorry, but an uncaught exception occurred.
- While loading <'Image' u'sakiei01.png '>:
- IOError: Couldn't find file 'sakiei01.png '.
- -- Full Traceback ------------------------------------------------------------
- Full traceback:
- File "rpy/the0.rpyc", line 64, in script
- File "renpy/ast.py", line 715, in execute
- renpy.exports.say(who, what, *args, **kwargs)
- File "renpy/exports.py", line 1384, in say
- who(what, *args, **kwargs)
- File "renpy/character.py", line 1179, in __call__
- self.do_display(who, what, cb_args=self.cb_args, dtt=dtt, **display_args)
- File "renpy/character.py", line 851, in do_display
- **display_args)
- File "renpy/character.py", line 601, in display_say
- rv = renpy.ui.interact(mouse='say', type=type, roll_forward=roll_forward)
- File "renpy/ui.py", line 298, in interact
- rv = renpy.game.interface.interact(roll_forward=roll_forward, **kwargs)
- File "renpy/display/core.py", line 3007, in interact
- repeat, rv = self.interact_core(preloads=preloads, trans_pause=trans_pause, pause=pause, pause_start=pause_start, **kwargs)
- File "renpy/display/core.py", line 3517, in interact_core
- self.draw_screen(root_widget, fullscreen_video, (not fullscreen_video) or video_frame_drawn)
- File "renpy/display/core.py", line 2377, in draw_screen
- renpy.config.screen_height,
- File "render.pyx", line 492, in renpy.display.render.render_screen
- File "render.pyx", line 263, in renpy.display.render.render
- File "renpy/display/layout.py", line 751, in render
- surf = render(child, width, height, cst, cat)
- File "render.pyx", line 170, in renpy.display.render.render
- File "render.pyx", line 263, in renpy.display.render.render
- File "renpy/display/layout.py", line 751, in render
- surf = render(child, width, height, cst, cat)
- File "render.pyx", line 170, in renpy.display.render.render
- File "render.pyx", line 263, in renpy.display.render.render
- File "renpy/display/layout.py", line 751, in render
- surf = render(child, width, height, cst, cat)
- File "render.pyx", line 170, in renpy.display.render.render
- File "render.pyx", line 263, in renpy.display.render.render
- File "renpy/display/transform.py", line 927, in render
- return transform_render(self, width, height, st, at)
- File "accelerator.pyx", line 116, in renpy.display.accelerator.transform_render
- File "render.pyx", line 263, in renpy.display.render.render
- File "renpy/display/image.py", line 501, in render
- return wrap_render(self.target, width, height, st, at)
- File "renpy/display/image.py", line 307, in wrap_render
- rend = render(child, w, h, st, at)
- File "render.pyx", line 170, in renpy.display.render.render
- File "render.pyx", line 263, in renpy.display.render.render
- File "renpy/display/im.py", line 607, in render
- return cache.get(self, render=True)
- File "renpy/display/im.py", line 271, in get
- surf = image.load()
- File "renpy/display/im.py", line 651, in load
- filelike = renpy.loader.load(self.filename)
- File "renpy/loader.py", line 798, in load
- raise IOError("Couldn't find file '%s'." % name)
- IOError: Couldn't find file 'sakiei01.png '.
- Windows-10-10.0.18362
- Ren'Py 7.4.2.1292
- DeCoDiary.vol 1 起 demo 1.0
- Mon Mar 15 12:36:41 2021
复制代码
打包的部分是这样的:[RenPy] 纯文本查看 复制代码 build.classify('**~', None)
build.classify('**.bak', None)
build.classify('**/.**', None)
build.classify('**/#**', None)
build.classify('**/thumbs.db', None)
build.archive("scripts", "all")
build.archive("images", "all")
build.classify("game/**.rpy", "scripts")
build.classify("game/**.rpyc", "scripts")
build.classify("game/**.jpg", "images")
build.classify("game/**.png", "images")
build.classify('game/**.ogg', 'archive')
build.classify('game/**.mp3', 'archive')
build.classify('game/**.mpg', 'archive')
build.classify('game/**.wav', 'archive')
定义图片的部分:
[RenPy] 纯文本查看 复制代码 define s = Character('笫咲影',image="sk")
define z = Character('???')
image logo = "logo1.png"
image logo1 = "logo2.jpg"
image side sk = "ssakiei01.png "
image side sk n = "ssakiei01.png "
image sk n = "sakiei01.png "
image sk = "sakiei01.png "
"rpy/the0.rpyc", line 63部分开始的代码
[RenPy] 纯文本查看 复制代码 show sk
s n"“我的名字叫笫咲影,在你看来这个名字可能有点奇怪。{w}我的父母也都不姓‘笫’,{w}那他们为什么会给我取这个姓呢?”"
|
|