Rearanging folder completely breaks my game

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Cobra!
:warning: Old Version Published before Godot 3 was released.

I’m trying to rename/rarrange my folders of my project, as it was pointed out that having spaces in name will cause the game to not work on Linux. However, when I made new folders and attempted to move the files from the older folders to the new ones using the Godot editor (right-clicking a file in the FileSystem module and selecting “Move to…”), it completely broke the game. It just won’t run after I do that, no errors, no crashes, nothing, it just opens and closes before it shows anything.

I’ve tried this with 2.1.2 stable, 2.1.3 beta and a 2.2 fixnum build from January, all of them have the same problem.

What do I do?

:bust_in_silhouette: Reply From: Nuno Donato

I’ve recently messed up my project by moving files around (my fault), but I managed to fix it manually since it wasn’t so big.
Even though it crashes to the editor, you can still see the error, if you switch to the debug panel. At least in my case I could see where exactly it was failing.

I just experienced this problem, my project was not that big so I restarted.
has anyone found a solution to this? we should be able to move files around without breaking the project right? I guess you have to make every folder prior to saving anything…

Takito | 2020-05-21 12:39

:bust_in_silhouette: Reply From: Cobra!

Nevermind, I found the problem, it turns out that if you have any scenes open, and you move a file that that scene uses, it won’t update that scene, and will cuase it to crash, so just make sure all scenes are closed before moving any files.