GameMaker (all)
Icon

WebAPI

The-any-Key

You must be logged in to obtain assets

Description

(Enable SUBTITLE in video)

Sales: 80

This is a WebAPI that allow you to create a online user database for your game (backend). Setup buttons will create the tables and fields in your mysql database on your webserver (homepage). The players can register, validate their email and login with this API. You can also save data to the database and load it cross platforms. Ex the user save data in your game on an android device and then load the data on the PC version of your game. Users can also upload files.

Works on GMS1.4 and GMS2. Should work on all platforms. Note that in GMS2 the demo only works on Windows target due to the deprecated "get_string" function.

New feature: Global variable save/load. Can be used to save attempts and win counters for games. If a player try a level you can count up a value +1. When a player win a level you can count up another value +1. Then you can grab the try value ex say the level has been played 10000 times worldwide but only 1000 has finish it. This means your level have a success rate of 1000/10000=10% of the total players worldwide. You can then see how difficult the level was worldwide.

You can have unlimited amount of rows and 30 counter in each row for you to play around with.

Here is a complete list of features:

Public features:

  • List high-score
  • High-score count entities
  • Load user share data (user can share data with each other)
  • Get active users (check how may is "online" and playing your game right now)
  • Get total users count
  • Download files (http_get_file)
  • Get external IP
  • Save var
  • Load var
  • Get user list
  • Get UTC time
  • Load public var (for public quests and messages)

Login features:

  • Register with email validation
  • Login
  • Forgot password reset email
  • Delete user account

User features:

  • Save user data
  • Load user data
  • Save high-score
  • Load high-score (get points and rank)
  • Change password
  • Change username
  • Save share data (for the public)
  • Upload files
  • Upload files via web browser
  • Check if file (ex uploaded file) exists on server
  • Server curl upload (web-server to web-server upload)

You need:

  • Ordinary web-server (homepage) http server (ex Apache) with a PHP version 5.6 or above.
  • MariaDB, mysql 5.5 database or above on your web-server (homepage).

Forum: https://forum.yoyogames.com/index.php?threads/webapi.27163/

UPDATE: To update, replace the PHP folder on your host. You can rename the Config.php and put back most info into the new config file.

End User Licence Agreement (EULA).

Age Rating: 4+

Versions

GMS1 - Version 1.2.1. Published April 18, 2018

1.2.1: Fixed lost password mail bug. Added 4 and 5 mail configuration to use PHPMailer 6.0.5

GMS2 - Version 1.2.3. Published July 4, 2019

Security fixes. Just update the PHP folder.

GMS2.3 - Version 1.2.4. Published August 2, 2022

Fixed deprecated code. Added latest PHPmailer as option 7

Loading, please wait

Package contents

Loading, please wait

What is the issue?

Loading, please wait