Usage: gms_update_check ( )


Returns whether an update is available. Returns -1 hasn't been received.


//Start update if there is one


Replies (13)

Last message on 10 Aug 2019

NastyBowser on 17 Jan 2016, 22:39:59
What does it mean when it returns 0? Does that mean true? I'm having trouble updating my game.
Size43 (Administrator) on 18 Jan 2016, 17:19:06
0 means there is no update. Please keep in mind the version you've set on the site must be higher than the version that was set in gms_settings.
NastyBowser on 18 Jan 2016, 17:20:53
The version I set on the site is 1.1 and the version on the game is set to 1.0. I do not know why this is not working. I can send a copy of the g.81 file and the .exe.
NastyBowser on 19 Jan 2016, 04:26:42
UPDATE: GMS is detecting that the version is different now, but It just ends up freezing the game when trying to update. Maybe just takes a while to download, but I don't think this is supposed to happen, especially since the download is ~5 MB. Any tips?
Size43 (Administrator) on 24 Jan 2016, 20:45:49
Where are you hosting the file? The extension does not support https downloads.
NastyBowser on 24 Jan 2016, 21:51:56
I'm using Dropbox direct download link.
amkgames on 31 Jan 2016, 13:13:45
Dropbox is https, I used dropbox too before but it didn't worked.
I used, Just created a free website and uploaded my file.
NastyBowser on 26 Jan 2016, 01:53:20
I'm hosting my own HTTP server now and the ports are forwarded correctly, the game just displays "Updating game..." with a loading bar that never increases. Link:
Size43 (Administrator) on 2 Feb 2016, 11:13:19
Your download link isn't working for me either. The download script is quite basic, I'm not sure it is able to handle requests that don't use a hostname. (It might, I'm not sure but it'd explain why it's not working) -- I'd go with amkgames' advice ;)
Gigabite on 5 Aug 2019, 03:06:07
I can't get the update system to work. I've tried a couple different places to host the file from, however I continue to only get a -1 return when I run the gms_update_check script. How do I fix?
Size43 (Administrator) on 10 Aug 2019, 22:03:32
What version did you set in gms_settings and on the site?

When are you running gms_update_check?
Ajay on 22 Mar 2015, 14:45:39
Hey Bro, Your Spelling Mistake in Example. :)

//Start update if there is one
fms_update_start(); // fms???? <------- do you mean gms ?

Size43 (Administrator) on 22 Mar 2015, 19:15:48
Thanks, fixed!