{"id":9164,"date":"2022-04-10T14:20:24","date_gmt":"2022-04-10T13:20:24","guid":{"rendered":"http:\/\/phoenixgamedevelopment.com\/blog\/?p=9164"},"modified":"2022-04-10T14:30:33","modified_gmt":"2022-04-10T13:30:33","slug":"p0-b1-part-1054-json-saving-loading","status":"publish","type":"post","link":"https:\/\/phoenixgamedevelopment.com\/blog\/p0-b1-part-1054-json-saving-loading\/","title":{"rendered":"P0-B1: Part 1054: JSON Saving\/Loading"},"content":{"rendered":"\n<p>I have spent a day working on a replacement for playerprefs.<\/p>\n\n\n\n<p>Playerprefs make is very easy to store data persistently, but they store data in the systems registry, not in the game folder, which would cause problems if a game project needed to be moved from one drive to another.<\/p>\n\n\n\n<p>Playerprefs are also not really designed to store large amounts of data, and they are stored in plaintext, so they can be easily edited by players.<\/p>\n\n\n\n<p>I have implemented simple JSON saving and loading now, with similiar functionality to player prefs. I have also added simple encryption to the JSON files so that they cannot be easily modified by players.<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I have spent a day working on a replacement for playerprefs. Playerprefs make is very easy to store data persistently, but they store data in the systems registry, not in the game folder, which would cause problems if a game project needed to be moved from one drive to another. Playerprefs are also not really [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,17,28,10,11],"tags":[],"class_list":["post-9164","post","type-post","status-publish","format-standard","hentry","category-astral-realms","category-p-0","category-p0_b1","category-software-and-games","category-spiritus-astrum","has-post-title","has-post-date","has-post-category","has-post-tag","has-post-comment","has-post-author",""],"aioseo_notices":[],"builder_content":"","_links":{"self":[{"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/posts\/9164"}],"collection":[{"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/comments?post=9164"}],"version-history":[{"count":1,"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/posts\/9164\/revisions"}],"predecessor-version":[{"id":9165,"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/posts\/9164\/revisions\/9165"}],"wp:attachment":[{"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/media?parent=9164"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/categories?post=9164"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/tags?post=9164"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}