H
HanProgramer2000
Guest
Game Updater System 1.0
GM Version: studio 1.99.0+
Target Platform: WINDOWS
Download: DOWNLOAD
Links: n/a.
Screenshots: n/a
Summary:
this tutorial will teach you guys to make an auto updater app for your game! using dropbox as your game database.
Tutorial:
Game normally will update every times, each new updates means more features! so, today im gonna teach you guys how to make a cool self updating games!
the main function we're going to use is the
http_get_file(url, destination)
Description
With this function, you can connect to the specified URL in order to retrieve information in the form of a file. As this is an asynchronous function, GameMaker: Studio will not block while waiting for a reply, but will keep on running unless it gets callback information. This information will be in the form of a string and will trigger an Async Event in any instance that has one defined in their object properties.
This event will generate a "call back" which is picked up by any HTTP Events, in which case it will generate a ds_map (more commonly known as a "dictionary") that is exclusive to this event and is stored in the special variable async_load. This ds_map will contain different values depending on the data being returned, ie: the event will trigger multiple times as each packet of data is received so that you can show a progress bar, for example.
Simple Description:
this function will download stuff to the 'destination' argument
example:
http_get_file(dl.dropbox.com, "\download\game.ini") ; //must be "dl." and not "www. "
ini_open("game.ini");
ini_close();
so, the idea is:
download a file from the dl.dropbox.com/****** and just read the files a.k.a the ini_read_real(section, key, default_value) and if the current version, which is created when you launch the game is < update_version than it cause an update.
hope it'll help you guys.
GM Version: studio 1.99.0+
Target Platform: WINDOWS
Download: DOWNLOAD
Links: n/a.
Screenshots: n/a
Summary:
this tutorial will teach you guys to make an auto updater app for your game! using dropbox as your game database.
Tutorial:
Game normally will update every times, each new updates means more features! so, today im gonna teach you guys how to make a cool self updating games!
the main function we're going to use is the
http_get_file(url, destination)
Description
With this function, you can connect to the specified URL in order to retrieve information in the form of a file. As this is an asynchronous function, GameMaker: Studio will not block while waiting for a reply, but will keep on running unless it gets callback information. This information will be in the form of a string and will trigger an Async Event in any instance that has one defined in their object properties.
This event will generate a "call back" which is picked up by any HTTP Events, in which case it will generate a ds_map (more commonly known as a "dictionary") that is exclusive to this event and is stored in the special variable async_load. This ds_map will contain different values depending on the data being returned, ie: the event will trigger multiple times as each packet of data is received so that you can show a progress bar, for example.
Simple Description:
this function will download stuff to the 'destination' argument
example:
http_get_file(dl.dropbox.com, "\download\game.ini") ; //must be "dl." and not "www. "
ini_open("game.ini");
ini_close();
so, the idea is:
download a file from the dl.dropbox.com/****** and just read the files a.k.a the ini_read_real(section, key, default_value) and if the current version, which is created when you launch the game is < update_version than it cause an update.
hope it'll help you guys.