Skip to content

Can't use animations #116

@frdmn

Description

@frdmn

As soon as I try the animations I get the following error in the console:

[20:24:59] [Server thread/INFO]: frdmn issued server command: /holo reload
[20:24:59] [Craft Scheduler Thread - 287/INFO]: [HoloAPI] [INFO] Images loaded.
[20:24:59] [Craft Scheduler Thread - 287/WARN]: java.lang.NullPointerException
[20:24:59] [Craft Scheduler Thread - 287/WARN]:     at com.dsh105.holoapi.image.AnimatedImageGenerator.readGIF(AnimatedImageGenerator.java:447)
[20:24:59] [Craft Scheduler Thread - 287/WARN]:     at com.dsh105.holoapi.image.AnimatedImageGenerator.readGif(AnimatedImageGenerator.java:366)
[20:24:59] [Craft Scheduler Thread - 287/WARN]:     at com.dsh105.holoapi.image.AnimatedImageGenerator.<init>(AnimatedImageGenerator.java:87)
[20:24:59] [Craft Scheduler Thread - 287/WARN]:     at com.dsh105.holoapi.image.AnimatedImageGenerator.<init>(AnimatedImageGenerator.java:226)
[20:24:59] [Craft Scheduler Thread - 287/WARN]:     at com.dsh105.holoapi.image.SimpleAnimationLoader.findGenerator(SimpleAnimationLoader.java:95)
[20:24:59] [Craft Scheduler Thread - 287/WARN]:     at com.dsh105.holoapi.image.SimpleAnimationLoader.loadAnimationConfiguration(SimpleAnimationLoader.java:70)
[20:24:59] [Craft Scheduler Thread - 287/WARN]:     at com.dsh105.holoapi.HoloAPICore$3.run(HoloAPICore.java:250)
[20:24:59] [Craft Scheduler Thread - 287/WARN]:     at org.bukkit.craftbukkit.v1_7_R3.scheduler.CraftTask.run(CraftTask.java:58)
[20:24:59] [Craft Scheduler Thread - 287/WARN]:     at org.bukkit.craftbukkit.v1_7_R3.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:53)
[20:24:59] [Craft Scheduler Thread - 287/WARN]:     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
[20:24:59] [Craft Scheduler Thread - 287/WARN]:     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
[20:24:59] [Craft Scheduler Thread - 287/WARN]:     at java.lang.Thread.run(Thread.java:745)

My config:

animations:
  sword:
    path: "sword.gif"
    characterType: BLOCK
    height: 16
    frameRate: 10
    type: FILE
    requiresBorder: true

The sword.gif:

Version info:

Spigot: 1484 (MC: 1.7.9)
HoloAPI: build from master

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions