Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / Update Program and Restarting

Author
Message
blueFire
13
Years of Service
User Offline
Joined: 23rd Jan 2011
Location: North Carolina
Posted: 3rd Mar 2018 21:51
I am looking for a way to have a project created with AppGameKit check to see if a new version of itself is available (located on the internet) and if so download the new version, start the new version of itself then exit the old version of itself.

Basically I want the project to update itself.

What command would I use for this?

Jason
GarBenjamin
AGK Developer
7
Years of Service
User Offline
Joined: 30th Nov 2016
Location: USA
Posted: 3rd Mar 2018 22:59
A standard practice for this is to make a separate updater app. The shortcut for your main program would actually point to the updater app. The updater app runs... checks for updates for the main program downloads those then launches the actual main program and closes itself. You can go a step further and have your main program check for updates for the updater app download if there are.

You may have noticed this kind of thing happening with some games and browsers etc. Not always of course but is a common easy way
TI/994a (BASIC) -> C64 (BASIC/PASCAL/ASM/Others) -> Amiga (AMOS/BLITZ/ASM/C/Gamesmith) -> DOS (C/C++/Allegro) -> Windows (C++/C#/Monkey X/GL Basic/Unity/Others)
Markus
Valued Member
20
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 4th Mar 2018 09:47
see HTTP Commands, you can request version and download file
https://www.appgamekit.com/documentation/Reference/HTTP.htm
https://www.appgamekit.com/documentation/Reference/Core/RunApp.htm
AGK (Steam) V2017.12.12 : Windows 10 Pro 64 Bit : AMD (17.12.1) Radeon R7 265 : Mac mini OS High Sierra (10.13)
blueFire
13
Years of Service
User Offline
Joined: 23rd Jan 2011
Location: North Carolina
Posted: 6th Mar 2018 02:07
Quote: "see HTTP Commands, you can request version and download file
https://www.appgamekit.com/documentation/Reference/HTTP.htm
https://www.appgamekit.com/documentation/Reference/Core/RunApp.htm"


This was exactly what I was looking for.

Thanks.
PHeMoX
6
Years of Service
User Offline
Joined: 9th Jan 2018
Location:
Posted: 8th Mar 2018 13:28
Quote: "see HTTP Commands, you can request version and download file"


Just so I understand what command you are talking about here, you mean you would check the latest version by downloading a file from the server like for example 'gameversion.txt' and check its string that might read version 1.23 or something and use code in your game to compare whether this is an older or newer version?

Well, at least thats what I would do. On Android/iOS you can push updates automatically I think.

Login to post a reply

Server time is: 2024-11-27 14:46:10
Your offset time is: 2024-11-27 14:46:10