Post

the feeling of every muscle on your bones liquifying when your new save/load loop finally works... 😏 someone please help me i can't move my bones anymore oh my god

Yeah that was a bad pitfall when i learned how to do it the first time around... Lots of stack overflows because the loader triggered a save which triggered a save which triggered a save which triggered a save which triggered a save which triggered a save which triggered a save which triggered a sa-

For me it was that the first setting to get set would trigger a save, which would cause all the other settings to be reset to their default values when the save manager iterated over them to collect values for the file it was writing, since they hadn't loaded yet. 😅

i think the nastiest bug that took me forever to solve was discovering that arrays in godot are shared by reference (unless you explicitly .duplicate() them), so if multiple buttons were made to change an array they were actually all sharing the *same* array and overwriting eachother's settings

0 reposts1 like

No replies yet.