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 06-11-2005, 04:00 PM   #1 (permalink)
Forum Expert
 
Iomega0318's Avatar
 
Join Date: Feb 2005
Location: Dirt City,TX
Age: 21
Posts: 608
Send a message via ICQ to Iomega0318 Send a message via AIM to Iomega0318 Send a message via MSN to Iomega0318 Send a message via Yahoo to Iomega0318
Default Server Crash.. A little help pls..

OK My server crashed..
Things you need to know.. I installed premium spawner and the XML2 thing last night.. Everything was fine till some players went to PvP and then boom crash.. I made the 2 edits for points system or something.. And here is the crash log.. Pls help me lol..


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

RunUO Version 1.0.0, Build 36918
Operating System: Microsoft Windows NT 5.1.2600.0
.NET Framework: 1.1.4322.2032
Time: 6/11/2005 1:41:27 PM
Mobiles: 14737
Items: 135939
Clients:
- Count: 3
+ 127.0.0.1: (account = LordOda) (mobile = 0x92F 'Lichking')
+ 24.***.**.**: (account = lighterfan) (mobile = 0x8C 'Alpha')
+ 4.***.***.***: (account = Donna) (mobile = 0x396C 'Amethyst')

Exception:
System.NullReferenceException: Object reference not set to an instance of an object.
   at Server.Items.StaffStone.OnInventoryDeath(Mobile parent)
   at Server.Mobile.GetInventoryMoveResultFor(Item item)
   at Server.Mobiles.PlayerMobile.GetInventoryMoveResultFor(Item item)
   at Server.Mobile.Kill()
   at Server.Mobile.Damage(Int32 amount, Mobile from)
   at Server.Mobiles.PlayerMobile.Damage(Int32 amount, Mobile from)
   at Server.AOS.Damage(Mobile m, Mobile from, Int32 damage, Int32 phys, Int32 fire, Int32 cold, Int32 pois, Int32 nrgy, Boolean keepAlive)
   at Server.AOS.Damage(Mobile m, Mobile from, Int32 damage, Int32 phys, Int32 fire, Int32 cold, Int32 pois, Int32 nrgy)
   at Server.Items.BaseWeapon.OnHit(Mobile attacker, Mobile defender)
   at Server.Items.BaseWeapon.OnSwing(Mobile attacker, Mobile defender)
   at Server.Items.Fists.OnSwing(Mobile attacker, Mobile defender)
   at Server.CombatTimer.OnTick()
   at Server.Timer.Slice()
   at Server.Core.Main(String[] args)
Iomega0318 is offline   Reply With Quote
Old 06-11-2005, 04:27 PM   #2 (permalink)
Account Terminated
 
Join Date: Sep 2002
Age: 26
Posts: 3,846
Send a message via ICQ to Phantom Send a message via AIM to Phantom Send a message via MSN to Phantom
Default

Remove the StaffStone class, its bugged.

Since you can live with out it, thats the simplest solution, since most likely you won't be able to fix it yourself.
Phantom is offline   Reply With Quote
Old 06-11-2005, 04:33 PM   #3 (permalink)
Master of the Internet
 
Join Date: Aug 2003
Posts: 5,688
Default

What does your OnInventoryDeath override method in your StaffStone item look like.
__________________
The first line of the first rule in the forum rules and guidelines "Be respectful of others. "

For questions, information, and support for XmlSpawner and its addons, visit the
XmlSpawner Support Forum
ArteGordon is offline   Reply With Quote
Old 06-11-2005, 05:41 PM   #4 (permalink)
Forum Expert
 
Iomega0318's Avatar
 
Join Date: Feb 2005
Location: Dirt City,TX
Age: 21
Posts: 608
Send a message via ICQ to Iomega0318 Send a message via AIM to Iomega0318 Send a message via MSN to Iomega0318 Send a message via Yahoo to Iomega0318
Default

Whew lol.. thought It might be the XML system or something.. that would have sucked.. ok here is what that OnInvetoryDeath thing looks like.. if yall cant help me fix it I can just remove it but would rather keep it.. Its a neat stone..

Code:
		public override DeathMoveResult OnInventoryDeath(Mobile parent)
		{
			if ( m_AutoRes && parent == m_Owner )
			{
				new AutoResTimer( parent ).Start();
			}
			else if (parent != m_Owner)
			{
				m_Owner.AddToBackpack(this);
				this.Delete();
			}

				return base.OnInventoryDeath (parent);
		}
Iomega0318 is offline   Reply With Quote
Old 06-11-2005, 06:22 PM   #5 (permalink)
Master of the Internet
 
Join Date: Aug 2003
Posts: 5,688
Default

Quote:
Originally Posted by Iomega0318
Whew lol.. thought It might be the XML system or something.. that would have sucked.. ok here is what that OnInvetoryDeath thing looks like.. if yall cant help me fix it I can just remove it but would rather keep it.. Its a neat stone..

Code:
		public override DeathMoveResult OnInventoryDeath(Mobile parent)
		{
			if ( m_AutoRes && parent == m_Owner )
			{
				new AutoResTimer( parent ).Start();
			}
			else if (parent != m_Owner)
			{
				m_Owner.AddToBackpack(this);
				this.Delete();
			}

				return base.OnInventoryDeath (parent);
		}
you need to handle the condition where m_Owner is null.
a null owner will end up satisfying this test

Code:
else if (parent != m_Owner)
			{
				m_Owner.AddToBackpack(this);
				this.Delete();
			}
which is what is causing your crash.

(edit)

not sure why you are doing this, since you delete it anyway.

Code:
m_Owner.AddToBackpack(this);
just get rid of that line.
__________________
The first line of the first rule in the forum rules and guidelines "Be respectful of others. "

For questions, information, and support for XmlSpawner and its addons, visit the
XmlSpawner Support Forum
ArteGordon is offline   Reply With Quote
Old 06-12-2005, 04:10 PM   #6 (permalink)
Forum Expert
 
Iomega0318's Avatar
 
Join Date: Feb 2005
Location: Dirt City,TX
Age: 21
Posts: 608
Send a message via ICQ to Iomega0318 Send a message via AIM to Iomega0318 Send a message via MSN to Iomega0318 Send a message via Yahoo to Iomega0318
Default

i found it in scripts section.. thanx though ill see if that works..
Iomega0318 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