1) I changed the encryption key ( assuming it was the same for all installs ) and now I am getting "Bad PKCS7 padding. Invalid length 0." error. The key I used was the same number of characters and using no special characters. Do I have to reimport the asset?
2) The next error is: "The data, tag, file or folder you are looking for does not exist. Please ensure that ES2.Exists(string identifier) returns true before calling this method."
The code below is attached to 3 different buttons. The first 2 buttons throw the error and the third is successfully saved. It should have an entry for all three buttons if I understand it correctly.
Code: Select all
public Button upgradeButton;
...
void Start () {
if (ES2.Exists("GameData.dat") == true) {
crystalCount = ES2.Load<int>("GameData.dat?tag=CrystalCount");
upgradeLevel = ES2.Load<int>("GameData.dat?tag="+ upgradeButton.name);
} else {
ES2.Save<int>(0, "GameData.dat?tag=CrystalCount");
ES2.Save<int>(0, "GameData.dat?tag="+ upgradeButton.name);
}
}
...
Does anyone have any insight as to what may be going on here? Any insight would be helpful.
Thanks for your time and attention.