0 votes

I get two errors when I run my game

-load: Resource file not found: res://True.
start: Can't autoload: True

when I look in projects settings, under the Autoload tab, I have my PlayerData.gd, and there is this mysterious "size" file with a path of "True". I did not add this, and I can't delete it. it's like a property got added as an Autoload script.

a side note, when I made the PlayerData.gd, it was from a PlayerData.tscn first, so there were two files in my Autoload folder. But it was me who made that folder and had to connect my script through project settings, so I don't think that has anything to do with it, but wanted to mention it just in case.

(game runs perfectly fine otherwise)

in Engine by (36 points)

1 Answer

+1 vote
Best answer

Hmmm... Sounds strange, and is potentially some sort of project management bug in Godot. A screenshot of what you're seeing might be nice.

And, you can't delete it because that line doesn't have that option (the trash can), or it has the option but it doesn't work, or ??

Anyway, if you can't clean it up through the interface, you can probably do it manually, by hand-editing the project.godot file in the root of your project folder.

Note, while I'm relatively confident this is safe, I'd suggest you have a backup before hand editing the project file. Better yet, hopefully you're using Git or some other form of SCM that makes this 100% safe. Also, know that I'm no expert here (so continue at your own risk) but if it were me, I'd try this...

  • Close Godot
  • Open the project.godot file in a text editor
  • Find the [autoload] section in the file
  • Find and remove the offending entry
  • Save the modified file
  • Restart Godot and see if the contents of the Autoload panel look correct
by (12,473 points)
selected by

editing the project.godot file worked. This is what I had...

[autoload]

PlayerData="*res://source/Autoload/PlayerData.gd"
size/always_on_top=true

no idea how that got added... if it happens again, I'll investigate further, but so far so good.

Thank you.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.