Under rating threshold (hideshow)
I accidentally deleted a good comment here - sorry about that! Anyway, the question was whether or not a statistic can be submitted that has a string value instead of a number. I'm afraid our statistics only support non-negative integer submissions (i.e. only numbers, and no decimals), so submitting a string or any other kind of value won't work.
You'll need to connect to the <a href="http://dev.kongregate.com/docs/api-overview/intro">Kongregate API object</a> and then use the stats API on this page (specifically the Client one) to submit them. Make sure you also add the stats on our server side (you can do this by adding /statistics to your game's URL), and that the stat names match exactly, including capitalization.
Well, I'm afraid I can't really help then. :/ It's pretty straight forward, but if you can't connect to our API object it's not going to work I'm afraid.
I may not be understanding your question, but all you need to do to use the API is to connect to our API object and then call whatever functions you want from it. You can email developer_support@kongregate.com if you have a specific question about it, or just post again here. :)
Under rating threshold (hideshow)
How long does it usually take for Stats (barring odd cases, or cases in which mistakes were made by the developer) to show for a new game?
Stats should show up very quickly - usually within 5 minutes, and often nearly instantly. It does require you to reload the page to see them the first time if you don't see a "High Scores" tab. Also, they won't show up unless you've selected them as "Display in Leaderboard". Once at least one successful stat has been submitted, the "More Games" tab should switch over to "High Scores" on the next reload, even before the game is published.
Under rating threshold (hideshow)
Well I added stats when I first published my game, and they are there when I go to the statistics page. They also appear to work just fine in the "shadow services," but they aren't present in my game. Any suggestions?
I tried running your game in debug mode (add ?debug_level=4 to your URL, more info <a href="http://www.kongregate.com/docs/resources/faq#stats-api">in our FAQ</a>) and I don't see the game connecting to the API (and thus also not submitting stats). You should ensure that the game is connecting properly, and then check to see if stats are going through.
Under rating threshold (hideshow)
Can I retrieve a score from the server, and import it into my game so that I can do something like this?
if (currentscore > savedscore){
//insert cool notification here
}
Under rating threshold (hideshow)
How do I upload it on Kongregate?
I have everything.
Random fact!:Kongregate was released on October 10, 2006 by sister and brother team Emily and Jim Greer.
Under rating threshold (hideshow)
I met some highscore cheating on my games, for that reason, I would love the "maximum possible number" for each variable to prevent sending a highscore if it's higher than the "max pos num". Example: You have a game with 100 levels. There is a highscore named "Level". If player tries to send a highscore of 105, it won't be saved. I've tried coding that on the game itself before submitting a highscore, but that didn't help.
Under rating threshold (hideshow)
i know how to submit a variables to kongregate but how can i call them. I want to save the user data. Lets say the player is on level 4. i can send level 4 but the next time he comes back, I want him to start of at level 4.
Under rating threshold (hideshow)
I use Stencyl, the suggested dev program thing from you guys (for single player games) if I'm correct. The score of a player is saved as an attribute in a behavior. To simplify, I have it... "
Setup Kongregate API
submit score to Kongregate with (name: name of Kongregate player, value:[Score])
" [Score] being the attribute that I save the score under. Is this correct for Stencyl and will it work to submit someone's highscore? If not, what must I do?
Under rating threshold (hideshow)
How do you even add API's to a game that's Hosted with iFRAME and ran with PHP.. I just do not understand, even tried quickkong..
Under rating threshold (hideshow)
i need help, i want to know how to submit my score i am kinda nooby but im trying to get better anyway im trying kongregate.stats.submit("score", _root.score); and it wont work, if it helps my instance name of my score is score and its variable name is _root.score
Under rating threshold (hideshow)
I’m using QuickKong in this game ( http://www.kongregate.com/games/TaliumCorr/orbitaldestroyer ), while test – debug shows that connect to API successful and scores submitted correctly. A day has passed after game upload, but highscores tab still didn’t showing. Any suggestions? Thanks.
Under rating threshold (hideshow)
I believe I already use Statistic API as HighScore
but why Im dont get additional 10%
www.kongregate.com/games/RnDi/prison-bomber
Under rating threshold (hideshow)
I seem to fail to follow this. Can someone help me please? I want to make a max type statistic in my clicking game as a clicking counter but everytime I screw something up :(
Under rating threshold (hideshow)
Does the API allow the developer to know what a user rated a game? Or prevent a user from rating a game if the player has spent less than say 30 seconds playing? Or anything like that? I've seen comments here and there about doing this.
Under rating threshold (hideshow)
Hi i have 3 games i would like to have the score tracked for the players. Hit the dots, flappy bird, and snake. I tried adding the score twice and it didn't work. Can someone please tell me what exactly i have to do step by step because im just not used to Kongregate's way of uploading games. Please PM me it or if you can e-mail "michael@mikeos.tk" a step by step way with screenshots if you can. Thanks so much, D0MiNAT0RZ
Under rating threshold (hideshow)
Is there a way for Developers to see high scores that are not being posted to the Official Leader boards? We have the option of making these statistics invisible to the players...but how can we ourselves see what stats have been collected by Kongregate? I saw above that there is no longer support for this in the code...but is there another way?
Under rating threshold (hideshow)
Is there a way to not only submit, but also read a statistic? I'd like to explore the different mode high scores a player has ingame
Under rating threshold (hideshow)
Hi! I successfully setup the statistics API with our Unity/WebGL game Volley Brawl. The leaderboards show the correct value. If there is still anyone interested in the exact C# code and the steps, please rate my comment. I will then be happy to write a blog article about it.
However, my problem still is: How can I see the stats which are not publically listed in the leaderboard? I am blind? I looked everywhere on Kongregate. Did I overlook anything?
Under rating threshold (hideshow)
Why is the MAXINT 31 bits? I assume it takes 32 bits of storage so couldn't it be a 32 bit int or negative?
## Idle games are life ##