User Tag List

Results 1 to 9 of 9

Thread: GC Achievements problem

  1. #1
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export ModuleInstall Creator Pro

    Join Date
    Jul 2006
    Location
    Germany
    Posts
    1,090
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    GC Achievements problem

    I have 3 achievements based on percentage:
    Amateur (the Player kicked 10 times to reach 100%)
    Pro (the Player kicked 50 times to reach 100%)
    Champ (the Player kicked 100 times to reach 100%)

    I make the first kick and send these values, a counter prevents sending multiple achievements at the same time, it goes one after the other:
    Amateur 1%*10
    Pro 1%*2
    Champ 1%

    The result: in GC all achievements are set to 10%

    What's wrong? Do I miss something?

  2. #2
    Clicker Fusion 2.5 DeveloperiOS Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)

    Join Date
    Dec 2012
    Posts
    26
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    GC Achievements problem

    Not sure what you mean by 10% but the achievement in GC work by one-timed activation. That's mean you get or not get the said achievement, there's no progress like Steam. The point for each achievement is there just to show how great that thing is, no real meaning what so ever.

    So what you should do is tracking the progress for all 3 achievement within your game and send each one once the player get it.

  3. #3
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export ModuleInstall Creator Pro

    Join Date
    Jul 2006
    Location
    Germany
    Posts
    1,090
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I don't mean the GC point values which are shown for each achievement. When you send a percentage below 100, you can see the progress at the achievement's icon: a circle that grows around the yet unlocked icon and a small number showing the current percentage.

    So, when I send the first kick to the Amateur achievement, I calculate 1*10=10
    Since 10 kicks=100% the first kick means 10% completion. And it worked for this single achievement: it's circle and completion value were 10%, as I sent.

    My problem are the two other achievements. After the first kick Amateur is at 10%, but so are Pro and Champ. I sent a percentage of 2 for Pro and 1 for Champ, but they show a completion of 10% instead of 2% and 1%.

  4. #4
    Clicker Fusion 2.5 DeveloperiOS Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)

    Join Date
    Dec 2012
    Posts
    26
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    GC Achievements problem

    Then perhaps you may try making 3 separate value. You should be able to track it better that way.

  5. #5
    Clickteam Clickteam
    Olivier's Avatar
    Join Date
    Jun 2006
    Posts
    3,000
    Mentioned
    9 Post(s)
    Tagged
    1 Thread(s)
    Would it be possible that GameCenter does not accept reporting achievement progress under 10%? I didn't find any information about this.
    Or maybe only integer or float values are accepted, did you try both JoKa?

    Maybe the problem is reporting progress on multiple achievements at once. Apple shows a specific example for this:
    http://developer.apple.com/library/i...008304-CH7-SW8

  6. #6
    Clicker Fusion 2.5 MacFusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleiOS Export ModuleSWF Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    UrbanMonk's Avatar
    Join Date
    May 2008
    Location
    Southern U.S.A.
    Posts
    847
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    You can report values under 10% but you can't set achievements lower than they already are. If you previously set an achievement to 10% you can't set it to anything lower.
    However you can reset all achievements and then set them again.

    Currently the extension doesn't have this functionality though, so I had to manually add the code myself to another function of the object in order to make it work.

    Also there is a bug in the current version of the extension that I posted a fix for a while back. It'll be in the next update.

    Gamecenter Achievement Fix:
    http://community.clickteam.com/threads/79088-GameCenter-Achievement-Object-Bug-%28and-fix%29-beta-8
    Apple Documentation:
    http://developer.apple.com/library/i...ievements.html

    Replace the function "sendAchievement" with the following code:

    Code:
    -(void)sendAchievement:(CActExtension*)act
    {
         NSString* identifier=[act getParamExpString:rh withNum:0];
         int percent=[act getParamExpression:rh withNum:1];
    
         //Create a GKAchievement object and attach the ID and percent
         GKAchievement *achievement = [[GKAchievement alloc] initWithIdentifier: identifier];
         achievement.percentComplete = percent;
    
         //Send the data to GameCenter
         [achievement reportAchievementWithCompletionHandler:^(NSError *error) {}];
         flags|=FLAG_SENDACHIEVEMENT;
    }
    Gamecenter Achievement reset:
    http://community.clickteam.com/threads/78656-Gamecenter-Achievements-Object-Missing-Function
    Apple Documentation:
    http://developer.apple.com/library/i...ievements.html

    Replace one of the object's function with the following code:

    Code:
    [GKAchievement resetAchievementsWithCompletionHandler:^(NSError *error){}];

  7. #7
    Clickteam Clickteam
    Olivier's Avatar
    Join Date
    Jun 2006
    Posts
    3,000
    Mentioned
    9 Post(s)
    Tagged
    1 Thread(s)
    Thank you very much UrbanMonk, seems like your fix is exactly what JoKa needs. And I'm glad to know that an official fix will be available soon.

    About the achievement reset, I don't undersand why this has still not been implemented. I remember asking for it more than a year ago.

  8. #8
    Clickteam Clickteam
    Anders's Avatar
    Join Date
    Jun 2006
    Location
    Denmark, Århus
    Posts
    3,456
    Mentioned
    5 Post(s)
    Tagged
    1 Thread(s)
    Just a note:
    UrbanMonk's fix prevents the 'Achievement sent' condition from triggering.

    The most recent release should have a better working GameCenter:
    http://community.clickteam.com/threads/79926-MMF2-Build-257-Official-release

  9. #9
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export ModuleInstall Creator Pro

    Join Date
    Jul 2006
    Location
    Germany
    Posts
    1,090
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks for your advice!

Similar Threads

  1. Achievements Problem
    By virtualrom in forum iOS Export Module Version 2.0
    Replies: 2
    Last Post: 4th September 2012, 07:39 AM
  2. Asking question to display achievements while in game problem
    By Shmuper in forum iOS Export Module Version 2.0
    Replies: 1
    Last Post: 25th April 2012, 12:30 AM
  3. Achievements?
    By Pixzel in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 10th August 2011, 06:24 AM
  4. achievements
    By life2searching in forum SWF/Flash Export Module Version 2.0
    Replies: 7
    Last Post: 4th March 2011, 10:42 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •