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

Development::Bots Forum for bots.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #14  
Old 11-24-2015, 07:23 PM
NatedogEZ's Avatar
NatedogEZ
Developer
 
Join Date: Dec 2012
Posts: 515
Default

Arithmetic exception.. sounds like its trying to divide by zero :p


Here is the error I get when debuffing everything..


Code:
[11-24-2015 :: 15:26:11] [Crash] EXCEPTION_INT_DIVIDE_BY_ZERO
[11-24-2015 :: 15:26:14] [Crash] c:\0001 eqemu dev\zone\bot.cpp (13350): Bot::GetNeedsCured 
[11-24-2015 :: 15:26:14] [Crash] c:\0001 eqemu dev\zone\bot.cpp (12934): EntityList::Bot_AICheckCloseBeneficialSpells 
[11-24-2015 :: 15:26:14] [Crash] c:\0001 eqemu dev\zone\botspellsai.cpp (990): Bot::AI_IdleCastCheck 
[11-24-2015 :: 15:26:14] [Crash] c:\0001 eqemu dev\zone\bot.cpp (3000): Bot::AI_Process 
[11-24-2015 :: 15:26:14] [Crash] c:\0001 eqemu dev\zone\bot.cpp (2318): Bot::Process 
[11-24-2015 :: 15:26:14] [Crash] c:\0001 eqemu dev\zone\entity.cpp (484): Entit

I spawn a Cleric bot, and Magician bot...


I cast a disease with counters on everything in my party... including the pet and this exception will be caused when zoning

(Disease I was casting was Sicken spellid 75 btw)


Adding what I said above... makes the crash go away for me... so not sure how it was still crashing when you added it.


Traced what is causing the crash.... "Bot::LoadPetBuffs" does NOT load the counters on spells... so it will have a counterless spell (aka 0 counters) .. so it hits that check and divides by 0 which causes the crash!


Pushed a workaround for this. There is no database entry for `bot_pet_buffs` to have coutners.. so on zone when it loads the botpetbuffs it will just reset their counters to max.

Last edited by NatedogEZ; 11-24-2015 at 08:22 PM..
Reply With Quote
 

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