Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Private Server
You last visited: Today at 08:32

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

Advertisement



anyone know wat this Error

Discussion on anyone know wat this Error within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Oct 2008
Posts: 708
Received Thanks: 46
anyone know wat this Error

System.IndexOutOfRangeException: Index was outside the bounds of the array.
at System.Collections.Generic.Dictionary`2.ValueColle ction.CopyTo(TValue[] array, Int32 index)
at System.Linq.Buffer`1..ctor(IEnumerable`1 source)
at System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source)
at System.Collections.Generic.ThreadSafeDictionary`2. safeUpdate()
at System.Collections.Generic.ThreadSafeDictionary`2. Remove(T1 key)
at Conquer_Online_Server.Client.GameState.ShutDown()
at Conquer_Online_Server.Client.GameState.Disconnect( )
at Conquer_Online_Server.Program.GameServer_AnnounceD isconnection(ISocketWrapper obj)
at Conquer_Online_Server.Network.Sockets.AsyncSocket. InvokeDisconnect(AsyncSocketWrapper Client)
at Conquer_Online_Server.Network.Sockets.AsyncSocket. AsyncReceive(IAsyncResult res)
Code:
System.NullReferenceException: Object reference not set to an instance of an object.
   at Conquer_Online_Server.Game.Attacking.Handle.CanAttack(Entity attacker, Entity attacked, SpellInformation spell, Boolean melee)
   at Conquer_Online_Server.Game.Attacking.Handle.Execute()
   at Conquer_Online_Server.Game.Attacking.Handle..ctor(Attack attack, Entity attacker, Entity attacked)
   at Conquer_Online_Server.Network.PacketHandler.Attack(Attack attack, GameState client)
   at Conquer_Online_Server.Network.PacketHandler.HandlePacket(Byte[] packet, GameState client)
   at Conquer_Online_Server.Network.PacketHandler.HandleBuffer(Byte[] buffer, GameState client)
   at Conquer_Online_Server.Program.GameServer_AnnounceReceive(Byte[] arg1, ISocketWrapper arg2)
   at Conquer_Online_Server.Network.Sockets.AsyncSocket.AsyncReceive(IAsyncResult res)
magnon is offline  
Old 10/29/2011, 10:13   #2
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,380
If you posted the line of code where the error occurred it would be far more helpful.


My guess is you are either

A: attacking a monster which no longer exists in server monsters collection (something like Program.Monsters or Kernel.Monsters) or

B: You are attacking a player which is disconnected (Usually Kernel.Clients or Program.Clients)


All the error means is you are trying to access a number in an element that does not exist (dictionary,list or array). Note elements start at 0 not 1. First element = 0, second = 1, etc.

If you try to access an element which does not exist you get this error obviously.
pro4never is offline  
Old 10/30/2011, 08:32   #3
 
elite*gold: 0
Join Date: Oct 2008
Posts: 708
Received Thanks: 46
what about this error it's hard to resolve?

Code:
System.NullReferenceException: Object reference not set to an instance of an object.
   at Conquer_Online_Server.Game.Attacking.Handle.CanAttack(Entity attacker, Entity attacked, SpellInformation spell, Boolean melee)
   at Conquer_Online_Server.Game.Attacking.Handle.Execute()
   at Conquer_Online_Server.Game.Attacking.Handle..ctor(Attack attack, Entity attacker, Entity attacked)
   at Conquer_Online_Server.Network.PacketHandler.Attack(Attack attack, GameState client)
   at Conquer_Online_Server.Network.PacketHandler.HandlePacket(Byte[] packet, GameState client)
   at Conquer_Online_Server.Network.PacketHandler.HandleBuffer(Byte[] buffer, GameState client)
   at Conquer_Online_Server.Program.GameServer_AnnounceReceive(Byte[] arg1, ISocketWrapper arg2)
   at Conquer_Online_Server.Network.Sockets.AsyncSocket.AsyncReceive(IAsyncResult res)
magnon is offline  
Reply


Similar Threads Similar Threads
[Error]Error when using Zero's method/And another Error
09/16/2011 - Shaiya Private Server - 5 Replies
well here is a screeny of my problem. Any assistance is greatly appreciated. I haven't come across this error before nor seen any posts up here about it. Also this is me executing the NpcQuest_cvs.bat and yes i changed python to C:/Python27/Python.exe in the command line. http://img707.imageshack.us/img707/9997/errorgx.p ng Ok So my second error involves changing Stat points per lvl here is my screen shots http://img854.imageshack.us/img854/6412/nosave.pn g



All times are GMT +1. The time now is 08:33.


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.