• Godot Help
  • "Newer version on disk" keeps popping up. GD4a14 (Win10)

Hello, Something strange happened.
I updated a script file and saved it using Scene> Save Scene but when I double clicked the same script file on the FileSystem to open it did not show any updates. So I just re-update and saved and then closed/reopened the project. Now my project has this popping up whenever I try to run it, something like "There is a newer version of this (the script file) on disk, what do you want to do?" load/save.

I tried delete files on import folder and on user/AppData but it still keeps asking. What else can I do? Thank you.

  • Just a little update. I didn't need to redo the whole project. I copied the contents of the problem script then delete it, then I closed/reopen the project and created new script with the same name and pasted back the content. It then asked to reload once and no more pop up 🙂

    ps - As you guys said, the problem came about because I viewed the script on notepad while the project was on. I might have updated and saved the script as well, so don't do that.

It might just be a bug. Ideally, if you can, provide a reproduction project zipped up.

I'm pretty sure there's some line like "last time modified" and if you open up the file outside of godot the value gets rewritten then godot picks up on the change and gives you that prompt. I usually just click "reload".

You probably want to avoid editing any Godot files outside the editor (aside from assets like image and sound). The scripts and scene files should only be accessed inside the Godot editor. This also includes renaming or moving files, editing them, or even opening them. The only case where this may be needed if there is project corruption and you need to manually fix the file. Otherwise, don't touch them in the OS or it could mess up your project. However, most of them time, if you do open a file (by accident or whatever) just click the reload popup when it comes and it might fix it (but not always).

Thanks all for the info. Seems like the pop up gone away after restart the comp.

nvm still popping up. I guess I'll re-create the project. Good for practice I suppose 😆

7 days later

Just a little update. I didn't need to redo the whole project. I copied the contents of the problem script then delete it, then I closed/reopen the project and created new script with the same name and pasted back the content. It then asked to reload once and no more pop up 🙂

ps - As you guys said, the problem came about because I viewed the script on notepad while the project was on. I might have updated and saved the script as well, so don't do that.