Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Private Server
You last visited: Today at 16:21

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

Advertisement



[Help]source 5101 coemu[Help}

Discussion on [Help]source 5101 coemu[Help} within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
renetjuuh's Avatar
 
elite*gold: 0
Join Date: Jul 2008
Posts: 97
Received Thanks: 9
[Help]source 5101 coemu[Help}

hello everyone,

im using 5101 source. but i got an problem. my hamchi ip change all the time in to my own ip :s
i try to change it but fail.
all what i want is that it just stays by the ip that i filled in
Code:
	public static void StartServer()
		{
            //Console.WriteLine("Starting Server");
            try
            {
                MyWan = System.Text.Encoding.ASCII.GetString((Cl.DownloadData("http://whatismyip.com/automation/n09230945.asp")));
            }
            catch { }
            CheckWan(MyWan);
Code:
  private static void CheckWan(string MyWan)
        {
            if (MyWan.Length > 5)
            {
                Ini Wan = new Ini("C:\\AppServ\\www\\Co\\Patches\\version.ini");
                string LastIp = Wan.ReadValue("Data", "ip");
                if (MyWan != LastIp)
                {
                    Wan.WriteString("Data", "ip", MyWan);
                    string[] OldLines = new string[100]; byte CurL = 0;
                    //string[] UpDateServer = File.ReadAllLines("C:\\AppServ\\www\\Co\\Patches\\Server.dat");
                    FileStream ServerDat = new FileStream("C:\\AppServ\\www\\Co\\Patches\\server.dat", FileMode.Open, FileAccess.Read);
                    StreamReader srFile = new StreamReader(ServerDat);
                    while (!srFile.EndOfStream)
                    {
                        string CurLine = srFile.ReadLine();
                        if (CurLine.Contains(LastIp))
                        {
                            CurLine=CurLine.Replace(LastIp, MyWan);
                        }
                        OldLines[CurL] = CurLine; CurL++;
                    }
                    srFile.Close();
                    ServerDat.Close(); ServerDat.Dispose();
                    FileStream NewServer = new FileStream("C:\\AppServ\\www\\Co\\Patches\\server.dat", FileMode.Open, FileAccess.Write);
                    StreamWriter ToWrite = new StreamWriter(NewServer);
                    for (byte x = 0; x < CurL; x++)
                    {
                        ToWrite.WriteLine(OldLines[x]);
                    }
                    ToWrite.Close(); NewServer.Close();
                }
                
            }
        }
everyting is i nano.cs

chears: rene
renetjuuh is offline  
Old 02/14/2010, 22:39   #2
 
sawickas's Avatar
 
elite*gold: 0
Join Date: Sep 2008
Posts: 617
Received Thanks: 38
Yuo need recode all system,and yuo using quiq co source its a lot of bugs hawe.
sawickas is offline  
Old 02/15/2010, 18:54   #3
 
renetjuuh's Avatar
 
elite*gold: 0
Join Date: Jul 2008
Posts: 97
Received Thanks: 9
na i dont think you neet to recode the whole systeem, and is has much bugs but i dont care i learn from that
renetjuuh is offline  
Reply


Similar Threads Similar Threads
[Question] 5101 Coemu & 5165 Source
12/02/2009 - CO2 Private Server - 5 Replies
Would CoemuV2 source codes work on the 5165 or would 5165 source codes work on coemu if i upgraded coemuv2 to 5165 instead of having 5101 and PS. how to i upgrade the guide i don't get it at all lol thanks
[SALE] 5101 Source
11/10/2009 - Conquer Online 2 Trading - 1 Replies
Heya, I'm selling my old source (patch 5101) for a reasonable price, payments must be done over paypal and please don't post if you're not interested. Please consider I'm not sending the source first before the payment. My source has; Almost all npcs complete Flower system Nobility system Time packets fixed
[Sale] 5101 Source
11/09/2009 - CO2 Private Server - 5 Replies
Heya, I'm selling my old old 5101 source based on CoEmu v2, it has everything done except for mentor. The price range would be from 30 dollars minimum on discussion, if you're not interested in buying this then please don't reply on this thread and if you will with negative posts i will report you right away. NOTE: If you plan on buying this then please consider i won't send the source first before the money, thank you. Seeya, Yashi.
[Help]Timed out in 5101 source
11/07/2009 - CO2 Private Server - 0 Replies
When i logging : Error: Dissconcted witch game server bla bla In SF : Test's conecction timed out Plz help me :handsdown:
[IMPORTANT] Next month new Release of a source 5101 With horse riding! :O
07/18/2009 - CO2 PServer Guides & Releases - 23 Replies
New powersrouce is comming guys..! It has alot of options without any bugs.. Horse riding( quest) works.. star Tower Heaven Fan Vip system. 100% english All NPC's Its like the CoEmuv2 but then much greater Without bugs



All times are GMT +1. The time now is 16:22.


Powered by vBulletin®
Copyright ©2000 - 2026, 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 ©2026 elitepvpers All Rights Reserved.