Jump to content
  • 0

Thor patcher issues


megablox

Question


  • Group:  Members
  • Topic Count:  30
  • Topics Per Day:  0.01
  • Content Count:  81
  • Reputation:   8
  • Joined:  04/08/12
  • Last Seen:  

Hi, I've been trying to use Thor Patcher recently, but it doesn't seem to work correctly for me. I've followed Judas's guide, and I noticed that if I run the patcher inside my client folder, it doesn't work. I can tell that because I tried running it in an empty folder and it created server.grf and server.dat. Also, it doesn't seem to follow the configuration: infact I set the grf that had to be updated to 'rdata.grf', however, it doesn't seem to work.

This is my DATA.INI file:

[Data]

0=server.grf

1=rdata.grf

2=data.grf

server.dat is in my client folder (btw, what is it used for?)

Thor patcher config.ini (Thor > Tools > config.ini)

[Config:Main]

RootURL='http://domain/page/thor/'

RemoteConfigFile='main.ini'

TimeOut=0

StatusFile='server.dat'

DefaultGRF='rdata.grf'

ClientEXE='2011-12-28aRagexeRE_j.exe.patched.exe'

ClientParameter='-1sak1'

FinishOnConnectionFailure=false

[Config:Window]

AutoResize=true

Style='none'

Width=

Height=

DragHandling=true

Background='images/bg.bmp'

FadeOnDrag=false

[Config:BGM]

File=

Loop=true

Volume=20

Directory=

[Config:Misc]

Title='Thor Patcher'

HideProgressBarWhenFinish=true

[ProgressBar:bar1]

Width=342

Height=10

Left=23

Top=486

BackColorStart=$009DEEEF

BackColorEnd=$00C2F1F1

FrontColorStart=$006ED5B0

FrontColorEnd=$0080DDCA

FrontImage=

BackImage=

Hook='ProgressChange'

[Label:Status]

AutoResize = false

Width=369

Height=

Left=15

Top=498

Alignment='center'

FontColor=$000000

FontName = ''

FontSize =

Text=''

Hook='StatusChange'

[NoticeBox:Box0]

Width=347

Height=250

Left=21

Top=217

URL='http://domain/page/notice.html'

[button:Start]

Default='images/start1.png'

OnHover='images/start2.png'

OnDown='images/start3.png'

Left=383

Top=211

Hook='Start'

[button:Exit]

Default='images/Exit1.png'

OnHover='images/Exit2.png'

OnDown='images/Exit3.png'

Left=383

Top=244

Hook='Exit'

[button:Cancel]

Default='images/Exit1.png'

OnHover='images/Exit2.png'

OnDown='images/Exit3.png'

Left=383

Top=211

Hook='Cancel'

Serverside thor patcher configuration (server>thor>main.ini)

//Thor Patcher remote config file

[Main]

//Allow patching or not?

allow=true

//Should patcher ignore everything else and finish patch immediately?

Force_Start=false

//if not, what message should appear?

policy_msg=Server is taking a nap.

//file_url - patch files should ALL put here.

// This config entry will override the one in embed config.

// o HTTP:

// http://domain.com/dir/

// o FTP:

// ftp://domain.com/dir/

// o With <Username> [Password] [Port]

// ftp://username:[email protected]:port/dir/

// o Note: username is required if want put password, otherwise everything is optional.

file_url=http://domain/thor/patch/

[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=

//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=

// Patch list file

PatchList=plist.txt

[stars]

// Shining o.O (Anyways, its for start button clones)

// Since orignal client has check sum.. why not for clones? XD

//How many? (it should same as amount of start button clone, but of course it's your choice)

clients=0

// _sum - checksum, use CheckSum tool.

//client1_sum=

// _Name - Filename of exe

//client1_Name=

// _Path - Path for file [Compressed]

//client1_Path=

[Misc]

//Set a limit for fragment, when reach this limit, patcher will ask user to defrag

FragmentLimit=50

Edited by megablox
Link to comment
Share on other sites

11 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  224
  • Reputation:   22
  • Joined:  03/23/12
  • Last Seen:  

The .dat file is used to register the applied patches and keep the client up-to-date.

You can delete it and run the patcher to try it out.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  30
  • Topics Per Day:  0.01
  • Content Count:  81
  • Reputation:   8
  • Joined:  04/08/12
  • Last Seen:  

Deleted the server.dat file, patcher did its work, but it still patched server.grf instead of rdata.grf . How is that so? =\

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  224
  • Reputation:   22
  • Joined:  03/23/12
  • Last Seen:  

Hmm why are you trying to patch rdata anw? You shouldnt ._.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  30
  • Topics Per Day:  0.01
  • Content Count:  81
  • Reputation:   8
  • Joined:  04/08/12
  • Last Seen:  

Really? I didn't know that. Thanks for the advice :P

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  198
  • Reputation:   47
  • Joined:  08/01/12
  • Last Seen:  

ahhm, yo, can i ask? what web server are u using? cuz i got problems in connecting to server using my thor.exe, i'm using abyss web server, i can access the domain ( localhost) 127.0.0.1, and access 127.0.0.1/thor/patchs, i can access the folders, but when running the patcher, it failed to communicate with server? why is that so?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.00
  • Content Count:  754
  • Reputation:   186
  • Joined:  05/22/12
  • Last Seen:  

show us your config.ini

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  198
  • Reputation:   47
  • Joined:  08/01/12
  • Last Seen:  

here it is.

@edit

Here it is my Thor patcher's config.ini : /wah

// Thor Patcher Internal Config File

// Note: any entry leaves as blank will use default value

// True = 1

// False = 0

// Note that true or 1 both works fine (that's why I put "=")

//base_url - everything except patch files will read from here

//The address should point to a directory with / at end

//

// example:

// http://domain.com/patch/'>http://domain.com/patch/

// NOT

// http://domain.com/patch

//

base_url=http://127.0.0.1/thor/patchs/

//notice_file - [Relative Address]

//You should able to access this file by combine base_url & notice_file

notice_file=notice.html

//core_file - [Relative Address]

//this internal config file only store whats required,

//but core_file is a remote config file that stores on your web host

core_file=main.ini

//TimeOut - timeout of connection in seconds

//0 is default setting, leave it as 0 unless you know what you are doing!

TimeOut=0

//=============================

// File below is on local disk

//=============================

[Local]

//status_file - [Relative Address]

//It used to store information such as last patch id etc,

status_file=server.dat

//grf_file - [Relative Address]

grf_file=Noob.grf

//client_file - [Relative Address]

//It's GAME EXE not patcher's

client_file=Noob.exe

//client_parameter - [self Explained]

client_parameter=-1sak1

//-----------------------------------------------------------------------

//

// Below are advanced settings, it is not required for patcher to work

//

//-----------------------------------------------------------------------

//=============================

// Custom Skin controls

//=============================

[skin]

//windows_autosize - if set to 1, window size will automatically change depend on content size

windows_autosize=true

//windows_mode - How should windows presented?

// None - Borderless window

// Single - Window cannot resized

// Sizeable - ... what it says, however it can not resize when windows_autosize set to true / 1

window_style=None

// Width and Height of window

//windows_autosize set to 0 for this to work

// Min: 1 Max: 10000 (I don't think you would need that big)

window_width=

window_height=

// If set to true, user able to drag window by click images (background)

// recommended to true especially for boarderless window

window_handle_move=true

// Image for background (DOES NOT READ FROM DIRECTORY OF PATCHER, the config packer will put image inside patcher too)

// Support : jpg bmp

// Note : patcher determine image format by filename extension, use with care!

background_file=images/woa.bmp

//New style of progress bar, it used image.

NewProgressBar=False

//Image of progress bar(only when ProgressBar set to true, currently only BMP & JPG supported)

ProgressBar_back=

ProgressBar_front=

// how big is progress bar? (only when NewProgressBar set to false)

progress_bar_width=305

progress_bar_height=11

// Position of progress bar

progress_bar_left=30

progress_bar_top=495

//Custom progress bar color

//Use hexadecimal of RGB [eg. #4C7D7E]

//Color for back of progress bar.

progress_bar_backcolor=

progress_bar_backcolor_end=

//Color for front of progress bar.

progress_bar_barcolor=

progress_bar_barcolor_end=

// Status message width (the one shows what patcher currently doing)

// no height

status_width=

// Text alignment

// Left , Center , Right

status_alignment=Left

// Position

status_left=35

status_top=508

//Color for status, in hexadecimal of RGB [eg. #123456]

status_color=

// control notice (News box? Mini web browser? you name it)

notice_width=410

notice_height=256

notice_left=19

notice_top=208

// For start button

start_normal=images/start1.png

start_hover=images/start2.png

start_down=images/start3.png

start_left=81

start_top=482

// For Exit button

exit_normal=images/Exit1.png

exit_hover=images/Exit2.png

exit_down=images/Exit3.png

exit_left=275

exit_top=482

// for cancel button

cancel_normal=images/cancel1.png

cancel_hover=images/cancel2.png

cancel_down=images/cancel3.png

cancel_left=335

cancel_top=482

// How many custom buttons you want to create?

// Can create up to 255 buttons (Plenty enough)

buttons=0

// - Custom buttons -

//As you can see below, it's not that hard to make custom buttons

//the number after "button" is id(depends on how many you set in buttons)

// Again, note that all image files will be embed into patcher.

// _normal - image file when button is in normal status

//button1_normal=

// _hover - image file when user hover on it

//button1_hover=

// _down - image file when user mouse down on it

//button1_down=

// _left/_top - position of button

//button1_left=

//button1_top=

// _mode - mode for button

// 0 = open URL

// 1 = Launch file/program

// 2 = Message box

// 3 = Reserved

//button1_mode=

// _action - depend on what you set in _mode, this may vary

// ex. _mode = 0 , _action=http://google.com

// which makes user open that URL address after click that button

//button1_action=

[star Clone]

//Start button clone, I name it star clone because it's better name XD

// How many buttons you wanted?

// Again, up to 255

buttons=0

// very similar to custom buttons

// _normal - image file when button is in normal status

//button1_normal=

// _hover - image file when user hover on it

//button1_hover=

// _down - image file when user mouse down on it

//button1_down=

// _left/_top - position of button

//button1_left=

//button1_top=

// _file - Client file

//button1_file=

//_parameter - Client parameter

//button1_parameter=-1sak1

[bGM]

//Background music, leave empty to disable (mp3/mid)

//Side note: Personally, I don't like background music in this kind situation, so think about players.

bgm=

//Loop play backgroun music? (play over and over)

//Does not work for MIDI

BGMLoop=False

//Change volume XD (1-100) [No 0.. pointless] [MP3 ONLY]

// Recommended value: 40-60 [Respect player's ears please]

// Default: 100

Volume=100

//Note: This will override "bgm" entry when set!

//When set, patcher will scan all mp3 in specific directory (use relative path)

//It will random choose one when launch

//eg. ./BGM/

BGMDir=

[Misc]

//Set to true if you want patcher allow to start game when unable to connect webserver

Continue On Connection Fail=False

//What will the window title called?

Title=Thor Patcher

And this one's my main.ini :

//Thor Patcher remote config file

[Main]

//Allow patching or not?

allow=true

//Should patcher ignore everything else and finish patch immediately?

Force_Start=false

//if not, what message should appear?

policy_msg=Server is taking a nap.

//file_url - patch files should ALL put here.

// This config entry will override the one in embed config.

// o HTTP:

// http://domain.com/dir/

// o FTP:

// ftp://domain.com/dir/

// o With <Username> [Password] [Port]

// ftp://username:[email protected]:port/dir/

// o Note: username is required if want put password, otherwise everything is optional.

file_url=http://127.0.0.1/thor/patchs/

[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=

//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=

// Patch list file

PatchList=plist.txt

[stars]

// Shining o.O (Anyways, its for start button clones)

// Since orignal client has check sum.. why not for clones? XD

//How many? (it should same as amount of start button clone, but of course it's your choice)

clients=0

// _sum - checksum, use CheckSum tool.

//client1_sum=

// _Name - Filename of exe

//client1_Name=

// _Path - Path for file [Compressed]

//client1_Path=

[Misc]

//Set a limit for fragment, when reach this limit, patcher will ask user to defrag

FragmentLimit=50

By the way, i can access 127.0.0.1/thor/patchs/ in my browser, and can download the files on it.

But when running the patcher, it says failed to communicate to server, dont know what's causing this. /wah

Edited by Santino
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.00
  • Content Count:  754
  • Reputation:   186
  • Joined:  05/22/12
  • Last Seen:  

base_url=http://127.0.0.1/thor/patchs/

should be

base_url=http://127.0.0.1/thor/

if main.ini is in http://127.0.0.1/thor/

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  198
  • Reputation:   47
  • Joined:  08/01/12
  • Last Seen:  

hmm, i've changed it now bro, as what you have said,

base_url=http://127.0.0.1/thor/

still cant connect to server, failed.. /wah

@edit

It's solved now bro! THX A LOT! =)

bro btw, i've got a follow up question, what ip i use so that my friends can play on my server, & how to do it? hmm

Edited by Santino
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.00
  • Content Count:  754
  • Reputation:   186
  • Joined:  05/22/12
  • Last Seen:  

check your ip at http://www.whatismyip.com/

use that ip instead.

if you're behind a router, you must port forward the router's port 80 to your computer's port 80.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  198
  • Reputation:   47
  • Joined:  08/01/12
  • Last Seen:  

hmm don't have an idea in port forwarding,

i tried opening my adsl router in my browser, then i found these:

Protocol: TCP UDP

WAN Setting: Interface Ip Address

WAN Interface: pppoe1

WAN Port: 113 <--- is this what am i going to change? its

LAN Open Port: 113

LAN Ip Address:

is that it? should i change that wan port to 80? just that?

Edited by Santino
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...