You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When naming variables/folders the same as previously declared variables, the previous ones will get overwritten by the last ones when saving.
To Reproduce
Create similarly named variables/folders
Expected behavior
A repeated varaible should be suffixed with something to provide it with an unique name.
Screenshots
System (please complete the following information):
OS: Windows
Godot Version: v4.3.stable.official
Dialogic Version: 2.0 Alpha 15
Solutions
Workaround
There is no workaround given how the current system works. (Other than double-checking you're not repeating names)
Possible fixes
Let me preface that I don't fully understand the system, so take my solution with a grain of salt.
I understand that this will occour given how variables are saved. But I belive this data loss could be prevented with an approach similar to how Godot deals with same-named siblings by appending a number at the end of the repeated node:
"Node2D"
"Node2D2"
"Node2D3"
etc...
By listening for the tree signal item_edited and using the method get_edited() to get the renamed variable entry one could check for the "siblings" of that variable to make sure there is no variable/folder with the same name, and if there is, append a number at the end to prevent the data loss.
The text was updated successfully, but these errors were encountered:
The problem
When naming variables/folders the same as previously declared variables, the previous ones will get overwritten by the last ones when saving.
To Reproduce
Create similarly named variables/folders
Expected behavior
A repeated varaible should be suffixed with something to provide it with an unique name.
Screenshots
System (please complete the following information):
Solutions
Workaround
There is no workaround given how the current system works. (Other than double-checking you're not repeating names)
Possible fixes
Let me preface that I don't fully understand the system, so take my solution with a grain of salt.
I understand that this will occour given how variables are saved. But I belive this data loss could be prevented with an approach similar to how Godot deals with same-named siblings by appending a number at the end of the repeated node:
By listening for the tree signal
item_edited
and using the methodget_edited()
to get the renamed variable entry one could check for the "siblings" of that variable to make sure there is no variable/folder with the same name, and if there is, append a number at the end to prevent the data loss.The text was updated successfully, but these errors were encountered: