Chaos Project

Game Development => Sea of Code => Topic started by: PhoenixFire on August 09, 2013, 11:27:42 pm

Title: [Request] Client Updater
Post by: PhoenixFire on August 09, 2013, 11:27:42 pm
So, I just spent almost an hour on Bing/Google looking for information on how to code up a game client updater, and I came up with nadda. Does anyone know how to do this? I know Gameus made one a while back, and what I want is almost identical to this: The thread about Remexos Launcher and Updater (http://forum.chaos-project.com/index.php/topic,13057.0.html)

Thoughts, information, et cetera?
Title: Re: [Request] Client Updater
Post by: G_G on August 10, 2013, 12:55:11 am
I feel the easiest way to do this is would be in a .NET language. That's what my launcher was made in. Here are your requirements.

-Need a host to store the version file and the updated files of your game
-Rather than having a shortcut to your game, have it linked to your launcher
-Launcher compares version file stored locally, compared to one stored remotely (the local one can be in the registry, or just a file in the AppData folder, up to you)
-If version is outdated, then launcher simply downloads new files.

Now, if you're asking for code, this is what I recommend googling.
"how to download files with *insert language here*"
"how to save files in appdata/registry with *insert language here*"
"how to read/write files with *insert language here*"

An updater is actually really simple to create. A lot of it is just Streams. Streams for files and remote files, transfering/reading/writing bytes from these streams. If you know how to work with I/O then you're pretty much good to go. It's just a matter of getting the code done yourself. I'll see if I can't find my old, old updater from a personal project awhile ago and I'll share the code with you.
Title: Re: [Request] Client Updater
Post by: PhoenixFire on September 05, 2013, 09:20:49 am
Thanks Ronnie, any update on that old code? Another thought I had on it, is that I currently have all my download files stored on SkyDrive. Think that would be a doable option, or do you think I would need to find a new file server?