gms_update_check
Usage: gms_update_check ( )
Description
Returns whether an update is available. Returns -1 hasn't been received.
Example
//Start update if there is one
if(gms_update_check())
{
gms_update_start();
}
Replies (13)
Last message on 10 Aug 2019
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.
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.
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.
Dropbox is https, I used dropbox too before but it didn't worked.
I used weebly.com, Just created a free website and uploaded my file.
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 ;)
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
if(gms_update_check())
{
fms_update_start(); // fms???? <------- do you mean gms ?
}
:)
Size43
(Administrator)
on
22 Mar 2015, 19:15:48
Thanks, fixed!