Chat.AddEventListener
I am new at HTML programming and I am wondering how to use the statistics API. I looked at the docs at https://docs.kongregate.com/reference#client-api-stats-submit, but when I try to use them, the game that I made breaks. How do I fix it?
Posted by ssddf111 8 months ago
A game that I want to add to Kongregate is based on Python's game making module Pygame. Can Kongregate run games coded in python? Does Kongregate also host multiplayer naively or do I need another server for multiplayer?
Posted by Project Interspace 8 months ago
Hello. I have a problem where my statistic is only updated if the option "display in leaderboard" is checked. I want it to update it without showing it to the player, as it is not a number players should compete for, just a variable which value I want to retrieve in later sessions. Regarding cookies, I don't want to use them as their behavior is inconsistent across browsers. Also, saving in statistics has the plus advantage of players being able to save their value permanently.
Posted by Gustavo Araújo 9 months ago
I am looking to add a way to purchase an in game currency called Diamonds in my game. I Just want 1 option to spend 10 Kreds to gain 1500 Diamonds. I am using Construct 3 which allows JavaScript. Currently: I load Kongregate API I have Auth stored in 'token' I have Username stored in 'username' On click this runs (Nothing happens when I test it on my Dev account) kongregate.mtx.purchaseItems(["1500 Diamonds"], onPurchaseResult); function onPurchaseResult(result) { console.log("Purchase success:" + result.success); diamonds = diamonds + 1500; } Looking for any guidance as to where I should go from here. I have been through docs.kongregate a lot and can't really piece it together. A snippet of JS code would help me the most as I could reverse engineer it to fit into my Game. Anything is helpful though.
Posted by Tyler Simpson 10 months ago
Hello! I've just started developing a game using Processing (https://processing.org/) and I would like to upload it eventually. It's base language is Java. However, I did not find a way to make this possible. Is there an easy way to publish my game when I finish it? If there is not, then I will move to another developing language, so is there any advice on where to go to?
Posted by Gustavo Araújo about a year ago
Bem sei que não esta em inglês , mas eu torço para que alguém me ajude, chego até implorar que alguém me ajude. Depois de anos eu lembrei do site Kongregate por causa do SAS:4 na steam, o que me fez lembrar imediatamente da minha infância, onde eu jogava durante dias jogos nesse site. Não vou enrolar falando de toda a minha infância que passei nesse site, por isso vou direto ao ponto. Não tenho mais a minha conta no site que é "mykaehl" que no caso é meu nome: Mykaehl Albino Prochnow Silva, Brasileiro do parana. Estou abalado por perder a conta em que passei quase toda a minha infância jogando, onde nela estava logado o e-mail da minha mãe que foi a unica coisa que eu tenho dela depois da mesma ter fugido de casa roubando meu pai,minha tia e também seu chefe deixando nossa familia em dividas até hoje. Queria muito poder falar os sentimentos que eu tenho nessa conta. Posso falar sobre os jogos inúteis que tanto joguei como red crucible 2 "quando erra na versão antiga" strike force heros, um joguinho de ragdoll que não lembro o nome, dezenas de games que posso lembrar. Sei o e_mail que esta registrado, só que o grande problema é que eu NUNCA entrei nesse email, já que é da minha mãe. Nunca mais nos falamos depois dela ter me deixado, mas eu tinha o email, e como um idiota eu vinculava contas nele sem saber a senha "Na época eu não sabia o que realmente era um e-mail já que era pequeno" Até contatei minha mãe para tentar entrar, mas depois de tantos anos ela já não se lembra mais a senha. Posso falar o email, até chutar perto a senha, mas não consigo descobrir de forma alguma a senha. Sei que provavelmente não posso ser ajudado, mas eu ainda tenho esperança que ainda assim acha um modo de eu recuperar todos esses anos que eu vivi nesse site. Podem me fazer perguntas sobre a conta, posso mandar fotos do meu RG para mostrar que realmente é meu nome, eu posso provar de alguma forma que essa conta é minha? posso até sitar as poucas palavras que eu digitei no chat do site. Pss: Por favor alguém me ajuda.
Posted by Mykaehl about a year ago
So I'm creating a Unity 2D game, and I want to know what kind of license I should have in order to post to Kongregate, Google Play, Steam, etc. I'm seeing licenses on github, (Apache License 2.0, GNU General Public License v3.0, MIT License, etc) but I'm not sure what to put the game under in order to distribute the game over multiple marketplaces and still keep the game in my own hands (ie no one steals the code and redistributes the game elsewhere). Any information on this would be very helpful. Thank you.
Posted by Jim Strange about a year ago
There is a game you host called the trail. No one respond to the support questions. Could congregate take ownership of a possibly a banner game with hope to finish developing it and make it so people can actually finish the objectives the game starts out with? This game is fantastic and people love it, so why cant you help players become more satisfied?
Posted by Kayla carroll about a year ago
I have a game developed which works with cookies, so it can maintain sessions on our own backend. It works perfectly on Mobile, and also if I run it on WebGL outside of Kongregate. When on Kong, in preview mode, it fails to retain a session. My best guess is that it's due to CORS. Following this guide (https://medium.com/@alexishevia/using-cors-in-express-cac7e29b005b), I enabled the 'Access-Control-Allow-Credentials: true' from my server (and can see it in Postman), but it requires a change on your side, which of course I cant do... Any suggestions or help you can give me?
Posted by Gaston Claret about a year ago
I load kongregate_api script in the head of the html document like this <script src='https://cdn1.kongregate.com/javascripts/kongregate_api.js'></script> Then loading my main.js script that contains these lines console.log(window.kongregateAPI); window.kongregateAPI.loadAPI(function(){}); The error message; SyntaxError: An invalid or illegal string was specified --- kongregate_api.js:36 console.log returns and object so i think it loads the script successfully.
Posted by Mertcan Çezik about a year ago
Hi, I'm trying to work the microtransactions API into my game Quepland. It's written in C# using Blazor, but I have been using Javascript interop to call the Kongregate API for submitting high scores. When trying to do the same thing with mtx.purchaseItems, however, nothing happens. I don't get an error, and the callback function does not get called. Console.log calls work before calling mtx.purchaseItems, but none are called after. The closest issue I can find is that Unity WebGL games sometimes failed to run callbacks using code from the documentation. Given that I don't get an error, I'm not sure where to look to fix this issue. The code I'm using is literally copied and pasted from the Javascript docs, replacing "sword" with an identifier string. I've pasted a copy below. The second log call is never called, but no error is produced in the log. purchasePet: function (petIdentifier) { console.log("Purchase requested for " + petIdentifier); window.parent.kongregate.mtx.purchaseItems([petIdentifier], onPurchaseResult); console.log("Post Purchase Requested"); },
Posted by Luke about a year ago
I am trying to follow the guide for Unity API and Application.ExternalEval is obsolete and I cannot use it. How should I load the Kongregate API now that this has changed? I am sorry if this is easy, I am pretty new to coding.
Posted by Michael E Myers about a year ago
My game was made on unity and I have no idea how to add the High Scores thing into my game. The game itself has an in game high score but I would like that to show up in a high score tab on kongregate. Thanks
Posted by Peter Mallia about a year ago
Hi, I'm just wondering about a slight discrepancy between two pages on the site. The Terms & Conditions of the Monthly Contests - https://www.kongregate.com/monthly_contest_rules - says: `(2) Submission must be integrated with the Kongregate Statistics API as of the end of the Contest Period.` However the Kongregate Submission Checklist - https://docs.kongregate.com/docs/submission-checklist-1 - says : `Statistics Initialized stat is being submitted. ... Note: As this may modify the game's rating, any games using this service will be excluded from monthly contests.` How does submitting Stats modify the game rating? I'd like to enter the contest on a recent submission to the site, but given this conflicting information I'm not sure how to proceed. Cheers!
Posted by Ashley 2 years ago