Register for your free account! | Forgot your password?

You last visited: Today at 18:09

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[AutoPatcher]

Discussion on [AutoPatcher] within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Feb 2009
Posts: 1,765
Received Thanks: 382
[AutoPatcher]

I was trying to make an autopatcher, but im kinda stucked with reading from host.

I tried: (changed IPHERE to ip)
Code:
            Ini Configg = new Ini(System.Windows.Forms.Application.StartupPath + @"\IPHERE\autopatcher\Config.ini");
            string ThePath = Configg.ReadValue("Config", "Patch");
didnt work, anybody got a solution how i can read it from the host?

The autopatcher folder is in AppServ\www folder

any solutions?
Fish* is offline  
Old 07/19/2010, 05:28   #2
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,785
Received Thanks: 5,304
Quote:
Originally Posted by grillmad View Post
I was trying to make an autopatcher, but im kinda stucked with reading from host.

I tried: (changed IPHERE to ip)
Code:
            Ini Configg = new Ini(System.Windows.Forms.Application.StartupPath + @"\IPHERE\autopatcher\Config.ini");
            string ThePath = Configg.ReadValue("Config", "Patch");
didnt work, anybody got a solution how i can read it from the host?

The autopatcher folder is in AppServ\www folder

any solutions?
Read kinshi's src.
Arcо is offline  
Thanks
2 Users
Old 07/19/2010, 05:38   #3
 
elite*gold: 0
Join Date: Feb 2009
Posts: 1,765
Received Thanks: 382
Okay thanks
Fish* is offline  
Old 07/20/2010, 20:03   #4
 
elite*gold: 0
Join Date: May 2010
Posts: 298
Received Thanks: 57
Why use an ini? Check the version.dat against the .exe's on the site ex:
Code:
  private void Form1_Load(object sender, EventArgs e)
        {
            label1.Text = ("Checking for updates...");
            string s = File.ReadAllText("version.dat");
            label2.Text = ("Version: " + s);
            WebClient client = new WebClient();
            client.DownloadFileCompleted += new AsyncCompletedEventHandler(this.client_DownloadFileCompleted);
            client.DownloadProgressChanged += new DownloadProgressChangedEventHandler(this.client_DownloadProgressChanged);
            try
            {
                int num = int.Parse(s) + 1;
                client.DownloadFileAsync(new Uri("http://localhost/updates/" + num.ToString() + ".exe"), "what.exe", null);
                webBrowser1.Navigate("http://localhost/updates/" + num.ToString() + ".html");
            }
            catch (Exception)
            {
                label1.Text = ("Client upto date.");
            }
        }
        private void client_DownloadFileCompleted(object sender, AsyncCompletedEventArgs e)
        {
            if (e.Error != null)
            {
            }
            else
            {
                this.Startupdate();
            }
        }
        private void client_DownloadProgressChanged(object sender, DownloadProgressChangedEventArgs e)
        {
            this.label1.Text = "Updating...."
            this.progressBar1.Value = e.ProgressPercentage;
        }
        private void StartConquer()
        {
//however you wonna start co.
        }
        private void Startupdate()
        {
            Process process = new Process();
            ProcessStartInfo info = new ProcessStartInfo();
            info.FileName = "Temp.exe";
            info.UseShellExecute = true;
            process.StartInfo = info;
            process.Start();
        }
        private void button3_Click(object sender, EventArgs e)
        {
            Application.Exit();
        }
95% Credits to Ultimati0n. the %5 is to me for putting it into a .cs and editing it, and removing a fair bit from that autopatcher (including how to start a 5180+ co.exe) so. yeah.
MonstersAbroad is offline  
Thanks
1 User
Reply


Similar Threads Similar Threads
How to create a autopatcher
04/18/2010 - Shaiya Private Server - 3 Replies
Currently i am tryin to make a Autopatcher for my private server but i am running into problems seein i dont kno where to start at xD so if anyone could give me a lil advice on how to do it i would appricate it Insane Shaiya Game Master -Lynch-
[HELP]AutoPatcher
02/28/2010 - CO2 Private Server - 0 Replies
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...
autopatcher help
01/18/2010 - EO PServer Hosting - 17 Replies
im trying to put an autopatcher on our server, im using the one Forcer and FunHacker released (right on its on my personal computer not the server)... i need to know how to put a directory on our site.
RO Autopatcher needed
04/23/2006 - Ragnarok Online - 4 Replies
Hi! ALso ... Ich habe nen Ro server. Jetzt möchte ich einen Auto Patcher machen. D.h. : Ich packe halt files auf nen Webserver ( ausm Data ordner fürn Client ). Dann starte ich mit nem anderen Pc der noch alte files hat den Patcher und der überprüft welche neuer sind. Wenn die auf dem Webserver neuer sind lädt er die da runter und dann packt er sie automatisch in den Data ordner Im RO ordner. Gibts sowas? WÄre echt nett wenn ihr mir helfen könnten! MFG BloodHunter



All times are GMT +1. The time now is 18:10.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.