hello
Need help compiling the server


****VITA-NEX: CORE 5.3.1.0 ****Error:
System.Reflection.TargetInvocationException: The invocation target threw an exception. ---> System.NullReferenceException: The object reference does not point to an instance of the object.
in VitaNex.VitaNexCore.DisplayRetroBoot() in D:\ServUO\Scripts\Vita-Nex\Core-master\VitaNex.cs:line 915
in VitaNex.VitaNexCore.Configure() in D:\ServUO\Scripts\Vita-Nex\Core-master\VitaNex.cs:line 212
--- End of internal exception stack trace ---
in System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
in System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
in System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
in Server.ScriptCompiler.Invoke(String method) in D:\ServUO\Server\ScriptCompiler.cs:line 528
in Server.Core.Main(String[] args) in D:\ServUO\Server\Main.cs:line 694
This exception is fatal, press return to exit


After commenting out a few lines I was able to run

226 line
// var crashed = typeof(EventSink).GetEventDelegates("Crashed");

//foreach (var m in crashed.OfType<CrashedEventHandler>())
// {
// EventSink.Crashed -= m;
// }
//
// EventSink.Crashed += e => Crashed = true;
//
// foreach (var m in crashed.OfType<CrashedEventHandler>())
//{
// EventSink.Crashed += m;
// }


and
917 line
// DrawLine("Root Directory: " + RootDirectory.FullName.Replace(Core.BaseDirectory, "."));
 
Last edited:
Back