customData update 2...
 
Notifications
Clear all

customData update 2.1.0

3 Posts
2 Users
0 Reactions
1,489 Views
(@megaman)
Posts: 34
Trusted Member
Topic starter
 

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

and 2.1.0   ?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 successstring error) => {
                if(success) {
                   Debug.Log("success");
                } else {
                    Debug.Log("player.Update  " + error);
                }
            });

 
Posted : 21/09/2015 1:27 am
(@skaredcreations)
Posts: 805
Prominent Member Admin
 

Sorry, I found a bug in the web service users.php, please edit it and replace the function cleanIncomingCustomData (should be around line 95):

function cleanIncomingCustomData (&$customData) {
   $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

 
Posted : 22/09/2015 11:14 am
(@megaman)
Posts: 34
Trusted Member
Topic starter
 

Thanks a lot! Fixed! Peace!

 
Posted : 22/09/2015 12:12 pm
Share: