[PLUGIN] GameJolt API

Post your completed addons to share with the community

Post » Sat Feb 08, 2014 2:01 pm

Description:
This is a simplistic plugin implementing GameJolt API. It includes auth, achievement unlocking, and score posting, all with according callbacks.

Installation:
As simple as it goes - unzip folder to "Construct 2\exporters\html5\plugins" directory, and restart IDE. Plugin will appear under "Platform specific" category on next launch.

Usage:
Include GameJolt plugin into your project by adding an object of it (it is global, so you only need to do this once). Set up your game ID and private key in object properties (this data can be discovered on dashboard). Afterwards, add according events and actions where appropriate.
Note that while the plugin will automatically authenticate the user, it can take a second or two to do that, so for "first visit" actions you should use "Logged in" event.

Links:
Download: http://gamejolt.com/games/construct-2-a ... ion/21761/
Announcement blog post: http://yal.cc/gamejolt-api-for-construct-2/
Update 1 blog post: http://yal.cc/gamejolt-api-plugin-for-c ... ate-aug14/
Demo: http://gamejolt.com/games/other/constru ... emo/22058/
Demo source (.capx): http://gamejolt.com/games/construct-2-a ... /?os=other
GameJolt topic: http://gamejolt.com/community/forums/to ... -api/2867/
Twitter: https://twitter.com/YellowAfterlife
Support me: http://patreon.com/YellowAfterlife

If there are any questions, feel free to ask.
Last edited by YellowAfterlife on Thu Aug 28, 2014 11:29 pm, edited 2 times in total.
ImageImageImage
B
9
S
2
G
1
Posts: 25
Reputation: 5,056

Post » Sat Feb 08, 2014 3:42 pm

Don't worry about it.
If they're smart enough to be here, then they are smart enough to copy the urls and paste them into the browser.

Thanks for the plug.
Image ImageImage
B
169
S
50
G
169
Posts: 8,284
Reputation: 108,212

Post » Sun Feb 09, 2014 3:00 pm

Thanks!

You posted on my topic,and if you need any help in coding this plugin I'd be in touch for helping.

And so far, I've seen your work, and you're a very good and creative programmer.
B
8
S
4
G
1
Posts: 32
Reputation: 1,600

Post » Wed Apr 23, 2014 6:05 pm

Thanks.
B
156
S
27
G
17
Posts: 910
Reputation: 32,539

Post » Thu Aug 28, 2014 11:32 pm

Plugin has been updated to include score and trophy fetching functions, as well as Data Store functionality.

See blog post for details: http://yal.cc/gamejolt-api-plugin-for-c ... ate-aug14/

Downloads in posts and on GameJolt are already updated, as well as the demo (which now displays highscore table status and saves the score between sessions).
ImageImageImage
B
9
S
2
G
1
Posts: 25
Reputation: 5,056

Post » Thu Aug 28, 2014 11:46 pm

Data store is awesome!
Thankyou!
Image ImageImage
B
169
S
50
G
169
Posts: 8,284
Reputation: 108,212

Post » Sun Aug 31, 2014 4:47 am

Awesome plugin, thank you for putting it together! Couple questions I couldn't find the answer to by looking at your blog posts:
- When I try to use the Set guest name action, it just shows up as {0}, no option to set what you want the guest name to be.
- Also, how how do you handle logging a player in? I see the "Is Logged In" and "On Login" conditions, but no way to let a player log in. (I probably just don't understand Game Jolt well enough yet, just started using it about 30 minutes ago)
B
4
Posts: 8
Reputation: 222

Post » Sun Aug 31, 2014 10:33 pm

DJFreshToast wrote:- Also, how how do you handle logging a player in? I see the "Is Logged In" and "On Login" conditions, but no way to let a player log in. (I probably just don't understand Game Jolt well enough yet, just started using it about 30 minutes ago)
If your game is uploaded to GameJolt, player will be logged in automatically on game start.
You can also simulate the effect by adding your name and token into local testing URL like so:
Code: Select all
http://localhost:50000/?gjapi_username=NAME&gjapi_token=TOKEN
Otherwise there's a User - Auth action.
I should probably rename it to "login".
On-site docs kind of vary in terms and I mostly used them for naming actions.

DJFreshToast wrote:- When I try to use the Set guest name action, it just shows up as {0}, no option to set what you want the guest name to be.
Oh. I had an impression that I have fixed that before release. Seemingly not!
It's supposed to have a "name" parameter.
You can get around that until I upload a new version by using "Auth" action with "user token" argument left as a blank string.
ImageImageImage
B
9
S
2
G
1
Posts: 25
Reputation: 5,056

Post » Mon Oct 12, 2015 10:22 pm

Thanks for this plugin @YellowAfterlife
Image
B
22
S
5
G
2
Posts: 65
Reputation: 1,724

Post » Fri Aug 05, 2016 3:57 am

How do I preview the gamejolt plugin? I made a Gamejolt login thing but it won't let me log in.
*Insert Signature here*
B
13
S
5
Posts: 73
Reputation: 1,090

Next

Return to Completed Addons

Who is online

Users browsing this forum: No registered users and 3 guests