Game Broke - I just deleted something

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

I deleted a scene and a couple files, they were connected to my player scene using inheritance and autoloading code. After deleting it, None of the levels using the player scene states

"Scene ‘res://Movement.tscn’ has broken dependencies:
res://Test/idek.tscn::PackedScene

Idek was just a timer, I’m so confused
How do i fix this

I never deleted scene like that but this can’t be too hard to fix. Doesn’t compiller show You remaining dependencies in player script? Surely You reference Idek somewhere there, like get_node or connect() or preload() ? Was there something You inherited player from - stop extending from it. And You can clear remnants of idek form Autoload, no ?

Inces | 2021-12-20 20:46

You must have a mention of the timer in the scene mentioned. Have you checked the script? Did you have a signal set up to a function from the deleted timer?

Gluon | 2021-12-20 21:46

It says it’s missing the dependencies and I can’t get the file back and it won’t let me access the scene to find out because it states “Unexpected end of file 'Movement.tscn”.

Tharros_Games | 2021-12-21 14:42

can’t You access just the script of the scene ?

Inces | 2021-12-21 14:53

:bust_in_silhouette: Reply From: Tharros_Games

I have figured it out.

what I had to do was edit the scene in Notepad++ and delete the inheritance and the part of the scene that used it.

What I deleted:

  1. [ext_resource path=“res://Test/idek.tscn” type=“PackedScene” id=17]

  2. [node name=“Label” parent=“Camera2D/Main UI” instance=ExtResource( 17 )]
    anchor_top = 0.0
    anchor_bottom = 0.0
    margin_top = 0.0
    margin_bottom = 106.0