Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Private Server
You last visited: Today at 06: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   #1

 
Novakhan's Avatar
 
elite*gold: 15
Join Date: Dec 2008
Posts: 332
Received Thanks: 137
Multiple entities kills bug

I have a problem with scatter, fire ring and all the others skills that kills multiple monsters/players. -> It doesn't do the effect nor the moves of the skills. Like, with scatter I don't see arrows, I don't see the moves of the character but it happens only sometimes. I've checked the screen.cs with a friend (It's not the scatter code since every skills that kills multiple mobs do that) and we didn't find anything wrong with it. Here's a video to show the problem if you don't understand what I mean:


If someone have any idea, I'd be grateful because i'm trying to find the base of this bug for a week lol.

P.S: It's not the number of monsters, I checked and even if there's 3 monsters it won't do the action.

Thanks, Nova.
Novakhan is offline  
Old 10/28/2013, 11:02   #2
 
Super Aids's Avatar
 
elite*gold: 0
Join Date: Dec 2012
Posts: 1,761
Received Thanks: 950
Have you tried debugging?

It could be that something is blocking the attack-handler from sending the skill animation, but the death of the mobs has been handled before that.

Perhaps check for exceptions and make sure it's not some empty catch block that does it.
Super Aids is offline  
Old 10/28/2013, 11:24   #3

 
Novakhan's Avatar
 
elite*gold: 15
Join Date: Dec 2008
Posts: 332
Received Thanks: 137
I already tried debugging and I don't think it's a block of the attack-handler since it only kills x of x monsters in the area but I'll check for it & exceptions. While I'm checking, If someone have other ideas of where this problem comes, Feel free to post
Novakhan is offline  
Old 10/30/2013, 00:30   #4
 
{ Angelius }'s Avatar
 
elite*gold: 0
Join Date: Aug 2010
Posts: 992
Received Thanks: 1,110
I am just guessing here but.. In your 1105 packet aka the magic attack packet make sure that data 4 or data 8 if you are on the latest patch is set to the attacker UID and not 0 or any random number/monster UID.
{ Angelius } is offline  
Old 10/30/2013, 02:22   #5
 
elite*gold: 0
Join Date: Feb 2006
Posts: 726
Received Thanks: 271
Quote:
Originally Posted by { Angelius } View Post
I am just guessing here but.. In your 1105 packet aka the magic attack packet make sure that data 4 or data 8 if you are on the latest patch is set to the attacker UID and not 0 or any random number/monster UID.
Wouldn't that be bug be present all the time and completely prevent the packet being sent?
I guess it depends how they have it structured.

Definitely theres something happening that is preventing that packet from sending.
Maybe theres an attack time check?
Without seeing the attack code its hard to debug
Aceking is offline  
Old 10/30/2013, 03:41   #6

 
Novakhan's Avatar
 
elite*gold: 15
Join Date: Dec 2008
Posts: 332
Received Thanks: 137
I checked and I didn't see anything wrong that could make that bug. But I'm a beginner in C# so here's the codes that could be concerned with this. Thanks to the persons that are trying to help me out, I appreciate it.

Attack.cs

Ranged region in Handle.cs

Scatter code in Handle.cs (For references)

SpellUse.cs

I forgot to tell it, My source version is 5530.
If you need any more infos, ask me.

Thanks again
Novakhan is offline  
Old 10/30/2013, 16:39   #7
 
Super Aids's Avatar
 
elite*gold: 0
Join Date: Dec 2012
Posts: 1,761
Received Thanks: 950
Did you debug and breakpoint?
Super Aids is offline  
Thanks
1 User
Old 10/30/2013, 17:04   #8

 
Novakhan's Avatar
 
elite*gold: 15
Join Date: Dec 2008
Posts: 332
Received Thanks: 137
Quote:
Originally Posted by Super Aids View Post
Did you debug and breakpoint?
I didn't use breakpoints since I don't know how to implement & use them at the moment but I'll learn it so I can more easily identify and fix bugs that occurs when x movement/packet is currently processing.
Novakhan is offline  
Old 10/30/2013, 18:20   #9
 
elite*gold: 0
Join Date: May 2011
Posts: 648
Received Thanks: 413
Y u k i is offline  
Thanks
1 User
Old 10/30/2013, 18:52   #10
 
Super Aids's Avatar
 
elite*gold: 0
Join Date: Dec 2012
Posts: 1,761
Received Thanks: 950
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.
Super Aids is offline  
Old 10/30/2013, 22:57   #11
 
elite*gold: 0
Join Date: Feb 2006
Posts: 726
Received Thanks: 271
I would guess that the following line is returning false in the scatter case...

if (CanUseSpell(spell, attacker.Owner))

Hard to say for sure though
Aceking is offline  
Old 10/30/2013, 23:34   #12

 
Novakhan's Avatar
 
elite*gold: 15
Join Date: Dec 2008
Posts: 332
Received Thanks: 137
Thanks Yuki I didn't know it was that easy xD I still can't figure out why this bug is happening it's getting me crazy..

@Aceking the scatter case is only a reference because every ranged skills have this bug so it's probably deeper than that.
Novakhan is offline  
Old 10/31/2013, 00:40   #13
 
elite*gold: 0
Join Date: Feb 2006
Posts: 726
Received Thanks: 271
Quote:
Originally Posted by elhermanos View Post
Thanks Yuki I didn't know it was that easy xD I still can't figure out why this bug is happening it's getting me crazy..

@Aceking the scatter case is only a reference because every ranged skills have this bug so it's probably deeper than that.
Yes your correct, every range spell will have the same bug if that bug lies within the CANUSE method.
Every spell will call that method, checking to see if they can use that spell.

You can breakpoint it, and follow it through for each attack....
Or a simple way to know if its making it through that section is to add something like write to console, or send a system message right after that call.
If you watch the client kill all the monsters without the effect, and that message isn't sent....then you know thats at least part of the problem and can start to work your way back....
I dont recommend doing it that way, as breakpointing is always the best method.....but its a pretty cheap way of going about it....
Aceking is offline  
Old 10/31/2013, 03:40   #14
 
{ Angelius }'s Avatar
 
elite*gold: 0
Join Date: Aug 2010
Posts: 992
Received Thanks: 1,110
Try shifting the targets count in the packet like so...
PHP Code:
Writer.WriteUInt32(Math.Min((uint)Targets.Count, (uint)30) << 816buffer); 
It applies to the current patch clients but i am not sure about 5530.
{ Angelius } is offline  
Old 11/01/2013, 01:08   #15

 
Novakhan's Avatar
 
elite*gold: 15
Join Date: Dec 2008
Posts: 332
Received Thanks: 137
Quote:
Originally Posted by { Angelius } View Post
Try shifting the targets count in the packet like so...
PHP Code:
Writer.WriteUInt32(Math.Min((uint)Targets.Count, (uint)30) << 816buffer); 
It applies to the current patch clients but i am not sure about 5530.
Didn't work and added more bugs :S

Again, Thanks to everyone that are trying to help me out.
Novakhan 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 06:46.


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.