Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

live2d define causes error in renpy8 #5485

Closed
YuanlinLi opened this issue Apr 28, 2024 · 1 comment
Closed

live2d define causes error in renpy8 #5485

YuanlinLi opened this issue Apr 28, 2024 · 1 comment

Comments

@YuanlinLi
Copy link

it's okay in renpy7

image hiyori = Live2D("live2d/hiyori/hiyori.model3.json", zoom=None, top=0.0, base=0.6, height=0.9, alias={}, loop=True, fade=True, seamless=None, attribute_function=None, attribute_filter=None, update_function=None,aliases={"idle" : "m01"})

I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/script.rpy", line 33, in script
    image hiyori = Live2D("live2d/hiyori/hiyori.model3.json", zoom=None, top=0.0, base=0.6, height=0.9, alias={}, loop=True, fade=True, seamless=None, attribute_function=None, attribute_filter=None, update_function=None,aliases={"idle" : "m01"})
  File "game/script.rpy", line 33, in <module>
    image hiyori = Live2D("live2d/hiyori/hiyori.model3.json", zoom=None, top=0.0, base=0.6, height=0.9, alias={}, loop=True, fade=True, seamless=None, attribute_function=None, attribute_filter=None, update_function=None,aliases={"idle" : "m01"})
TypeError: can only concatenate str (not "bytes") to str

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

Full traceback:
  File "game/script.rpy", line 33, in script
    image hiyori = Live2D("live2d/hiyori/hiyori.model3.json", zoom=None, top=0.0, base=0.6, height=0.9, alias={}, loop=True, fade=True, seamless=None, attribute_function=None, attribute_filter=None, update_function=None,aliases={"idle" : "m01"})
  File "E:\renpy-8.2.0-sdk\renpy\ast.py", line 922, in execute
    img = renpy.python.py_eval_bytecode(self.code.bytecode)
  File "E:\renpy-8.2.0-sdk\renpy\python.py", line 1202, in py_eval_bytecode
    return eval(bytecode, globals, locals)
  File "game/script.rpy", line 33, in <module>
    image hiyori = Live2D("live2d/hiyori/hiyori.model3.json", zoom=None, top=0.0, base=0.6, height=0.9, alias={}, loop=True, fade=True, seamless=None, attribute_function=None, attribute_filter=None, update_function=None,aliases={"idle" : "m01"})
  File "E:\renpy-8.2.0-sdk\renpy\gl2\live2d.py", line 587, in __init__
    common = self.common
  File "E:\renpy-8.2.0-sdk\renpy\gl2\live2d.py", line 538, in common
    return self.create_common()
  File "E:\renpy-8.2.0-sdk\renpy\gl2\live2d.py", line 526, in create_common
    rv = Live2DCommon(self.filename, self.default_fade)
  File "E:\renpy-8.2.0-sdk\renpy\gl2\live2d.py", line 188, in __init__
    init()
  File "E:\renpy-8.2.0-sdk\renpy\gl2\live2d.py", line 95, in init
    onetime_init()
  File "E:\renpy-8.2.0-sdk\renpy\gl2\live2d.py", line 67, in onetime_init
    if not renpy.gl2.live2dmodel.load(dll): # type: ignore
  File "live2dcsm.pxi", line 243, in renpy.gl2.live2dmodel.load
TypeError: can only concatenate str (not "bytes") to str

Windows-10-10.0.19041 AMD64
Ren'Py 8.2.1.24030407
testscreen 1.0
Sun Apr 28 18:30:48 2024
@renpytom
Copy link
Member

The error message was bad, but the fundamental cause of this was a too-old Live2D dll.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants