[Kongregate API] High Scores page 7 (locked)

Subscribe to [Kongregate API] High Scores 194 posts, 102 voices

Sign in to reply


 
avatar for Jabor Jabor 9707 posts
Flag Post

It appears to be connected correctly, then.

If you append ?debug_level=3 to the game’s URL, what shows up in the chat window when the game first loads and when it attempts to submit a score?

 
avatar for SirRealism SirRealism 43 posts
Flag Post

Thanks Jabor for wanting to help me out! I figured we have a different timedness (me being dutch and all) So when I get home from school I’ll try the debug thing. Don’t think I’m just ignoring you!

Thanks!

 
avatar for SAINT777 SAINT777 19 posts
Flag Post

is this ok for a ping pong game?

stop();
_root.kongregateServices.connect();
_root.kongregateScores.submit(1000); // The user got a score of 1000
var scoresCallback:Function = function( result:Object ){
trace(“High score result, success=” + result.success );

for( var i:Number = 0; i < result.list.length; i++ ){ var position:Number = i + 1; trace( position + ". " + result.list[i].username + " – " + result.list[i].score ); }

}
_root.kongregateScores.requestList( scoresCallback, this );

(1st frame)

ima noob :(

 
avatar for SirRealism SirRealism 43 posts
Flag Post

When I add ?debug_level=3 to the games url it tells me:

Info: Listening for connection…

Info: Handling connection…, isConnected=false, attemptingConnection=false

Info: Kongregate Packet[admin] {"mParams":{"req.id":0,msg.id,success,“stamp”:"2445939089188"},“mOpcode”:"hello"}

Info: Hello message received from server.

btw the statistics seem to be working fine…

Is that useful?
Thanks for all the help until now!

 
avatar for Jabor Jabor 9707 posts
Flag Post

Does anything show up when the game tries to submit a score?

 
avatar for SirRealism SirRealism 43 posts
Flag Post

Nope…

 
avatar for Jabor Jabor 9707 posts
Flag Post

You don’t get any info message saying that isConnected is true? Yet the light is green?

 
avatar for SirRealism SirRealism 43 posts
Flag Post

http://www.kongregate.com/games/SirRealism/evolution-squared_preview

Here, you can see it for yourself… I know it’s weird…. I wish it would just work.

thanks for wanting to help and all that! =D

 
avatar for Jabor Jabor 9707 posts
Flag Post

I’m afraid I can’t look at your preview games, sorry. I’m not really sure what’s going wrong, either.

The green light indicates a successful connection, but you should get a message indicating that…and for it not to echo anything at all when you submit is a bit weird.

 
avatar for SirRealism SirRealism 43 posts
Flag Post

So, basically you’re saying that the light indicates everything is okay… But the message:
nfo: Handling connection…, isConnected=false, attemptingConnection=false
Tells me otherwise…

Has anyone ever seen anything like this??? I really wanna upload my game…But I can’t because this stupid API won’t work….>:(

Thanks for the help!

 
avatar for Jabor Jabor 9707 posts
Flag Post

Take a look at another game with the API, and append ?debug_level=3 to the end of that URL to get some idea of what it should look like.

 
avatar for SirRealism SirRealism 43 posts
Flag Post

With Play Oh, the Huge Manatee! It says exactly the same at the beginning, but then it DOES get an extra tab in the chat window saying “score” and with my game it doesn’t!

It’s ridiculous…

 
avatar for CoolMoose CoolMoose 2 posts
Flag Post

This may sound like a dumb question, but where exactly is the download for the API?

 
avatar for NikolaNS NikolaNS 228 posts
Flag Post

You don’t download it. You just connect to Kongregate Services and use submit commands.

It’s explained in the forum sticky.

 
avatar for ynaza0416 ynaza0416 13 posts
Flag Post

Im having a problem using the highscores API

How do i send a score with a name and is _root supposed to represent something, or is it always _root?

Thanks for the help – cravedgames.com

 
avatar for ynaza0416 ynaza0416 13 posts
Flag Post

also how do you call the function to show highscores and do you call it into the frame

 
avatar for NikolaNS NikolaNS 228 posts
Flag Post

http://www.kongregate.com/forums/4/topics/475?page=1

 
avatar for cman4321 cman4321 3 posts
Flag Post

I need help. I am trying to make a game with regular mode, and timed mode. But I want to know how to put them both in. Like if you play in regular mode, it will submit the score for regular mode, and same with timed mode. Please help!

 
avatar for midnighthei midnighthei 1 post
Flag Post

is the “username” is given by kongregate or do we need to provide it?
thanks :D

 
avatar for nerd2005 nerd2005 2 posts
Flag Post

what version of flash is Kongregate API supported by 1, 2, 3, 4, 5, 6, 7, 8 etc
cause i wanna make a game compatable with flash 6 so mast people can play it, the sony PSP only has FLP 6 (flash player 6)
so im trying to get it to work with the PSP. can you help? please!

 
avatar for aakash aakash 88 posts
Flag Post

I got it to connect and it says “Congrats, you’ve just achieved a high score!
Click here to see your score.”

But when I click the ‘High score’ to see my score on the board nothing happens.

 
avatar for Anddyr Anddyr 1 post
Flag Post

I’ve tried to use requestList in an old game of mine. but I can’t get it to work. Has this something to do with the new chat?

It seems ?debug_level=3 isn’t working with the new chat, so I tried debugging with a remote debug session, but it sends me this error:

Error #2044: Unhandled SecurityErrorEvent:. text=Error #2047: Security sandbox violation: LocalConnection.send: kongregate.com cannot access http://www.kongregate.com/flash/konduit_1241113218.swf.

and my output gives me this:

click
Debug: [Game→Chat]: stat.submit
Debug: [Game→Chat]: score.list

this is the as in my testmovie:

_root.kongregateServices.connect();

myButton.onRelease = function() {
	trace("click");
	_root.kongregateScores.submit(615);
	var scoresCallback:Function = function( result:Object ){
    		trace("High score result, success=" + result.success );

   		for( var i:Number = 0; i < result.list.length; i++ ){
        
			var position:Number = i + 1;
        			trace( position + ". " + result.list[i].username + " - " + result.list[i].score );
    		}
		tf.text = result.success; //to check if callback works without debugger.
	}
	_root.kongregateScores.requestList( scoresCallback, this );
};

I got a mc called myButton and a textField called tf on stage.

The score is sumitted fine and the scoreboard is full (100 users), but I think requestList never calls the function.

 
avatar for NoobPoner NoobPoner 8 posts
Flag Post

I’m just curious, will this work with AS1? Or does it have to be AS2.

 
avatar for t4number t4number 1 post
Flag Post

Can I test KongregateAPI when my game is preview?

 
avatar for Heylon Heylon 137 posts
Flag Post

AS1 does not work for kongregate API u must be working in Flash player 6+(normaly 7.0+) for it to work.

Sign in to reply


Click Here