Simon Donkers's Game Maker site siteSimon Donkers's Game Maker site
Version: GM 5+6 Downloads: 2515 Example, Game Maker 5 and 6 compatible
Filesize: 10.1 kb Creative Commons License

Game update example

1/52/53/54/55/5 (12 votes)

A program which checks its version number with a version number online and updates himself if an update is available. This examples uses a DLL from VitalDragon (Marvin D.) The example works as follows. It first downloads a textfile from the server. From that file it reads the version number of the newest version of the game. If the version is higher then the internal version number then it will download the game/application from the URL within the downloaded textfile.


Downloading...

download now To download this file, please click here.



User comments

 Ravenheart posted at 2005-06-09 21:58:07Quote
Works like a charm :D
 Nosferatu posted at 2005-08-13 18:17:59Quote
Thats Amazing, luv it ;) Thank you.
 Edootjuh posted at 2005-11-12 09:41:50Quote
I got an ERROR:

Error is action number 1
of Mouse Event for Left Button
for object object0
Error defining an external function :S
 Simon Donkers posted at 2005-11-12 10:04:43Quote
Make sure the DLL is in the same directory as your game and that you have a registered version of Game Maker
 Edootjuh posted at 2005-11-12 10:12:25Quote
oh... never mind
i forgot to extract the dll, kinda stupid :-D
 Edootjuh posted at 2006-01-12 21:27:30Quote
How can I make the game ask to download the newer version?
 Simon Donkers posted at 2006-01-12 22:10:56Quote
"How can I make the game ask to download the newer version?"
For the GM6 version replace line 19 in the script init ('update(file_name);') with:

if show_question('A new version is available. Do you want to download it now?') then update(file_name);

That should add that function
 Edootjuh posted at 2006-01-13 19:13:41Quote
YAY!!! It works! Ty so much :)
 MattiN posted at 2006-05-09 00:56:01Quote
if show_question('A new version is available. Do you want to download it now?') then update(file_name);
That works Grate but....It still downloads the Version.txt and if you try update again it wont let you becuse of it thinks it already updated...
 MattiN posted at 2006-05-09 00:57:00Quote
How to make it dont download the txt if you klick no
 Væn Gamezz posted at 2007-01-13 16:32:41Quote
He show a message: 'An error occured while checking file version
Please try again at a later time'...
 Simon Donkers posted at 2007-01-13 19:31:57Quote
Check your firewall settings and allow the program internet access. Make sure you are connected. That error occurs when the program can't download the file version data from the server. That's a local issue with your system configuration.
 Roy posted at 2007-07-02 20:12:16Quote
Awesome updater Simon!
 mhm posted at 2008-11-16 09:50:41Quote
i think the text file doesnt exist anymore...

Reply

Name:
Site: