Register for your free account! | Forgot your password?

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

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

Advertisement



[Help]The loging problem on 5165

Discussion on [Help]The loging problem on 5165 within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Feb 2007
Posts: 340
Received Thanks: 38
[Help]The loging problem on 5165

Hello guys.
I'm using tanel's source 5165 with impulses socket system and I got a problem with the login.
There are some guys that can't log in because of the red line (sometime and for some IPs not all of them, even though it's fixed after the server is restarted)
Code:
                string IP = wr._socket.RemoteEndPoint.ToString().Split(':')[0].ToString();
                if (!Connections.ContainsKey(IP))
                        [B][COLOR="Red"]Connections.Add(IP, 1);[/COLOR][/B]
now the error is
Code:
System.IndexOutOfRangeException: Index was outside the bounds of the array.
   at System.Collections.Generic.Dictionary`2.Resize()
   at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
   at System.Collections.Generic.Dictionary`2.Add(TKey key, TValue value)
   at NewestCOServer.Main.Sockets.MasterSocket.AcceptConnections(IAsyncResult result) in E:\CO PROJECTS\5165\Fixed Source\rikardo updated\Main\Sockets\MasterSocket.cs:line 48
and I just don't get it why this error appears...any suggestions/help?

also example of ips that are unable to log in(until server is restarted):
Code:
99.98.64.159
41.237.113.249
173.210.141.250
81.154.141.95
and many others....

also if you leave it as it is and turns into this error the login server is turning off...if you make it like
Code:
                string IP = wr._socket.RemoteEndPoint.ToString().Split(':')[0].ToString();
                if (!Connections.ContainsKey(IP))
                    try
                    {
                        Connections.Add(IP, 1);
                    }
                    catch (Exception E)
                    {
                        Program.WriteLine(E.ToString());
                        Program.WriteLine("error ip: " + IP);
                        wr._socket.Disconnect(false);
                        _socket.BeginAccept(AcceptConnections, new Wrapper());
                        return;
                    }
the guy trying to log in and his IP cannot be added into the dictionary gets kicked off the server...but this doesn't fix the problem....suggestions?
ryuchetval is offline  
Old 01/26/2011, 10:04   #2


 
Korvacs's Avatar
 
elite*gold: 20
Join Date: Mar 2006
Posts: 6,125
Received Thanks: 2,518
How is the dictionary declared?
Korvacs is offline  
Old 01/26/2011, 10:20   #3
 
elite*gold: 0
Join Date: Feb 2007
Posts: 340
Received Thanks: 38
like this
Code:
private Dictionary<string, byte> Connections;
ryuchetval is offline  
Reply


Similar Threads Similar Threads
Loging down ?
08/12/2010 - Metin2 Private Server - 0 Replies
Heey wie krig ich Loging oder Wolrd server wieder on wens down ist ohne zu rebooten muss immer wieder ein reboot machen wens down ist und noch eine frage wie bau ich den DT2 ein ?
5165 error loging in...
03/11/2010 - CO2 Private Server - 2 Replies
when ever i have a friend log in or even myself (into my 5165 sever) the client ether just pretty much logs in but right when the blue bar hits the end it closes... and i have tried many clients.. some say invalid account or password... all the info i put in is right can someone help me?:rtfm::rtfm::rtfm::rtfm::rtfm: lol:mofo:
Loging in bug !
01/08/2010 - Kal Online - 7 Replies
Yo ! When i trying to log in my old blocked account on INixGame-Free to Play , after i write ID / PW i getting message in window : Connection Lost please try log in later
problem|with loging in to SJSRO..the start doesn't show up
06/01/2009 - SRO Private Server - 0 Replies
first of all pliz can some one give a working media.pk for SJSRO ..the old one ther are so many i dont know what is the right one ... and secound.. im trying to log into the game i select the old server in the lancher and the start button doesn't show
Loging in problem
09/18/2007 - Conquer Online 2 - 12 Replies
Hey am i the only one that cant log onto the servers??? is there like some sort of maintance :( im confused sorry:confused:



All times are GMT +2. The time now is 18:13.


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