Go Back   EQEmulator Home > EQEmulator Forums > Support > Support::Windows Servers

Support::Windows Servers Support forum for Windows EQEMu users.

Reply
 
Thread Tools Display Modes
  #1  
Old 12-30-2010, 01:27 AM
bad_captain
Developer
 
Join Date: Feb 2009
Location: Cincinnati, OH
Posts: 512
Default

Okay, did a little more testing. All sql updates sourced in at least as far back as Rev 1510.

This only seems to come up when I am using botgroups. If I only have bots in my group, no problem. If I have bots grouped outside mine, I get crashes on zone exit. I will take a look at my db schema for botgroups, but I'm pretty sure nothing has changed with them recently, as things were working at least around Rev 1721. (I may have been mistaken that things were working as of Rev 1751, as I was having server crashes due to hardware problems, and may have never made it to zone out. I will have to check my logs to see if there's anything in there.

So, anyway, my issue appears to be botgroups and the EVENT_GROUP_CHANGE.
Reply With Quote
  #2  
Old 12-30-2010, 08:16 AM
Derision
Developer
 
Join Date: Feb 2004
Location: UK
Posts: 1,540
Default

The crash appears to be due to the fact that when Mob::SetGrouped is called for a bot, it casts the Mob to a Client before calling Parser::Event, which is obviously not valid.

The quick fix would appear to be only call EVENT_GROUP_CHANGE for clients:
Code:
Index: mob.cpp
===================================================================
--- mob.cpp     (revision 1786)
+++ mob.cpp     (working copy)
@@ -4125,7 +4125,9 @@
                israidgrouped = false;
        }
        isgrouped = v;
-       parse->Event(EVENT_GROUP_CHANGE, 0, "", (NPC*)NULL, this->CastToClient());
+
+       if(IsClient())
+               parse->Event(EVENT_GROUP_CHANGE, 0, "", (NPC*)NULL, this);
 }

 void Mob::SetRaidGrouped(bool v)
@@ -4135,7 +4137,9 @@
                isgrouped = false;
        }
        israidgrouped = v;
-       parse->Event(EVENT_GROUP_CHANGE, 0, "", (NPC*)NULL, this->CastToClient());
+
+       if(IsClient())
+               parse->Event(EVENT_GROUP_CHANGE, 0, "", (NPC*)NULL, this);
 }

 sint16 Mob::GetCriticalChanceBonus(int16 skill, bool aa_bonus)
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 08:05 PM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3