FingersMcSteal
Sorceror
Server Crash Report
===================
RunUO Version 2.1, Build 4031.28390
Operating System: Microsoft Windows NT 5.1.2600 Service Pack 3
.NET Framework: 2.0.50727.3615
Time: 2/1/2011 4:11:10 PM
Mobiles: 37253
Items: 187136
Exception:
System.IndexOutOfRangeException: Index was outside the bounds of the array.
at Server.Engines.Harvest.Mining.GetResourceType(Mobile from, Item tool, HarvestDefinition def, Map map, Point3D loc, HarvestResource resource)
at Server.Engines.Harvest.HarvestSystem.FinishHarvesting(Mobile from, Item tool, HarvestDefinition def, Object toHarvest, Object locked)
at Server.Engines.Harvest.HarvestSoundTimer.OnTick()
at Server.Timer.Slice() in c:\testshard\Stygian\Stygian Abyss ML\Server\Timer.cs:line 386
at Server.Core.Main(String[] args) in c:\testshard\Stygian\Stygian Abyss ML\Server\Main.cs:line 517
Clients:
- Count: 1
+ 192.168.1.46: (account = player1) (mobile = 0x32BA 'Nyx Vashuu')
I've had a quick look at this error and the mining file you had attached...
Looks to me like the following lines might be the cause of the crash...
It looks to me like this line...
if ( pm != null && pm.GemMining && pm.ToggleMiningGem && from.Skills[SkillName.Mining].Base >= 100.0 && 0.1 > Utility.RandomDouble() )
return resource.Types[2];
Is newer code. Probably added as the SVN has been updated over time etc etc etc.
If you could run your server in DEBUG mode for a bit until you get the crash again it might help pin point the problem tho since that debug mode would give line numbers as to where the problems coming from, just a bit more detail to go on is all.
===================
RunUO Version 2.1, Build 4031.28390
Operating System: Microsoft Windows NT 5.1.2600 Service Pack 3
.NET Framework: 2.0.50727.3615
Time: 2/1/2011 4:11:10 PM
Mobiles: 37253
Items: 187136
Exception:
System.IndexOutOfRangeException: Index was outside the bounds of the array.
at Server.Engines.Harvest.Mining.GetResourceType(Mobile from, Item tool, HarvestDefinition def, Map map, Point3D loc, HarvestResource resource)
at Server.Engines.Harvest.HarvestSystem.FinishHarvesting(Mobile from, Item tool, HarvestDefinition def, Object toHarvest, Object locked)
at Server.Engines.Harvest.HarvestSoundTimer.OnTick()
at Server.Timer.Slice() in c:\testshard\Stygian\Stygian Abyss ML\Server\Timer.cs:line 386
at Server.Core.Main(String[] args) in c:\testshard\Stygian\Stygian Abyss ML\Server\Main.cs:line 517
Clients:
- Count: 1
+ 192.168.1.46: (account = player1) (mobile = 0x32BA 'Nyx Vashuu')
I've had a quick look at this error and the mining file you had attached...
Looks to me like the following lines might be the cause of the crash...
Code:
public override Type GetResourceType( Mobile from, Item tool, HarvestDefinition def, Map map, Point3D loc, HarvestResource resource )
{
if ( def == m_OreAndStone )
{
PlayerMobile pm = from as PlayerMobile;
[B]if ( pm != null && pm.GemMining && pm.ToggleMiningGem && from.Skills[SkillName.Mining].Base >= 100.0 && 0.1 > Utility.RandomDouble() )[/B]
[B] return resource.Types[2];[/B]
if ( pm != null && pm.StoneMining && pm.ToggleMiningStone && from.Skills[SkillName.Mining].Base >= 100.0 && 0.1 > Utility.RandomDouble() )
return resource.Types[1];
return resource.Types[0];
}
return base.GetResourceType( from, tool, def, map, loc, resource );
}
It looks to me like this line...
if ( pm != null && pm.GemMining && pm.ToggleMiningGem && from.Skills[SkillName.Mining].Base >= 100.0 && 0.1 > Utility.RandomDouble() )
return resource.Types[2];
Is newer code. Probably added as the SVN has been updated over time etc etc etc.
If you could run your server in DEBUG mode for a bit until you get the crash again it might help pin point the problem tho since that debug mode would give line numbers as to where the problems coming from, just a bit more detail to go on is all.