The Godot Q&A is currently undergoing maintenance!

Your ability to ask and answer questions is temporarily disabled. You can browse existing threads in read-only mode.

We are working on bringing this community platform back to its full functionality, stay tuned for updates.

godotengine.org | Twitter

0 votes

I have already created dozen objects under one general directory "res://Enemies/" and was loading them dynymically from string. Suddenly when I added another enemy to this directory, Godot refuses to load its path. Caps and underscores are all fine. When I try to preload instead, Godot autofills whole path as it would be correct, but after entering it Compiler throws error "Can't preload resource at path xxx". It only happens with this last enemy, other 12 under the same directory load and preload normally. I tried changing name, it doesn't help. Please give me a hint what is going on.

Edit : after resetting the editor I can no longer reach scene I created - parsing error. I must jhave corrupted it somehow, how do I fix this ? Dependencies seem fine

Godot version godot 3.2 stable
in Engine by (8,188 points)
edited by

1 Answer

+1 vote
Best answer

Do you have an old version of this file in a backup? Try to copy and paste only this file an see if the error continue.

by (188 points)
selected by

The same happened. I created it anew with new name, recreated all modifcations, saved, and it got corrupted again. And I finally realized, what modification was causing this : I made one of exported dictionaries float value into INFINITY. Is it a known programming malpractice ? I kinda only program for 2 years, only in Godot :P. Anyways, setting value to rational number stopped automatic corruption :)

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 Frequently asked questions and 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 [email protected] with your username.