Jump to content

Recommended Posts

I'm trying to export an animation I just made in Spriter, but whenever autocompiler tries to compile the file, it spits an error at me that I can't make heads or tails of. I'll put the error below, I don't know where the full log is stored or I would attach that.

Any idea what would cause this? I really like this animation, it's pretty smooth, but I might not be able to use it if this isn't resolvable.

        Exporting cd_meter.zip
Exporting Animation[################################] 2/2
Error Exporting D:\SteamLibrary\steamapps\common\Don't Starve Together\mods\hkr3.0.0\exported\cd_meter\cd_meter.zip
'int' object is not subscriptable

Traceback (most recent call last):
  File "D:\SteamLibrary\steamapps\common\Don't Starve Mod Tools\mod_tools\exported\..\tools\scripts\buildanimation.py", line 529, in <module>
    ExportBuild( endianstring, zip_file, buildxml, outzip, not results.skipantialias, results.platform, results.textureformat, results.hardalphatextureformat, results.force, results.ignoreexceptions )
  File "D:\SteamLibrary\steamapps\common\Don't Starve Mod Tools\mod_tools\exported\..\tools\scripts\buildanimation.py", line 395, in ExportBuild
    img.regions = optimizeimage.GetImageRegions(img, 32)
  File "D:\SteamLibrary\steamapps\common\Don't Starve Mod Tools\mod_tools\tools\scripts\optimizeimage.py", line 156, in GetImageRegions
    rootNode = QuadTreeNode(img, None, 0, blocksize)
  File "D:\SteamLibrary\steamapps\common\Don't Starve Mod Tools\mod_tools\tools\scripts\optimizeimage.py", line 75, in __init__
    childtypes = [ Analyze(im, childboxes[0]),
  File "D:\SteamLibrary\steamapps\common\Don't Starve Mod Tools\mod_tools\tools\scripts\optimizeimage.py", line 34, in Analyze
    if p[3] == 0:
TypeError: 'int' object is not subscriptable

 

  • Health 1

I actually figured it out, I'm gonna say what I did to fix it here.

It turns out, the scml compiler does NOT like 24-bit png's in spriter. Make sure all your textures for spriter are forced to be 32-bit, and this error won't happen.

  • Health 2

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
×
  • Create New...