Animated-Java / animated-java

A Blockbench plugin that makes complex animation a breeze in Minecraft: Java Edition.
Other
165 stars 27 forks source link

[BUG] Rigs exported for 1.20.4 cannot play animations #332

Open Chuzume opened 2 weeks ago

Chuzume commented 2 weeks ago

Describe the bug When I summon a rig using a command and execute a command on the rig, no animation is played. I also tried summoning it by specifying an animation as an argument, but in that case all of the rig parts became transparent.

To Reproduce Steps to reproduce the behavior:

  1. Create a Rig, set the Target Minecraft Version in the Blue Print Settings to 1.20.4, and export it for 1.20.4.
  2. Summon the Rig and execute the command to play the animation. You will see that nothing happens.

Expected behavior The animation will play.

Error Message I launched the Minecraft game output log, and there were no errors at all when summoning the Rig or executing the animation playback command.

Desktop (please complete the following information):

SnaveSutit commented 1 week ago

Are there any errors when loading the pack with /reload?

Chuzume commented 1 week ago

The following is the error that occurred when reloading. "tulatria" as for the name of the rig. "on_load" seems to be a process related to storage, but I don't know what's wrong with the command inside...

Failed to load function animated_java:tultaria/on_load
java.util.concurrent.CompletionException: java.lang.IllegalArgumentException: Whilst parsing command on line 2: Unknown or incomplete command, see below for error at position 42: ...animations<--[HERE]
    at java.base/java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:315)
    at java.base/java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:320)
    at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1770)
    at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.exec(CompletableFuture.java:1760)
    at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:373)
    at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1182)
    at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1655)
    at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1622)
    at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:165)
Caused by: java.lang.IllegalArgumentException: Whilst parsing command on line 2: Unknown or incomplete command, see below for error at position 42: ...animations<--[HERE]
    at knot//net.minecraft.class_2158.method_9195(class_2158.java:76)
    at knot//net.minecraft.class_5349.method_29451(class_5349.java:83)
    at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1768)
    ... 6 more
SnaveSutit commented 1 week ago

Can you show me the contents of that function?

Chuzume commented 1 week ago

I couldn't attach it as mcfunction, so I had to make it json. It's originally mcfunction. on_load.json

SnaveSutit commented 1 week ago

If you modify your on_load.mcfunction to remove the space after the first command does that help?

"data remove storage aj.tultaria:animations" -> "data remove storage aj.tultaria:animations"

Chuzume commented 1 week ago

I tried that fix and the error went away, but I still can't play the animation.

Chuzume commented 1 week ago

Anyway, what is the current situation? If you can't fix it, please let me know... I need to create a delayed loader that can handle a large number of mcfunctions in my map...