Autopatching problem

02/01/2010 21:56 WHITELIONX#1
Ok so I am using a launcher that somebody posted and it works fine :D Now the problem that I have is annoying. I have the launcher direct to the TQ AutoPatch and it will AutoPatch from me with no problem it even opens up the Conquer.exe even though I have changed the names etc.

Now when I open the launcher again with the client updated it tells me it can not use the updater which is fine but it does not open the client? It gives me the old error of "retry, abort, bypass" I can not go to bypass because it just closes it?
02/02/2010 01:19 spare2#2
Are you trying to patch with official patches or your own patches.
02/02/2010 01:27 WHITELIONX#3
My own patches which it does properly I am pretty sure it is a client side problem and probably something to do with either the autopatch.exe or the autopatch folder >.<

I have searched through the ini folder but nothing apart from thing that I found could cause this problem but I wouldn`t know what to put in the playgui anyways lol. I will show you what I found but not sure if it is anything to do with it.

Code:
//Æô¶¯»*ÃæÖ÷½çÃæ
[0-102]
x=0
y=0
w=900
h=650
bg=Play/main.bmp
;µ÷×Ö´óС
FontHeight=15
FontWidth=6
;µ÷λÖÃÓëÑÕÉ«
VersionRect=110,33,300,200,0xff
fgcount=2
fg_id0=1
I only assume this is something perhaps to do with it because of the VersionRect= I assume that means VersionRectify >.<
02/02/2010 03:13 LetterX#4
Quote:
Originally Posted by WHITELIONX View Post
My own patches which it does properly I am pretty sure it is a client side problem and probably something to do with either the autopatch.exe or the autopatch folder >.<

I have searched through the ini folder but nothing apart from thing that I found could cause this problem but I wouldn`t know what to put in the playgui anyways lol. I will show you what I found but not sure if it is anything to do with it.

Code:
//Æô¶¯»*ÃæÖ÷½çÃæ
[0-102]
x=0
y=0
w=900
h=650
bg=Play/main.bmp
;µ÷×Ö´óС
FontHeight=15
FontWidth=6
;µ÷λÖÃÓëÑÕÉ«
VersionRect=110,33,300,200,0xff
fgcount=2
fg_id0=1
I only assume this is something perhaps to do with it because of the VersionRect= I assume that means VersionRectify >.<
You mentioned you renamed your Conquer.exe (or at least that is the impression). Have you made sure that the autopatcher is trying to open the correct program?
02/02/2010 15:07 WHITELIONX#5
Yup autopatcher is directed to the new named exe, the ip for the autopatcher is my Hamachi number which works also. I am just not quite sure of the inbetween check from version check to client open >.< Version is updated so in theory client SHOULD start but it just tries to open AutoPatch server continuesly?

Ok for my launcher this is what I have and I KNOW it will just open up Conquer AND the autopatcher together before some bright spark states the blatantly obvious >.> How would I go about putting a statement so that it checks the version first and then if client is up to date to start the client? And I am not looking for some dumb answer just write it in laymans terms and not that string arg crap just write it because right now I can not have my server running because no client will be able to connect >.< Anyways heres part of the launcher and this is or could be where the problem is?
Code:
private void button1_Click(object sender, EventArgs e)//play
        {
            if (Version.Equals)
            {
                System.Diagnostics.Process.Start("Conquer.exe", "blacknull");
                this.Close();




                System.Diagnostics.Process.Start("AutoPatch.exe", "blacknull");
                this.Close();
            }
        }
This is NOT the source this is a LAUNCHER for the client!

Update I have it working now sort of but the only issue now is that to start the client you need to hit bypass >.< Is there a way that I can stop it from doing this? I should realistically place the things up that I am looking at so I will do that and found the ONLY way to use the bypass to open the client is by having it next to the fail >.<
Code:
[program]
patch = AutoPatch.exe
main = Conquer.exe
fail = Conquer.exe
failparam = 
manualupdate = http://HamachiIP/UPDATEFolder
webdownLink = 
; auto update mode
; 0 = FTP
; 1 = HTTP
Default_Mode = 1
VerinfoFormat = Version: %d-%d
ConnectedErr = Network connection error. Failed to connect to the autopatch server!
CloseInstance = The game client is in progress. Do you want to exit the game and continue autopatch?

[string]
Display = [MyServer] Autopatching...
CopyRight = Copyright (C) 2007 MyServer
ConnectError = Failed to connect to the autopatch server. Please choose Exit, Retry or Bypass (Not recommended! It may cause unknown errors.).
Retry = Retry
Manual = Manual Patch
Quit = Bypass
WebTip = Download from website
QuitConfirm = The autopatch is in progress. Are you sure you want to quit?
ProcessExist = Please exit the game client before you install patches.

[progress]
TextColor = 0xFFFFFF
TextSpecial=0x00FF00
TextPushColor= 0x0000FF
BarPic = AutoPatch\Guagebar.bmp
FilePos = Updated:
ProjectPos = Overall progress:
InstallPos = Install progress:

[check]
ProcessName	= Conquer.exe
HintText	= The game client is in progress. Please exit the game first!

[pic]
count=2
DownPic1 = AutoPatch\D1.bmp
DownPic2 = AutoPatch\D2.bmp
SetupPic1 = AutoPatch\S1.BMP
SetupPic2 = AutoPatch\S2.BMP
That is the config file in autopatch folder in client and below is the socketconfig file
Code:
[Header]
GroupAmount=1

[Group1]
count=7
Server1=U1 HamachiIP 9528 HamachiIP 9528 1 14
Server2=U2 HamachiIP 9528 HamachiIP 9528 1 14
Server3=U3 HamachiIP 9528 HamachiIP 9528 7 16
Server4=U4 HamachiIP 9528 HamachiIP 9528 1 15

[time]
QLinkTimeOut=10000
QSendTimeOut=10000
QReceiveTimeOut=10000
DLinkTimeOut=10000
DSendTimeOut=10000
DReceiveTimeOut=10000

[Manual]
Server=http://HamachiIP/MyServerUPDATE

[Statistics]
Server=http://HamachiIP/MyServerUPDATE
My main questions now are what is failparam for and what is statistics for?