SmartlyDressedGames / Unturned-Docs

Documentation for Unturned's modding features.
134 stars 49 forks source link

Animal Documentation? #58

Open Dumfoozler opened 3 years ago

Dumfoozler commented 3 years ago

I am trying to replace/recreate the files to make custom animals and everything I seem to be doing breaks. Is there any way you can make some sort of guide/documentation? I can't find any information of them anywhere and almost nobody seems to be doing them or even knows how to do them.

SDGNelson commented 3 years ago

The best source at the moment would be copying over the animals from the example package and replacing their meshes. Unfortunately they are not very customizable (basically only the mesh), and undocumented.

Dumfoozler commented 3 years ago

Replacing the meshes doesn't work it would seem, it destroys the models. I got it working by remaking it myself with all of the source files and it does this. Cycles between idle, glance, and eat then just loops the eat infinitely and never moves.

https://user-images.githubusercontent.com/76188059/117220888-262caa00-add6-11eb-8b9e-0a4b98b2d35f.mp4

SDGNelson commented 3 years ago

If you can send the Client.log file after that happens there is probably an error message. Most likely the skeleton naming is different.

Dumfoozler commented 3 years ago

I am at a point where either the animal functions and the animations don't, or vice versa. Would it be possible to add support for Blender 2.9 animations? They already are functioning and working in-game on the animals, the hierarchy just has to go Character>Armature>Skeleton>Etc where as Unity will only recognize Character>Skeleton>Etc

If there could be a way for animals to recognize the animations with armature present, all animals would work just fine, the ai just doesn't work with the armature folder and the animations don't work without it.

SDGNelson commented 3 years ago

IIRC Skeleton is how the Armature is named in the vanilla animal blender files. I would like to upgrade the animation support, especially for player characters, but it is a relatively low priority.