[FIXED] How to 'connect to Kongregate servers' ?

Discussion and feedback on Construct 2

Post » Wed Mar 16, 2016 12:29 pm

Hello all,

I have a game on Kongregate and I can't find out how the badges work.
I added the 'statistics' in my game and in the upload page. But the guy from Kongregate tells me the game wasn't connected to their servers. And he gave me this link to see if it can help:

http://developers.kongregate.com/docs/api-overview/as2-api

Does it ring a bell to someone.
I see no 'server connection' event or something in the Kongregate plugin in C2. I'm a little lost. ^^

Anyone already added badges to their game with a contruct2 game?
Last edited by KaMiZoTo on Thu Mar 17, 2016 5:23 pm, edited 1 time in total.
B
72
S
21
G
12
Posts: 314
Reputation: 12,116

Post » Thu Mar 17, 2016 5:22 pm

Found the solution thanx to @Anata :)
So, in order to connect to the api, we need to manually add under the 'HEAD' line in the index.html :

<script src='https://cdn1.kongregate.com/javascripts/kongregate_api.js'></script>

It will load the api as the plugin doesn't do it by itself. (I don't know why)
Hope that helps other people!
B
72
S
21
G
12
Posts: 314
Reputation: 12,116

Post » Thu Mar 17, 2016 5:56 pm

@Ashley - just a tag because this is an officially supported export option.

Edit: good fix - thanks for posting this!
A big fan of JavaScript.
B
76
S
20
G
73
Posts: 2,242
Reputation: 45,958


Return to Construct 2 General

Who is online

Users browsing this forum: SB Interactive and 4 guests