Jump to content

Autocompiler Symbol Issues


Recommended Posts

The Problem:

Right now when an animation is built using the AutoCompiler tools it uses the wrong layer name as the symbol name; creating a huge amount of mess in the actual animation file. Each symbol will start with timeline_ suffixed by a number.

The Solution:

Change the 'layer name' to be the folder name for the symbol. This will make the symbol have the proper name in game and will allow mod authors to add new symbols to animations.

Don't Starve Mod Tools/mod_tools/tools/scripts/buildanimation.py:163

layername = element_node.attributes["layername"].value.encode('ascii').split('/')[-1]

to

layername = element_node.attributes["name"].value.encode('ascii').split('/')[-1]

 

For added value, I've attached the fixed version of the file for people who do not want to edit the file or want to wait for the official version to be fixed.

buildanimation.py

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
  • Create New...