找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 1599|回复: 3

[已解决] Live 2d实验时出现无法revive MOC3

[复制链接]
发表于 2022-9-5 23:51:12 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?立即注册

×
本帖最后由 lupei 于 2022-9-6 13:26 编辑

以下是完整的trace back

[RenPy] 纯文本查看 复制代码
I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/xxx/Script/Misc/live2D.rpy", line 3, in script
    image CG_1_a = Live2D("images/Live2D/cg1a", loop=True,zoom= 0.5)
  File "game/xxx/Script/Misc/live2D.rpy", line 3, in script
    image CG_1_a = Live2D("images/Live2D/cg1a", loop=True,zoom= 0.5)
  File "game/xxx/Script/Misc/live2D.rpy", line 3, in <module>
    image CG_1_a = Live2D("images/Live2D/cg1a", loop=True,zoom= 0.5)
Exception: Could not revive Live2D MOC.

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

Full traceback:
  File "F:\game\renpy-8.0.2-sdk\renpy\bootstrap.py", line 274, in bootstrap
    renpy.main.main()
  File "F:\game\renpy-8.0.2-sdk\renpy\main.py", line 558, in main
    renpy.game.context().run(node)
  File "game/xxx/Script/Misc/live2D.rpy", line 3, in script
    image CG_1_a = Live2D("images/Live2D/cg1a", loop=True,zoom= 0.5)
  File "/home/tom/ab/renpy-build/tmp/install.linux-x86_64/lib/python3.9/site-packages/future/utils/__init__.py", line 441, in raise_
  File "game/xxx/Script/Misc/live2D.rpy", line 3, in script
    image CG_1_a = Live2D("images/Live2D/cg1a", loop=True,zoom= 0.5)
  File "F:\game\renpy-8.0.2-sdk\renpy\ast.py", line 1230, in execute
    img = renpy.python.py_eval_bytecode(self.code.bytecode)
  File "F:\game\renpy-8.0.2-sdk\renpy\python.py", line 1076, in py_eval_bytecode
    return eval(bytecode, globals, locals)
  File "game/xxx/Script/Misc/live2D.rpy", line 3, in <module>
    image CG_1_a = Live2D("images/Live2D/cg1a", loop=True,zoom= 0.5)
  File "F:\game\renpy-8.0.2-sdk\renpy\gl2\live2d.py", line 555, in __init__
    common = self.create_common(default_fade)
  File "F:\game\renpy-8.0.2-sdk\renpy\gl2\live2d.py", line 499, in create_common
    rv = Live2DCommon(self.filename, default_fade)
  File "F:\game\renpy-8.0.2-sdk\renpy\gl2\live2d.py", line 202, in __init__
    self.model = renpy.gl2.live2dmodel.Live2DModel(self.base + self.model_json["FileReferences"]["Moc"])
  File "live2dmodel.pyx", line 207, in renpy.gl2.live2dmodel.Live2DModel.__init__
Exception: Could not revive Live2D MOC.

S70Q7BP7@B_}J6AEH}@JN.png
live2d的模型是平时制作的格式。 版本为4.2 dll文件这些已经安装

 楼主| 发表于 2022-9-6 00:03:11 | 显示全部楼层
humm现在排查出来问题应该在模型,换演示模型就没有这个问题
回复 支持 抱歉

使用道具 举报

 楼主| 发表于 2022-9-6 10:19:15 | 显示全部楼层
状态更新 重新导出一遍模型以后这个问题解决,但是换了个报错模型依然无法显示
[RenPy] 纯文本查看 复制代码
image cgMountain1 = Live2D("images/Live2D/cg1a", loop=True, zoom= 1)
image lingbo = Live2D("images/Live2D/lingbo", loop=True ,zoom= 0.5)
#以上是定义模型,一下是show
    show cgMountain1 Scene1 at center

此时出现的报错是属于layered image的
not a knowed attribute?
而且同样,报错只存在于这个cg的模型。 在站长示例里面下载的那个模型就能正常显示
回复 支持 抱歉

使用道具 举报

 楼主| 发表于 2022-9-6 10:38:48 | 显示全部楼层
至于第一个问题排查出来了, renpy不支持live2d 4.2的sdk,只能用4.0以下
回复 支持 抱歉

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|手机版|RenPy中文空间 ( 苏ICP备17067825号|苏公网安备 32092302000068号 )

GMT+8, 2024-11-21 23:09 , Processed in 0.122290 second(s), 28 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表