For those of you interested or having trouble with Kongregate API integration with Unity - I’ve put together the most simplistic and complete game I could as a back-end test for my own project (soon to show up as well).
Project contains examples of user identification, score submission, and achievement submission (tracked locally and submitted as a standard kongregate statistic)
Moderators:
I can’t seem to upload that zip as an attachment; is there a rule/issue that I’m missing? Its ~4mb.
Yes thanks very much. I haven’t found time to go through it in detail. I just know that at first glance it seemed kind of daunting to figure out the api. Hopefully this will help out.
This is really great! I spent a day about a week ago working to figure out the KongAPI, but it can be a little daunting though at first. Having something like this would really have made it easier.
Just about to release my game onto the site, but I can’t seem to figure out how to test stats in the preview mode…I have a debugger showing that I am connected to the API, but I don’t quite get how the stats and leaderboards work.
if you’ve added statistics via the game setup page then the leaderboards will just simply work (even in preview mode)
If you don’t see them showing up, theres a few things I’ve noticed.
Until your game has been “Viewed” 10 times leaderboards tend not to show up. Sometimes it just takes an hour or two as well before they start appearing in the Highscores tab next to your game. Play thru a bit and do what you can to ensure that you’re actually sending data. You can get that “10 views” by refreshing the page a few times.
Yeah, I eventually fiddled around with the stat updates, refreshed it a bunch and it seems to work. Sometimes it feels like it takes a minute to update the leaderboards though.
Badges are created by the Kongregate staff. I haven’t submitted anything worthy of badges yet but I’d assume you can either email them or they will take a look at your game if it gets popular enough.
Sweet a kong api tut. Hay I have bin wondering, do unity games get the extra 10% from adding the api?
Because I have had the api working for awhile now (well I can submit stats anyway) and I am still not getting it.