#MoLang animation not loading

1 messages ยท Page 1 of 1 (latest)

wispy merlin
#

uh..

midnight raft
#

Trying to use this documentation (https://wiki.bedrock.dev/animation-controllers/molang-into-scoreboard.html) modified slightly, I've connected the controller (first image) and it seems to set the "var" value and its own value to 0 as expected, however it doesn't seem to load the animation (second image). In game it gives me "animations | child 'molang_t\o_score' not valid here" and "can't find animation molang_to_score"

#

Message deleted

wispy merlin
#

Yea

midnight raft
#

Could you upload your code rather than screenshots

wispy merlin
#

Wait did it send the images?

#

ah sure

midnight raft
#

?screenshots

weary cragBOT
#
Please, no screenshots or photos!

Screenshots are hard to read, and photos even more so. This is especially true if you are using bridge or another tree editor, as this format obscures the JSON format.

We can help you best if you copy and paste your code here, or send it directly as a file.

wispy merlin
#

molang_to_score.animation.json

    "format_version" : "1.10.0",
         "animations" : {
          "molang_to_score": {
            "animation_length": 10.0,
            "anim_time_update": "t.digit = Math.mod(Math.floor(v.convert / v.digit), 10) + 0.1; v.digit = v.digit / 10; return t.digit;",
            "timeline": {
            "0.0": [ "/scoreboard players operation @s MoLang *= \"#10\" MoLang", "/scoreboard players operation @s MoLang += \"var\" MoLang", "/scoreboard players set \"var\" MoLang 0" ],
            "1.0": [ "/scoreboard players set \"var\" MoLang 1" ],
            "2.0": [ "/scoreboard players set \"var\" MoLang 2" ],
            "3.0": [ "/scoreboard players set \"var\" MoLang 3" ],
            "4.0": [ "/scoreboard players set \"var\" MoLang 4" ],
            "5.0": [ "/scoreboard players set \"var\" MoLang 5" ],
            "6.0": [ "/scoreboard players set \"var\" MoLang 6" ],
            "7.0": [ "/scoreboard players set \"var\" MoLang 7" ],
            "8.0": [ "/scoreboard players set \"var\" MoLang 8" ],
            "9.0": [ "/scoreboard players set \"var\" MoLang 9" ]
        }
      }
}
}```
#

wait let me just upload the files

midnight raft
#

What's the full content log

wispy merlin
#

(Ignore the middle line)

midnight raft
#

Which isnt right

wispy merlin
#

in the second file?

midnight raft
#

Change your format to 1.8.0 for the molang_to_score.animation.json

wispy merlin
#

or first?

midnight raft
wispy merlin
#

Just changing the format version to 1.8.0 still gives the same error

#

Should I modify the controller?

midnight raft
wispy merlin
#

Ah figured it out