5165 Problem

01/02/2011 04:32 Jay10291#1
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 piss me off -.- can anyone help me out?
01/02/2011 04:34 Syst3m_W1z4rd#2
And the error says? What did u add last?
Code example would also help.
01/02/2011 04:43 Jay10291#3
There is no error description.. that is the error. Im guessing it has something to do with Items.txt in the source because its a fresh client..
01/02/2011 05:01 Jay10291#4
i tried putting a fresh items.txt and itemtype.dat in the source and client and im still getting the same fucking error... this is killing me
01/02/2011 05:39 Syst3m_W1z4rd#5
What does the error say exactly :D
01/03/2011 05:06 Jay10291#6
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.
01/03/2011 12:38 Syst3m_W1z4rd#7
Is high lighted, but I can't help, if you don't post the exception.
01/04/2011 03:36 Jay10291#8
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 shit 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.
01/05/2011 23:00 Jay10291#9
request close
this isnt going anywhere...
01/05/2011 23:49 Arcо#10
The problem is you made an error when adding an item to the items.txt.
Check the latest items you added or edited and see if you forgot a space.
01/06/2011 02:40 .Kinshi#11
"Input string not in a correct format"

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)
01/06/2011 16:17 Iron~Man#12
#You Should Not Flame the Guyz that are trying to help you.

;)