{"repo":"TheVulcoreTeam/Persistence","free":true,"listed":false,"github":"https://github.com/TheVulcoreTeam/Persistence","clone":"git clone https://github.com/TheVulcoreTeam/Persistence.git","description":"Addon to store data in text or encrypted files, in Godot Engine 4, in an easy way.","language":"GDScript","stars":54,"topics":["godot","godot-engine","gdscript","godot-addon","addons"],"license":"MIT","category":"game-templates","readme_excerpt":"Persistence Node Addon to store data in text or encrypted files, in Godot Engine 4, in an easy way. Branchs - main: Default development branch for Godot 4.x - for-godot-3.0: Branch for Godot 3.x - for-godot-2.1: Branch for Godot 2.x Installation 1. Download the last release from your Godot Version 2. Extract the folder downloaded 3. Coppy the addon folder to the root directory of your game, for example: ./my-game/addons 4. (OPTIONAL) if you are using another addons you can move only the folder persistence node to ./my-game/addons/ 5. Active de addon in project - project settings - addons - Peristence Node (enable) 6. And that, follow the explanation ;-) Explanation The persistence node consists of obtaining the data and storing it in persistent memory when needed. To obtain the data we use our custom node Persistence . data is a property of Persistence node you can get that data and write de dictionary. Remember that dictionaries are passed by reference, so if you completely overwrite the dictionary, the rest of the data will be deleted. - BAD : $MyPersistenceNode.data = { \"new dictionary\" : \"something\" } - RECOMENDED : $MyPersistenceNode.data[\"something\"] = \"data here\" In the line marked as BAD the dictionary is being overwritten, which deletes all the data in the dictionary and only adds the new dictionary. It is not recommended for use. On the other hand, the line marked as RECOMENDED only adds a new key/value pair. Properties and Functions Properties Usage ------------ --","default_branch":null,"files":null,"tree":[],"storefront":"/r/TheVulcoreTeam","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/TheVulcoreTeam/Persistence/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}