tommenquar
Sorceror
i am using runuo 2.0 final and it works just fine for me. i think i had to make a simple change to the code but i found that within this topic.
Exception:
System.NullReferenceException: Object reference not set to an instance of an object.
at Server.Items.RegionControl.Serialize(GenericWriter writer)
at Server.StandardSaveStrategy.SaveItems(SaveMetrics metrics)
at Server.DualSaveStrategy.<>c__DisplayClass1.<Save>b__0()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.NullReferenceException: Object reference not set to an instance of an object.
at Server.Items.RegionControl.get_CustomGoLocation()
--- End of inner exception stack trace ---
at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at System.Reflection.RuntimePropertyInfo.GetValue(Object obj, BindingFlags invokeAttr, Binder binder, Object[] index, CultureInfo culture)
at System.Reflection.RuntimePropertyInfo.GetValue(Object obj, Object[] index)
at Server.Gumps.SetPoint3DGump..ctor(PropertyInfo prop, Mobile mobile, Object o, Stack stack, Int32 page, ArrayList list)
at Server.Gumps.PropertiesGump.OnResponse(NetState state, RelayInfo info)
at Server.Network.PacketHandlers.DisplayGumpResponse(NetState state, PacketReader pvSrc)
at Server.Network.MessagePump.HandleReceive(NetState ns)
at Server.Network.MessagePump.Slice()
at Server.Core.Main(String[] args)
artio;675642 said:how do i set this? the Z is killing us with a lot of regions in mountains and snow.
i can find the Z part in the script but how do i set to either be able to hand set it after the area is set or just auto set in script like it was in 1.0?
Humpster;836436 said:Code:Exception: System.NullReferenceException: Object reference not set to an instance of an object. at Server.Items.RegionControl.Serialize(GenericWriter writer) at Server.StandardSaveStrategy.SaveItems(SaveMetrics metrics) at Server.DualSaveStrategy.<>c__DisplayClass1.<Save>b__0() at System.Threading.ThreadHelper.ThreadStart_Context(Object state) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.ThreadHelper.ThreadStart()
get { return m_Region.GoLocation; }
get { return m_CustomGoLocation; }
Be very careful using this script, I've even crashed my server a few times. Server WILL crash on worldsave if you haven't specified a region with a new regioncontrol flag. Immediatly after spawning a regioncontrol flag issue the command [regioncontrol and select 'New Region' & target ground anywhere 2 times. Now there's a specified region. You can now lazily edit/remove/add regions as you please.
or
Disable the CustomGo as described on previous pages