Marsh Posted May 3, 2009 Author Share Posted May 3, 2009 Download: http://www.freemmorpgmaker.com/Updater/Auto-Updater.zipI 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 GameLine 2: Enter the complete url to where all your files will be locatedLine 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 isfolder/filename.extensionversion#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 isfolder/filename.extensionversion#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 numbersnewestversion is your new versionsdata 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 More sharing options...
LinuZ_ Posted May 3, 2009 Share Posted May 3, 2009 Really nice. I love the logic behind it.I thought of something similiar, I think I will code in this in my client with similiar logic! Link to comment Share on other sites More sharing options...
jna Posted May 3, 2009 Share Posted May 3, 2009 This is awesome. It will surely stop many people from asking for an auto updater. Link to comment Share on other sites More sharing options...
Homicidal Monkey Posted May 3, 2009 Share Posted May 3, 2009 perfect for 3.0\. Although instead of updating gfx, it could be used to update the engine. Link to comment Share on other sites More sharing options...
Marsh Posted May 3, 2009 Author Share Posted May 3, 2009 Yea it will update any file put in there also its only a few kilobytes since it has no gui or anything. Glad it can be used. Link to comment Share on other sites More sharing options...
Guest Posted May 4, 2009 Share Posted May 4, 2009 Nice marsh thats awsum Link to comment Share on other sites More sharing options...
mrmiguu Posted May 4, 2009 Share Posted May 4, 2009 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 More sharing options...
Marsh Posted May 4, 2009 Author Share Posted May 4, 2009 Yea i may build a GUI for this and just have it run the original files. Its in visual c++ so you could drag and drop a new GUI just like Eclipse source. Link to comment Share on other sites More sharing options...
Fbu Posted May 4, 2009 Share Posted May 4, 2009 Amazing, thank you. Link to comment Share on other sites More sharing options...
Fruitpunch Posted May 5, 2009 Share Posted May 5, 2009 marsh you have saved me the time of programming this myself, ilylol jk….or am I? Link to comment Share on other sites More sharing options...
The Oracle Posted May 5, 2009 Share Posted May 5, 2009 fact: you can love marsh and be a guy and not be gay Link to comment Share on other sites More sharing options...
Panguin Posted May 5, 2009 Share Posted May 5, 2009 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.exeI 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.exeWhat am i doing wrong? Link to comment Share on other sites More sharing options...
Marsh Posted May 5, 2009 Author Share Posted May 5, 2009 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 More sharing options...
Panguin Posted May 5, 2009 Share Posted May 5, 2009 Im on vista home premium, and i get the same error with your new auto updater. Link to comment Share on other sites More sharing options...
Fbu Posted May 5, 2009 Share Posted May 5, 2009 I get the same error in Vista 64bit :/ Link to comment Share on other sites More sharing options...
Sweet Cheese Posted May 5, 2009 Share Posted May 5, 2009 stupid question but ,so the updater downloads it from the web? and not from the sever? Link to comment Share on other sites More sharing options...
vrage Posted May 5, 2009 Share Posted May 5, 2009 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 More sharing options...
Marsh Posted May 6, 2009 Author Share Posted May 6, 2009 @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.exeOk, 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 More sharing options...
Panguin Posted May 6, 2009 Share Posted May 6, 2009 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 More sharing options...
manbearpig Posted May 19, 2009 Share Posted May 19, 2009 so example linek would media fire work? i dont get the download link part Link to comment Share on other sites More sharing options...
Khachaturian Posted May 19, 2009 Share Posted May 19, 2009 Nice marsh, this should help out a ton of people. Link to comment Share on other sites More sharing options...
Patrick Posted May 20, 2009 Share Posted May 20, 2009 How do you upload the multiple files to one site? Link to comment Share on other sites More sharing options...
Marsh Posted May 20, 2009 Author Share Posted May 20, 2009 @üÑÂøчġġεт:> How do you upload the multiple files to one site?Just upload them via FTP, or any upload system. Link to comment Share on other sites More sharing options...
eclipselova Posted May 20, 2009 Share Posted May 20, 2009 @HM:> perfect for 3.0\. Although instead of updating gfx, it could be used to update the engine.speaking of 3.0…. Link to comment Share on other sites More sharing options...
Patrick Posted May 20, 2009 Share Posted May 20, 2009 @Marsh:> Just upload them via FTP, or any upload system.what do you mean by upload system.I meant like the www.freemmorpgmaker.com/updater/Like how it has multiple branches.Or is that achieved by ftp? Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now