Load Manual Method is problematic.
It gives “NULL” error when calling kongregate.services.connect().
This happens in onLoadComplete(evt:Event);
It works however when testing locally until uploaded.
|
|
Load Manual Method is problematic. It gives “NULL” error when calling kongregate.services.connect(). This happens in onLoadComplete(evt:Event); It works however when testing locally until uploaded. |
|
|
When you retrieve the high score list, how many entries do you get? Is there a way to get a certian person’s score, even if they aren’t in the top of the highscores? |
|
|
Hey guys, I’m stumped. My game apparently isn’t submitting the high scores data. Yet, the echos when running locally say it’s working fine. I believe I did everything mentioned in the tutorial. I import import com.kongregate.as3.client.KongregateAPI, then make the variable var kongregate:KongregateAPI = new KongregateAPI(), and then call this.addChild ( kongregate ). Then when the player presses submit, it calls (from a different class) KongregateAPI.getInstance().scores.submit(totalScore.value) yet, there is no high scores data appearing for my game. Any idea what could be causing this? Also: Should the highscores work in preview mode too or must I actually publish it each time to test it? |
|
|
I was having the same exact problem, I’m not sure what the issue is either. |
|
|
Can I get some clarification. I’m reading this thread, and Kongregate’s tutorial on implenting their API for AS3 (http://www.kongregate.com/games/Kongregate/kongregate-stats-api-tutorial-actionscript-3). On the high scores part, are we supposed to use the High Scores API, or will the stats API work just as well? The reason I ask is because on page 9 of their tutorial, second paragraph, they say that you can choose to use the High Scores API instead of the stats API if all you need is a simple scoreboard, which leads me to believe that you can retrieve high scores using the stats API. Is this correct? |
|
|
I’m using this in the beginning: and later i use this: but no achievment/highscore tab is there, why is that? |
|
|
I had this problem and I’ve seen a few other people mention it aswell. I’m not sure what I did to fix it, if you’re on your account page and you edit your game you can upload the swf again. I did this a few times and kept specifying the statistics and the scores tab eventually appeared. |
|
|
sounds like its just f***ing buggy :/ |
|
|
does it change anything if your computer is a mac because the picture there is running on a windows… is it all the same for scripting and stuff related to that |
|
|
Earlier in this thread someone mentioned you can put ?debug_level=3 at the end of your game url to debug connecting to the api but that doesn’t seem to work anymore so I can’t see anyway of finding out whether it’s a problem with your game or Kongregate. |
|
|
I’m not sure about 3, but I know debug_level=5 will show you that information. However, you have to do it in Firefox with the Firebug plugin running in order to see the output (it used to output directly to chat, but that’s been changed). If level 3 works, that’s great, because level 5 also shows room joins and messages, so you should try to do it in a fairly empty room or it’s hard to read what’s going on. Garfield – are you trying to use the components method for AS3? If so, I’d recommend using the manual loading method instead. A lot of developers have had more luck with it. DTran – use the stats API. High scores can be a little buggy, and isn’t nearly as flexible as the stats API. artist – almost all Kongregate staff members are running Macs, actually. :) Much of our stuff actually works better on Mac because that’s where the development is done. |
|
|
Originally posted by Phoenix00017: Why is this sort of information not more readily available? Is it any of the API documentaion/tutorials? Are there any other useful features you can tell us about? |
|
|
The debug level 5 just changed recently, so it might not be in the documentation, but you’re right that it’d be good to put in there somewhere. As for other tricks, I don’t know too many at the moment. Do make sure you check things out before publishing your game – in preview mode only you can see it so you can make sure it all runs well, reports stats, etc. before it goes public. If you have additional questions or issues that don’t get answered in the forums, hit up the Development Support option in the Contact Us page and we can answer more specific questions. EDIT: I’ve added the debugging documentation to the first page of this thread (though the formatting’s being a bit annoying). Thanks for suggesting that. |
|
|
I’m using the .FLA way after the mdx way diddnt work (it diddnt appear in componets) gonna try manual way after school. Whats with that examples? when i copy the whole code, libary and buttons, textboxes… it still wont work because getInstance() isnt used |
|
|
If your game uses MochiCrypt/Mochi Version control (or any other loader), this is how you can get the highscore-system working with Flash (ActionScript 3): Download the KongregateAPI component and add it to your component path or library (DON’T add it to the stage directly) . Add following code to for example ENTER_FRAME event (DON’T add this code to the constructor of the main MovieClip): var wrapper:DisplayObjectContainer = root; Now you can upload your swf to MochiAds and THEN uploaded the encrypted version to Kongregate. After this read the “Testing your API on Kongregate” section on this topic to see if your code works or not. Just got this working on http://www.kongregate.com/games/coollavagames/stack-up-fever |
|
|
I emailed Kongregate support and I got really helpful message back from a guy named Anthony, which said that you also have to manually specify your High score as “statistics”. So if you see that your scores are sent to Kongregate ok by your game, but you don’t see the high score tab, remember to add the “statistic” for the high score. |
|
|
how could i make use of these in my PHP/text and browser based game? |
|
|
hey if any one knows a good and free download that isnt just a trial period i could use one so if you could leave me a note wether in private message or just in forum i could use one my old one crashed |
|
|
Can somebody help me. i am having the same problem as the few above me. I CANNOT get this API to work. I’ve tried all the methods. And nothing works. |
|
|
Originally posted by coollavagames: thanx, this one almost helps! |
|
|
Sorry , i have a question , in my game LongShinTa:http://www.kongregate.com/games/ShellScripter/longshinta Main.kongregate.stats.submit(Main.playerName, score ); Where Main.playerName is the player name and score is the final score . My problem is : 1. Have i done all the necesary for submit score?? //Upload final score 2.If what i have done is all necesary,where can i check out the score?? (for common players) |
|
|
Is there a way to manually load the API? I’ve tried the traditional method using URLRequest but it doesn’t seem to work in a MochiCrypt/Version Control game. |
|
|
Originally posted by RedSpaceship: Originally posted by EugeneMailov:Originally posted by coollavagames: that said, the method needs a small change-instead of ENTER_FRAME put it in INIT. |
|
|
I’m having trouble with the scores api. I will try to use the stats api but I am unsure how to load a list of stats. |
|
|
I WAS using the Player Info service. |