Register for your free account! | Forgot your password?

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

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

Advertisement



Error in the Console 5165

Discussion on Error in the Console 5165 within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
sohaib's Avatar
 
elite*gold: 0
Join Date: Jun 2010
Posts: 258
Received Thanks: 102
Error in the Console 5165

hi, i have a co pserver 5165 non-hamachi

i got an error, i can't login , it block in "login to game server"

and take a look at the Console



And here is my GameWorker.cs:
PHP Code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;

namespace 
NewestCOServer.Main
{
    class 
GameWorker
    
{
        public static 
Connection Listener;
        static 
Random Rnd = new Random();

        public static 
void StartServer()
        {
            try
            {
                
Listener = new Connection();
                
Listener.SetConnHandler(new ConnectionArrived(ConnectionHandler));
                
Listener.SetDataHandler(new DataArrived(DataHandler));
                
Listener.SetDCHandler(new Disconnection(DCHandler));
                
Listener.Listen(5816);
            }
            catch (
Exception Exc) { Program.WriteLine(Exc); }
        }
        static 
void ConnectionHandler(StateObj S)
        {
            try
            {
                
GameClient C = new GameClient(false);
                
C.Soc S.Sock;
                
S.Wrapper C;
                
C.AddSend(Packets.DHKeyPacket(C.KeyExchance.PublicKey.ToHexString(), C.NewServerIVC.NewClientIV));
                
C.EndSend();
            }
            catch (
Exception Exc) { Program.WriteLine(Exc); }
        }
        static 
void DataHandler(StateObj StObyte[] Data)
        {
            try
            {
                
GameClient GC = (GameClient)StO.Wrapper;
                
GC.Crypto.Decrypt(Data);

                if (
GC != null)
                {
                    if (
GC.SetBF)
                    {
                        
GC.SetBF false;
                        
MemoryStream MS = new MemoryStream(Data);
                        
BinaryReader BR = new BinaryReader(MS);

                        
BR.ReadBytes(7);
                        
uint PacketLen BR.ReadUInt32();
                        
int JunkLen BR.ReadInt32();
                        
BR.ReadBytes(JunkLen);
                        
int Len BR.ReadInt32();
                        
string PubKey ASCIIEncoding.ASCII.GetString(BR.ReadBytes(Len));

                        
GC.Crypto = new GameCrypto(GC.KeyExchance.ComputeKey(OpenSSL.BigNumber.FromHexString(PubKey)));
                        
GC.Crypto.Blowfish.DecryptIV GC.NewClientIV;
                        
GC.Crypto.Blowfish.EncryptIV GC.NewServerIV;

                        
BR.Close();
                        
MS.Close();
                    }
                    else
                    {
                        
ushort PacketLength BitConverter.ToUInt16(Data0);
                        
ushort PacketID BitConverter.ToUInt16(Data2);

                        if (
PacketID == 1052)
                        {
                            try
                            {
                                
ulong CryptoKey BitConverter.ToUInt64(Data4);

                                
AuthWorker.AuthInfo Info = (AuthWorker.AuthInfo)AuthWorker.KeyedClients[CryptoKey];
                                
GC.AuthInfo Info;
                                
GC.MessageID = (uint)Rnd.Next(50000);
                                
GC.Soc StO.Sock;

                                if (
GC.AuthInfo.LogonType == 2)
                                    
GC.AddSend(Packets.SystemMessage(GC.MessageID"NEW_ROLE"));
                                else if (
GC.AuthInfo.LogonType == 1)
                                {
                                    
string Acc "";

                                    
GC.MyChar Database.LoadCharacter(GC.AuthInfo.Characterref Acc);
                                    try
                                    {
                                        
GC.MyChar.MyClient GC;
                                    }
                                    catch { 
GC.Soc.Disconnect(false); return; }

                                    if (
Game.World.H_Chars.Contains(GC.MyChar.EntityID))
                                    {
                                        
Game.Character Old = (Game.Character)Game.World.H_Chars[GC.MyChar.EntityID];
                                        
Old.MyClient.Disconnect();
                                        if (!
Game.World.H_Chars.Contains(GC.MyChar.EntityID))
                                            
Game.World.H_Chars.Add(GC.MyChar.EntityIDGC.MyChar);
                                        
GC.MyChar Database.LoadCharacter(GC.AuthInfo.Characterref Acc);
                                        
GC.MyChar.MyClient GC;
                                        
GC.AddSend(Packets.SystemMessage(GC.MessageID"ANSWER_OK"));
                                        
GC.AddSend(Packets.CharacterInfo(GC.MyChar));
                                        
GC.AddSend(Packets.Status(GC.MyChar.EntityIDGame.Status.VIPLevelGC.MyChar.VipLevel));
                                        
GC.AddSend(Packets.Time());
                                        
GC.AddSend(Packets.Donators(GC.MyChar));
                                        
GC.AddSend(Packets.Packet1012(GC.MyChar.EntityID));
                                        
GC.AddSend(Packets.Status(GC.MyChar.EntityIDGame.Status.Effect0));
                                    }
                                    else
                                    {
                                        
GC.AddSend(Packets.SystemMessage(GC.MessageID"ANSWER_OK"));
                                        
GC.AddSend(Packets.CharacterInfo(GC.MyChar));
                                        
GC.AddSend(Packets.Status(GC.MyChar.EntityIDGame.Status.VIPLevelGC.MyChar.VipLevel));
                                        
GC.AddSend(Packets.Time());
                                        
GC.AddSend(Packets.Donators(GC.MyChar));
                                        
GC.AddSend(Packets.Packet1012(GC.MyChar.EntityID));
                                        
GC.AddSend(Packets.Status(GC.MyChar.EntityIDGame.Status.Effect0));
                                    }
                                    
Program.WriteLine(GC.MyChar.Name " has logged on.");
                                }
                                
GC.EndSend();
                            }
                            catch { 
GC.Soc.Disconnect(false); }
                        }
                        else 
PacketHandler.Handle(GCData);
                    }
                }
                else
                {
                    
GC.Crypto.Decrypt(Data);
                    
PacketHandler.Handle(GCData);
                }
            }
            catch (
Exception Exc) { Program.WriteLine(Exc); }
        }
        static 
void DCHandler(StateObj StO)
        {
            try
            {
                
GameClient GC = (GameClient)StO.Wrapper;
                if (
GC != null && GC.MyChar != null)
                {
                    
GC.LogOff(true);
                }
            }
            catch (
Exception Exc) { Program.WriteLine(Exc); }
        }
    }


what some one tell me what happened?
sohaib is offline  
Thanks
1 User
Old 07/10/2010, 19:24   #2
 
elite*gold: 0
Join Date: Feb 2007
Posts: 340
Received Thanks: 38
ryuchetval is offline  
Old 07/10/2010, 19:57   #3
 
sohaib's Avatar
 
elite*gold: 0
Join Date: Jun 2010
Posts: 258
Received Thanks: 102
i did, But Same problem, heeeelp

Note, the source is working very well in Windows XP
sohaib is offline  
Thanks
1 User
Old 07/10/2010, 22:32   #4
 
elite*gold: 0
Join Date: Feb 2009
Posts: 1,765
Received Thanks: 382
try set to 32bit (As u already did)
then run as administrator.
Fish* is offline  
Old 07/11/2010, 00:02   #5
 
Zkiller110's Avatar
 
elite*gold: 0
Join Date: Mar 2008
Posts: 276
Received Thanks: 99
my computer is the one having trouble hosting the 5165 server i have tried the 32 bit, i have tried running both 32 and 64 bit as administrator and I'm still getting the same error i have tried my IP address with the ports open and i have tried hamachi still no luck could someone help me get the server running through teamviwer

msn:
Zkiller110 is offline  
Old 07/11/2010, 00:53   #6
 
elite*gold: 0
Join Date: Feb 2009
Posts: 1,765
Received Thanks: 382
try add the gameserver port to ur firewall.
Fish* is offline  
Old 07/11/2010, 01:01   #7


 
Korvacs's Avatar
 
elite*gold: 20
Join Date: Mar 2006
Posts: 6,126
Received Thanks: 2,518
The link to the 32bit guide is the fix.

Make sure you do everything correctly and hit F6 to build then F5 to debug, dont run from the folder before you have rebuilt it.
Korvacs is offline  
Old 07/11/2010, 01:53   #8
 
Zkiller110's Avatar
 
elite*gold: 0
Join Date: Mar 2008
Posts: 276
Received Thanks: 99
i would really like to see someone get a 5165 server working on my computer right now i think it is almost impossible even tho 5017 servers start right up
Zkiller110 is offline  
Old 07/11/2010, 01:56   #9
 
elite*gold: 0
Join Date: May 2010
Posts: 298
Received Thanks: 57
Give your computer a restart and itl be fine.
MonstersAbroad is offline  
Reply


Similar Threads Similar Threads
5165 console error
05/03/2010 - CO2 Private Server - 9 Replies
Hi, I am using raidens itemadd.ini, and when i open the project and debug, this happens: http://i43.tinypic.com/igiue0.jpg How can I fix this?
5165 Console error.
02/27/2010 - CO2 Private Server - 11 Replies
How can i fix this 2 error spamming in my concole, server. anyonecan help me? http://www.mypicx.com/uploadimg/312686809_0226201 0_1.jpg if (UsedItem.Plus > 0) Points += Database.SocPlusExtra; if (UsedItem.FreeItem)
5165 console error!
02/09/2010 - CO2 Private Server - 7 Replies
I open the server,and when i try to log in...that happens...idk why thou... Starting to load DMaps. Loading 1000 : C:\OldCODB\map/map/desert.DMap Loading 1001 : C:\OldCODB\map/map/d_antre01.DMap
5165 console error!
01/17/2010 - CO2 Private Server - 4 Replies
I open the server,and when i try to log in...that happens...idk why thou... Starting to load DMaps. Loading 1000 : C:\OldCODB\map/map/desert.DMap Loading 1001 : C:\OldCODB\map/map/d_antre01.DMap



All times are GMT +1. The time now is 17:51.


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.