Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | binogure | |
Old Version | Published before Godot 3 was released. |
Is there a way to compress a file (for example a save game) ?
As far as I known there’s no inbuilt function for this in Godot 2.1.4… but in Godot 3.
Expose compression functions to GDScript by vnen · Pull Request #9274 · godotengine/godot · GitHub
http://docs.godotengine.org/en/latest/classes/class_file.html
You could:
a) Code the compression in GD-Script. (Depending on type of data, you might be able to implement some simpler specific algorithm, like dictionary based for text).
b) Use Godot 3
However, If you just want obfuscate your data then there are encryption methods in the 2.1.4 File Object.
wombatstampede | 2017-12-07 17:10