5165 Login Bug.

07/29/2010 22:46 killersub#1
alright so I got a new dumbass bug...in my source when I make a new acc and try to login it gives me "Error! disconnected from gameserver, please re-login later!"...and in da console it gives me dis:

Code:
SystemArguementException: Item has already been added. key in dictionary "0" Key being added "0"
at ...\Database.cs line 1331 in da LoadCharacter void...and all I have there is dis
Code:
C.Skills.Add(S.ID, S);
and I really dont get wat it's tryin to tel me here...call me a nub or noob but I haven't added anythin new wit a key of "0"...

any help?

regards,
killersub
07/29/2010 23:29 teroareboss1#2
if(!C.Skills.Contains(S.ID))
C.Skills.Add(S.ID, S);
07/30/2010 01:54 killersub#3
Quote:
Originally Posted by teroareboss1 View Post
if(!C.Skills.Contains(S.ID))
C.Skills.Add(S.ID, S);
thnx dat fixed that...now my char sumhow spawned wit like 13k health and like 1k vit...lol?
07/30/2010 03:08 Fish*#4
Quote:
SystemArguementException: Item has already been added. key in dictionary "0" Key being added "0"
at ...\Database.cs line 1331 in da LoadCharacter void...and all I have there is dis
Means ur trying to add something, dats already added
07/30/2010 10:50 Korvacs#5
Specifically the key your adding (with a value of 0) already exists in the dictionary, since i havent seen the defintion of the dictionary i cant tell you what youve done wrong exactly, but for some reason your character is trying to load a second entry for a skill its already got, should probably look into that if i were you.
07/30/2010 17:30 killersub#6
Quote:
Originally Posted by Korvacs View Post
Specifically the key your adding (with a value of 0) already exists in the dictionary, since i havent seen the defintion of the dictionary i cant tell you what youve done wrong exactly, but for some reason your character is trying to load a second entry for a skill its already got, should probably look into that if i were you.
still... I don't think dat fixes my character spawning wit level 0...BP 0...and like random high lvl stats at first login lol?... I fixed the key adding error