I just recently spawned some new npcs, alot of them so i dont know which one it is talking about, and im trying to figure out which this bug is from so here it is
Here is line 18
If you can help me it will be greatly appreciated!
Code:
System.OverflowException: Value was either too large or too small for an unsigned byte.
at System.Convert.ToByte<UInt32 value>
at COServer_Project.NPCs.SpawnAllNPCs<>
Entities.cs:line 18
Here is line 18
Code:
SingleNPC npc = new SingleNPC(Convert.ToUInt32(NPC[0]), Convert.ToUInt32(NPC[1]), Convert.ToByte(NPC[2]), Convert.ToByte(NPC[3]), Convert.ToInt16(NPC[4]), Convert.ToInt16(NPC[5]), Convert.ToInt16(NPC[6]), Convert.ToByte(NPC[7]));
If you can help me it will be greatly appreciated!