Issue with SearchCu...
 
Notifications
Clear all

Issue with SearchCustomData (operations)

21 Posts
2 Users
0 Reactions
2,516 Views
(@skaredcreations)
Posts: 806
Prominent Member Admin
 

Oh I see you would like to search by math with numbers, ok I'm sending you by PM a change to allow that and will be in the next update too.

FRANCESCO CROCETTI @ SKARED CREATIONS

 
Posted : 18/09/2015 12:22 am
 jCan
(@jcan)
Posts: 23
Eminent Member
Topic starter
 

 Okay, thank you so much! Appreciated.

 

Final question, are you aware of any issues in regards to unity 5.2? I'm having an issue where custom data doesnt seem to get saved at all even after call update user, it could be on my end but, all i did was update unity. I will ofcourse keep checking, just thought I would ask.

 
Posted : 18/09/2015 12:29 am
(@skaredcreations)
Posts: 806
Prominent Member Admin
 

I didn't receive any report about Unity 5.2 but I downloaded it right now and will check during this week, it seems strange that there's something going wrong with custom data since it's just a Hashtable.

FRANCESCO CROCETTI @ SKARED CREATIONS

 
Posted : 18/09/2015 12:38 am
 jCan
(@jcan)
Posts: 23
Eminent Member
Topic starter
 

Sorry for seeming so annoying, I dont know whats happening here:

 

CombuManager.localUser.customData["SaveData_CurrentTeam"] = "-1|-1|-1|-1|-1|";
CombuManager.localUser.customData["RewardDate"] = CombuManager.instance.serverInfo.time.AddDays(1).ToLongDateString();
CombuManager.localUser.customData["DaysLogged"] = 1;
CombuManager.localUser.customData["LastStaminaUpdateTime"] = ServerCommunication.CurrentDateTime.ToLongTimeString();
CombuManager.localUser.customData["NextDiamondDateTime"] = ServerCommunication.CurrentDateTime.AddHours(GlobalVals.FreeDiamondHourlyRate);
CombuManager.localUser.customData["ExpEarned"] = 0;
CombuManager.localUser.customData["Diamonds"] = 0;
CombuManager.localUser.customData["Level"] = 1;
CombuManager.localUser.customData["Coins"] = 0;
CombuManager.localUser.customData["StamFills"] = 0;
CombuManager.localUser.customData["UnitCapacity"] = 10;

CombuManager.localUser.Update((bool success, string err) => {
if (success)
{
foreach (string key in CombuManager.localUser.customData.Keys)
{
Debug.LogWarning(string.Format("{0}: {1}", key, CombuManager.localUser.customData[key]));
}
}
else
{
Debug.LogWarning("Failed: " + err);
}
});

The above code is suppose to save all the info above the Update but... when i loop through all the keys, it only returns 4 values as saved, I've been stuck on this all day and any bit of info would help. I would expect it to return a form of error if I was doing something wrong;

 

It doesnt return any of the entries I set, Its almost as if its not saved at all. This is all it returns:

http://prntscr.com/8hkk3b

 
Posted : 18/09/2015 5:18 am
 jCan
(@jcan)
Posts: 23
Eminent Member
Topic starter
 

Okay, This is strange. I copied the above code into your combudemo and it worked fine with one profile but not with another. this is confusing as hell.

 
Posted : 18/09/2015 5:34 am
 jCan
(@jcan)
Posts: 23
Eminent Member
Topic starter
 

Finally, it seems something to do with line endings in visual studio contributed to the issue, so odd. The data seems to be saving now but i still get null for all entries when i restart the application.

 
Posted : 18/09/2015 6:33 am
Page 2 / 2
Share: