[Mod] Character Animations [character_anim]

Post Reply
User avatar
LMD
Member
Posts: 925
Joined: Sat Apr 08, 2017 08:16
GitHub: appgurueu
IRC: appguru[eu]
In-game: LMD
Location: Germany
Contact:

[Mod] Character Animations [character_anim]

by LMD » Post

My stuff: Projects - Mods - Website

daret
Member
Posts: 14
Joined: Tue Nov 12, 2019 20:36
In-game: Daret

Re: [Mod] Character Animations [character_anim]

by daret » Post

Greate job, thanx.

daret
Member
Posts: 14
Joined: Tue Nov 12, 2019 20:36
In-game: Daret

Re: [Mod] Character Animations [character_anim]

by daret » Post

Is it possible to add skindb support? It is not working with this mod.
https://github.com/minetest-mods/skinsdb.git

User avatar
LMD
Member
Posts: 925
Joined: Sat Apr 08, 2017 08:16
GitHub: appgurueu
IRC: appguru[eu]
In-game: LMD
Location: Germany
Contact:

Re: [Mod] Character Animations [character_anim]

by LMD » Post

daret wrote:
Wed Oct 07, 2020 20:07
Is it possible to add skindb support? It is not working with this mod.
https://github.com/minetest-mods/skinsdb.git
Yes it is, but I ultimately see this as a skinsdb issue. Skinsdb should use the 3d armor model instead of registering it's own.
My stuff: Projects - Mods - Website

daret
Member
Posts: 14
Joined: Tue Nov 12, 2019 20:36
In-game: Daret

Re: [Mod] Character Animations [character_anim]

by daret » Post

Maybe it is because 3d armor is not mandatory dependency, so it uses it's own model.

daret
Member
Posts: 14
Joined: Tue Nov 12, 2019 20:36
In-game: Daret

Re: [Mod] Character Animations [character_anim]

by daret » Post

Hi,
I tested it wit emote mod viewtopic.php?t=16374 and most of the emotes works, but /freeze and /point are shutting game down.

Code: Select all

AsyncErr: environment_Step: Runtime error from mod 'character_anim' in callback environment_Step(): ...t/games/Planet_alive/mods/player/character_anim/main.lua:9: nan
stack traceback:
	[C]: in function 'assert'
	...t/games/Planet_alive/mods/player/character_anim/main.lua:9: in function 'get_animation_value'
	...t/games/Planet_alive/mods/player/character_anim/main.lua:119: in function 'handle_player_animations'
	...t/games/Planet_alive/mods/player/character_anim/main.lua:203: in function <...t/games/Planet_alive/mods/player/character_anim/main.lua:201>
	/usr/share/minetest/builtin/game/register.lua:429: in function </usr/share/minetest/builtin/game/register.lua:413>
stack traceback:

User avatar
LMD
Member
Posts: 925
Joined: Sat Apr 08, 2017 08:16
GitHub: appgurueu
IRC: appguru[eu]
In-game: LMD
Location: Germany
Contact:

Re: [Mod] Character Animations [character_anim]

by LMD » Post

daret wrote:
Thu Oct 08, 2020 19:14
Hi,
I tested it wit emote mod viewtopic.php?t=16374 and most of the emotes works, but /freeze and /point are shutting game down.

Code: Select all

AsyncErr: environment_Step: Runtime error from mod 'character_anim' in callback environment_Step(): ...t/games/Planet_alive/mods/player/character_anim/main.lua:9: nan
stack traceback:
	[C]: in function 'assert'
	...t/games/Planet_alive/mods/player/character_anim/main.lua:9: in function 'get_animation_value'
	...t/games/Planet_alive/mods/player/character_anim/main.lua:119: in function 'handle_player_animations'
	...t/games/Planet_alive/mods/player/character_anim/main.lua:203: in function <...t/games/Planet_alive/mods/player/character_anim/main.lua:201>
	/usr/share/minetest/builtin/game/register.lua:429: in function </usr/share/minetest/builtin/game/register.lua:413>
stack traceback:
Thanks for your bug report! Very useful, especially with the attached error log. This allowed me to quickly find and fix the bug for the newest version (rolling-11).
My stuff: Projects - Mods - Website

User avatar
LMD
Member
Posts: 925
Joined: Sat Apr 08, 2017 08:16
GitHub: appgurueu
IRC: appguru[eu]
In-game: LMD
Location: Germany
Contact:

Re: [Mod] Character Animations [character_anim]

by LMD » Post

daret wrote:
Wed Oct 07, 2020 20:07
Is it possible to add skindb support? It is not working with this mod.
https://github.com/minetest-mods/skinsdb.git
Added skinsdb support. Get the latest release and it will work fine.
My stuff: Projects - Mods - Website

daret
Member
Posts: 14
Joined: Tue Nov 12, 2019 20:36
In-game: Daret

Re: [Mod] Character Animations [character_anim]

by daret » Post

Wow, thanks. You are quick.

User avatar
LMD
Member
Posts: 925
Joined: Sat Apr 08, 2017 08:16
GitHub: appgurueu
IRC: appguru[eu]
In-game: LMD
Location: Germany
Contact:

Re: [Mod] Character Animations [character_anim]

by LMD » Post

daret wrote:
Tue Oct 13, 2020 15:10
Wow, thanks. You are quick.
You're welcome! By the way, it actually didn't take long. What I did was quite simple:

1. Grab the model
2. Convert to glTF using Blender
3. Use /ca_import <modelname>
4. Commit
5. Push
6. Release on CDB
My stuff: Projects - Mods - Website

daret
Member
Posts: 14
Joined: Tue Nov 12, 2019 20:36
In-game: Daret

Re: [Mod] Character Animations [character_anim]

by daret » Post

Thanx for info.

When I try to use /ca_import I always get an error:

Code: Select all

AsyncErr: ServerThread::run Lua: Runtime error from mod 'character_anim' in callback on_chat_message(): /home/user/.minetest/mods/character_anim/importer.lua:19: attempt to index global 'buffer' (a nil value)
stack traceback:
	/home/user/.minetest/mods/character_anim/importer.lua:19: in function 'read_accessor'
	/home/user/.minetest/mods/character_anim/importer.lua:80: in function 'read_bonedata'
	/home/user/.minetest/mods/character_anim/importer.lua:146: in function 'import_model'
	/home/user/.minetest/mods/character_anim/importer.lua:156: in function 'func'
	/usr/share/minetest/builtin/game/chat.lua:69: in function </usr/share/minetest/builtin/game/chat.lua:48>
	/usr/share/minetest/builtin/game/register.lua:429: in function </usr/share/minetest/builtin/game/register.lua:413>
I tried to use existing character.b3d.gltf as test.gltf and run /ca_import test

I'm probably missing something.

I installed binarystreams from luarocks

Code: Select all

luarocks list

Installed rocks:
----------------

binarystream
   1.0-2 (installed) - /usr/local/lib/luarocks/rocks
I use Linux KDE Neon (based on Ubuntu 20.04 LTS) - LuaRocks 2.4.2

User avatar
LMD
Member
Posts: 925
Joined: Sat Apr 08, 2017 08:16
GitHub: appgurueu
IRC: appguru[eu]
In-game: LMD
Location: Germany
Contact:

Re: [Mod] Character Animations [character_anim]

by LMD » Post

Fixed it. Seems to be a Minetest bug. Will release tomorrow.

Edit: Released. Get the newest version from GitHub or ContentDB.
My stuff: Projects - Mods - Website

Post Reply

Who is online

Users browsing this forum: Bing [Bot], StarNinjas and 3 guests