Go Back   EQEmulator Home > EQEmulator Forums > Development > Development::Development

Development::Development Forum for development topics and for those interested in EQEMu development. (Not a support forum)

Reply
 
Thread Tools Display Modes
  #1  
Old 09-08-2007, 06:02 PM
Breea
Banned
 
Join Date: Aug 2007
Posts: 28
Default

Here we go...

Code:
	if(tmp->GetOwnerID() != GetID()) {
		SetPetID(0);
		// WE NEED TO KILL THE PET HERE!!!!!
		return(NULL);
	}
I'm assuming adding a kill code here in pets.cpp will get the job done?

Would this work for instance?

Code:
	if(tmp->GetOwnerID() != GetID()) {
		SetPetID(0);
        // Attempting to remove shadow pet.
		depop();
		return(NULL);
	}
Not sure that depop() is registered in any global functions or not =S

Last edited by Breea; 09-09-2007 at 02:07 AM..
Reply With Quote
  #2  
Old 09-08-2007, 06:13 PM
Breea
Banned
 
Join Date: Aug 2007
Posts: 28
Default

Also if we can get the pets working adding the same to the mounts would be an easy fix.
Reply With Quote
  #3  
Old 09-08-2007, 07:39 PM
Breea
Banned
 
Join Date: Aug 2007
Posts: 28
Default

I tried strait up Depop(); that crashed the zone server... should it be pet->Depop(); ??
Reply With Quote
  #4  
Old 09-08-2007, 07:58 PM
KLS
Administrator
 
Join Date: Sep 2006
Posts: 1,348
Default

How exactly can I reproduce this 100% of the time? Or does this only happen sometimes?
Reply With Quote
  #5  
Old 09-08-2007, 08:50 PM
Breea
Banned
 
Join Date: Aug 2007
Posts: 28
Default

Quote:
Originally Posted by KLS View Post
How exactly can I reproduce this 100% of the time? Or does this only happen sometimes?
It happens 100% of the time on a source build (last 5 releases) on a linux (fedora 6) quad-core box.

It is also adding these as npcs in the npc_types table.. Basically this could become a stability comprimise if a mage or pet class decides to just zone back and forth a few thousand times.

Last edited by Breea; 09-09-2007 at 04:52 AM..
Reply With Quote
  #6  
Old 09-09-2007, 06:14 AM
KLS
Administrator
 
Join Date: Sep 2006
Posts: 1,348
Default

Hm well it doesn't happen here as described.

Player1 in zone with pet, player2 in same zone. Player1 zones out and pet disappears.

I'm not sure how or why it's getting added to your npc_types table. The only code that does that from stock emu code is command related...

Not sure what's going on but that doesn't sound good.
Reply With Quote
  #7  
Old 09-10-2007, 05:45 PM
KLS
Administrator
 
Join Date: Sep 2006
Posts: 1,348
Default

I'm still unable to replicate this, BUT.. if you're looking for a solution you could add something inside the npc::process tic_timer.check().

Code:
if(!IsCorpse() && GetPetType() != petCharmed)
{
     if(!GetOwner())
          Depop();
}
I'm not sure if it would work but it's worth a shot?

If we can figure out what causes this it'd be nice too.
Reply With Quote
  #8  
Old 09-10-2007, 07:41 PM
Lalolyen
Banned
 
Join Date: Aug 2007
Location: Sneeking up behind a admin IRL
Posts: 169
Default

I'll be implementing that code asap. Also Breea should have sent you a PM there. Basically if you want to help us find out whats causing it, you have that open invitation.
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 03:06 AM.


 

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 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3