The Daily Click ::. Forums ::. Klik Coding Help ::. How to auto-update games?
 

Post Reply  Post Oekaki 
 

Posted By Message

Smirnoff



Registered
  14/05/2009
Points
  356

VIP MemberI am an April Fool
17th October, 2009 at 03:37:40 -

People have told me to add an auto-updater to my games in the What Happens Next? series. Ok, I say. How do I do that? I just want to have a single file that will access all of the game's episodes. How do I load other applications into a single app? Thanks.

 
Image

UrbanMonk

BRING BACK MITCH

Registered
  07/07/2008
Points
  49667

Has Donated, Thank You!Little Pirate!ARGH SignKliktober Special Award TagPicture Me This Round 33 Winner!The Outlaw!VIP MemberHasslevania 2!I am an April FoolKitty
Picture Me This Round 32 Winner!Picture Me This Round 42 Winner!Picture Me This Round 44 Winner!Picture Me This Round 53 Winner!
17th October, 2009 at 03:49:49 -

Make one program the accesses your server(You'll need a server) then every time it starts it'll check to see if there is an update. If there is it'll give the option to download it. After the update check is done it'll bring up a menu that lets someone start the episode of their choice. That way you can keep the game how it is, and each episode has it's own executable.

 
n/a

Smirnoff



Registered
  14/05/2009
Points
  356

VIP MemberI am an April Fool
17th October, 2009 at 04:13:17 -

Thanks, but what do you mean by sever? Does anyone have an example?

 
Image

Dr. James MD

Addict

Registered
  08/12/2003
Points
  11941

First GOTW AwardSecond GOTW AwardThird GOTW AwardPicture Me This -Round 26- Winner!
17th October, 2009 at 04:38:46 -

One of the easiest ways is to upload a file with a version number stored on it.

If the game detects no version file; download an updated game.
If the game detects a version file but the downloaded version number (use the ini object for an easy way to check values) is the same as the version in the game; do nothing.
If the game detects a version file but the downloaded version number is the lower the version in the game; download an updated game.

You basically just need an FTP server. Which would store both the version file and the game exe. You couldn't use Mediafire or any file sharing stuffs.
On the MMF2 side of things you just need the Download object, anything that unzips a compressed file and the Ini object.

(there are many ways of doing this btw)

 
Image
http://uk.youtube.com/watch?v=j--8iXVv2_U
On the sixth day God created Manchester
"You gotta get that sand out your vaj!" x13
www.bossbaddie.com
   

Post Reply



 



Advertisement

Worth A Click