Godot Version
4.6
Issue
I’m currently working on a game with 2 other developers, a designer, and 2 artist. We use feature branching strategy where we create a branch for everything we work on, make pull request once it’s done, and squash merge after it’s been reviewed by 2 other developers.
The issue is, whenever a script is put into autoload by one of the developers, when we switch to their branch, the script will not work, and Project Settings will show empty path, even when re-entering the script.
It used to happen rarely, but as the project grows, it happens almost every day and it makes collaboration very annoying. The band-aid fix I found was switching the autoload file from one folder to another, but I would also like designers and artists to be able to open the project without being bombarded with errors and crashes.
Reproduce Steps
- Have Godot project on remote git repository (preferably GitHub)
- Create a branch on the version control
- Create an autoload script
- On another device, switch to the same branch
- Observe the errors running project
- Go to Project Settings > Globals
- Observe the empty file path
“New users can not upload attachments” so I made an unpublic video on YouTube: