Description

This extension is a wrapper for the backend services over at https://globalstats.io. Have a look at their site for a complete overview of all the nice online highscore services they offer!

This extension allows you to * upload scores for the players of your game, * load highscores and ranks of your players, * have anonymous players or players with a globalstats.io account, * allow linkage of a player in your game with his globalstats.io account if the player wants to.

And there is much more to come because the guys of globalstats.io plan to extend their services over the next months! I will update this extension as soon as the new services and their API become available.

The globalstats.io backend services are offered for free! This means online highscore services for your games for free!

This extension is tested with GameMaker:Studio 1.x and GameMaker Studio 2. You need to change one line for GameMaker Studio 2. It should work on all platforms as it is plain vanilla GML.

Feel free to contact me if you have any suggestions/feedback/improvements for this extension.

See the included sample game and readme file for instructions on how to use it.

End User Licence Agreement (EULA).

Changes in 1.2.0

Added new function/script getRankSection() which will retrieve your current rank plus the next 5 players that are better than you and the next 5 players that are worse than you. See the oSectionScoresController for details how to call and use the results.

Also minor fixes.

Version 1.2.0. Published February 22, 2017

Created with GameMaker: Studio v1.4.1763

Age Rating: 4+

Average Rating

Your review

You can only review assets you've bought.


Gravatar

Kerry O 11 July 2017

A Wonderful and Easy Solution

If you've ever wanted to add leaderboards to your Game Maker games--and you're not sure how to implement such things--this asset is for you!

The extension worked perfectly out-of-the-box for me; meaning I imported the files, compiled the game--and after playing the included demo game--was able to see the results. It felt like magic because the asset just worked!. After checking my score, I clicked to see the new getRankSection() function and saw firsthand how great it is to view the highscores above and below mine; it's a very efficient way to view your score when your game has hundreds of entries and you want an easy way for the player to see where they fall on the leaderboard. Very cool.

Globalstats.io is a great site, so download this, register for a free account, and feel like a wizard.

Thank you for this :D

Logo

Thomas Haaks (Publisher) 12 July 2017

Hi Kerry, thank you for the nice review! I hoped that the demo game would explain the features and it's usage just like you described! Goal achieved ;-)

This asset will surely be updated as soon as the globalstats.io guys add new features (like achievements, player data and so on).


Gravatar

Anonymous 18 June 2017

I have error

Hi
I have this error:
what is problem?

___________________________________________
############################################################################################
FATAL ERROR in
action number 1
of Create Event
for object oScoresController:

Push :: Execution Error - Variable Get 14.gsAccessToken(100024, -2147483648)
at gml_Script_gs_share (line 8) - if (oGlobalStatsIOController.gsAccessToken == noone) {
############################################################################################
--------------------------------------------------------------------------------------------
stack frame is
gml_Script_gs_share (line 8)
called from - gml_Script_sendHighscore (line 10) - gs_share(noone, oGlobalStatsIOController.playerNickname, values);
called from - gml_Object_oScoresController_CreateEvent_1 (line 4) - sendHighscore(global.CurrentScore);

Logo

Thomas Haaks (Publisher) 12 July 2017

Sorry for the late reply - seems I won't get an email if someone posts a problem here. If your problem still persists, please contact me via email and we'll work it out.
The error message does look like you're missing an object from import or modified some of my original code or added your code in the wrong place.
Try to import the asset into a new empty project and see if the included demo game works and then start from there to understand where you have to extend your own game.
Again, I can help you in a better way if you contact me via email.
Cheers,
Thomas

Package contents

Total size 78 KB

globalstats.io GM.extension.gmx 4.19 KB globalstats.io GM
Assets
datafiles Fonts Objects Rooms Scripts Sounds Sprites

What is the issue?

Back to Top