Skip to content

crash when dragging certain on/off weapons to hotbar #36

@StarCoreIssueBot

Description

@StarCoreIssueBot
2024-07-28 20:07:57.953 - Thread:   1 ->  var exception = System.InvalidCastException: Unable to cast object of type 'Sandbox.Game.Weapons.MySmallMissileLauncherReload' to type 'Sandbox.Game.Weapons.MyLargeTurretBase'.
   at Sandbox.Game.Gui.MyTerminalAction`1.<>c__DisplayClass68_0.<Sandbox.ModAPI.Interfaces.Terminal.IMyTerminalAction.get_Writer>b__0(IMyTerminalBlock x, StringBuilder y)
   at GrappleHook.WeaponControlLayer.<>c__DisplayClass54_0`1.<OverrideDefaultControls>b__1(IMyTerminalBlock block, StringBuilder text)
   at Sandbox.Game.Gui.MyTerminalAction`1.WriteValue(MyTerminalBlock block, StringBuilder appendTo)
   at Sandbox.Game.Screens.Helpers.MyToolbarItemTerminalGroup.Update(MyEntity owner, Int64 playerID)
   at Sandbox.Game.Screens.Helpers.MyToolbar.UpdateItem(Int32 index)
   at Sandbox.Game.Screens.Helpers.MyToolbar.SetItemAtIndexInternal(Int32 i, MyToolbarItem item, Boolean initialization, Boolean gamepad)
   at Sandbox.Game.Gui.MyGuiScreenToolbarConfigBase.<>c__DisplayClass136_1.<AddGridItemToToolbar>b__1(Boolean success)
   at Sandbox.Game.Gui.MyGuiScreenToolbarConfigBase.RequestItemParameters(MyToolbarItem item, Action`1 callback)
   at Sandbox.Game.Gui.MyGuiScreenToolbarConfigBase.contextMenu_ItemClicked(MyGuiControlContextMenu sender, EventArgs args)
   at Sandbox.Graphics.GUI.MyGuiControlContextMenu.list_ItemClicked(MyGuiControlListbox sender)
   at Sandbox.Graphics.GUI.MyGuiControlListbox.HandleNewMousePress(MyGuiControlBase& captureInput)
   at Sandbox.Graphics.GUI.MyGuiControlListbox.HandleInput()
   at Sandbox.Graphics.GUI.MyGuiScreenBase.HandleControlsInput(Boolean receivedFocusInThisUpdate)
   at Sandbox.Graphics.GUI.MyGuiScreenBase.HandleInput(Boolean receivedFocusInThisUpdate)
   at Sandbox.Game.Gui.MyGuiScreenToolbarConfigBase.HandleInput(Boolean receivedFocusInThisUpdate)
   at Sandbox.Graphics.GUI.MyScreenManager.HandleInput()
   at Sandbox.Graphics.GUI.MyDX9Gui.HandleInput()
   at Sandbox.MySandboxGame.Update()
   at Sandbox.Engine.Platform.Game.UpdateInternal()
   at Sandbox.Engine.Platform.Game.RunSingleFrame()
   at Sandbox.Engine.Platform.FixedLoop.<>c__DisplayClass11_0.<Run>b__0()
   at Sandbox.Engine.Platform.GenericLoop.Run(VoidAction tickCallback)
   at Sandbox.Engine.Platform.Game.RunLoop()
   at Sandbox.MySandboxGame.Run(Boolean customRenderLoop, Action disposeSplashScreen)
   at SpaceEngineers.MyProgram.Main(String[] args)

Submitted by: FurtherV

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions