Register for your free account! | Forgot your password?

You last visited: Today at 13:25

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

Advertisement



coSXserver problem

Discussion on coSXserver problem within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jul 2010
Posts: 9
Received Thanks: 1
coSXserver problem

Good day

So has you saw on title i came with a CoSXserver problem.
I configured/loaded and working fine, but he started to send error messages in server window. Let me show you what im talking about.

- Loading Skills...
[GameServer] Skills loading 44
- Loading Nobility count...
- Loading Items...
Items loading 8426
- Loading PlusInfo...
[GameServer] PlusInfo loading 6168
- Loading Portals...
[GameServer] Portals loading 234
- Loading NPCs...
[GameServer] Npc loading 1287
- Loading QuizQuestions...
[GameServer] QuizQuestion loading 83
- Loading Guilds...
Guilds loading 44
Starting to load DMaps.
Maps loading 27
DMaps loaded successfully in 2000 milliseconds.
- Loading Mobs...
Mobs loaded 13982
- Loading LottoItems...
[GameServer] LoteryItems loading 1314
Loading Complete!

ServerV2 Leveling Server...
-----------------------------------------------------------------------
Server Was Made By lazy-co
Server on Client 5165+
Server use port 9958
-----------------------------------------------------------------------
lazy-co Source : Online
ServerIP 98.249.242.160
Athanous has logged on.
System.ArgumentException: An item with the same key has already been added.
at System.ThrowHelper.ThrowArgumentException(Exceptio nResource resource)
at System.Collections.Generic.Dictionary`2.Insert(TKe y key, TValue value, Boo
lean add)
at System.Collections.Generic.Dictionary`2.Add(TKey key, TValue value)
at ConquerSx.Database.GetItems(Character C) in C:\Conquer-Sx\Database.cs:line
1574
at ConquerSx.PacketHandling.Teleport.Handle(GameClien t GC, Byte[] Data) in C:
\Conquer-Sx\PacketHandling\Teleport.cs:line 51
at ConquerSx.PacketHandler.Handle(GameClient GC, Byte[] PData) in C:\Conquer-
Sx\PacketHandler.cs:line 990
MySql.Data.MySqlClient.MySqlException: There is already an open DataReader assoc
iated with this Connection which must be closed first.
at MySql.Data.MySqlClient.MySqlCommand.CheckState()
at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader( CommandBehavior behavior
)
at MySql.Data.MySqlClient.MySqlCommand.System.Data.ID bCommand.ExecuteReader(C
ommandBehavior behavior)
at System.Data.Common.DbDataAdapter.FillInternal(Data Set dataset, DataTable[]
datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand co
mmand, CommandBehavior behavior)
at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord,
Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)

at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, String srcTable)
at ConquerSx.Database.Authenticate(String User, String Password) in C:\Conque
r-Sx\Database.cs:line 984
MySql.Data.MySqlClient.MySqlException: There is already an open DataReader assoc
iated with this Connection which must be closed first.
at MySql.Data.MySqlClient.MySqlCommand.CheckState()
at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader( CommandBehavior behavior
)
at MySql.Data.MySqlClient.MySqlCommand.System.Data.ID bCommand.ExecuteReader(C
ommandBehavior behavior)
at System.Data.Common.DbDataAdapter.FillInternal(Data Set dataset, DataTable[]
datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand co
mmand, CommandBehavior behavior)
at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord,
Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)

at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, String srcTable)
at ConquerSx.Database.Authenticate(String User, String Password) in C:\Conque
r-Sx\Database.cs:line 984



and i honestly dont know how to fix it, thank you for your time. please give me a hand.
Thank you
bogdnlaszlo is offline  
Thanks
1 User
Old 08/02/2010, 00:10   #2
 
xXxTwiztedKidxXx's Avatar
 
elite*gold: 0
Join Date: Jul 2009
Posts: 178
Received Thanks: 9
Ive Got that same problem. It happens when someone else tries to login. from a different IP then the hoster.
xXxTwiztedKidxXx is offline  
Old 08/02/2010, 00:26   #3


 
Korvacs's Avatar
 
elite*gold: 20
Join Date: Mar 2006
Posts: 6,126
Received Thanks: 2,518
Code:
at ConquerSx.Database.GetItems(Character C) in C:\Conquer-Sx\Database.cs:line
1574
Theres your problem, your adding an item with the same unique id twice, obviously you cant do that, hence your error.
Korvacs is offline  
Old 08/02/2010, 00:48   #4
 
xXxTwiztedKidxXx's Avatar
 
elite*gold: 0
Join Date: Jul 2009
Posts: 178
Received Thanks: 9
Idk how to fix that but i learned that it works for me when u dont put a badword in the password.
xXxTwiztedKidxXx is offline  
Old 08/02/2010, 01:02   #5


 
Korvacs's Avatar
 
elite*gold: 20
Join Date: Mar 2006
Posts: 6,126
Received Thanks: 2,518
That honestly cant have anything to do with it >.<
Korvacs is offline  
Old 08/02/2010, 01:28   #6
 
xXxTwiztedKidxXx's Avatar
 
elite*gold: 0
Join Date: Jul 2009
Posts: 178
Received Thanks: 9
idk it just worked for me...Thats all i was saying.
xXxTwiztedKidxXx is offline  
Old 08/02/2010, 06:32   #7
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,379
:O simple explanation... when saving item database check to see if the uid already exists. If it exists, do a random item uid and try again. If it keeps failing then remove the item from server (LOG THE ERROR!!!! If not you will not track down the original cause and your players will be losing items!)


Wipe your item database NOW. It's already happening when you try to log in right? That means correcting codes in the server won't make any difference as the server already has 2 items with the same uid saved to the db.

Note: using sql make sure the uid is a key value (will not allow 2 of the same to be created)... if you are using ini then be super, SUPER careful about what you write to the db... it can cause lots of problems.
pro4never is offline  
Reply


Similar Threads Similar Threads
Metin 2 Pserver Problem/ Lösung für das Matrix Kartennummer Problem
01/04/2010 - Metin2 Private Server - 3 Replies
Hy Leute Wie in der Überschrift genannt, hab ich gerade ein Problem mit meinem Metin 2Server. Ich lasse ihn via Loopbackadapter laufen, funktioniert auch ganz gut. Ich hab aber jetzt das Poblem, das in meinem Account nur noch Krieger mit Level null stehen. Wie kann ich das Beheben??, das is auch manchmal da, wenn ich via Navicat n neuen Account mach. Hoffe einer hatt ne Lösung Hab n Screenshot im Anhang Aber ich hab ja auch ne Lösung für n anderes Problem. Gestern hatte ich beim...
[Problem] Problem with server starting - cannot find quest index for PaxHeader
12/22/2009 - Metin2 Private Server - 1 Replies
Hello! I have this same problem as here when i'm starting my server: http://www.elitepvpers.com/forum/metin2-pserver-di scussions-questions/307143-metin2-serverfiles-ques t-index-fehler.html But I didn't know the answer.. how to repair this? Greetings



All times are GMT +1. The time now is 13:30.


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.