Hi ! ~ I've some troubles figuring out why godot is actually doing this. Here's my code for saving :
`var save_game = File.new()
save_game.open_encrypted_with_pass(save_path, File.WRITE, "Trololo")
var save_buttons = get_tree().get_nodes_in_group("Persist")
for node in save_buttons:
node_data[node.get_path()] = node.save()
save_game.store_line(to_json(node_data))
save_game.close()`
with a var node_data = {}
Now, it saves without any troubles, besides that.. it;ll save like that :
Line 1 : [Path] + data
Line 2 : [Path] + data + [Path other node] + data
And it'll do that with every node, just repeating them every line and adding a new one.
Each node has a func save() returning their variables, looking like that :
func save():
var d = {
"Var1": var1,
"Var2": var2
}
return d
Because of that, I don't really know how to load my variables and add them to each of the objects :/ Hope there is enough info