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.
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
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.
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
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.
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.
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....
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
{