Recent posts by Flashbacker on Kongregate

Flag Post

Topic: Kongregate / Philosophical Gaming

btw i didn’t mean to say that the NG list is bad or that such lists are bad in general. I was just wondering about some of the picks, because often i would have chosen something else. Fine with me, tho, it’s just a matter of opinion.

 
Flag Post

Topic: Kongregate / Philosophical Gaming

it would be nice to have additional tags or keywords to choose from – developers would select them, maybe also the players themselves. Recommendations would then be refined using those tags.

Is anyone using last.fm for music? Similar to that, their tag system works great.

ps. that NG selection is kinda odd…

 
Flag Post

Topic: Game Programming / Kong shared content not working [solved?]

not sure if i really figured any of this out, but for what it’s worth:
it seems the problem was that i loaded the kongregate api twice. That caused the following line to not work properly for some reason:

kongregate.sharedContent.addLoadListener(“myContentType”, myHandler)

it looks like this line isn’t just a simple event listener, it also determines the content type that Kong will accept, in this case, “myContentType”.

so, a valid URL for content sharing will end with:

?content=1234&type=myContentType&z

if some troll changes the type to YOURGAMESUCKS, a popup will show “This YOURGAMESUCKS could not be saved.”:

?content=1234&type=YOURGAMESUCKS&z

Note that said troll can still enter invalid content to mess your game up, so you may want to validate incoming data:

?content=YOURGAMESUCKS&type=myContentType&z

In my case, the Kong api didn’t register any content type as valid at all, so i got the “This myContentType could not be saved.” popup no matter what. If you try to share a content type directly via AS3 and Kong refuses it, nothing will happen at all.

 
Flag Post

Topic: Kongregate / Philosophical Gaming

And ofc:
passage-in-10-seconds
Now THIS is art!

 
Flag Post

Topic: Kongregate / Philosophical Gaming

maybe not really philosophical, but similar games:

Time Kufc
if you haven’t played it yet, play it now.

Today I Die
(can’t find this on kong)

Where We Remain
i didn’t get this one at all, but still ok to play.

 
Flag Post

Topic: Game Programming / Kong shared content not working [solved?]

ok i fixed it – I’ll post some details later.

 
Flag Post

Topic: Game Programming / Platformer levels (AS2)

google for “tonypa tutorials”.
He has some good AS2 tutorials for platformers.

 
Flag Post

Topic: Game Programming / Kong shared content not working [solved?]

ps. shared content seems to work fine with other games that were already released, like Hexiom.
i also tried removing my preview version and adding a new one, but it didn’t change anything.

Wut have i done?? I’m so clueless right now T.T

 
Flag Post

Topic: Game Programming / Kong shared content not working [solved?]

I’m using the shared content API with a preview version on Kongregate. Everything was already working fine – until yesterday.

Suddenly, the shared content API stopped doing anything when i make calls. The kongregate API object is there and i get all my traces, but nothing happens.
If i try to pass data as an URL, i get a pop-up saying “[data] could not be saved.”

Does anyone know what’s up with that?
Did i mess something up or is there a problem with Kong?

 
Flag Post

Topic: Game Programming / Object-oriented design patterns for games

check out the flixel engine as an example, it’s doesn’t use the timeline at all.

 
Flag Post

Topic: Game Programming / problem: as3 stats api with mochi version control

Originally posted by jonathanasdf:

and you sure on the options when you uploaded the game you enabled highscores

omg, that was it! i added the score, but i actually forgot to enable “Display on Leaderboards” as well…
Thank you very much for your help!

Well, now i feel kinda stupid, but i hope the info i posted will be usefull for some other people xD

 
Flag Post

Topic: Game Programming / problem: as3 stats api with mochi version control

nope, it just won’t show up >_<

link to the published game with ?debug_level=4
http://www.kongregate.com/games/Flashbacker/shellcore-command-beta-2?debug_level=4

submitting a score of 302, the output is:

 
[Konduit] handling message part # - 6, totalBytes 76, cursize 76
[Konduit] [Game->Chat]: stat.submit: {"stats":[{"value":302,"name":"score"}],"req.id":4}
[Konduit] MessageConnection.handleMessage ['stat.submit']
Object { flushlow=}
Object { statList=1}
[Konduit] Kongregate Packet[admin] stat.submit: {"success":true,"req.id":-1,"stats":{"33218":302},"resend":false,"msg.id":-1}

i’m currently spamming the score quite a lot, tho – it simply gets submitted whenever the game saves something, and that happens quite often. Sometimes, it gets submitted multiple times at once. Maybe Kong doesn’t like that? But i’m not actually getting any error reports.

I asked Kongregate support for help, maybe they know what causes the problem…

 
Flag Post

Topic: Game Programming / problem: as3 stats api with mochi version control

it’s still in preview mode.
but i got it working once in preview mode as well, no idea what i did differently then.

 
Flag Post

Topic: Game Programming / problem: as3 stats api with mochi version control

?debug_level=5 outputs even more stuff, but it seems to be mostly chat-related.

 
Flag Post

Topic: Game Programming / problem: as3 stats api with mochi version control

?debug_level=4 outputs a lot of stuff, for example:

[Konduit] [Game→Chat]: connect: {"caps":1,“chnl”:"_KongregateClient_1264790651658"}
[Konduit] MessageConnection.handleMessage [‘connect’]
[Konduit] Chat received connect from Game…
[Konduit] , isConnected=false, attemptingConnection=false
[Konduit] [Chat→Game]: connected: {}
[Konduit] sending message part # – 1, totalBytes 32, cursize 32
[Konduit] [Chat→Game]: hello: {"success":true}
[Konduit] sending message part # – 2, totalBytes 37, cursize 37
[Konduit] [Chat→Game]: user.info: {"user":“Flashbacker”,“auth_token”:“fc1ecdcbc26c97431569407268a7194f7eadc24ef8ec4fe6645fa5ffc678543b”,user_id
[Konduit] sending message part # – 3, totalBytes 140, cursize 140
[Konduit] Event received from JS: add_statistics
Object { eventReceived=Object}
Object { addingStat=Object}
[Konduit] Initializing statistic service!

[Konduit] [Game→Chat]: stat.submit: {"stats":[{"value":300,“name”:"score"}],req.id
[Konduit] MessageConnection.handleMessage [‘stat.submit’]
Object { flushlow=}
Object { statList=1}

 
Flag Post

Topic: Game Programming / problem: as3 stats api with mochi version control

Here’s some output that might be interesting for you guys if you plan on using the debug levels yourself:

?debug_level=3 outputs nothing but this:

[Konduit] Chat received connect from Game...
Object { addingStat=Object}
 
Flag Post

Topic: Game Programming / problem: as3 stats api with mochi version control

hm.. where can i see the debug information in firebug?

the console reports an error when loading the game, something like this:

< http://a.kongregate.com > does not have permission to access Location.toString from < http://www.kongregate.com >
http://www.plaxo.com/css/m/js/util.js
Line 1

does that have anything to do with it?
i once uploaded a test version named “a” and deleted it later, but i’m always getting this error message, even when loading someone else’s game…

edit: i also tried to upload my game without the mochi wrapper, but it doesn’t make any difference. Looks like it doesn’t have anything to do with mochi.

 
Flag Post

Topic: Game Programming / problem: as3 stats api with mochi version control

Nobody?
Maybe you can give me some tips on debugging…

As far as i know, if i add something like
?debug_level=4
to the URL of my game, debug information should appear in the chat window.

this isn’t working for me either. is there any other way to get more feedback from the kong api?

 
Flag Post

Topic: Game Programming / problem: as3 stats api with mochi version control

i couldn’t get this to work, so i did a few tests.
finally got the test version to work, then used the same method for the real game.
now it stopped working again T.T

can anyone give me some tips?

here’s the function i use.
this seems to be working, it connects and i can also get the Kong username.
but submitting scores won’t work anyway…

 
public function loadKong():void 
{
    //get mochi wrapper
    var wrapper:DisplayObjectContainer = DisplayObjectContainer(game.parent).stage

    // Pull the API path from the FlashVars
    var paramObj:Object = LoaderInfo(wrapper.loaderInfo).parameters;
    var api_url:String = paramObj.kongregate_api_path || "http://www.kongregate.com/flash/API_AS3_Local.swf&amp;#8221";

    // Allow the API to access this SWF
    Security.allowDomain(api_url); 

    //Load the API
    var loader:Loader = new Loader();
    loader.contentLoaderInfo.addEventListener(Event.COMPLETE, loadComplete);
    loader.load( new URLRequest(api_url) );
    wrapper.addChild(loader);
}

 
private function loadComplete ( event:Event ):void
{
    kongregate = event.target.content;
    kongregate.services.connect();
}

then, i use this to submit the score (i also added it to the statistics tab on Kong):

 
kongregate.stats.submit("score", score)

 
Flag Post

Topic: General Gaming / Looking for a free MMORPG.

you mean browser games or client games?

client games: DDO, Spellborn, Runes of Magic
Allods Online looks nice, but no beta yet.

 
Flag Post

Topic: Game Programming / Kongregate limits flash height

edit: Actually, yes – i just uploaded the game without Mochi Ads preloader, and now it’s displayed correctly. Oo
Hm, gotta figure out what’s up with that…

 
Flag Post

Topic: Game Programming / Kongregate limits flash height

Definitely. I disabled resize in my movie and have an icon bar at the bottom – kongregate cuts off that icon bar. The width is ok at 700 and everything is visible. It’s odd because there are many games with a much bigger height and it looks like they didn’t have any problems.

btw I’m using Mochi Ads preloader and encryption, maybe that has anything to do with it?

 
Flag Post

Topic: Game Programming / Kongregate limits flash height

My flash movie is 700×600, but the Kongregate wrapper limits the height to something like ~550 pixels. Any idea why that is? Height is not limited, is it?

 
Flag Post

Topic: Game Programming / achievements & challenges with as3?

neat, thx ^^

at first i thought only AS2 api supports that stuff…

edit: well, i took me 30min to figure it out…
the api descriptions are a bit misleading, most newcomers will probably be a bit confused, like me.
the flash tutorial made it clear, but i took me a while to actually find it..

 
Flag Post

Topic: Game Programming / Timer

you need an event listener for the timer, like this:

timer = new Timer(ticks, repeats)
timer.addEventListener(TimerEvent.COMPLETE, stopMyGame)
timer.start()

function stopMyGame(event:TimerEvent) {
//stop game because time ran out
}