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

Editor changes lines of code around in two .tscn files on every play. #28346

Closed
ScepticDope opened this issue Apr 23, 2019 · 8 comments
Closed

Comments

@ScepticDope
Copy link

ScepticDope commented Apr 23, 2019

Godot version:
3.1.1 RC1 with Mono

Issue description:
There are two .tscn files in my project that Godot likes to change on every play in the editor. It just changes the order of the lines of code in the file for no apparent reason. The two .tscn's are very similar I don't think that is causing it but it might help in finding out why this happens.

Steps to reproduce:
I have no idea how to reproduce this but I can give source of my project to dev team if need be.

@ScepticDope ScepticDope changed the title 3.1.1. RC1 - Editor changes lines of code around in two .tscn files on every play. 3.1.1. RC1 Mono - Editor changes lines of code around in two .tscn files on every play. Apr 23, 2019
@ScepticDope ScepticDope changed the title 3.1.1. RC1 Mono - Editor changes lines of code around in two .tscn files on every play. Editor changes lines of code around in two .tscn files on every play. Apr 23, 2019
@KoBeWi
Copy link
Member

KoBeWi commented Apr 23, 2019

Does it happen only for this project? What if you make a new project and copy these .tscn files there? (and if it still happens, attaching here the new project along with scenes would be helpful)

@akien-mga
Copy link
Member

akien-mga commented Apr 23, 2019

Is it only reproducible in 3.1.1 RC1, or also in 3.1 stable?

@ScepticDope
Copy link
Author

@KoBeWi it's mostly changing the lines of sprites around. Simply moving the .tscn without all the other stuff would give a completely other setup after one play and probably not produce the same bug. I won't post the source here but I will share it with someone from the Godot team if asked.

Also I found that sometime it does not change it on every play but when I restart the editor it does change the files every time again. See a .gif below showing two versions of the .tscn file created after play both vs the original. (That original is just a version created with this bug, I committed the files twice in a row before realizing its a bug loop.)

@akien-mga my project crashes 3.1 so I can't test that sorry.

cap

@ScepticDope
Copy link
Author

Just noticed this only happens when I have the scene with the bug open as a tab in the editor. If the tab is in focus does not matter. When the tab is closed and I run play it's file does not get changed.

@KoBeWi
Copy link
Member

KoBeWi commented Dec 15, 2019

@ScepticDope Can you test if it still happens in 3.2? It should be fixed.

Or 3.1.2 has it fixed too probably.

@ScepticDope
Copy link
Author

@KoBeWi tested it on Godot_v3.2-beta4_mono_win64. Still has the same bug but not for these sort of lines [ext_resource path anymore.

Only inside here: [sub_resource type="SpriteFrames" id=2] animations = [ { ...all lines between this are fair game....} ] and possibly also for other stuff that is just not in my specific .tscn file. Still reproducible on every restart of engine and running the game.

@KoBeWi
Copy link
Member

KoBeWi commented Dec 19, 2019

This might be the same case as #33411

@akien-mga
Copy link
Member

Duplicate of #22226.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants