Vita-Nex/Core

DisplayRetroBoot() issue using bash on Windows Server 2019

rvvvt opened this issue · 0 comments

rvvvt commented

I was unable to start server in bash under windows 11 pro and also winserv2019. Commenting out DisplayRetroBoot() (VitaNex.cs line 212) has temporarily solved this for me.

Windows terminal compiles without issue without removing DisplayRetroBoot()

Scripts: Compiling C# scripts...done (cached)
Scripts: Verifying...
Finished (6186 items, 1367 mobiles, 3 customs) (0.71 seconds)
DataPath: C:\UO
[VitaNexCore]: [UOFont]: Preloaded (Unicode, 0, 65536)
[VitaNexCore]: [UOFont]: Preloaded (Unicode, 1, 65536)

Error:
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.IO.IOException: The handle is invalid.

   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.Console.GetBufferInfo(Boolean throwOnNoConsole, Boolean& succeeded)
   at System.Console.set_CursorLeft(Int32 value)
   at VitaNex.VitaNexCore.DisplayRetroBoot() in C:\Repos\uoreborn\Scripts\VitaNex\Core\VitaNex.cs:line 908
   at VitaNex.VitaNexCore.Configure() in C:\Repos\uoreborn\Scripts\VitaNex\Core\VitaNex.cs:line 212
   --- End of inner exception stack trace ---
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
   at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters)
   at Server.ScriptCompiler.Invoke(String method) in C:\Repos\uoreborn\Server\ScriptCompiler.cs:line 525
   at Server.Core.Main(String[] args) in C:\Repos\uoreborn\Server\Main.cs:line 637
This exception is fatal, press return to exit