Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

Setting Up Thor Patcher

Joined
Feb 5, 2010
Messages
11
Reaction score
0
From :

You need to have a Thor patcher! Note that there are different version and features develop within thor if you don't have one I suggest to download this Thor Patcher [2008-08.05] because of this guide!



We wil begin in configuring your config.ini inside your Thor Patcher/Tools/config.ini

1. Open that file, and edit the following (I will list all necessary configuration needed for configuration)

Find this line:

base_url=http://domain.com/patch/

- This is your base URL where the patch is a folder under your web host and the patcher will access that folder and everything inside. In my case I will create new folder name thor folder to use in this guide.

below is my config and path for my patcher

base_url=http://www.axwebsolutions.com/thor/

2. The news/notice

notice_file=notice.html

- you don't need to change this one, unless you want to use .php! Incase you did change your own news, you need to change that one too inside your configuration, In my case I will leave it as notice.html and upload it inside the thor folder under my webhost. As you can see when you combine the base_url and the notice.html it will look like this


Just like I said earlier thor will find the file notice.html inside the folder name thor under my webhost.

3. The core file

core_file=main.ini

- core_file is the main remote configuration that the patcher will access first inside your webhost or my thor folder.

4. Other important configs below

[Local]
//status_file - [Relative Address]
//It used to store information such as last patch id etc,
status_file=server.dat

- the .dat file is the thor patcher logs everytime you create a new patch it will be listed inside that server.dat you can change this to your server name or any name you want, its useful so it won't mess with the other servers installer/files.

//grf_file - [Relative Address]
grf_file=Server.grf

- This is your primary or main grf

//client_file - [Relative Address]
//It's GAME EXE not patcher's
client_file=nro.exe

- This file is your hexed.exe that the thor will trigger after the player click the start game button in your patcher.

//client_parameter - [Self Explained]
client_parameter=-1sak1

- Self explain, or don't edit if you don't know what is this for...!

the rest of the configuration is done! Now if you want to do a modification its all up to you.

When your done editing... make sure to save the changes you made in your config.ini

We may now start combining the config.ini and embed it inside the Thor Patcher. Open the /Thor Patcher/Tools/Config_Packer

Click the Browse button, browse and open the Thor file located inside the Thor Patcher/Patcher/Thor then click Pack!

Alright its done with combining the config.ini with Thor file < your patcher. Next is

5. The main.ini file

Open the main.ini file found inside your Thor Patcher/web/main.ini

Find this line

file_url=http://domain.com/opatch/data/

- the file_url is for your patches that you have created same with hexed or patcher hexed that you would want to patch too. Change it too, In my case I have created a folder name thor with the path


go inside your Thor Patcher/web/ folder you will see that I created the folder name patchs this is the folder where all patches you created will go inside under your webhost ofcourse.

in my own configuration I will put

file_url=http://www.axwebsolutions.com/thor/patchs/

when your done just save and exit.

6. We need to upload all files inside the Thor Patcher/Web folder, earlier I have created thor folder inside my webhost public_html, now I will upload all files inside Web folder into thor folder under my webhost.

I suggest using CuteFTP for easy upload of files, simple as drag and drop. You can download this cuteFTP by searching on the web.

When your done you may now test if your config is working simply by double click on the Thor found inside your Thor Patcher/Patcher/Thor.exe

Also you can put all necessary files(yourro.grf, thor.exe, hexed.exe etc...) for your installer inside the folder installer! To avoid messing up with other files.

Heres Mine



7. Making a patch with grf

Its easy to make a patch, First create a folder name patch - grf inside your Thor Patcher folder. Go inside the patch - grf and create another folder again, in my own way of making a patch I have created many folders just to separate all this patches, that's why I have now patch - grf folder means all updates that is going to be extracted inside my main grf should go in the folder name patch - grf but for me not to get confuse I have created another folder inside the patch - grf folder and that folder name is the date of the patch. For example today is December 3, so I created dec3 folder (don't get confuse you can create your own folder name and way of creating patch) Now, inside the dec3 folder I created another folder name data! We all know that when you extracted a data.grf, sdata.grf or anyname.grf it will extract a folder name data! As you can see the earlier explanation, this is the directory for my patch Thor Patcher/patch - grf/dec3/ then the data folder.

Inside the data folder all the files of your client update that you have added/edit! For example I added a new custom items with headgears and etc item, you can check my data folder by download it HERE!

Note: When making a patch you don't need to paste all of the files inside your data folder and patch it again, what you need is the files/folders that you have re-edited or files that you have added must all go inside the data folder. Extract my data.rar and see what's inside, notice that I have put only what I added and put inside what I have just re-edited.

To make a patch for thor, open the ThorMaker found inside your Thor Patcher/Tools/ThorMaker



#1
- This is the name of your patch just enter any name you want. In my case since, I use the date I will name the patch as c_updates_12032008 then click Save



By the way, create a folder inside your Thor Patcher and name it upload - grf you can make your own folder name, for this example I use the folder name upload - grf because this folder is the location of all the patches I have made.

#2
- make sure that you select RO - GRF

#3
- there are two options on how the patcher will extract your patch, the first one is Directory and the 2nd one is Single! In this guide we will use the Directory option by default. Click the Select button, If you stil remember I have created the folder name patch - grf, now go inside that folder and select your patch folder name, in my case I use the folder name dec3, that is the folder I need to select, take note that I have put the data folder inside the dec3 folder.



---------- Post added at 09:17 AM ---------- Previous post was at 09:15 AM ----------

Take note that we use the Directory option, that's why I select dec3 folder, just click OK to select.

#4
- When your done just click the Generate and it will repack a file name c_updates_12032008.thor!

Note: Make sure that the folders/files inside the data folder that you will be patching is in Unicode (this is gibirish) not with boxes names!

Once the file is ready, copy the name and paste it inside the plist.txt found inside your Thor Patcher/Web/plist.txt

Here's mine



1 - is the number of the patch
c_updates_12032008.thor - is the name of the patch

On the next patch just add on the second line number 2 for the 2nd patch. for example
--------------------------------------------------(inside plist.txt)
1 c_updates_12032008.thor
2 c_updates_12042008.thor
------------------------------------------

When your done, upload and replace the file plist.txt inside your webhost also upload the c_updates_12032008.thor inside the patchs folder in your webhost! When you start your patcher it should be patching by now.

8. Making a patch with files, patcher hexed or hexed.exe

Check your Thor Patcher folder you will see the patch - file and upload - file folders that I have created, its obvious that you will paste all files inside that patch - file folder and the generated .thor will be put inside the upload - file folder.

When making a patcher hexed or hexed.exe patchs its same what you did before the only difference is that you will not use the plist.txt but you will need the main.ini when patching patcher hexed or hexed.exe!

Example below
Lets say you have now have a ready patcher hexed, just paste it inside your patch - file folder.

Note: Make sure the name of your Patcher hexed is same with the name of your patcher hexed before. For example you use Thor.exe while with your new patcher hexed that you will be patching must also name as Thor.exe too!



#1
- same with the Guide #7, enter the name of the patch and click save, in my case I will use the name p_updates_12032008! also you can put the patch to any folder you want but in my case I will save my patch inside the upload - file folder, you can do the same, whatever you want.

#2
- Make sure to select File

#3
- click select button, find and select the folder patch - file because earlier I told you to paste your patcher hexed inside the patch - file folder!



#4
- Click Generate to make the p_updates_12032008.thor file! Make sure to select Root option(see image above). When your done you need to edit the main.ini in this lines


Example:
-----------------------------------------------------------------------------------------
[Patch]
//use CheckSum tool, hash for client & patcher
// used to make sure exe is up to date
// (leave empty to disable this feature)
ClientSum=
PatcherSum=CD83831A


//This is compressed file for patcher & client update
// To make these work, ClientSum and/or PatcherSum can't be empty
// Note: these files should put same place as patch file (file_url in internal config)
//Relative address, not FULL URL!
ClientPath=
PatcherPath=p_updates_12032008.thor
-----------------------------------------------------------------------------------------

Oh I forgot, you need to use the CheckSum found inside your Thor Patcher/Tools/CheckSum, you will need this to know the value of the patcher hexed that you will be patching, let say that this is the version of your patcher hexed. Just drag drop the patcher hexed in the checksum to see the value and put that value as you see in above example!

When your done, save and exit. Don't forget to upload that main.ini in base_url and the p_updates_12032008.thor inside the patchs folder in your web host.

With hexed.exe you do the same.


9. The last part is creating your own installer, here in axweb we use NSIS/Install Creator but I suggest using the install creator, it is a software for creating installer and User Friendly just visit the and download their software name "Install Creator"


All done.
 
Last edited:
Initiate Mage
Joined
Oct 22, 2009
Messages
14
Reaction score
0
If we make for local ragnarok should we change this to 127.0.0.1?

Open the main.ini file found inside your Thor Patcher/web/main.ini

Find this line

file_url=http://domain.com/opatch/data/


- the file_url is for your patches that you have created same with hexed or patcher hexed that you would want to patch too. Change it too, In my case I have created a folder name thor with the path
 
Joined
Mar 23, 2010
Messages
1
Reaction score
0
From :

You need to have a Thor patcher! Note that there are different version and features develop within thor if you don't have one I suggest to download this Thor Patcher [2008-08.05] because of this guide!



We wil begin in configuring your config.ini inside your Thor Patcher/Tools/config.ini

1. Open that file, and edit the following (I will list all necessary configuration needed for configuration)

Find this line:

base_url=http://domain.com/patch/

- This is your base URL where the patch is a folder under your web host and the patcher will access that folder and everything inside. In my case I will create new folder name thor folder to use in this guide.

below is my config and path for my patcher

base_url=http://www.axwebsolutions.com/thor/

2. The news/notice

notice_file=notice.html

- you don't need to change this one, unless you want to use .php! Incase you did change your own news, you need to change that one too inside your configuration, In my case I will leave it as notice.html and upload it inside the thor folder under my webhost. As you can see when you combine the base_url and the notice.html it will look like this


Just like I said earlier thor will find the file notice.html inside the folder name thor under my webhost.

3. The core file

core_file=main.ini

- core_file is the main remote configuration that the patcher will access first inside your webhost or my thor folder.

4. Other important configs below

[Local]
//status_file - [Relative Address]
//It used to store information such as last patch id etc,
status_file=server.dat

- the .dat file is the thor patcher logs everytime you create a new patch it will be listed inside that server.dat you can change this to your server name or any name you want, its useful so it won't mess with the other servers installer/files.

//grf_file - [Relative Address]
grf_file=Server.grf

- This is your primary or main grf

//client_file - [Relative Address]
//It's GAME EXE not patcher's
client_file=nro.exe

- This file is your hexed.exe that the thor will trigger after the player click the start game button in your patcher.

//client_parameter - [Self Explained]
client_parameter=-1sak1

- Self explain, or don't edit if you don't know what is this for...!

the rest of the configuration is done! Now if you want to do a modification its all up to you.

When your done editing... make sure to save the changes you made in your config.ini

We may now start combining the config.ini and embed it inside the Thor Patcher. Open the /Thor Patcher/Tools/Config_Packer

Click the Browse button, browse and open the Thor file located inside the Thor Patcher/Patcher/Thor then click Pack!

Alright its done with combining the config.ini with Thor file < your patcher. Next is

5. The main.ini file

Open the main.ini file found inside your Thor Patcher/web/main.ini

Find this line

file_url=http://domain.com/opatch/data/

- the file_url is for your patches that you have created same with hexed or patcher hexed that you would want to patch too. Change it too, In my case I have created a folder name thor with the path


go inside your Thor Patcher/web/ folder you will see that I created the folder name patchs this is the folder where all patches you created will go inside under your webhost ofcourse.

in my own configuration I will put

file_url=http://www.axwebsolutions.com/thor/patchs/

when your done just save and exit.

6. We need to upload all files inside the Thor Patcher/Web folder, earlier I have created thor folder inside my webhost public_html, now I will upload all files inside Web folder into thor folder under my webhost.

I suggest using CuteFTP for easy upload of files, simple as drag and drop. You can download this cuteFTP by searching on the web.

When your done you may now test if your config is working simply by double click on the Thor found inside your Thor Patcher/Patcher/Thor.exe

Also you can put all necessary files(yourro.grf, thor.exe, hexed.exe etc...) for your installer inside the folder installer! To avoid messing up with other files.

Heres Mine



7. Making a patch with grf

Its easy to make a patch, First create a folder name patch - grf inside your Thor Patcher folder. Go inside the patch - grf and create another folder again, in my own way of making a patch I have created many folders just to separate all this patches, that's why I have now patch - grf folder means all updates that is going to be extracted inside my main grf should go in the folder name patch - grf but for me not to get confuse I have created another folder inside the patch - grf folder and that folder name is the date of the patch. For example today is December 3, so I created dec3 folder (don't get confuse you can create your own folder name and way of creating patch) Now, inside the dec3 folder I created another folder name data! We all know that when you extracted a data.grf, sdata.grf or anyname.grf it will extract a folder name data! As you can see the earlier explanation, this is the directory for my patch Thor Patcher/patch - grf/dec3/ then the data folder.

Inside the data folder all the files of your client update that you have added/edit! For example I added a new custom items with headgears and etc item, you can check my data folder by download it HERE!

Note: When making a patch you don't need to paste all of the files inside your data folder and patch it again, what you need is the files/folders that you have re-edited or files that you have added must all go inside the data folder. Extract my data.rar and see what's inside, notice that I have put only what I added and put inside what I have just re-edited.

To make a patch for thor, open the ThorMaker found inside your Thor Patcher/Tools/ThorMaker



#1
- This is the name of your patch just enter any name you want. In my case since, I use the date I will name the patch as c_updates_12032008 then click Save



By the way, create a folder inside your Thor Patcher and name it upload - grf you can make your own folder name, for this example I use the folder name upload - grf because this folder is the location of all the patches I have made.

#2
- make sure that you select RO - GRF

#3
- there are two options on how the patcher will extract your patch, the first one is Directory and the 2nd one is Single! In this guide we will use the Directory option by default. Click the Select button, If you stil remember I have created the folder name patch - grf, now go inside that folder and select your patch folder name, in my case I use the folder name dec3, that is the folder I need to select, take note that I have put the data folder inside the dec3 folder.



---------- Post added at 09:17 AM ---------- Previous post was at 09:15 AM ----------

Take note that we use the Directory option, that's why I select dec3 folder, just click OK to select.

#4
- When your done just click the Generate and it will repack a file name c_updates_12032008.thor!

Note: Make sure that the folders/files inside the data folder that you will be patching is in Unicode (this is gibirish) not with boxes names!

Once the file is ready, copy the name and paste it inside the plist.txt found inside your Thor Patcher/Web/plist.txt

Here's mine



1 - is the number of the patch
c_updates_12032008.thor - is the name of the patch

On the next patch just add on the second line number 2 for the 2nd patch. for example
--------------------------------------------------(inside plist.txt)
1 c_updates_12032008.thor
2 c_updates_12042008.thor
------------------------------------------

When your done, upload and replace the file plist.txt inside your webhost also upload the c_updates_12032008.thor inside the patchs folder in your webhost! When you start your patcher it should be patching by now.

8. Making a patch with files, patcher hexed or hexed.exe

Check your Thor Patcher folder you will see the patch - file and upload - file folders that I have created, its obvious that you will paste all files inside that patch - file folder and the generated .thor will be put inside the upload - file folder.

When making a patcher hexed or hexed.exe patchs its same what you did before the only difference is that you will not use the plist.txt but you will need the main.ini when patching patcher hexed or hexed.exe!

Example below
Lets say you have now have a ready patcher hexed, just paste it inside your patch - file folder.

Note: Make sure the name of your Patcher hexed is same with the name of your patcher hexed before. For example you use Thor.exe while with your new patcher hexed that you will be patching must also name as Thor.exe too!



#1
- same with the Guide #7, enter the name of the patch and click save, in my case I will use the name p_updates_12032008! also you can put the patch to any folder you want but in my case I will save my patch inside the upload - file folder, you can do the same, whatever you want.

#2
- Make sure to select File

#3
- click select button, find and select the folder patch - file because earlier I told you to paste your patcher hexed inside the patch - file folder!



#4
- Click Generate to make the p_updates_12032008.thor file! Make sure to select Root option(see image above). When your done you need to edit the main.ini in this lines


Example:
-----------------------------------------------------------------------------------------
[Patch]
//use CheckSum tool, hash for client & patcher
// used to make sure exe is up to date
// (leave empty to disable this feature)
ClientSum=
PatcherSum=CD83831A


//This is compressed file for patcher & client update
// To make these work, ClientSum and/or PatcherSum can't be empty
// Note: these files should put same place as patch file (file_url in internal config)
//Relative address, not FULL URL!
ClientPath=
PatcherPath=p_updates_12032008.thor
-----------------------------------------------------------------------------------------

Oh I forgot, you need to use the CheckSum found inside your Thor Patcher/Tools/CheckSum, you will need this to know the value of the patcher hexed that you will be patching, let say that this is the version of your patcher hexed. Just drag drop the patcher hexed in the checksum to see the value and put that value as you see in above example!

When your done, save and exit. Don't forget to upload that main.ini in base_url and the p_updates_12032008.thor inside the patchs folder in your web host.

With hexed.exe you do the same.


9. The last part is creating your own installer, here in axweb we use NSIS/Install Creator but I suggest using the install creator, it is a software for creating installer and User Friendly just visit the and download their software name "Install Creator"


All done.

Why don't you just highlight the important words for this guide? :mad: , it's complicated to other peoples who follow your guide :sneaky2: ...By the way thanks for the guide.
 
Back
Top