Hey everyone,
I've ran into a few problems with my Thor Patcher.
plist.txt:
1 346134.thor
/patch/data screenshot: http://i.imgur.com/gVBIkIR.png
config.ini:
[Config:Main]
RootURL='http://mook.pxg.me/patch/'
RemoteConfigFile='main.ini'
TimeOut=5
StatusFile='server.dat'
DefaultGRF='ss2.grf'
ClientEXE='test.exe'
ClientParameter='-1sak1'
//When patcher unable to connect webserver,
//should the patcher allow player start the game anyways?
FinishOnConnectionFailure=true
[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://mook.pxg.me/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=
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]<script cf-hash='f9e31' type="text/javascript">
/* */</script>:port/dir/
// o Note: username is required if want put password, otherwise everything is optional.
file_url=http://mook.pxg.me/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 what happens when I launch the patcher: http://i.imgur.com/izh8EVG.png(The text at the bottom only flashes for a milisecond.) It seems to ignore the patch all together which is quite strange. Does anyone have any ideas as to why this would do this? Any help would be greatly appreciated.
Another question: When I click on "START" it refuses to execute my client.exe (Named test.exe) and I have no idea as to why. Here is a screenshot of the exe: http://i.imgur.com/D65nVHe.png. On a side note - If someone could explain how to use ThorGenerator to update the default server grf, that would be amazing. As in-depth as you can manage would be even better.
Thanks,
Sharpienero.