Array > File > 9 Varibles

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By lightmagician60

i made a 83x9 array to Save values {83 Slots, 9 Variables}
when i turn an array into a File. it loses it’s array properties, so it stores it like normal (0,0,0,0,0,0,0,0,0) instead of an array [0,0,0,0,0,0,0,0,0] {i found this out by using C++}

so this maybe basic coding, but i dunno how you separate (0,0,0,0,0,0,0,0,0) into 9 variables

can’t index or resize a File.

Edit: i found out the Godot doesn’t know what something like (10,0,1000,0,0,0,100,0,0) is. so it assumes you want (1110). meaning unless i do something silly like (1000000100000000010000000000000) i can’t separate it

{btw it’s been 2~3 hours and this question has still not been approved}

Edit2: 4 hours

Edit3: i solved it myself

:bust_in_silhouette: Reply From: Wakatta

Congrats on solving your issue.
If you would, please share here so that others with the same or similar problems can access it.

If your saved file is only being used in Godot use var2str() and str2var() respectively to save and load

Manipulations otherwise use File store_buffer()