Parsov
Member
- May 18, 2016
- 315
- 206
Hello just curious if anyone else has this issue. I am using Plus and I have over 1000 achievements coded in.
Problem is the achievements randomly set to 0, I think it would either be a faulty achievement.
Maybe the online which would reset it. Or registration duration.
As it happens randomly.
I found no code that inserts 0 into user_stats where the achievements are, even after you change the value of "achievementscore" it still resets it back to 0 when the user comes back online.
There is a few that set it to 0 however I'm not sure what they are for.
It could be because of something else as only I have this issue it seems and no one else.
I've done a few touches to the AchievementManager.cs hoping maybe something changes which nothing did.
There is a lot of places that send 0 but I don't know what they are for.
Last time I changed something it was ActivityPointsComposer and since then this started happening although I know they are not linked.
Problem is the achievements randomly set to 0, I think it would either be a faulty achievement.
Maybe the online which would reset it. Or registration duration.
As it happens randomly.
I found no code that inserts 0 into user_stats where the achievements are, even after you change the value of "achievementscore" it still resets it back to 0 when the user comes back online.
C#:
base.WriteInteger(Achievement.Id); // Unknown (ID?)
base.WriteInteger(TargetLevel); // Target level
base.WriteString(Achievement.GroupName + TargetLevel); // Target name/desc/badge
base.WriteInteger(1); // Progress req/target
base.WriteInteger(TargetLevelData.Requirement); // Reward in Pixels
base.WriteInteger(TargetLevelData.RewardPixels); // Reward Ach Score
base.WriteInteger(0); // ?
base.WriteInteger(UserData != null ? UserData.Progress : 0); // Current progress
base.WriteBoolean(UserData != null ? (UserData.Level >= TotalLevels) : false); // Set 100% completed(??)
base.WriteString(Achievement.Category); // Category
base.WriteString(string.Empty);
base.WriteInteger(TotalLevels); // Total amount of levels
base.WriteInteger(0);
It could be because of something else as only I have this issue it seems and no one else.
I've done a few touches to the AchievementManager.cs hoping maybe something changes which nothing did.
There is a lot of places that send 0 but I don't know what they are for.
Last time I changed something it was ActivityPointsComposer and since then this started happening although I know they are not linked.