1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Crash OmniAI

Discussion in 'Archived Bug Reports' started by RedDragon, Feb 12, 2014.

  1. RedDragon
    Offline

    RedDragon Member

    Joined:
    Dec 19, 2013
    Messages:
    34
    Likes Received:
    1
    [add AITester 5
    AITester start to fight some monster and Boom!

    Code (C#):
    1. System.NullReferenceException: Object reference not set to an instance of an object.
    2.    at Server.Mobiles.OmniAI.GetMysticSpell()
    3.    at Server.Mobiles.OmniAI.MysticPower()
    4.    at Server.Mobiles.OmniAI.DoActionCombat()
    5.    at Server.Mobiles.OmniAI.Think()
    6.    at Server.Mobiles.BaseAI.AITimer.OnTick()
    7.    at Server.Timer.Slice() in ServUO-master\Server\Timer.cs:line 386
    8.    at Server.Core.Main(String[] args) in ServUO-master\Server\Main.cs:line 62
     
  2. Kalamus
    Offline

    Kalamus Active Member

    Joined:
    Apr 24, 2013
    Messages:
    282
    Likes Received:
    32
    Change the following under 'OmniAI Mysicism.cs'

    'CheckForSleep' method find this:
    Code (C#):
    1. if (pm != null || !pm.Asleep)
    2.     return true;
    3. else
    4.     return false;
    Change it to this:
    Code (C#):
    1. if (pm != null && pm.Asleep)
    2.     return false;
    3. else
    4.     return true;
     
    • Winner Winner x 1
  3. RedDragon
    Offline

    RedDragon Member

    Joined:
    Dec 19, 2013
    Messages:
    34
    Likes Received:
    1
    New Crash:

    Code (C#):
    1. Error:
    2. System.NullReferenceException:
    3. Object reference not set to an instance of an object
    4.  
    5. at Server.Spells.Ninjitsu.Shadowjump.CheckCast () [0x00000] in <filename unknown>:0
    6.  
    7. at Server.Spells.Spell.Cast () [0x00000] in <filename unknown>:0
    8.   at Server.Mobiles.OmniAI.MoveTo (Server.Mobile m, Boolean run, Int32 range) [0x00000] in <filename unknown>:0
    9.  
    10. at Server.Mobiles.OmniAI.DoActionCombat () [0x00000] in <filename unknown>:0
    11.  
    12. at Server.Mobiles.BaseAI.Think () [0x00000] in <filename unknown>:0
    13.  
    14. at Server.Mobiles.OmniAI.Think () [0x00000] in <filename unknown>:0
    15.  
    16. at Server.Mobiles.BaseAI+AITimer.OnTick () [0x00000] in <filename unknown>:0
    17.  
    18. at Server.Timer.Slice () [0x00000] in <filename unknown>:0
    19.  
    20. at Server.Core.Main (System.String[] args) [0x00000] in <filename unknown>:0
     
  4. Kalamus
    Offline

    Kalamus Active Member

    Joined:
    Apr 24, 2013
    Messages:
    282
    Likes Received:
    32
    Need a bit more info so I know where to debug this. What were you doing when it crashed? Was this the same as before, '[add AItester 5' and letting them duke it out with another mob? Why is your crash report all messed up saying 'filename unknown'?

    Also wanted to say 'Thanks!' for the bug submits :).
     
    • Like Like x 1
  5. RedDragon
    Offline

    RedDragon Member

    Joined:
    Dec 19, 2013
    Messages:
    34
    Likes Received:
    1
    New Crash, now with Magery:

    Edited AITester.cs script to give 40 magery and 40 evalint on [add AITester 0
    the Dark Knight get warmode and boom, crashed:

    Code (C#):
    1. System.NullReferenceException: Object reference not set to an instance of an object.
    2.   at Server.Mobiles.OmniAI.CheckBless()
    3.   at Server.Mobiles.OmniAI.GetMagerySpell()
    4.   at Server.Mobiles.OmniAI.MageryPower()
    5.   at Server.Mobiles.OmniAI.DoActionCombat()
    6.   at Server.Mobiles.OmniAI.Think()
    7.   at Server.Mobiles.BaseAI.AITimer.OnTick()
    8.   at Server.Timer.Slice() in ServUO-master\Server\Timer.cs:line 386
    9.   at Server.Core.Main(String[] args) in ServUO-master\Server\Main.cs:line 621
    _____________________________________

    Fixed:
    on 'OmniAI Magery.cs' search for:
    Code (C#):
    1. public Spell CheckBless()
    2.         {
    3.             StatMod mod = this.m_Mobile.GetStatMod("[Magic] Str Offset");
    4.  
    5.             if (mod != null && mod.Offset > 0)
    6.                 return null;
    7.  
    8.             if (this.m_Mobile.Skills[SkillName.Magery].Value >= 40.0)
    9.                 return new BlessSpell(this.m_Mobile, null);
    10.  
    11.             mod = this.m_Mobile.GetStatMod("[Magic] Int Offset");
    12.  
    13.             if (mod != null || mod.Offset < 0)
    14.                 return new CunningSpell(this.m_Mobile, null);
    15.  
    16.             mod = this.m_Mobile.GetStatMod("[Magic] Dex Offset");
    17.  
    18.             if (mod != null || mod.Offset < 0)
    19.                 return new AgilitySpell(this.m_Mobile, null);
    20.  
    21.             return new StrengthSpell(this.m_Mobile, null);
    22.         }
    and change to

    Code (C#):
    1. public Spell CheckBless()
    2.         {
    3.             StatMod mod = this.m_Mobile.GetStatMod("[Magic] Str Offset");
    4.  
    5.             if (mod != null && mod.Offset > 0)
    6.                 return null;
    7.  
    8.             if (this.m_Mobile.Skills[SkillName.Magery].Value >= 40.0)
    9.                 return new BlessSpell(this.m_Mobile, null);
    10.  
    11.             mod = this.m_Mobile.GetStatMod("[Magic] Int Offset");
    12.  
    13.             if (mod != null && mod.Offset < 0)
    14.                 return new CunningSpell(this.m_Mobile, null);
    15.  
    16.             mod = this.m_Mobile.GetStatMod("[Magic] Dex Offset");
    17.  
    18.             if (mod != null && mod.Offset < 0)
    19.                 return new AgilitySpell(this.m_Mobile, null);
    20.  
    21.             return new StrengthSpell(this.m_Mobile, null);
    22.         }
     
    #5 RedDragon, Feb 25, 2014
    Last edited: Feb 26, 2014
  6. RedDragon
    Offline

    RedDragon Member

    Joined:
    Dec 19, 2013
    Messages:
    34
    Likes Received:
    1
    New Crash! now with ninjitsu's Shadow Jump.
    with a tamed AITester in unknown circustances.

    Code (C#):
    1. System.NullReferenceException: Object reference not set to an instance of an object
    2.   at Server.Spells.Ninjitsu.Shadowjump.CheckCast () [0x00000] in <filename unknown>:0
    3.   at Server.Spells.Spell.Cast () [0x00000] in <filename unknown>:0
    4.   at Server.Mobiles.OmniAI.MoveTo (Server.Mobile m, Boolean run, Int32 range) [0x00000] in <filename unknown>:0
    5.   at Server.Mobiles.OmniAI.DoActionCombat () [0x00000] in <filename unknown>:0
    6.   at Server.Mobiles.BaseAI.Think () [0x00000] in <filename unknown>:0
    7.   at Server.Mobiles.OmniAI.Think () [0x00000] in <filename unknown>:0
    8.   at Server.Mobiles.BaseAI.DoOrderAttack () [0x00000] in <filename unknown>:0
    9.   at Server.Mobiles.BaseAI.Obey () [0x00000] in <filename unknown>:0
    10.   at Server.Mobiles.BaseAI+AITimer.OnTick () [0x00000] in <filename unknown>:0
    11.   at Server.Timer.Slice () [0x00000] in <filename unknown>:0
    12.   at Server.Core.Main (System.String[] args) [0x00000] in <filename unknown>:0
     
Similar Threads: Crash OmniAI
Forum Title Date
Archived Bug Reports Arisen Controller - non stop crashing my shard Tuesday at 6:18 AM
Archived Bug Reports Server Crash Report Aug 3, 2017
Archived Bug Reports Server Crash Report Jul 31, 2017
Archived Bug Reports Server crash on small boat deed placement Jul 30, 2017
Script Support Crash on targeting item Jul 23, 2017
Archived Bug Reports Newest SVN crash - 7/19/2017 Jul 19, 2017
Windows Support Crashing after charakter creation Jul 3, 2017