Author Topic: Autoupdater for your game  (Read 7899 times)

Offline Moru

  • Administrator
  • Prof. Inline
  • *******
  • Posts: 1748
    • View Profile
    • Homepage
Autoupdater for your game
« on: 2009-Jun-28 »
I made a simple example of how to make your game auto-update itself, I don't know how it is working on vista or whatever, only tried it on XP.

Simplified it does this:
  • Check what version is on the webserver (downloads a small .txt file)
  • Is it newer than what the game is?
  • Download the new .exe-file
  • Create a batfile that swaps this new exe-file for the old one and renames the old to keep a backup
  • Run the batfile that deletes itself and runs the new exe after it's done

Ofcourse it first asks the user for permission to access the net.

Code can be found on my homepage.

Offline Hemlos

  • To boldy go where no pixel has gone before!
  • Global Moderator
  • Prof. Inline
  • *******
  • Posts: 1577
  • Particle Hawk
    • View Profile
    • Silver Volumetric Software
Re: Autoupdater for your game
« Reply #1 on: 2009-Jun-28 »
I made a simple example of how to make your game auto-update itself, I don't know how it is working on vista or whatever, only tried it on XP.

Thats a huge accomplishment for online gaming my friend!

I did make a version checking program last year, the 3d font thing...works good accessing a txt file on the net.

 :nw:
« Last Edit: 2009-Jun-28 by Hemlos »
Volume_of_Earth(km^3) = 4/3*3.14*POW(6371.392896,3)

http://silver.binhoster.com/

Offline amarliani

  • Mr. Polyvector
  • ***
  • Posts: 115
    • View Profile
Re: Autoupdater for your game
« Reply #2 on: 2009-Jun-28 »
IOU at least a beer... This saved me a huge amount of time, thanks a lot!