[Kongregate API] AS2 Integration page 2 (locked)

Subscribe to [Kongregate API] AS2 Integration 216 posts, 118 voices

Sign in to reply


 
avatar for Mauser Mauser 25 posts
Flag Post

Nice Ben. Thanks for the topic!

 
avatar for editundo editundo 305 posts
Flag Post

I added the API to my game, is there any way to check that it is working?

 
avatar for BenV BenV 265 posts
Flag Post

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.

 
avatar for Badim Badim 4 posts
Flag Post

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’.

 
avatar for IndieFlashArcade IndieFlashAr... 433 posts
Flag Post

Badim:


root.kongregateusername

 
avatar for mepixa mepixa 7 posts
Flag Post

The “?debug_level=3” don’t shows nothing to me.
I can’t see if my script correctly connect to the kongregate…

 
avatar for IndieFlashArcade IndieFlashAr... 433 posts
Flag Post

mepixa: try submitting high scores and see if they show up on the high scores list…

 
avatar for ch00se ch00se 98 posts
Flag Post

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?

 
avatar for ch00se ch00se 98 posts
Flag Post

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.

 
avatar for BenV BenV 265 posts
Flag Post

You’re right ch00se, that was a new addition. I will be posting more documentation about the new features on Monday.

 
avatar for ch00se ch00se 98 posts
Flag Post

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!

 
avatar for BenV BenV 265 posts
Flag Post

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.

 
avatar for DingoEatingFuzz DingoEatingFuzz 18 posts
Flag Post

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.

 
avatar for BenV BenV 265 posts
Flag Post

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.

 
avatar for DingoEatingFuzz DingoEatingFuzz 18 posts
Flag Post

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.

 
avatar for ch00se ch00se 98 posts
Flag Post

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

 
avatar for BenV BenV 265 posts
Flag Post

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.

 
avatar for Newsdee Newsdee 1 post
Flag Post

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.

 
avatar for Jindo Jindo 1186 posts
Flag Post

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 :).

 
avatar for Salman Salman 26 posts
Flag Post

So do I submit HighScores both as a Statistic AND via the High Scores API?

 
avatar for emily_greer emily_greer 1488 posts
Flag Post

No, if you use the high score method we automatically detect it and set it up as stat for you.

 
avatar for mepixa mepixa 7 posts
Flag Post

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?
2 – This scripts works on Flash MX (not 2004)? Because, I cant make work in the “O Cofre”…

 
avatar for mepixa mepixa 7 posts
Flag Post

Ok, works! :)

But, I need to know, can I take the Stats back? With the boolean stats I can make a Save! ;)

 
avatar for axcho axcho 85 posts
Flag Post

I think they’re working on an API specifically for saving. So we’ll have to wait a bit.

 
avatar for arcaneCoder arcaneCoder 1326 posts
Flag Post

I think they’re working on an API specifically for saving



Yup. You are right.

Sign in to reply


Click Here