Register for your free account! | Forgot your password?

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

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

Advertisement



Multiple entities kills bug

Discussion on Multiple entities kills bug within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old 11/01/2013, 13:58   #16
 
drakejoe67's Avatar
 
elite*gold: 0
Join Date: Feb 2008
Posts: 322
Received Thanks: 121
Quote:
Originally Posted by Super Aids View Post
Fang made a thread about it.

And Yuki one thing.
Code:
if (C.MyChar.Mining)
{
    C.MyChar.Mining = false;
}
Could just be:
Code:
C.MyChar.Mining = false;
No need to actually do the check.
That's there from like, 4 years ago.
___
On topic:
You might want to check your CPU usage, if you're running the server on low cores and scatter makes the CPU usage go high, it will simply jump over threads as I've experienced on duo core. I've had this problem before.

Also you might want to make sure that the Packet to send Useskill is always sent in the handler.
However, if it is always sending, then I'd recommend you checking the where it adds every target "UID" of mobs into the skill packet send. List/Dictionary whatever it may be.
(Make a dump for the list if UIDs), if it returns no uids when it kills the mobs without the arrows popping up, then that's what's faulty
Quote:
add a condition
if (ValueOfDictionary != null)
in this case, you might have it trying to do condition check on a entity that is null and it will simply stop the loop. And not add any targets to the "Dictionary" list for skill packet.
My conclusion
Quote:
On handler: CanUseSpell tries to add a null and returns an error. Breaking the loop
Something that shouldn't be added to the dictionary is added and causes a error somewhere before Skill Packet, or within it.

Make sure before trying to get a variable from the value, that it is not null.
drakejoe67 is offline  
Reply


Similar Threads Similar Threads
Entities beim Hammer Editor
10/14/2011 - Counter-Strike - 0 Replies
Einen schönen Tag, ich habe mich mal an das Mappen probiert und soweit klappt alles gut, nur wenn es dann darum geht den Spawn für die Terroristen und die Counterterroristen zu setzen klappt garnichts mehr. Da diese zwei entities nicht in der Liste vorhanden sind. Und jetzt bräuchte ich euren Rat, wie bekomme ich diese Entities, da ohne sie eine Map nunmal nicht spielbar ist ... Ich hoffe das mir jemand helfen kann. Mfg ~Bananenwerfer
I have a problem spawning entities
07/28/2011 - CO2 Programming - 4 Replies
what is The problem Heroes can be Spawned at the 1st time i set it's locations in but if i moved +18 Coords and tried to re-spawn again it doesn't spawn while the packet being send to all the Entities with the right location . what am trying to do is: getting all the NearByEntities and re-spawn it between range 18.. what's happening: is when i set the location for the 1st time i will be able to spawn and re-spawn within 18 coords where i located , if i moved out my location +18 coords...
Entities spwan/w.e sure take a look and see if you can help
07/01/2011 - CO2 Private Server - 6 Replies
hello everyone . what is the best way to do the clients/monsters/npc's spawns like when a player jumps what is the best way to spawn the in range entities . i have tried to store the entities in some kind of dictionary (Local entities) and spawn them on jumping/walking ...> slow i have stored every single valid X/Y in the game maps as a key with a Dictionary associated to that key as a value and stored the entities in that dictionary depending on the X/Y and spawned them on...
Spawn Entities, Current Patch
03/25/2011 - CO2 Private Server - 18 Replies
EDIT: Nevermind, my packet was off a few bytes :P Has spawning entities in the lastest patch changed? Entities (ex: Players) don't spawn to each other on my source since the latest patch.
entities.cs problem
10/13/2008 - CO2 Programming - 2 Replies
hi, i have a problem with entities.cs when i start my server it loads everyting almost all mobs i have but when he is on SpawnALLMobs it give an error at line:217 error=System.NullReferenceException: Object reference not set to an instance of an object. line:218 is DataBase.Mobs = null; now you know where to look just above line:218 this is what i have: public static void SpawnAllMobs() { try {



All times are GMT +1. The time now is 18:47.


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.