wulf 21 Posted December 16, 2018 Share Posted December 16, 2018 (edited) On trying to reproduce something else I have in my savegames and not sure how it happens (broken personnel slot buttons in Atlas base), I found a way that reliably makes the game crash. Start new game Place initial airbase anywhere Click "Main Base" Right click the workshop 4 times - this removes all 3 engineers and brings up the "Confirmation Required" window that asks if workshop should be demolished With the window open, left click the workshop 3 times - this adds all the engineers again In the "Confirmation Required" window click yes Result: Crash To Desktop output.log 2018-12-16 09:46:38,301 [FATAL] (D:\Jenkins\workspace\X2 (Build)\hotfix-v0.34.1\Assets\Code\Screens\XenonautsMain.cs:441) A fatal error occurred during Update() - System.NullReferenceException: Object reference not set to an instance of an object at Xenonauts.Strategy.Data.SlotEffects.IncreaseTargetRangeByRatingSlotEffect.Revert (Artitas.Entity mainBase, Artitas.Entity unit, Artitas.Entity slot, Artitas.Entity building) [0x00009] in D:\Jenkins\workspace\X2 (Build)\hotfix-v0.34.1\Assets\Code\Screens\Strategy\Data\SlotEffects\IncreaseTargetRangeByRatingSlotEffect.cs:33 at Xenonauts.Strategy.Systems.BuildingsManagementSystem+<UpdatePersonnelSlotFSM>c__AnonStorey6+<UpdatePersonnelSlotFSM>c__AnonStorey5.<>m__0 () [0x0003c] in D:\Jenkins\workspace\X2 (Build)\hotfix-v0.34.1\Assets\Code\Screens\Strategy\Systems\Base\BuildingsManagementSystem.cs:458 at Artitas.Systems.DelayedTaskSystem.HandleTimeDelayedEvents (Artitas.Events.DeltaTimeEvent dtEvent) [0x00073] in D:\Jenkins\workspace\X2 (Build)\hotfix-v0.34.1\Assets\Code\Libraries\Artitas\Artitas.Core\Code\Systems\DelayedTaskSystem.cs:234 at (wrapper delegate-invoke) System.Action`2<Artitas.Systems.DelayedTaskSystem, Artitas.Events.DeltaTimeEvent>:invoke_void__this___DelayedTaskSystem_DeltaTimeEvent (Artitas.Systems.DelayedTaskSystem,Artitas.Events.DeltaTimeEvent) at Artitas.Core.Utils.ExpressionUtil+<ActionFromMethodInfoFactory>c__AnonStorey1`4[Artitas.Systems.EventSystem,Artitas.Events.DeltaTimeEvent,Artitas.Systems.DelayedTaskSystem,Artitas.IEvent].<>m__0 (Artitas.Systems.EventSystem target, IEvent param) [0x0001c] in D:\Jenkins\workspace\X2 (Build)\hotfix-v0.34.1\Assets\Code\Libraries\Artitas\Artitas.Core\Code\Utils\ExpressionUtil.cs:151 at Artitas.Systems.EventSystem.HandleSubscribers (IEvent event) [0x00050] in D:\Jenkins\workspace\X2 (Build)\hotfix-v0.34.1\Assets\Code\Libraries\Artitas\Artitas.Core\Code\Systems\EventSystem.cs:49 at Artitas.Systems.EventSystem.Handle (IEvent event) [0x00003] in D:\Jenkins\workspace\X2 (Build)\hotfix-v0.34.1\Assets\Code\Libraries\Artitas\Artitas.Core\Code\Systems\EventSystem.cs:26 at Artitas.DefaultProcessStrategy.Process (IEvent event) [0x001c6] in D:\Jenkins\workspace\X2 (Build)\hotfix-v0.34.1\Assets\Code\Libraries\Artitas\Artitas.Core\Code\World.cs:808 at Artitas.DefaultProcessStrategy.Process () [0x00024] in D:\Jenkins\workspace\X2 (Build)\hotfix-v0.34.1\Assets\Code\Libraries\Artitas\Artitas.Core\Code\World.cs:751 at Artitas.World.Process () [0x00007] in D:\Jenkins\workspace\X2 (Build)\hotfix-v0.34.1\Assets\Code\Libraries\Artitas\Artitas.Core\Code\World.cs:621 at Common.Screens.DataStructures.WorldManagedScreen`2[Xenonauts.GameScreens,Common.Screens.DataStructures.IScreenParameters].Update (Single deltaTime) [0x00032] in D:\Jenkins\workspace\X2 (Build)\hotfix-v0.34.1\Assets\Code\Libraries\Common\Code\Screen\DataStructures\WorldManagedScreen.cs:49 at Common.Screens.ScreenManager`1[Xenonauts.GameScreens].Update (Single deltaTime) [0x000f3] in D:\Jenkins\workspace\X2 (Build)\hotfix-v0.34.1\Assets\Code\Libraries\Common\Code\Screen\ScreenManager.cs:149 at Xenonauts.XenonautsMain.Update () [0x00066] in D:\Jenkins\workspace\X2 (Build)\hotfix-v0.34.1\Assets\Code\Screens\XenonautsMain.cs:438 Edited February 2, 2019 by wulf 21 Typo Quote Link to comment Share on other sites More sharing options...
wulf 21 Posted February 2, 2019 Author Share Posted February 2, 2019 Still happens in V2.0 Quote Link to comment Share on other sites More sharing options...
Chris Posted February 4, 2019 Share Posted February 4, 2019 Excellent, thanks. This will be an easy one to fix up I think. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.