Cant delete autoloads, project stuck?

Godot Version

4.2.1

Question

I have an autoload in my project i need to delete to make a class instead, but when i delete it, the game runs like its still there and nothing happened, and when i reload the project/open godot again the autoload magically reappears, i tried removing it in project.godot file but nothing works. i exported the project before but i deleted all remap files because it was causing me problems, i shouldnt have done that in the first place but im new and i was curious. can i fix the autoload problem somehow?

Did you remove it from the autoloads in the project settings?

of course. i already made a new empty project, my game wasnt too big so i just dropped all the files except for project.binary and that made it work

You can also try to delete the .godot folder, but if it already works it doesnt matter i guess

If you use a VCS such as Git (And I really hope you do), remove the autoload script, save your project and commit / push, then completely remove the project from your drive and re-download it from your version control (most likely GitHub) and open the project again. This will force godot to re-import everything and will likely fix odd issues like this one.

This is the same as deleting .godot-folder

1 Like

It’s true, but if someone uses a version control system, they might be able to see what files change and where something might appear / re-appear. That might help track down the issue.

1 Like

A bit late to the party but I have the same issue. Where is the .godot folder exactly?

Inside your Godot project folder. If you can’t see it make sure you enable “Show hidden folders and files” in the Windows explorer settings.

1 Like

It is enabled but I cannot see it. When you say project folder do you mean the folder with my project files? If so it’s not there :cry: I can see the .import folder and my folder structure in there

What version of Godot do you use? It should be in your project folder, yes, where your project is, and all your files for the game, where your project.godot file is.

I’m using 3.4.2. Here’s a pic of the project folder, with hidden folders and files shown :slightly_smiling_face: it’s a mess, I should clear that up, but I don’t see the .godot folder

I quickly downloaded that version as it is quite old, but as it turns out, in your case, you want to remove the “.import” folder, as that was renamed to the .godot folder in later versions of the engine.

My god that was it? aha thank you so much! I’ll upgrade to a more recent version too, I was mostly afraid of my project breaking if I did. I’ll let you know if it worked in a few minutes!

After a first try, it didn’t work. I’ll try again in case I did it wrong.

I’ll do the following:

  • Delete the autoload from the project settings
  • Close Godot
  • Confirm it is not present in the project.godot file
  • delete the .import folder
  • re-launch Godot, and check the project settings

Nope, the autoload still present after the second try :cry:

How do you delete the autoload script? Do you remove it entirely? Do you only remove the autoload from the audoload settings page? If it’s not too important, try to both remove it from the autoload menu, AND completely delete the script itself. This also includes closing it’s Editor tab inside godot after you remove it from the file system, as it can re-save resources on exit (I hate that Godot does this)

My mistake here was to autoload the entire scene, and I can’t delete it as it is the main scene for the game…
The way I deleted it was to just delete it from this menu. Do you think deleting the script associated to this scene could also work?

I tried with the Test.gd autoload. I deleted it from this list, deleted the script but the autoload was again present on startup. Then, when running the project, I got errors because the test.gd file was deleted

At this point it feels like your filesystem is somehow corrupted and files won’t delete properly. I’m not sure why removed files keep appearing again and again otherwise.