Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

How to Write an Updater...

Tdata

Sponsor

I was wondering if anyone around here knows how to write an updater program that functions like WoW's or DDO's.

What I am asking for, at least I think I am, is the method to write a 'bootstrapper'... I need to know how to write an update program that allows me to Download any updated files from a webserver and update the files in the current directory...

What this entails is downloading an update file, most likely an XML file, Look at the file for the Filename and version number, download whatever doesn't match. I need the updater to be a part of the application I am writing rather than as a separate app.

Now, I know I can compile and run an updater directly from the base application, but that still allows for the possibility that the updater will not run and the application will error.


As a side note: Is there a way to ad a version number to non-compiled code? A FlatFile for example.
 
Well for a way to know which files need to be updated, you can for example easily do a md5 hash on every file and if the md5 hash doesn't match with the file on disk and file on server then update it, this will also make your game a bit less hackable. :)
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top