Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Script changes won't be saved #3137

Closed
FEDE0D opened this issue Dec 26, 2015 · 14 comments
Closed

Script changes won't be saved #3137

FEDE0D opened this issue Dec 26, 2015 · 14 comments

Comments

@FEDE0D
Copy link
Contributor

FEDE0D commented Dec 26, 2015

This is a weird and random bug but it's very crucial to have fixed.
I tend to use built-in scripts instead of a proper saved file for some minor scripting on some nodes.
Sometimes when I change something on the code these changes won't be saved.

When I press Ctrl + S to save it does save the scene and the little (*) indicator disappears from the file name as it was saved correctly. However when the game is run, it's the previous version of the code that is running. I can re-edit and re-save the script several times but its still the old version that gets loaded in-game.

I can confirm that because when I close the editor and reopen the project, the script is the previous version as it was never saved.

I don't know if this extends also to common script (.gd) files but I guess it does.
I can't provide a sample project or steps to reproduce because it appears to be random (although I've encountered it very often working on my project )

I'm using the version at commit 09e3dd1ecb9d09d2cbd170cd99d552fb2a310d24
I'm on Linux Mint 17.

@FEDE0D FEDE0D changed the title Script changed won't be saved Script changes won't be saved Dec 26, 2015
@kubecz3k
Copy link
Contributor

@FEDE0D When it comes to "ordinary" gd script files I don't think this issue applies to them (never observed yet, while had some problems with those build into scenes). Which file-format for your 'scripted-scenes' do you use (scn|xscn|tscn)?

@29jm
Copy link
Contributor

29jm commented Dec 26, 2015

I can confirm this issue, with a scene in scn format.

@kubecz3k
Copy link
Contributor

Would be ideal if we could have detailed step by step instructions on how to reproduce this issue... I assume there exist some sequence of opening/saving/closing/reverting/switching to other scene, actions that is causing this..

@ScotFlux
Copy link
Contributor

I also have this kind of issue with a new build provided by Kelinci Senja on Facebook.

Godot v2.0.alpha-r2575 + Windows 7 x64

@kubecz3k
Copy link
Contributor

@ScotFlux What file format are you using? Gd or those are putted inside scn|xscn|tscn?

@ScotFlux
Copy link
Contributor

ScotFlux commented Jan 6, 2016

@kubecz3k I used the .gd(s). I haven't test script(s) inside scn|xscn|tscn.

Edit 1: Forgot to say : Sorry for late to reply. :-)

@reduz
Copy link
Member

reduz commented Jan 23, 2016

Did you untick this by chance?
rbs
I just can't reproduce this in any way otherwise

@FEDE0D
Copy link
Contributor Author

FEDE0D commented Jan 23, 2016

No. I those are still checked.

@reduz
Copy link
Member

reduz commented Jan 23, 2016

No idea then, I can't reproduce this.. but I fixed a bug that may be related some hours ago

@MarianoGnu
Copy link
Contributor

Btw, menu script>save was not working at all (even for .gd files), didn't check if it was fixed this week

@FEDE0D
Copy link
Contributor Author

FEDE0D commented Jan 24, 2016

That must me it
El 24/01/2016 01:30, "Mariano Javier Suligoy" notifications@github.com
escribió:

Btw, menu script>save was not working at all (even for .gd files), didn't
check if it was fixed this week


Reply to this email directly or view it on GitHub
#3137 (comment).

@reduz
Copy link
Member

reduz commented Jan 25, 2016

menu > save was fixed a few days ago, so closing this

@reduz reduz closed this as completed Jan 25, 2016
@felipefacundes
Copy link

This is a bug for sure. I'm going through the same problem. Every time this happens, I have to create a new project and port everything there, which slows down production a lot. It gets in the way too much! And also if you try to "save as" it doesn't allow overwriting. I'm using the latest stable version of Godot 3.4.2. Please check this as it is a bug that was present in previous versions. Look at this post is from 2020 and it hasn't been fixed yet.

In my case my problem is not with the GDScript itself, but with saving an existing scene that I had to change, when creating a node or when I am going to change the scene

I reported this error as well
https://godotengine.org/qa/80242/scene-not-saving

@Calinou
Copy link
Member

Calinou commented Feb 12, 2022

@felipefacundes Please don't bump old closed issues by copy-pasting the same message. This bug is already being tracked in #40366.

@godotengine godotengine locked as resolved and limited conversation to collaborators Feb 12, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

8 participants