Nice Ben. Thanks for the topic!
[Kongregate API] AS2 Integration page 2 (locked)
|
|
|
|
|
I added the API to my game, is there any way to check that it is working? |
|
|
If you add ?debug_level=3 to the end of your game URL, you should be able to see the stats being reported in the chat window. |
|
|
btw, does it posible just to get Kongregate userName? i`m using Mochi_scores, and it `ll be nice to get rid of name ‘Player’. |
|
|
Badim:
|
|
|
The “?debug_level=3” don’t shows nothing to me. |
|
|
mepixa: try submitting high scores and see if they show up on the high scores list… |
|
|
I’ve tried the debug and it seems to work, it says that the high score is successfully entered. However, I am unable to view the high scores on the high score page… it isn’t in the dropdown list. What’s the dealy-yo? |
|
|
OK, I figured it out. You have to select a checkbox that asks if you want your high scores to be displayed. Either I missed this before, or it wasn’t there until recently. Oh, and you get to this checkbox by going to your statistics page. |
|
|
You’re right ch00se, that was a new addition. I will be posting more documentation about the new features on Monday. |
|
|
So I know that BenV is going to be posting some documentation tomorrow, so this may be irrelevant, but I wanted to ask: does the high score system currently work for the MIN function? For instance, if the better score is the lower score, then that should be the “high score” (think golf). The reason I ask is that I’ve implemented this, but when I select the checkbox to display as high score, it still says “No” on the statistics page for high score, and it does not display on the high score page. Thanks! |
|
|
Yes, I had to temporarily disable the leader boards for MIN functions, since the server doesn’t deal with them correctly yet. This will be fixed in the future. |
|
|
I set Sledder! up with four highscore boards all max, and for the different difficulties. I uploaded the newer swf file, but I can’t access the highscores. When I set a high score it isnt showing up in the chat and there is no high score button on the game page itself. I’m not entirely sure if it is an error on my part or if its a kongregate error. |
|
|
Dingo, when I run Sledder! with ?debug_level=3 I can see that you connect to the API, but I never see any scores actually get submitted. I would double check your calls to submit and make sure they are correct. If you are still running into trouble, pasting some code in here might help me figure out what is going on. |
|
|
Alrighty, it’s probably not reading the score variable correctly. I’m not at home right now, but when I get home I will double check everything and try again. Thanks for responding. |
|
|
First off, thanks for fixing the MIN issue for high scores, Torque now seems to be tracing high (low) scores, and correctly at that. However, it doesn’t show up on the high scores page dropdown. Is there something more that I need to do? Thanks |
|
|
Ahh, nice catch, I’ll take a look at that today. Thanks! Edit: Found the cause of this, and put in a fix for the deploy next week. I also found some issues with the displaying of MIN scores submitted over multiple days. This will be fixed in the next deploy as well. Note: The reporting was fine, so the stats have not been lost, they may just be displayed incorrectly in some cases until next week. |
|
|
Thanks for the instructions, it’s very easy to use! I’ve set up Babeball to use highscores and it definitely adds replay value to it. |
|
|
For the username (root.kongregateusername), would I be able to connect to kongregate, get the player’s username, and display it somewhere in the flash? I know how to do it, but would that work, or is it for a different feature? EDIT: My game’s up and it works, thanks anyway :). |
|
|
So do I submit HighScores both as a Statistic AND via the High Scores API? |
|
|
No, if you use the high score method we automatically detect it and set it up as stat for you. |
|
|
More 2 Questions: 1 – Can I take the value of the player? Like I can show the username (root.kongregateusername), can I show another field? Like root.kongregate_HighScore or smoething else? |
|
|
Ok, works! :) But, I need to know, can I take the Stats back? With the boolean stats I can make a Save! ;) |
|
|
I think they’re working on an API specifically for saving. So we’ll have to wait a bit. |
|
|
|
Loading