- Oct 10, 2025
- 251
- 219
Game Version
2026.2.38.3713Operating System
Windows 11What Happened
Using thedestroy command on any celestial body / not a vehicle crashes the game.What Was Expected
The console should return an error saying thatdestroy can only be used on vehicles and no crash.Reproduction Steps
- Launch game and open console.
- Run destroy <any celestial body>
Reproduction Rate
AlwaysAdditional Info
From the log file:00:03:34.411 ERROR unknown command crash, use 'help' for a list of commands
00:03:39.564 ERROR Unhandled exception System.Exception: Error in Window.OnKey callback
---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
---> System.InvalidCastException: Unable to cast object of type 'KSA.AtmosphericBody' to type 'KSA.Vehicle'.
at KSA.CelestialSystem.Get[T](String id)
at KSA.Universe.Destroy(String id)
at InvokeStub_Universe.Destroy(Object, Span`1)
at System.Reflection.MethodBaseInvoker.InvokeWithOneArg(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
--- End of inner exception stack trace ---
at System.Reflection.MethodBaseInvoker.InvokeWithOneArg(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
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 Brutal.ImGuiApi.Abstractions.Command.Issue(String[] args)
at Brutal.ImGuiApi.Abstractions.TerminalInterface.ProcessCommand(String inCommandString)
at Brutal.ImGuiApi.Abstractions.TerminalInterface.Execute(String inInput)
at Brutal.ImGuiApi.Abstractions.ConsoleWindow.Submit()
at Brutal.ImGuiApi.Abstractions.ConsoleWindow.HandleInputAction(Actions action)
at KSA.ConsoleWindowEx.OnKey(ConsoleWindow console, GlfwWindow window, GlfwKey key, Int32 scanCode, GlfwKeyAction action, GlfwModifier mods)
at KSA.Program.OnKey(GlfwWindow window, GlfwKey key, Int32 scanCode, GlfwKeyAction action, GlfwModifier mods)
at Brutal.GlfwApi.GlfwWindow.<.ctor>b__6_10(GlfwWindowHandle* _, Int32 key, Int32 scanCode, Int32 action, Int32 mods)
--- End of inner exception stack trace ---
at Brutal.GlfwApi.Glfw.PollEvents()
at KSA.Program.OnFrame(Double currentPlayerTime, Double dtPlayer)
at KSA.App.Run()
at KSA.Program.Main(String[] inArgs).
Upvote
0