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

[Download + Tutorial] Joyce's Fixed Updater

Recommended Posts

* * *

**Setting up a proper autoupdater**

* * *

As many of you guys know, I've modified Robin's old boring updater several times now.. And updated and fixed it a few times, this time around I fixed every bug I could find and rewrote a few pieces of it to work much more fluently, removed a ton of unessecary junk and made it a lot easier to configure.


So then, let's get started shall we?


* FTP Knowledge
* A website with FTP Access
* An FTP Client
* WinRAR
* MSINET.OCX (From the Visual Basic 6 Service Pack 6)

Note that you will need to include MSINET.OCX in your installer or runtime file installer and have them register the file for your game if you want everyone to be able to use this patcher. OR try shipping it alongside your executable, although I wouldn't really recommend doing this.

**Download The Updater**

Seems like a fairly important step right? Just download the file linked below and extract it anywhere on your computer.


**Logging into your FTP Account**

First thing you'll need to do is pull up your FTP client and log into your website, go to where you want your patch folder to be located,and make a new folder.. In my case, I will use /updates/.

**Getting the files on there**

Now, go make a news page. Dooo eeeeet.

Done? Good, upload it to your update folder, or anywhere else on your website if you prefer it to be elsewhere. After this, go into the location you extracted the updater files to, go into the **Server** folder and upload these files to your update folder.

Yes, the file is called **update.txt**, why you ask? Why not *.ini? Well, most webhosts do not have a MIME filter addition for *.ini files, and thus do not allow them to be downloaded. a *.txt is fairly universal and will work on just about any webhost, so I changed it around. :]

_Do note that Version1 is not empty, you can put your entire game client in here if you wish, and only install the updater on someone's computer with version=0 in the local config file, this will then download the client through the updater. you can't have empty *.rar files sadly._

**Setting up the client side**

Hopefully you know the URL of your own site, as you'll need this! Head into the **Client** folder of your extracted files, and copy the following files and folders to your game client's folder:

* Launcher.exe
* Unrar.dll
* Data Files

The other files are not needed by the compiled binary, note that **Data Files\graphics\gui\updater** contain the graphic files used by the launcher. Update,jpg is used when the game is updating, and Launch.jpg when it's done and ready to launch.

Now then, let's go into **Data Files** and edit **UpdateConfig.ini**.. You'll notice the following lines:


The URL to your website, it's really not used right now.. But I never removed the option. :]


The URL that points to your update directory we made before, make sure it ends with a / to have it function!


The URL that points to your news page, for patch information and whatnot.


The version of your local client.


The name of your client's executable to launch when a player hits the Launch button.

Configure them appropriately, and if you're lost here's an example:

Version= 1
ClientName= Client.exe
It points to my testing server. :] It should be up for the most part, but I added it on here to just allow you to see what needs to have what entered.

**Uploading an Update**

Well, now you have an updater.. But no idea how to make updates! No worries, just make sure you keep track of what you updated. You simply need to put ALL the files you changed with their file hierarchy* in a new versionX.rar file, where X is your new version number(So if we're going from Version 1, make it 2).

Done? Alright, let's upload it to our webserver's update folder next to the other version rar files. Once the upload has been completed, open up update.txt and change the version number to your latest version you just uploaded, the next time you run your patcher it will update your game files with the new patch! It's that simple. :]

Note that you can NOT EVER include unRAR.dll or Launcher.exe in your version.rar files, this will cause errors with extracting the files.

(*= If a file is in Data Files\Graphics on the client, it has to be in Data Files\Graphics in the *.rar file as well)

* * *


* * *

**Do my players need WinRAR installed?**

No, they do not. unrar.dll handles this for them. :]

**Can I use this on XXX webhost?**

Don't know nor care, it's your responsibility to find out if your host allows hotlinking or not.


Congratulations for handing me the most useless report ever. Here's a hammer to pound your skull in.

**Can I use this with XXXXX Program?**

Yup, this isn't bound to just Eclipse.. It can pretty much update anything you want to really.
Link to post
Share on other sites
  • Replies 103
  • Created
  • Last Reply

Top Posters In This Topic

I have a problem with this. Look when I update it downloads like a whole file called version1 . Like I have

Data Files , Version1 , Launcher , Unrar. Why is this ? Here is my config





Version= 1

ClientName= Play.exe

Also why doesn't the updater let u download the thing again like example if it already downloaded version 1 and u delete it . You can't redownload.

Thanks For Your Patience

P.S where do I upload the news? I made a folder in my public html. Called Updates then uploaded all the files etc And I uploaded the news.html but when I go to http://warofgames.x10.mx/updates/news.html It won't work ![<_<](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/dry.png) .
Link to post
Share on other sites
I don't get the problem? An updater is supposed to download the updates once isn't it? It downloads a patch, extracts it and adjusts the value of version= in your local *.ini file so your client knows it has been updated and doesn't need to download that version again.

As for your news, you're running a Linux box, all filenames are case sensitive.. And you called it News.html, not news.html. ;]
Link to post
Share on other sites
Yup, it should function without always downloading two versions and on just about any webhost now. :] And some other minor changes, like cleaning up parts of the code, adding some comments here and there.. It's still a bit messy, and could use some changes here and there I guess. But alas, it's not hard to make sense of. :]
Link to post
Share on other sites
Erm, I don't think it looks that bad? And look in the Graphic Files folder, and open the project I distributed along with it.. It's Open Source .__. Besides, you really shouldn't use a standard interface for your own game, just make one that suits your game and adjust the UI accordingly, I just made this because by default, Robin's updater is confusing and doesn't work similar to a more standard updater.
Link to post
Share on other sites
Well I found the problem to my updater not working correctly well in my version 1 i had another version1 inside it. Also is there a way I can make it like for example if the player deletes the files . Then the updater can redownload them is this possible? I would love it if the updater did that.

P.S my news didn't work cause I forgot to put and xD Also I don't know what a linux box is all I know is that I used my webhost.
Link to post
Share on other sites
Well, as long as it's fixed.. Changing your url to News.html fixed it as well though ![:P](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/tongue.png)

And no, this will not download removed files, it's a very basic setup. Not a full on checksum/bit updater.
Link to post
Share on other sites
Right, edited the tutorial to include that file as a pre-requisite. I completely forgot about it. ![:P](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/tongue.png)

Also added where it comes from, and that it has to be registered.
Link to post
Share on other sites
That makes sense, hardly a bug though. :]

I tossed the UI together real quick, it was never intended to be used as is. More to show what the UI images do.. People will need to change the entire thing to suit their game anyway. :]
Link to post
Share on other sites
AUtoupdater is giving me mismatch error

Here is my ini-






ClientName=Prospekt Online.exe
Link to post
Share on other sites
> Your update.txt is empty. ![:P](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/tongue.png)

No it isnt i think my webhost dont support txt files ![:P](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/tongue.png) try - [http://prospektonline.tk/update/](http://prospektonline.tk/update/)
Link to post
Share on other sites

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

  • Create New...