I removed an AnimationTree I wasn't using anymore, and now I have an error

Godot Version

4.5

Question

I have 2d pixel based fishing game I am developing. I decided to change my animations to work in a layered style. I made three separate AnimatedSprite2D notes to make up the three sprites that makes up a character, and I then stacked these animations in an AnimationPlayer node. I still had the left over AnimationPlayer, AnimationTree, and AnimedSprite2D from my previous non-layered animation, so I deleted them. Now, even though everything seems to be connected correctly, when I run the new AnimationPlayer I can an infinite string of the follow errors:

ERROR: Animation ‘’ doesn’t exist.
ERROR: scene/resources/animation.cpp:1547 - Index p_track = -1 is out of bounds (tracks.size() = 4).
ERROR: scene/resources/animation.cpp:1901 - Index p_track = -1 is out of bounds (tracks.size() = 4).

Additionally I also get these warnings:

WARNING: scene/resources/resource_format_text.cpp:444 - res://scenes/player.tscn:8 - ext_resource, invalid UID: uid://yo2yucq3bfg5 - using text path instead: res://assets/sprites/Boats/B1/B1FishLeft.png
WARNING: scene/resources/resource_format_text.cpp:444 - res://scenes/player.tscn:9 - ext_resource, invalid UID: uid://cm3thx5m8gce5 - using text path instead: res://assets/sprites/Boats/B1/B1FishRight.png
WARNING: scene/resources/resource_format_text.cpp:444 - res://scenes/player.tscn:10 - ext_resource, invalid UID: uid://do0io34iuhvmo - using text path instead: res://assets/sprites/Boats/B1/B1IdleLeft.png

(+ 46 more warnings…)

Can anyone help me with this issue? I am stumped.

Did you remove all code relating to animationtree?

(Not sure, i’m a beginner.)

I have tried detatching it and also deleting the code. The errors also start to be thrown when I even just preview the animations in the AnimationPlayer. I believe its related to the AnimationTree having certain connections with the assets that I have pulled into my project. However, I really dont want to manually redo all of my work in setting up the animations.

But thanks for the suggestion, I am also a beginner.

Maybe it still thinks your AnimationPlayer is still connected to your AnimationTree? If so, then I don’t know how to fix it then:/ the only thing I can think of is bringing back your AnimationTree by undoing, and then disconnecting the AnimationPlayer from it.

(No idea.)

I figured it out finally. I was keying the spriteframes rather than the animation when assigning layered animations in my animationPlayer. I think with the layers + keying the spriteframes caused some type of UID confusion for Godot. Very odd, as the tutorial I watched online keys the spriteframes and not the animations. Thanks for all of the suggestions!