Hi, I'm completely new to Godot, and following a tutorial on making a game in it. I have an issue now where after hitting run project, my "scenes" folder gets duplicated to a new folder called "Scenes" and then my scripts get errors saying that they hide a global script class, I'm assuming because now there are two of the same script named the same thing.

If I delete the .godot folder from the project folder, I can start the game and play one time. After playing a second time the folder will be duplicated again and I will have the same errors again.

I've tried deleting the duplicate "Scenes" folder, but after playing the game twice again, it appears again.

This duplicated "Scenes" folder does not actually seem to exist in the file system, only the "scenes" folder is there.

Before playing the game twice:

After playing the game twice:

They both have the same records, but the second folder with a capital S does not seem to actually exist:

I'd love any help with this. The engine seems pretty cool so far and I want to keep following tutorials while im hyped about it haha. I'm kinda stopped here though, I've been doing random stuff to get it to work again like deleting files, recreating scripts, and trying to use version 4.0.1 instead of 4.0.2, but no luck

Don't include the .godot or .import subfolders in the .zip. Does that help?

I've restored their post, the "zip"(rar) was uploaded fine, the forum just tends to format them for/as if image uploads for some reason. Not sure how a zip or rar can show up as an image tho...

@cybereality I have a gut feeling it's including the uploaded file links in BBCode format which sometimes fails to render with the markdown formatting

It was a misconfiguration on the regex that parsed the MIME type. I've fixed it.

16 days later

Hi sorry to Necro this thread, but has there been a fix for this? i'm running into the same issue all the time now. If i need to make a new thread, please let me know.

billhartz

When I import the project into Godot 4.0.2, I get this error:

After fixing that, and running the project, I get an error on line 31 of res://scenes/ability/sword_ability_controller/sword_ability_controller.gd.
The line is:
var sword_instance = sword_ability.instantiate() as SwordAbility
and the error is:
Parser Error: Could not parse global class "SwordAbility" from "res://Scenes/ability/sword_ability/sword_ability.gd".

    DaveTheCoder When I import the project into Godot 4.0.2, I get this error:

    I downloaded the project. The import went through without errors. On run, the errors are the same as TS. (Godot 4.0.2 of course./ Win 11.)

    Deleted the folder .godot, restarted the project. The error has disappeared and does not appear again.

    I have a vague suspicion that it may be in the OS. What antivirus? Or an error for some very rare configuration.

    I have a guess… what is the path on the drive to the project folder?
    Disk:\folder\folder\..

      SpacebotJunkie In theory, the problem could be in the "NTFS long paths" file length limitation of 260 symbols. But it does not look like that.

      By way of nonsense. Try moving the project to a different folder. Preferably on a different drive, with a shorter path without spaces in the folder names. For example
      D:\2Drunner

      21 days later

      Hey there !
      I have the exact same problem as billhartz, I have a duplicated folder (with lower case) which spawns when I save my game.tscn scene.
      At first the scenes (lower case) folder is empty, then it become a copycat of the original folder. When I check on my windows explorer, this lower case folder doesn't exist.
      I tried to remove my .godot folder and restart the project, but it doesn't solve the problem.

        DaveTheCoder thanks for your answer, I tried to copy and paste the project on my C:/ (I don't have a second disk on this computer). But it's the same problem.

          Romaing Had the same issue, deleting .godot didn't fix it, figured out what was causing it.

          Edit your .tscn files with an editor like Notepad++ and check the paths. If it's something like "Scenes" instead of "scenes" (or vice versa), it's what creates the duplicate folder. Try CTRL+Fing it with the correct capitalization.