Does Ren'Py support Live 2D?

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.
Message
Author
User avatar
Mole-chan
Veteran
Posts: 333
Joined: Thu Aug 27, 2009 12:46 am
Completed: DUAEL, Escape from Puzzlegate
Projects: A Bird with Gold-Mended Wings
Deviantart: mole-chan
Skype: mole-chan
itch: moleworks
Contact:

Re: Does Ren'Py support Live 2D?

#136 Post by Mole-chan »

asfdfdfd wrote: Sun Dec 30, 2018 7:17 pm
Mole-chan wrote: Fri Dec 21, 2018 6:50 pm Have there been any updates on this? I just ask because it's been a while, and intriguing some features (getting rid of the black background, multiple sprites) sounded like they were still on the docket.
There is no progress as i've buried under pile of work. I have plans to resume Live2D project in 2019 but no ETA as usual.
No worries! Take as much time as you need. I was just worried this project had been abandoned, but other work comes first.

Thank you again for contributing this.

iCharuzu
Newbie
Posts: 1
Joined: Tue Mar 26, 2019 10:32 am
Contact:

Re: Does Ren'Py support Live 2D?

#137 Post by iCharuzu »

How about Spine 2d Pro? Does it support Ren'py?

User avatar
isobellesophia
Miko-Class Veteran
Posts: 979
Joined: Mon Jan 07, 2019 2:55 am
Completed: None
Projects: Maddox and Friends! (AI Teacher friend), Friendly Universities! (Soon)
Organization: Friendly Teachers series
Deviantart: SophBelle
itch: Child Creation
Location: Philippines, Mindanao
Contact:

Re: Does Ren'Py support Live 2D?

#138 Post by isobellesophia »

iCharuzu wrote: Tue Mar 26, 2019 10:37 am How about Spine 2d Pro? Does it support Ren'py?
I dont think that'll work too, also it is a 2d animation. Maybe simpliest to do because its 2d. And not 3d. (maybe it will take much more MB size than other engines, that is i've been worrying about.) Wish PyTom has something to do with it.

Unity3d, also can animate things, or even Blender..
I am a friendly user, please respect and have a good day.


Image

Image


User avatar
nerupuff
Veteran
Posts: 211
Joined: Sat Dec 02, 2017 2:24 am
Contact:

Re: Does Ren'Py support Live 2D?

#139 Post by nerupuff »

Glad to see that the project attempt hasn't been abandoned yet (checked the github and am impressed, though got worried for a bit since it's been 5 months since the last commit)! Looking forward to tinkering with this, and thank you so much! Excited to see more updates for it this 2019, but no rush. It's great to see the work but of course, focus on your priorities too (you've already done a great service with just this) ^^
ImageImage
Hire me for proofreading, editing, and (maybe) writing! ♡ Check here!

User avatar
barsunduk
Regular
Posts: 33
Joined: Fri Jul 18, 2014 1:06 pm
Completed: «Crystal City», «Mega City», «Kilmonger», «Neuronaut», «Love, Death & Veggies», «Arrow Tourney», «Big Red Hood: Halloween», «Succubus Throne»
Projects: «Swordsman Tourney», «This Tiny Galaxy»
Organization: 7DOTS
itch: 7dots
Contact:

Re: Does Ren'Py support Live 2D?

#140 Post by barsunduk »

Live2d works. But saves crashes. т____т

User avatar
curry nochi rice
Miko-Class Veteran
Posts: 746
Joined: Sat Mar 27, 2010 3:12 am
Projects: Delicatessen, Whom to Notice, Start of Something, Love Sorcery
Organization: Circle Cosine
IRC Nick: Curry
Skype: after.curry.rice
itch: project-rothera
Contact:

Re: Does Ren'Py support Live 2D?

#141 Post by curry nochi rice »

Don't want to necro this thread but this is the first one to come out for my (or anyone who googles renpy+live2d) google results so let me just say as of Ren'Py 7.4.0, Live2D is now supported.
https://www.renpy.org/doc/html/live2d.h ... ght=live2d

Much thanks to PyTom for making this feature available. :D :D :D :D :D
Personal (R-13) | Now at IndieDB | Circle Cosine's itch.io
I wanna be done.

galatra303
Newbie
Posts: 12
Joined: Fri Jan 22, 2021 2:31 pm
Completed: 1
Organization: Galatra Games
Github: galatra303
Soundcloud: galatra303
itch: galatra303
Location: Houston, TX
Contact:

Re: Does Ren'Py support Live 2D?

#142 Post by galatra303 »

Hi,

I have made a Renpy Live2D Tutorial for everyone to see using Renpy 7.4.0. It will be under the Ren'py Cookbook Category. Link: viewtopic.php?f=51&t=61180

Thank you.

User avatar
Demetriusz
Newbie
Posts: 4
Joined: Fri Apr 05, 2024 5:50 pm
Github: https://github.com/Dimetriy755/Night_stranger_12/
Contact:

Re: Does Ren'Py support Live 2D?

#143 Post by Demetriusz »

Hello everyone!) I installed Renpy Live2D Tutorial for Renpy 7.4.0. I just wanted to check (test) how this whole thing works. Video from YouTube: (https://www.youtube.com/watch?v=nbAgxfdukaY). Code in GiyHub: (https://github.com/galatra303/RenpyLive2DTutorial). I did everything as shown in the video and screenshots, but the python code does not work for some reason unknown to me. I'm new to scripting visual novels and maybe someone knows what the problem is here. Here's what's in the logs:

2024-04-03 18:04:35 UTC
Windows-10-10.0.19044
Ren'Py 8.2.1.24030407

Early init took 0.47s
Loading error handling took 0.18s
Loading script took 10.99s
Loading save slot metadata took 0.03s
Loading persistent took 0.00s

Full traceback:
File "game/script.rpy", line 19, in script
image Epsilon = Live2D("Resources/Epsilon", base=.8, loop=True,)
File "C:\VERY NECESSARY\2\game-dev\drafts\renpy-8.2.1-sdk\renpy\ast.py", line 922, in execute
img = renpy.python.py_eval_bytecode(self.code.bytecode)
File "C:\VERY NECESSARY\2\game-dev\drafts\renpy-8.2.1-sdk\renpy\python.py", line 1202, in py_eval_bytecode
return eval(bytecode, globals, locals)
File "game/script.rpy", line 19, in <module>
image Epsilon = Live2D("Resources/Epsilon", base=.8, loop=True,)
File "C:\VERY NECESSARY\2\game-dev\drafts\renpy-8.2.1-sdk\renpy\gl2\live2d.py", line 587, in __init__
common = self.common
File "C:\VERY NECESSARY\2\game-dev\drafts\renpy-8.2.1-sdk\renpy\gl2\live2d.py", line 538, in common
return self.create_common()
File "C:\VERY NECESSARY\2\game-dev\drafts\renpy-8.2.1-sdk\renpy\gl2\live2d.py", line 526, in create_common
rv = Live2DCommon(self.filename, self.default_fade)
File "C:\VERY NECESSARY\2\game-dev\drafts\renpy-8.2.1-sdk\renpy\gl2\live2d.py", line 188, in __init__
init()
File "C:\VERY NECESSARY\2\game-dev\drafts\renpy-8.2.1-sdk\renpy\gl2\live2d.py", line 95, in init
onetime_init()
File "C:\VERY NECESSARY\2\game-dev\drafts\renpy-8.2.1-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

While running game code:
File "game/script.rpy", line 19, in script
image Epsilon = Live2D("Resources/Epsilon", base=.8, loop=True,)
File "game/script.rpy", line 19, in <module>
image Epsilon = Live2D("Resources/Epsilon", base=.8, loop=True,)
TypeError: can only concatenate str (not "bytes") to str

Full traceback:
File "C:\VERY NECESSARY\2\game-dev\drafts\renpy-8.2.1-sdk\renpy\bootstrap.py", line 359, in bootstrap
renpy.main.main()
File "C:\VERY NECESSARY\2\game-dev\drafts\renpy-8.2.1-sdk\renpy\main.py", line 526, in main
renpy.game.context().run(node)
File "game/script.rpy", line 19, in script
image Epsilon = Live2D("Resources/Epsilon", base=.8, loop=True,)
File "lib/python3.9/future/utils/__init__.py", line 444, in raise_
File "game/script.rpy", line 19, in script
image Epsilon = Live2D("Resources/Epsilon", base=.8, loop=True,)
File "C:\VERY NECESSARY\2\game-dev\drafts\renpy-8.2.1-sdk\renpy\ast.py", line 922, in execute
img = renpy.python.py_eval_bytecode(self.code.bytecode)
File "C:\VERY NECESSARY\2\game-dev\drafts\renpy-8.2.1-sdk\renpy\python.py", line 1202, in py_eval_bytecode
return eval(bytecode, globals, locals)
File "game/script.rpy", line 19, in <module>
image Epsilon = Live2D("Resources/Epsilon", base=.8, loop=True,)
File "C:\VERY NECESSARY\2\game-dev\drafts\renpy-8.2.1-sdk\renpy\gl2\live2d.py", line 587, in __init__
common = self.common
File "C:\VERY NECESSARY\2\game-dev\drafts\renpy-8.2.1-sdk\renpy\gl2\live2d.py", line 538, in common
return self.create_common()
File "C:\VERY NECESSARY\2\game-dev\drafts\renpy-8.2.1-sdk\renpy\gl2\live2d.py", line 526, in create_common
rv = Live2DCommon(self.filename, self.default_fade)
File "C:\VERY NECESSARY\2\game-dev\drafts\renpy-8.2.1-sdk\renpy\gl2\live2d.py", line 188, in __init__
init()
File "C:\VERY NECESSARY\2\game-dev\drafts\renpy-8.2.1-sdk\renpy\gl2\live2d.py", line 95, in init
onetime_init()
File "C:\VERY NECESSARY\2\game-dev\drafts\renpy-8.2.1-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

While running game code:
File "game/script.rpy", line 19, in script
image Epsilon = Live2D("Resources/Epsilon", base=.8, loop=True,)
File "game/script.rpy", line 19, in script
image Epsilon = Live2D("Resources/Epsilon", base=.8, loop=True,)
File "game/script.rpy", line 19, in <module>
image Epsilon = Live2D("Resources/Epsilon", base=.8, loop=True,)
TypeError: can only concatenate str (not "bytes") to str

User avatar
Demetriusz
Newbie
Posts: 4
Joined: Fri Apr 05, 2024 5:50 pm
Github: https://github.com/Dimetriy755/Night_stranger_12/
Contact:

Re: Does Ren'Py support Live 2D?

#144 Post by Demetriusz »

1. The tutorial was able to run on Ren'Py 7.4.2 (That is, the first
thing to do to run it is to download and install Ren'Py 7.4.2).

2. Then I forcibly enabled GL rendering in the settings menu: [Shift] + [G].

3. Next, I copied the "gui" folder from the game:
"the_question" to the folder ...\Live 2D Tutorial\game.

4. And in the folder "gui" I also copied from "the_question" copied two
files game_menu.png and main_menu.png (+ I changed the resolution
of these files to 1920 & 1080).

5. I had to download the BalooTamma2.ttf fonts and put them in a folder:
.../Live 2D Tutorial/game/gui/font/... And in the script gui.py (in "Fonts
and Font Size") specify the full paths to BalooTamma2.tff.

6. The options.rpy script should have: define config.gl2 = True.

All this helped me to launch the test tutorial "Live2D Tutorial",
unfortunately it didn't work on versions Ren'Py 8.1.0 & 8.2.1 anyway.

So maybe someone will need all this for a test run of the tutorial on Ren'Py 7.4.2.

And here's what he writes in the logs on the latest version of Ren'Py 8.2.1:

I'm sorry, but an uncaught exception occurred.

While running game code:
File "game/script.rpy", line 19, in script
image Epsilon = Live2D("Resources/Epsilon", base=.8, loop=True,)
File "game/script.rpy", line 19, in <module>
image Epsilon = Live2D("Resources/Epsilon", base=.8, loop=True,)
TypeError: can only concatenate str (not "bytes") to str

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

Full traceback:
File "game/script.rpy", line 19, in script
image Epsilon = Live2D("Resources/Epsilon", base=.8, loop=True,)
File "C:\VERY NECESSARY\2\game-dev\renpy-8.2.1-sdk\renpy\ast.py", line 922, in execute
img = renpy.python.py_eval_bytecode(self.code.bytecode)
File "C:\VERY NECESSARY\2\game-dev\renpy-8.2.1-sdk\renpy\python.py", line 1202, in py_eval_bytecode
return eval(bytecode, globals, locals)
File "game/script.rpy", line 19, in <module>
image Epsilon = Live2D("Resources/Epsilon", base=.8, loop=True,)
File "C:\VERY NECESSARY\2\game-dev\renpy-8.2.1-sdk\renpy\gl2\live2d.py", line 587, in __init__
common = self.common
File "C:\VERY NECESSARY\2\game-dev\renpy-8.2.1-sdk\renpy\gl2\live2d.py", line 538, in common
return self.create_common()
File "C:\VERY NECESSARY\2\game-dev\renpy-8.2.1-sdk\renpy\gl2\live2d.py", line 526, in create_common
rv = Live2DCommon(self.filename, self.default_fade)
File "C:\VERY NECESSARY\2\game-dev\renpy-8.2.1-sdk\renpy\gl2\live2d.py", line 188, in __init__
init()
File "C:\VERY NECESSARY\2\game-dev\renpy-8.2.1-sdk\renpy\gl2\live2d.py", line 95, in init
onetime_init()
File "C:\VERY NECESSARY\2\game-dev\renpy-8.2.1-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.19044 AMD64
Ren'Py 8.2.1.24030407
1.0
Sat Apr 6 19:21:54 2024

That is, again this is an uncaught exception...

Post Reply

Who is online

Users browsing this forum: No registered users