Hello Skared Creations! Updated to 2.1.0. So far cant update customData Is it only me experienced this?
here the admin screen of 2.0.7 ?dl=0
if rollback to 2.0.7 everything work fine... 2.1.0 makes customData keys 0,1,2 etc and values are empty...
MySQL db and php files fresh from 2.1.0 unity asset.
c# code using:
CombuManager.localUser.customData["Exp"] = int.Parse(xp.ToString());
CombuManager.localUser.customData["Lvl"] = int.Parse(Lvl.ToString());
CombuManager.localUser.Update((bool success, string error) => {
if(success) {
Debug.Log("success");
} else {
Debug.Log("player.Update " + error);
}
});
Sorry, I found a bug in the web service users.php, please edit it and replace the function cleanIncomingCustomData (should be around line 95):
$newCustomData = array();
foreach ($customData as $key => $value) {
if (!AddonModule::IsBlockedUpdateUserCustomData($key))
$newCustomData[$key] = $value;
}
$customData = $newCustomData;
}
This fix will be applied to the next update.
FRANCESCO CROCETTI @ SKARED CREATIONS
Thanks a lot! Fixed! Peace!