standard anti memory hack load save data using playerprefs
Hi all. I want to save my vital variables (gems,coins,level,xp , etc) into a file using playerprefs. My file has been encrypted.(AES) it is ok. I load my data in start only one time and initialize the variables.
My question is about memory hack. I know we can define two variables like gems_visible and real gems variable that has the fake value(for example gems_visible-123) and when a user changes gems_visible we can understand. but do we need to do it to prevent memory hack? can we load data from playerprefs whenever we need to them rather than only in start? So we don't need to define extra variables to prevent memory hack. we only need to compare the variable(maybe changed (hack)) with saved variable in playerprefs file and recognize hack. Is it true and standard method? Loading data in start and use extra variables vs loading data whenever we need to compare variables with real values in playerprefs(not only in start) any help appreciated.
Your answer
Follow this Question
Related Questions
create store database class for RTS games 0 Answers
Save and load component values 0 Answers
Save/load not work on mobile phone 1 Answer
PlayerPrefs saving and Loading 2 Answers
Help offline progression, works on windows but not on Android. 0 Answers