- Mar 3, 2023
- 20
- 77
I want to use live 2D instead of putting video in the game. I followed the video below:
When I use Live2D samples in Ren'Py, everything works very well and there are no problems.
I made an animation myself and acted according to the video and the samples. When I define the character, it shows it, but when I add motion to it, it gives an error!
My codes:
And this the Error:
Does anyone have any solution?
You must be registered to see the links
When I use Live2D samples in Ren'Py, everything works very well and there are no problems.
I made an animation myself and acted according to the video and the samples. When I define the character, it shows it, but when I add motion to it, it gives an error!
My codes:
Python:
image Silv = Live2D("Silv", default_fade=0.0, loop=True)
show Silv Scene1
![1713633149806.png 1713633149806.png](https://attachments.f95zone.to/2024/04/thumb/3582372_1713633149806.png)
![1713633178110.png 1713633178110.png](https://attachments.f95zone.to/2024/04/thumb/3582374_1713633178110.png)
And this the Error:
Code:
```
I'm sorry, but an uncaught exception occurred.
While running game code:
File "game/script.rpy", line 42, in script
show Silv Scene1
Exception: When showing Silv, Scene1 is not a known attribute.
-- Full Traceback ------------------------------------------------------------
Full traceback:
File "game/script.rpy", line 42, in script
show Silv Scene1
File "D:\Works\patreon\renpy-8.0.3-sdk\renpy\ast.py", line 1113, in execute
show_imspec(self.imspec, atl=getattr(self, "atl", None))
File "D:\Works\patreon\renpy-8.0.3-sdk\renpy\ast.py", line 1076, in show_imspec
renpy.config.show(name,
File "D:\Works\patreon\renpy-8.0.3-sdk\renpy\exports.py", line 739, in show
if not base.find_target() and renpy.config.missing_show:
File "D:\Works\patreon\renpy-8.0.3-sdk\renpy\display\image.py", line 421, in find_target
self.target = target._duplicate(a)
File "D:\Works\patreon\renpy-8.0.3-sdk\renpy\gl2\live2d.py", line 648, in _duplicate
raise Exception("When showing {}, {} is not a known attribute.".format(" ".join(args.name), i))
Exception: When showing Silv, Scene1 is not a known attribute.
Windows-10-10.0.19045 AMD64
Ren'Py 8.2.1.24030407
Dr.Murph 0.3.9
Sat Apr 20 19:42:52 2024
```
Last edited: