[Release] Auto Patcher v3

01/04/2010 00:40 kinshi88#16
Quote:
Originally Posted by Russel00 View Post
Is There Anyway To Install More Then One Patch,

Like Say My Player Has Client Version 1000

& My Server's Current Patch Is 1005..

Is There A Way To Make It Install Patch 1001-1005 Instead Of Just Installing 1001 & Setting My Version.dat To The Latest Version?


#Edit Link's Are Down Btw :/ Could You Re-Upload?
Yes:

Code:
[1000]
DL=http://SITE/1001-1005.exe
Then have the verion.dat 1005.

OR you can go:

Code:
[1000]
DL=http://SITE/1001.exe

[1001]
DL=http://SITE/1002.exe

[1002]
DL=http://SITE/1003.exe

etc...
01/04/2010 00:41 .Ryu#17
Thanks kinshi :)
01/04/2010 00:50 Russel00#18
Quote:
Originally Posted by kinshi88 View Post
Yes:

Code:
[1000]
DL=http://SITE/1001-1005.exe
Then have the verion.dat 1005.

OR you can go:

Code:
[1000]
DL=http://SITE/1001.exe

[1001]
DL=http://SITE/1002.exe

[1002]
DL=http://SITE/1003.exe

etc...

Thank's ;D

Nao Is There Anyway You Can Re-upload ;P

#Edit Sorry Didnt See The New Link's(:
01/04/2010 00:54 kinshi88#19
Yes I re-uploaded =P
01/04/2010 01:17 Russel00#20
Quote:
Originally Posted by kinshi88 View Post
Yes I re-uploaded =P
Hm, This Is My Setup

(APConfig)

[Config]
Location=(computer's ip) <- because i use apache
Play=[AEO].exe


(PatchConfig.ini)

[Current]
Version=1003

[1000]
DL=http://Computers IP/patch/1001.exe

[1001]
DL=http://Computers IP/patch/1002.exe

[1002]
DL=http://Computers IP/patch/1003.exe

& This Is My Result,

404: Patch not found. Please contact an admin
press any key to exit..

But Yet I have the patch's in that exact folder :/

& V2 Work's Fine But yet This One Isnt D:
01/04/2010 01:42 kinshi88#21
Quote:
Originally Posted by Russel00 View Post
Hm, This Is My Setup

(APConfig)

[Config]
Location=(computer's ip) <- because i use apache
Play=[AEO].exe


(PatchConfig.ini)

[Current]
Version=1003

[1000]
DL=http://Computers IP/patch/1001.exe

[1001]
DL=http://Computers IP/patch/1002.exe

[1002]
DL=http://Computers IP/patch/1003.exe

& This Is My Result,

404: Patch not found. Please contact an admin
press any key to exit..

But Yet I have the patch's in that exact folder :/

& V2 Work's Fine But yet This One Isnt D:
Make sure the version in your Conquer folder is either 1000, 1001, or 1002.
01/04/2010 01:56 Russel00#22
It Is 1000 :/
01/04/2010 05:08 cronoszeu#23
Well for me worked :D

Leet me tell you how:

first u need:
APConfig.ini and Autopatcherv3.exe

Code:
APConfig.ini
[Config]
Location=websitenamewithouthttp/copatches
Play=conquer.exe
this is ok

now:
open your version.dat in client and add 1000

after:
PatchConfig.ini - serever ini this is the important part.

Code:
[Current]
Version=1003

[1001]
DL=websitenamewithouthttp/copatches/1.exe

[1002]
DL=websitenamewithouthttp/copatches/2.exe

and so on
don`t forget to add ecerytime a server.dat with new version in.

Regards
01/04/2010 17:17 Russel00#24
Quote:
Originally Posted by cronoszeu View Post
Well for me worked :D

Leet me tell you how:

first u need:
APConfig.ini and Autopatcherv3.exe

Code:
APConfig.ini
[Config]
Location=websitenamewithouthttp/copatches
Play=conquer.exe
this is ok

now:
open your version.dat in client and add 1000

after:
PatchConfig.ini - serever ini this is the important part.

Code:
[Current]
Version=1003

[1001]
DL=websitenamewithouthttp/copatches/1.exe

[1002]
DL=websitenamewithouthttp/copatches/2.exe

and so on
don`t forget to add ecerytime a server.dat with new version in.

Regards
Thank's Alot (: It Wasnt Stated In The Guide That You Couldnt Have Http:// In The Url! ;D
01/04/2010 17:49 .Guru#25
Quote:
Originally Posted by zane203 View Post
oh man its been to long since i been back xD, damn kinshi you're a mod now O.o lolz late congratz to ya man =]

thinking about getting back into C# coding so now i know who to bug... again... muahahahhaha (nah im messin with ya, im not gonna bug ya).
i got your source. if you still want it.
01/04/2010 20:03 Fleaman#26
Nice release Kinshi!
01/04/2010 20:29 Basser#27
Quote:
Originally Posted by Hepatitis C View Post
Great release kinshi!
As always you never fail to disappoint.
As always he never fails to disappoint?
Seriously, he always fails to disappoint, his releases never disappoint me, more like the opposite of disappointing.
01/04/2010 20:32 Arcо#28
Quote:
Originally Posted by Smythe94 View Post
As always he never fails to disappoint?
Seriously, he always fails to disappoint, his releases never disappoint me, more like the opposite of disappointing.

Ahhh, facepalm on my grammar.
01/05/2010 01:02 kinshi88#29
Quote:
Originally Posted by Russel00 View Post
Thank's Alot (: It Wasnt Stated In The Guide That You Couldnt Have Http:// In The Url! ;D
You can have http:// in the url.
Make sure its all lowercase ([Only registered and activated users can see links. Click Here To Register...] else it will add http:// to the beginning of it.

Or you can fix it by doing the following:

Above:
Code:
static void Success(string str)
Add the function:
Code:
        static string httpCheck(string url)
        {
            if (!url.ToLower().StartsWith("http://") || !url.ToLower().StartsWith("https://"))
                return "http://" + url;
            else
                return url;
        }
Then look for:
Code:
if (!dl.StartsWith("http://") || !dl.StartsWith("https://"))
Change it to:
Code:
dl = httpCheck(dl);
And:
Code:
if (!x.StartsWith("http://") || !x.StartsWith("https://"))
To:
Code:
x = httpCheck(x);
01/05/2010 03:02 DanteUzumaki#30
tyvm dude works like a charm :D