Go Back   RunUO - Ultima Online Emulation > RunUO > Server Support on Windows

Server Support on Windows Get (and give) support on general questions related to the RunUO server itself.

Reply
 
Thread Tools Display Modes
Old 09-11-2008, 05:13 PM   #1 (permalink)
Forum Novice
 
Lord Neo's Avatar
 
Join Date: Feb 2005
Location: Upstate NY Ithaca
Age: 39
Posts: 146
Default Loyalty timer Crash

The server is crashing once a hour, seems to be exactly 60-61 minutes apart from each crash. Im thinking its a Evo Dragon somewhere in the world that has been abandoned. Anyone got any ideas?


Code:
Server Crash Report
===================

RunUO Version 2.0, Build 2935.20446
Operating System: Microsoft Windows NT 5.1.2600 Service Pack 2
.NET Framework: 2.0.50727.1433
Time: 9/11/2008 8:27:01 AM
Mobiles: 24123
Items: 315411
Exception:
System.NullReferenceException: Object reference not set to an instance of an object.
   at Server.Mobiles.LoyaltyTimer.OnTick() in c:\Program Files\RUNUO\RunUO-2.0-RC1\Scripts\Engines\AI\Creature\BaseCreature.cs:line 4820
   at Server.Timer.Slice()
   at Server.Core.Main(String[] args)
Here is the Part of the code the Debug mode Report is reporting. Line 4820 is colored in blue.

Code:
				c.Say( 1043255, c.Name ); // ~1_NAME~ appears to have decided that is better off without a master!
				c.Loyalty = BaseCreature.MaxLoyalty; // Wonderfully Happy
				c.IsBonded = false;
				c.BondingBegin = DateTime.MinValue;
				c.OwnerAbandonTime = DateTime.MinValue;
				c.ControlTarget = null;
				//c.ControlOrder = OrderType.Release;
				c.AIObject.DoOrderRelease(); // this will prevent no release of creatures left alone with AI disabled (and consequent bug of Followers)
__________________
http://www.hardradio.com
Ever been in the mens bathroom and looked over to see if the guy next you has a bigger post count than you?
Lord Neo is offline   Reply With Quote
Old 09-11-2008, 06:23 PM   #2 (permalink)
Forum Novice
 
Join Date: Aug 2005
Location: Italy (Piemonte)
Age: 20
Posts: 210
Send a message via ICQ to Smjert Send a message via MSN to Smjert
Default

It's really possible that for some reason AIObject become null.
As you said it could be Evo Dragon, so check about changes/set to AIObject.

Or better, if you have Visual Studio, you can put it in debug breakpointing AIObject here
Code:
public BaseAI AIObject{ get{ return m_AI; } }
using condition m_AI == null.
So you can watch the stack and understand what nulls it.

Last edited by Smjert; 09-11-2008 at 06:28 PM.
Smjert is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC5