live2d define causes error in renpy8

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
User avatar
Li yuanlin
Regular
Posts: 94
Joined: Sat Aug 04, 2018 8:42 pm
Location: Hong Kong
Contact:

live2d define causes error in renpy8

#1 Post by Li yuanlin »

it's okay in renpy7

Code: Select all

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"})

Code: Select all

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.0.0-sdk\renpy\ast.py", line 1237, in execute
    img = renpy.python.py_eval_bytecode(self.code.bytecode)
  File "E:\renpy-8.0.0-sdk\renpy\python.py", line 1146, 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.0.0-sdk\renpy\gl2\live2d.py", line 566, in __init__
    common = self.create_common(default_fade)
  File "E:\renpy-8.0.0-sdk\renpy\gl2\live2d.py", line 510, in create_common
    rv = Live2DCommon(self.filename, default_fade)
  File "E:\renpy-8.0.0-sdk\renpy\gl2\live2d.py", line 186, in __init__
    init()
  File "E:\renpy-8.0.0-sdk\renpy\gl2\live2d.py", line 93, in init
    onetime_init()
  File "E:\renpy-8.0.0-sdk\renpy\gl2\live2d.py", line 65, 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.1.3.23091805
testscreen 1.0
Sat Apr 27 14:27:04 2024
stay hungry,stay foolish.

User avatar
m_from_space
Miko-Class Veteran
Posts: 990
Joined: Sun Feb 21, 2021 3:36 am
Contact:

Re: live2d define causes error in renpy8

#2 Post by m_from_space »

Li yuanlin wrote: Sat Apr 27, 2024 2:28 am it's okay in renpy7

Code: Select all

Ren'Py 8.1.3.23091805
You may wanna try it using the latest version of Renpy stable, which is 8.2.1.

If it persists, please create a bugreport here: https://github.com/renpy/renpy/issues (better not use the forum for bugreports, Tom probably doesn't check every entry and it's harder to track these things here).

AveryRyan
Newbie
Posts: 1
Joined: Fri Apr 26, 2024 11:47 pm
Contact:

Re: live2d define causes error in renpy8

#3 Post by AveryRyan »

Thank you so much for sharing the link. Since you helped me by sharing a link with me now, I also would like to help you. I am sharing this with you all, because it made everything easy for me, I know it will help you also. like if you search for klarna casinos you will get it there. I can now trust them with my eyes closed. They are casinosanalyzers a website, that helps us in finding the best casino online.
Last edited by AveryRyan on Fri May 03, 2024 3:06 am, edited 1 time in total.

User avatar
Li yuanlin
Regular
Posts: 94
Joined: Sat Aug 04, 2018 8:42 pm
Location: Hong Kong
Contact:

Re: live2d define causes error in renpy8

#4 Post by Li yuanlin »

m_from_space wrote: Sun Apr 28, 2024 4:52 am
Li yuanlin wrote: Sat Apr 27, 2024 2:28 am it's okay in renpy7

Code: Select all

Ren'Py 8.1.3.23091805
You may wanna try it using the latest version of Renpy stable, which is 8.2.1.

If it persists, please create a bugreport here: https://github.com/renpy/renpy/issues (better not use the forum for bugreports, Tom probably doesn't check every entry and it's harder to track these things here).
still this error,okay i will report issue.
stay hungry,stay foolish.

Post Reply

Who is online

Users browsing this forum: Google [Bot]