Space Engineers

Space Engineers

Smart Turrets 2 [Obsolete]
jimkey 4 Apr, 2020 @ 10:51pm
please null exception fix
2020-04-04 22:11:36.159 - Thread: 1 -> Exception occured: ParallelTasks.TaskException: An exception(s) was thrown while executing a task.
at ParallelTasks.WorkItem.ThrowExceptionsInternal(Int32 runId)
at ParallelTasks.Task.WaitOrExecute(Boolean blocking)
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)
Task exception, inner exception 0:
System.NullReferenceException: Object reference not set to an instance of an object.
at Zkillerproxy.SmartTurretMod.SmartTurretTargetingUtilities.validateTargets(WorkData tempData)
at ParallelTasks.DelegateWork.DoWork(WorkData workData)
at ParallelTasks.WorkItem.DoWork(Int32 expectedID)
< >
Showing 1-9 of 9 comments
Benny Lee 6 Apr, 2020 @ 4:37am 
I have got the same problem. Waiting the author to fix it.
Zelious  [developer] 7 Apr, 2020 @ 11:45pm 
Should now be fixed, have a look in the Bug Reports discussion for more info.

(Also, this should really have been put there instead of in its own thread)
jimkey 8 Apr, 2020 @ 12:38pm 
Thanks a lot! Really appreciated.
LeoRubin 10 Apr, 2020 @ 8:30am 
The same error still appear
2020-04-10 18:00:35.597 - Thread: 1 -> Exception occured: ParallelTasks.TaskException: An exception(s) was thrown while executing a task.
at ParallelTasks.WorkItem.ThrowExceptionsInternal(Int32 runId)
at ParallelTasks.Task.WaitOrExecute(Boolean blocking)
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)
Task exception, inner exception 0:
System.NullReferenceException: Object reference not set to an instance of an object.
at Zkillerproxy.SmartTurretMod.SmartTurretTargetingUtilities.validateTargets(WorkData tempData)
at ParallelTasks.DelegateWork.DoWork(WorkData workData)
at ParallelTasks.WorkItem.DoWork(Int32 expectedID)
Zelious  [developer] 10 Apr, 2020 @ 7:55pm 
@LeoRubin Can you get me a save file where that reliably occurs? I had 300 turrets shooting a massive grid for 20 mins to test that It was fixed, and it passed that test twice.
LeoRubin 11 Apr, 2020 @ 12:42am 
In this save it's appear at first minute https://dropmefiles.com/U5g7E
May be it works bad with some other mods.
MatteiusPrime 23 Apr, 2020 @ 10:19am 
Was there any luck with this? I have only 6 turrets with it on and I'm going to have to just uninstall the mod to let the game continue.
xirathonxbox  [developer] 19 Jun, 2020 @ 8:50am 
If you go to the file SmartTurretsTargeting.cs and add
try {
to line 23 just above
TargetingData data = (TargetingData)tempData;
and then go to line 217 and add
}catch { }
just below
data.validTargetID = castTargetingRay(targetTypeDictionary, data.turret);

This resolves the crash, though not an ideal fix, I'm working on a better fix and have reached out the Zkillerproxy to see if he'd like to post an update, or would allow me to do so.
Lodra 18 Jul, 2020 @ 10:28am 
I had to stop using this mod due to the crashing. Any update on a fix?
< >
Showing 1-9 of 9 comments
Per page: 1530 50