i have an old 5165 source from months ago and it was perfectly find and ran with no errors but now when i hit f5 to build I get this error NewItem.CPsWorth = Convert.ToUInt32(data[36]);
I think it has something to do with Items.txt in OldCoDB but i have no clue wtf it could be. its rly starting to **** me off -.- can anyone help me out?
dude read above...like idk what else to say to you, the error is in my first post bolded and underlined :S ANYONE ELSE KNOW WHATS WRONG WITH MY Items.txt TO GET THIS ERROR?? IM ALMOST POSITIVE THE ERROR IS RELATED TO Items.txt im just not skilled enough to find it, i need help =\
NewItem.CPsWorth = Convert.ToUInt32(data[36]); around line 682 in Database.cs UNDER NewItem.MagicDefense = Convert.ToUInt32(data[30]); is whats being highlighted when i try to build.
Sorry, I didnt really understand what you meant by "exception". But in the exception helper it says
Quote:
FormatException was unhandled
Input string not in a correct format
Troubleshooting Tips:
Make sure your method arguments are in the right format.
When converting a string to DateTime, parse the string to take the date before putting each variable into the DateTime object.
The stuff above gets me thinking something is wrong like..an extra 0 or letter that does not belong in Items.txt but i didnt find any abnormailities there. And Ive tried fresh ones that give me the same problem
Here's some info that may help: This is a server with a bunch of **** added client side and server side. There were tons og custom gears added but I wanted to remove only the gears while leaving the rest of the source the same. So I put in a clean c3, data, ani and ini folder in the CLIENT and put the same ItemAdd and itemtype.dat(Items.txt) The items are no longer in the client or source.. but now I get that error.
That means data[36] is not a number.
So when you call the conversion to make it a UInt32, it'll give the error because its not a number.
(Examples of not numbers: " ", "hi", "23h", NULL)
[Help]5165 problem 12/10/2010 - CO2 Private Server - 2 Replies this is the original 5165 released.
Blowfish.cs line 85:
Native.BF_set_key(_key, data.Length, data);
BlowFish.cs Line 15:
_blowfish.SetKey(key);
problem with 5165 04/09/2010 - CO2 Private Server - 2 Replies The login keep getting freeze how do i fix that?
5165 Npc Problem ! 02/27/2010 - CO2 Private Server - 4 Replies i have a BIG problem !
Almost all of my npc's say this line when i press them :
" Hi, i dont talk anything useful yet, my ID is ****** "
What shell i do ? Can someone help me & tell me what is the problem ? Why can they work ?
5165 new problem ! help me please 02/23/2010 - CO2 Private Server - 1 Replies How to transcend level 255
How to transcend hp 65535
How to transcend mp 65535
or
How to change level type to ulong
How to change hp type to ulong
[HELP] 5165 Problem 12/07/2009 - CO2 Private Server - 7 Replies Ok, I have filled out config and everything, but then when I run "NewestCOServer", this happens:
http://img18.imageshack.us/img18/4520/problemxq.j pg
What did I do wrong?