Jump to content
  • 0

VPS Centos for Thor Patcher


Petey Pablo

Question


  • Group:  Members
  • Topic Count:  152
  • Topics Per Day:  0.03
  • Content Count:  569
  • Reputation:   11
  • Joined:  11/24/11
  • Last Seen:  

Is it possible to host the thor patcher on vps centos? Anyone can help me?

Link to comment
Share on other sites

6 answers to this question

Recommended Posts

  • 1

  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  1137
  • Reputation:   290
  • Joined:  04/29/13
  • Last Seen:  

if you are using linux , you can just copy your web files into var/www/html 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  399
  • Reputation:   69
  • Joined:  12/26/15
  • Last Seen:  

28 minutes ago, GM Will said:

Is it possible to host the thor patcher on vps centos? Anyone can help me?

yeah.. it is possible.. below is the idea (based on my experience on ubuntu)

1st. u need to setup apache web server

2nd. in that apache web server, u can create virtual host server.

3rd. configure Document Root & Port for inside the virtual host server (Thor's Web folder should be place inside var/www directory while port u cannot use port 80 anymore if u already use port 80 for Flux Control Panel)

this is just rough idea. based in ubuntu. but, i guess most likely the same concept to be applied in centos..

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  152
  • Topics Per Day:  0.04
  • Content Count:  459
  • Reputation:   6
  • Joined:  06/29/12
  • Last Seen:  

Using linux is much more easy.. Just setup your LAMP then drag your patch file in var/www.. 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  152
  • Topics Per Day:  0.03
  • Content Count:  569
  • Reputation:   11
  • Joined:  11/24/11
  • Last Seen:  

5 hours ago, Cyro said:

if you are using linux , you can just copy your web files into var/www/html 

 

5 hours ago, hazimjauhari90 said:

yeah.. it is possible.. below is the idea (based on my experience on ubuntu)

1st. u need to setup apache web server

2nd. in that apache web server, u can create virtual host server.

3rd. configure Document Root & Port for inside the virtual host server (Thor's Web folder should be place inside var/www directory while port u cannot use port 80 anymore if u already use port 80 for Flux Control Panel)

this is just rough idea. based in ubuntu. but, i guess most likely the same concept to be applied in centos..

 

2 hours ago, rakuzas said:

Using linux is much more easy.. Just setup your LAMP then drag your patch file in var/www.. 

 

I have a problem says "Failed to communicate with server"

This is my config

[Config:Main]

RootURL='http://mydomain.com/patch/'

RemoteConfigFile='main.ini'

TimeOut=0

StatusFile='server.dat'

DefaultGRF='server.grf'

ClientEXE='game.exe'
ClientParameter='-1sak1'

//When patcher unable to connect webserver,
//should the patcher allow player start the game anyways?
FinishOnConnectionFailure=false

[Config:Window]

Style='none'

//This allows the player drag the window by background
DragHandling=true

//Background can be either jpg or bmp, in later case
//the top-left pixel is chosen as transparent color.
Background='images/bg.bmp'

FadeOnDrag=true

[Config:BGM]
File=''

Loop=true

Volume=5

Directory=

[Config:Misc]
Title='Thor Patcher'

HideProgressBarWhenFinish=true


[ProgressBar:bar1]
Width=342
Height=10

Left=23
Top=486

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://mydomain.com/patch/notice.html'



[Button:Start]
Default='images/start1.png'
OnHover='images/start2.png'
OnDown='images/start3.png'

Left=383
Top=211

//Hook is used for default buttons,
//do not use this on custom buttons!
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'

//[Button:Extra]
//
//
//
// Mode - mode for button
// 1 = open URL
// 2 = Launch file/program
// 3 = Message box
//Mode=
// Action - depend on what you set in the Mod, this may vary
// ex. Mode = 1 , Action='http://google.com'
//Action=

This is the main on web

//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://mydomain.com/patch/data/

[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

This is the path of web files

1.thumb.png.db80e0f9035fd5bb33349aeab1b47f20.png

Did you find the possible problem guys? Thanks for the help!

Edited by GM Will
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  399
  • Reputation:   69
  • Joined:  12/26/15
  • Last Seen:  

3 minutes ago, GM Will said:

 

 

 

I have a problem says "Failed to communicate with server"

This is my config


[Config:Main]

RootURL='http://mydomain.com/patch/'

RemoteConfigFile='main.ini'

TimeOut=0

StatusFile='server.dat'

DefaultGRF='server.grf'

ClientEXE='game.exe'
ClientParameter='-1sak1'

//When patcher unable to connect webserver,
//should the patcher allow player start the game anyways?
FinishOnConnectionFailure=false

[Config:Window]

Style='none'

//This allows the player drag the window by background
DragHandling=true

//Background can be either jpg or bmp, in later case
//the top-left pixel is chosen as transparent color.
Background='images/bg.bmp'

FadeOnDrag=true

[Config:BGM]
File=''

Loop=true

Volume=5

Directory=

[Config:Misc]
Title='Thor Patcher'

HideProgressBarWhenFinish=true


[ProgressBar:bar1]
Width=342
Height=10

Left=23
Top=486

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://mydomain.com/patch/notice.html'



[Button:Start]
Default='images/start1.png'
OnHover='images/start2.png'
OnDown='images/start3.png'

Left=383
Top=211

//Hook is used for default buttons,
//do not use this on custom buttons!
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'

//[Button:Extra]
//
//
//
// Mode - mode for button
// 1 = open URL
// 2 = Launch file/program
// 3 = Message box
//Mode=
// Action - depend on what you set in the Mod, this may vary
// ex. Mode = 1 , Action='http://google.com'
//Action=

This is the main on web


//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://mydomain.net/patch/data/

[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

This is the path of web files

image.png

Did you find the possible problem guys? Thanks for the help!

i think u understand it wrong.. what cyro mean.. content of the patch folder inside the html folder.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  152
  • Topics Per Day:  0.03
  • Content Count:  569
  • Reputation:   11
  • Joined:  11/24/11
  • Last Seen:  

2 hours ago, hazimjauhari90 said:

i think u understand it wrong.. what cyro mean.. content of the patch folder inside the html folder.

It works now. Thank you very much!

2.png.49fb08199d1613f91a29559bb1fbb340.png

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...