mojira.dev
MC-17947

13w24b - Animation Metadata Array out of bounds

I ran a search for "Animation Metadata" and did not return any results for this particular message.

Upon loading the game, with my resource pack, some, but not all animations return errors due to an Array out of bounds. Those particular textures will appear as missing (purple/black) when in game.

Error:
"Unable to parse animation metadata from minecraft:textures/blocks/redstone_block.png
java.lang.ArrayIndexOutOfBoundsException"

This was my texture pack converted with the Ender tool and it does work in 13w24a with out any errors. Only since 13w24b, some animations return this error.

Attached you will find the dump from the dev console after the game is launched with the resource pack loaded, one .png texture thats offending and its mcmeta file.

Linked issues

Attachments

Comments 4

I do believe there is no '0' frame (At least it was like that before)

You have a trailing comma after the "2":
Disregard this comment... Was a wrong information.

Thanks Kumasasa. My animations were converted by the ender tool. I'm still getting used to this new format. Ill follow up on that thread.

Kumasasa - After removing the trailing comma, I received a different error.

Jonathan - You lead me in the correct direction. Apparently, snapshot 13w24a and prior allowed mcmeta (and texts) files to list more frames than there were in the image. In the example above, I had 0-7 (8 frames), where as the image only has 7. Removing the reference to 7, resolved the issue. So as of 13w25a, 0 is still a valid index start.

Thanks to both of you for your help.

Ron F.

(Unassigned)

Unconfirmed

Snapshot 13w24b

Retrieved