Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Auto Updater


Marsh
 Share

Recommended Posts

Download: http://www.freemmorpgmaker.com/Updater/Auto-Updater.zip

I know a few people have been looking for a auto updater, and i need more c++ practice so i made one. It doesnt have a really fancy GUI or anything but it gets the job done fast. Here is a tutorial on how to get it working.

Unzip these files into your games client folder.
When you unzip the auto updater you will have 3 files. currentversion, newversion and config.

Lets Start with Data.txt. This file contains all the information that the updater needs to run your game.

**Data.txt**
![](http://www.freemmorpgmaker.com/Updater/1.jpg)

Line 1: The Name of your Game
Line 2: Enter the complete url to where all your files will be located
Line 3: What file should it run when its done. Aka your Game filename.

Enter those values and save it. Then leave that in the same folder as the updater and your game. So your client folder basically.

**CurrentVersion.txt**
![](http://www.freemmorpgmaker.com/Updater/2.jpg)

The correct syntax is

folder/filename.extension
version#

This file is where the updater looks to see the versions of each file. For Example. It will read that tiles.bmp goes into the gfx folder and is currently version 1\. Client exe has no folder. So it will go beside the auto updater in your main client folder. Note that you must also have a gfx folder in your updater folder on the web.

**NewVersion.txt**
![](http://www.freemmorpgmaker.com/Updater/3.jpg)

The correct syntax is

folder/filename.extension
version#

This is basically the same as current version. This is the file that you will upload to the directory that you indicated in your data.txt above. It will check the current version file on your hard drive with the newestversion file on the web. It will then see that you have version 1\. The newest is version 2\. So it will proceed to download the files.

**Files**

But wait? what files.

You better upload them.

![](http://www.freemmorpgmaker.com/Updater/6.png)

You will note that my tiles.bmp and sprites.bmp are in my gfx folder and my mainmenu is in my gui folder.

Now it will do all the checks and download your files.
![](http://www.freemmorpgmaker.com/Updater/4.png)

Then it will run client.exe or whatever filename you specified in your data file.

Running the client again will show.

![](http://www.freemmorpgmaker.com/Updater/5.png)

Note that these windows will run your game and  disappear when done. So you may only see them for a second or not at all. I suggest making these your Game Client since it will dissapear and run your game when done and your users will always stay updated.

This might look complicated but it is honestly the simplest auto updater you will ever find.

currentversion is your current version numbers
newestversion is your new versions
data contains your info.

3 files and double click to download. A tutorial isnt even needed its pretty self explanatory.

I cant stress this enough. Every file name is CASE SENSITIVE.

Good luck. Its brutally simple. Just looks complicated in the tutorial.

[Edit]

i am working on other projects and i wont be updating it.

here is the source, you must leave a link to this website in the running program and not release the source as your own.

http://www.freemmorpgmaker.com/AutoOopdata
Link to comment
Share on other sites

  • Replies 172
  • Created
  • Last Reply

Top Posters In This Topic

Hmm, you should also consider allowing some external source of adding a GUI of some sort. You could create the default one and others that use this auto updater could use yours as a template. That way it adds a bit more of customization for their game. It looks great though, very clean and basic.
Link to comment
Share on other sites

The Application has failed to start because of a side by side configuration is incorrect. Please check the application event log for more detail.

thats what i get when i click the auto updater.exe

I copyed everything in to the client folder, and uploaded everything to my webserver.

Also im not hosting the game on my computer, my friend is hositng the game on his, and asked me to use my webhost for the autoupdater.

Also the Client.exe is called FH RPG.exe for me, so i changed client.exe in data/new/current files to FH RPG.exe

What am i doing wrong?
Link to comment
Share on other sites

I saw some poeple on the internet complaining about this error with c++ programs. Are you in debug mode?, you on vista? Anyone else run it? ill try to recompile if someone else gets a error.

Try this one?

www.freemmorpgmaker.com/Updater/Auto-Updater.exe
Link to comment
Share on other sites

rofl , and what happened to the chinese and the strange beeping? :icon_beer:
btw marsh, dont dynamically link to the MFC/CLR/CLI , change this to static linked, see if that works.
you might also want this :
vcredist_x86
Link to comment
Share on other sites

@V-Rage:

> Dont dynamically link to the MFC/CLR/CLI , change this to static linked, see if that works.

http://www.freemmorpgmaker.com/Updater/Auto-Updater.exe

Ok, should work now :P, sorry guys still learning c++. Can someone try to open it. Or redownload the full zip above.

Chinese etc went away :P

@Sweet:

> stupid question but ,
> so the updater downloads it from the web? and not from the sever?

Yes it downloads from a website.
Link to comment
Share on other sites

It works perfectly now guys, marsh got all the bugs fixed with it :) possibly the best AU for eclipse! Awesome work marsh!

Edit*
As a standalone updater it works fine, but to add new files, not already defined, can cause some minor problems.
Link to comment
Share on other sites

  • 2 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share


×
×
  • Create New...