Some animations missing from project export

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Cedrei

When exporting my game, that has a lot of different animations in it, there are a few of them missing. When playing from the editor they are there, but when exporting them to HTML5 they aren’t there (and you get an error message from the console), and when exporting to Mac OSX or Windows Desktop the program just crashes on opening it. All three missing animations are in the same AnimationPlayer, but there are also a lot of animations from that AnimationPlayer that are not missing. Is this an engine bug? Or did I screw something up, and if so where should I start looking to try to find the cause?

What’s the error message?

Dlean Jeans | 2019-02-07 13:41

This shows up when first starting the game:

ERROR: Condition ’ err != OK ’ is true. returned: Ref()
ERROR: At: scene/resources/scene_format_text.cpp:1225:load_interactive() - Condition ’ err != OK ’ is true. returned: Ref()
ERROR: Failed loading resource: res://PenguinMoves/DoubleJump.tres
ERROR: At: core/io/resource_loader.cpp:186:_load() - Method/Function Failed, returning: RES()
ERROR: Condition ’ err != OK ’ is true. returned: Ref()
ERROR: At: scene/resources/scene_format_text.cpp:1225:load_interactive() - Condition ’ err != OK ’ is true. returned: Ref()
ERROR: Failed loading resource: res://PenguinMoves/Idle.tres
ERROR: At: core/io/resource_loader.cpp:186:_load() - Method/Function Failed, returning: RES()
ERROR: Condition ’ err != OK ’ is true. returned: Ref()
ERROR: At: scene/resources/scene_format_text.cpp:1225:load_interactive() - Condition ’ err != OK ’ is true. returned: Ref()
ERROR: Failed loading resource: res://PenguinMoves/Jump.tres
ERROR: At: core/io/resource_loader.cpp:186:_load() - Method/Function Failed, returning: RES()
ERROR: Condition ’ err != OK ’ is true. returned: Ref()
ERROR: At: scene/resources/scene_format_text.cpp:1225:load_interactive() - Condition ’ err != OK ’ is true. returned: Ref()
ERROR: Failed loading resource: res://PenguinAnimation/PTWalk.tres
ERROR: At: core/io/resource_loader.cpp:186:_load() - Method/Function Failed, returning: RES()
ERROR: Condition ’ err != OK ’ is true. returned: Ref()
ERROR: At: scene/resources/scene_format_text.cpp:1225:load_interactive() - Condition ’ err != OK ’ is true. returned: Ref()
ERROR: Failed loading resource: res://PenguinMoves/DoubleJump.tres
ERROR: At: core/io/resource_loader.cpp:186:_load() - Method/Function Failed, returning: RES()
ERROR: WARNING: Couldn’t load external resource: res://PenguinMoves/DoubleJump.tres
ERROR: At: scene/resources/scene_format_text.cpp:174:_parse_ext_resource() - Couldn’t load external resource: res://PenguinMoves/DoubleJump.tres
ERROR: Condition ’ err != OK ’ is true. returned: Ref()
ERROR: At: scene/resources/scene_format_text.cpp:1225:load_interactive() - Condition ’ err != OK ’ is true. returned: Ref()
ERROR: Failed loading resource: res://PenguinMoves/Idle.tres
ERROR: At: core/io/resource_loader.cpp:186:_load() - Method/Function Failed, returning: RES()
ERROR: WARNING: Couldn’t load external resource: res://PenguinMoves/Idle.tres
ERROR: At: scene/resources/scene_format_text.cpp:174:_parse_ext_resource() - Couldn’t load external resource: res://PenguinMoves/Idle.tres
ERROR: Condition ’ err != OK ’ is true. returned: Ref()
ERROR: At: scene/resources/scene_format_text.cpp:1225:load_interactive() - Condition ’ err != OK ’ is true. returned: Ref()
ERROR: Failed loading resource: res://PenguinMoves/Jump.tres
ERROR: At: core/io/resource_loader.cpp:186:_load() - Method/Function Failed, returning: RES()
ERROR: WARNING: Couldn’t load external resource: res://PenguinMoves/Jump.tres
ERROR: At: scene/resources/scene_format_text.cpp:174:_parse_ext_resource() - Couldn’t load external resource: res://PenguinMoves/Jump.tres
ERROR: Condition ’ err != OK ’ is true. returned: Ref()
ERROR: At: scene/resources/scene_format_text.cpp:1225:load_interactive() - Condition ’ err != OK ’ is true. returned: Ref()
ERROR: Failed loading resource: res://PenguinAnimation/PTWalk.tres
ERROR: At: core/io/resource_loader.cpp:186:_load() - Method/Function Failed, returning: RES()
ERROR: WARNING: Couldn’t load external resource: res://PenguinAnimation/PTWalk.tres
ERROR: At: scene/resources/scene_format_text.cpp:174:_parse_ext_resource() - Couldn’t load external resource: res://PenguinAnimation/PTWalk.tres
ERROR: Condition ’ p_animation.is_null() ’ is true. returned: ERR_INVALID_PARAMETER
ERROR: At: scene/animation/animation_player.cpp:697:add_animation() - Condition ’ p_animation.is_null() ’ is true. returned: ERR_INVALID_PARAMETER
ERROR: Condition ’ p_animation.is_null() ’ is true. returned: ERR_INVALID_PARAMETER
ERROR: At: scene/animation/animation_player.cpp:697:add_animation() - Condition ’ p_animation.is_null() ’ is true. returned: ERR_INVALID_PARAMETER
ERROR: Condition ’ p_animation.is_null() ’ is true. returned: ERR_INVALID_PARAMETER
ERROR: At: scene/animation/animation_player.cpp:697:add_animation() - Condition ’ p_animation.is_null() ’ is true. returned: ERR_INVALID_PARAMETER
ERROR: Condition ’ p_animation.is_null() ’ is true. returned: ERR_INVALID_PARAMETER
ERROR: At: scene/animation/animation_player.cpp:697:add_animation() - Condition ’ p_animation.is_null() ’ is true. returned: ERR_INVALID_PARAMETER

Then every time it tries to use one of the missing animations:

ERROR: Animation not found: Idle
ERROR: At: scene/animation/animation_player.cpp:888:play() - Method/Function Failed.

Cedrei | 2019-02-07 16:08

I tried renaming files or saving animations as .tres but everything still works for me on any platform.

Dlean Jeans | 2019-02-09 08:30