User Tools

Site Tools


save_data

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
save_data [2025/08/22 14:12] justinsave_data [2025/08/22 14:28] (current) justin
Line 2: Line 2:
 ---- ----
 Saves custom data to a file, with an optional password parameter for encrypting the file. The file is stored in the user's application data folder alongside their game saves. The data can be one of the following types: [[string]], [[number]], [[boolean]], [[array]], [[codex]], [[coordinate]], [[color]], [[entity]]. If the provided filename ends with ".json", the data is either an [[array]] or [[codex]], and no password is used, the data will be stored as a human-readable [[https://en.wikipedia.org/wiki/JSON|JSON file]]. Saves custom data to a file, with an optional password parameter for encrypting the file. The file is stored in the user's application data folder alongside their game saves. The data can be one of the following types: [[string]], [[number]], [[boolean]], [[array]], [[codex]], [[coordinate]], [[color]], [[entity]]. If the provided filename ends with ".json", the data is either an [[array]] or [[codex]], and no password is used, the data will be stored as a human-readable [[https://en.wikipedia.org/wiki/JSON|JSON file]].
 +
 +For more information on using data files, check out [[https://youtu.be/TYr246Xhsvw|Slayer's tutorial on YouTube]].
  
 ====Signature:==== ====Signature:====
save_data.txt · Last modified: 2025/08/22 14:28 by justin