0Day Forums
[Digaway v1.38]: Saving System Explained - Printable Version

+- 0Day Forums (https://zeroday.vip)
+-- Forum: Coding (https://zeroday.vip/Forum-Coding)
+--- Forum: Java (https://zeroday.vip/Forum-Java)
+--- Thread: [Digaway v1.38]: Saving System Explained (/Thread-Digaway-v1-38-Saving-System-Explained)



[Digaway v1.38]: Saving System Explained - wester298789 - 04-29-2020

Digaway has a simple but straightfoward saving system, it also encodes the player's save file in Base64, which can easily be reverse'd using Notepad++'s MIME Plugin.

(im not that familiar with java in anyway, i used to edits simple minecraft mods so just know the basics lol)

[Image: 5PmczoecRcqiVogOemiswg.png]

[Image: Untitled.png]

this piece of code saves the items contained both in the player's inventory aswell as his chest
[Image: 0hR-n9mtSbiPXYwxR0WMKQ.png]

[Image: _dZIqludQEeDH0kkCfyR8A.png]

[Image: Untitled.png]

saveItem():
[Image: zZg7Y6xiQ3Or4gxXlyuP3Q.png]