[Release Source] Play.exe with autopatch

02/27/2010 22:56 Paralyzer[GM]#16
I get an error when I launch the program it throws this error:

System.ArgumentException: Item has already been added. Key in dictionary: 'IniParser+SectionPair' Key being added: 'IniParser+SectionPair'
at IniParser..ctor(String iniPath)
at CoPinoyPatcher.frmPatcher.Completed(Object sender, AsyncCompletedEventArgs e)
at System.Net.WebClient.OnDownloadFileCompleted(Async CompletedEventArgs e)
at System.Net.WebClient.DownloadFileOperationComplete d(Object arg)

But when I click Continue to will automaticly make me launch the game without downloading the autopatch HELP!
02/28/2010 02:20 Paralyzer[GM]#17
Bump
02/28/2010 16:47 arab4life#18
Good job, will be using it
Thank you! Keep the good work up.
03/01/2010 11:03 kamote#19
Quote:
Originally Posted by Paralyzer[GM] View Post
I get an error when I launch the program it throws this error:

System.ArgumentException: Item has already been added. Key in dictionary: 'IniParser+SectionPair' Key being added: 'IniParser+SectionPair'
at IniParser..ctor(String iniPath)
at CoPinoyPatcher.frmPatcher.Completed(Object sender, AsyncCompletedEventArgs e)
at System.Net.WebClient.OnDownloadFileCompleted(Async CompletedEventArgs e)
at System.Net.WebClient.DownloadFileOperationComplete d(Object arg)

But when I click Continue to will automaticly make me launch the game without downloading the autopatch HELP!
just check your ini files, most likely you configure it incorrectly...
03/01/2010 15:51 Basser#20
Quote:
Originally Posted by .Arco View Post
Well this information is needed.
If yours is better people would want to know which one they should use, or not to use.
Not really.
What ever a human says, never is objective, but any ways, he cannot (objective) decide which one is better, nor does he have to.
03/13/2010 22:35 Paralyzer[GM]#21
Works good

+Thanks

I need some help,

When its up to date it will display the page I told it to ( server status ) but I want to know if there is a way "webBrowser1" will display the patches update info say my new patch is 1005.exe and I wanted it to display 1005.html when it downloads that patch just like acid-co ??
03/14/2010 14:22 xI NiNJA DuCKey#22
Im not Entirely sure, But i think they use a web browser and use the method Get current directory :S
03/14/2010 14:56 gad-legion#23
this is useful
03/14/2010 15:53 Paralyzer[GM]#24
Any ideas for my post ^^ ?
03/15/2010 07:40 kamote#25
Quote:
Originally Posted by Paralyzer[GM] View Post
Works good

+Thanks

I need some help,

When its up to date it will display the page I told it to ( server status ) but I want to know if there is a way "webBrowser1" will display the patches update info say my new patch is 1005.exe and I wanted it to display 1005.html when it downloads that patch just like acid-co ??
try this.

1. On you're conquer client open patch.ini and look
Code:
Site=[COLOR="Red"]http://account.conqueronline.com/91signup/common/ZFRegister.aspx[/COLOR]
2. change it to something like.
Code:
Site=http://yourdomain.com/1005.html
3. add your patch.ini in your 1005.exe

4. Open Form1.cs and search for
Code:
lblStatus.Text = "Done Patching, click the play button to start";
5. above it add this code
Code:
webBrowser1.Navigate(site.GetSetting("Config", "Site"));
..thats it... hope it help

Note: Every new update you made. you should include always your updated patch.ini with it
03/15/2010 17:34 Paralyzer[GM]#26
No but I mean like when it downloads the new patch it will display the patch info not just to have 1 page! ) so like 1001.exe will display 1001.html and when the update has downloaded it will display the defult page.
03/16/2010 02:51 kamote#27
Quote:
Originally Posted by Paralyzer[GM] View Post
No but I mean like when it downloads the new patch it will display the patch info not just to have 1 page! ) so like 1001.exe will display 1001.html and when the update has downloaded it will display the defult page.
just add the update info on your default page... that way would be easy.
04/07/2010 19:09 Paralyzer[GM]#28
Na, I want it so that it will only display that update can you please help me

Downlaoading patch 1005.exe so it will display 1005.html ? then it download 1006.exe so it displays the 1006.html
04/07/2010 19:33 PeTe Ninja#29
i can helpz u
04/30/2010 06:27 kamote#30
Quote:
Originally Posted by Paralyzer[GM] View Post
Na, I want it so that it will only display that update can you please help me

Downlaoading patch 1005.exe so it will display 1005.html ? then it download 1006.exe so it displays the 1006.html
then tweak the source code... on my original source, the browser will only display the config site on form_activate event. if you want it to display each time it download something, then add a code somewhere here
Code:
public bool downLoad(string source, string destination)
        {
            WebClient webClient = new WebClient();
            bool result = true;
            try
            {
 [COLOR="Red"]               webBrowser1.Navigate("http://www.yourdomain.com/patch/"+patch.GetSetting("Current", "Version") + ".html");[/COLOR]
                webClient.DownloadFileCompleted += new AsyncCompletedEventHandler(Completed);
                webClient.DownloadProgressChanged += new DownloadProgressChangedEventHandler(ProgressChanged);
                webClient.DownloadFileAsync(new Uri(source), @destination);
            }
            catch
            {
                result = false;
            }
            return( result);
        }
added code(in red)