The Daily Click ::. Forums ::. Klik Coding Help ::. Patching System
 

Post Reply  Post Oekaki 
 

Posted By Message

Jason Orme

Using Klik Products Since 1998

Registered
  24/05/2002
Points
  960

VIP Member360 OwnerWii OwnerAttention GetterThe Cake is a LieCardboard BoxHero of TimeI'm a Storm TrooperI'm on a BoatIt's-a me, Mario!
Sonic SpeedMushroomStrawberryI like Aliens!PS3 OwnerTurtle Power!I am an April Fool
29th May, 2008 at 11:22:44 -

Hello all, hope all is well.

Trying to keep this simple..

Many MMORPG's patch on running the game, is there a way to make a game search for a new version when it runs (from a title screen etc) and downloads the appropriate files?

 
www.jsofts.com

-Nick-

Possibly Insane

Registered
  24/11/2002
Points
  2468

VIP Member
29th May, 2008 at 11:57:48 -

I've never done it before. But i imagine you set up a database with Version number and download location information. When the game loads it compares it's version number with the one in the database and if it's different it connects to the download location and downloads the update. All you hve to do is update the database with the new info when you fix the game.

I've never done this though, this is just how i'd approach it.

 
Project: Roller Coaster is on it's way!
http://www.projectrollercoaster.co.uk/
http://www.craftsncreatures.com

Dr. James MD

Addict

Registered
  08/12/2003
Points
  11941

First GOTW AwardSecond GOTW AwardThird GOTW AwardPicture Me This -Round 26- Winner!
29th May, 2008 at 11:57:51 -

Use the download object, store the current version number on your site (or wherever) in a basic text file. Have the download object pull down the site version number, compare the games version (can also be stored externally) and if the site number is greater than the game > download updates. I use this one in my current project.

Alternatively you could have a series of strings for the latest file locations on your server, and at first the game downloads that and checks if you have the files. If not then it'll download the ones its missing. This would probably be quite useful if you're running a lot of external files.

There are a few ways of going about it really. Also: I'm tired.

Image Edited by the Author.

 
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

aphant



Registered
  18/05/2008
Points
  1242
29th May, 2008 at 17:06:59 -

On a related note, how would a patch be made and employed?

 

Dr. James MD

Addict

Registered
  08/12/2003
Points
  11941

First GOTW AwardSecond GOTW AwardThird GOTW AwardPicture Me This -Round 26- Winner!
29th May, 2008 at 17:19:45 -

Depends on the game. [Theory] You could have the old game download an updated .exe file, it then renames itself to something random, renames the new .exe to the corrent name and deletes the old .exe. But I don't think Windows lets you play around with files like that whilst they're running.

A secondary update.exe app would work best. It just checks your file version with a database or value stored on your server/hosting and then downloads and replaces the games .exe.

 
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

Jason Orme

Using Klik Products Since 1998

Registered
  24/05/2002
Points
  960

VIP Member360 OwnerWii OwnerAttention GetterThe Cake is a LieCardboard BoxHero of TimeI'm a Storm TrooperI'm on a BoatIt's-a me, Mario!
Sonic SpeedMushroomStrawberryI like Aliens!PS3 OwnerTurtle Power!I am an April Fool
30th May, 2008 at 07:43:22 -

Thanks for the replies.

Any other methods are more than welcome

 
www.jsofts.com
   

Post Reply



 



Advertisement

Worth A Click