Page 1 of 1

CRASH BUG

Posted: Sat Feb 16, 2013 1:26 am
by WiiStream
Ok I'm at the gate in West Ronfaure And I run out to the mob Orcish Fodder I do not attract it I'm level 2 and i know i can not defeat it, so I run back to the zone at the gate, and the server crash's every time.

Re: CRASH BUG

Posted: Sat Feb 16, 2013 3:10 am
by PrBlahBlahtson
Confirming that this happens on r2633. I suspect this might be r2625, but me and the packet system don't get along at all.

Re: CRASH BUG

Posted: Sat Feb 16, 2013 10:56 am
by WiiStream
I'm compiling a fresh rev 2635 Right now to see if it still crash's doing this.

Ya it's still crashing there.

The solution I found that will prevent it from crashing, is to cancel out one line in ai-mob_dummy.cpp

Code: Select all

void CAIMobDummy::ActionAttack()
FIND

Code: Select all

else if (m_PMob->CanDeaggro() && CurrentDistance > 25 && (m_Tick - m_LastActionTime) > 20000)

Code: Select all

 {
        //player has been too far away for some time, deaggro if the mob type dictates it

		if (m_PMob->m_OwnerID.id == m_PBattleTarget->id)
        {
            m_PMob->m_OwnerID.clean();
        }
		m_PMob->PEnmityContainer->Clear(m_PBattleTarget->id);
		//ActionAttack();<----------CRASHS
	}
This will prevent it from crashing but not solving the crash.