First of all you create a folder called “update” or any other name you like, on your server.
Then you open this folder and create 3 more folders called “exe”, “data” and “dll” where you put all your files you want to be checked. It’s like normal Freelancer architecture of folders, like if you want to update for example “misc.ini” (<- is in data\equipment folder in Freelancer), you upload it in “data/equipment/misc.ini” on your server.
That all about uploading files. Now you should edit “patch.cfg” file.
Open it with any text editor you want.
If you did, you will see this:
[PatchServer]
; This is your server url.
Url = http://www.example.com/
; This is a folder name you created from start.
; For me it was "update"
Root = updater/
; This is a file with all the files you want to update.
; You can create this file with help of "Patch builder".
Data = update.txt
[GameServer]
; This is an IP address of you FL server.
Ip = 127.0.0.1
; And also port.
Port = 2302
Edit it with your server information and save.
Now we going to create an update list. First step is to open “PatchBuilder.exe”. In first textbox you should select your mod folder. In second textbox you should select a path where you want to save your update list. Now simply click “Create” and it will create full update list of your mod. Now upload this list to your sever in “update” folder. Now try to run updater and it should start to path your standart freelancer folder. You can change your standart freelancer folder in registry.
@How it works:
This updater simply checks MD5 Hash of the file on the web with current one in your Freelancer folder. If it’s not the same it will delete current file and download new one. If curent file does not exist in Freelancer folder but on server, it will also download it.