vini-guerrero / godot_game_tools

This is a blender add-on that contains tools to ease the creation/import process of assets into Godot Game Engine
GNU General Public License v2.0
364 stars 34 forks source link

Godot Addon - Create Armature Setup / Create State Machine Error #27

Open chriseast opened 3 years ago

chriseast commented 3 years ago

Hi,

I am using the Godot plugin and I am getting the following error with the Create Armature Setup / Create State Machine functions:

Armature Setup: _res://addons/godot_game_tools/scripts/ggt_main.gd:49 - Invalid get index 'rootmotionbone' (on base: 'Dictionary').

State Machine: _res://addons/godot_game_tools/scripts/ggt_main.gd:167 - Invalid get index 'state_machinenode' (on base: 'Dictionary').

I was following the DEVLOG #4 video. I noticed that in the video you are selecting a .json file within the Godot plugin, however my Blender export created a .char file.

I am using Blender 2.83 and Godot 3.2.2 stable

Otherwise great work, Best Regards

vini-guerrero commented 3 years ago

Hello @chriseast

As this feature still under development, it lacks a complete tutorial to properly set it up. Some checks you can do to make sure it works fine for you starts with making sure you have the latest version of the addon installed. ( For some reason, Blender tends to keep backup data of addons which can relate to an older version of the addon ) This feature is only available in Github's dev branch version. Latest Dev branch versions are not anymore exporting a .char file but instead a .json file, so most likely your version is different.

Secondly, you need to make sure the preset you created started with a root AnimationNodeBlendTree Node before you exported it.

image

image

These steps are required due to current API access level in Godot. Maybe in a future version we could make it more automated. Hopefully soon we find some time to record new updated video tutorials. Glad you liked the tool, feel free to ask any questions you have. Best regards.