Space Engineers

Space Engineers

Nanobot Build and Repair System Queuing / Display / Scripting
exception during execution of script:Invalid property at RepairSystemHandler.get_CurrentTarget()
Dear Dev,

we changes from the vanilla Space-Engineers Server toward the Torch Server.
After that I do get an exception every time I started the PB with this script in it.

I used tha Script for years without any issue, also on other Torch-Servers.

I was able to get it back running when I comment-out the Screen-Display types (see code below). Any of the DisplayKinds using a Target of some sort throws that exception.

static BuildAndRepairSystemQueuingGroup[] BuildAndRepairSystemQueuingGroups = { new BuildAndRepairSystemQueuingGroup() { BuildAndRepairSystemGroupName = "Worker - Repair-Systems", AssemblerGroupName = "Worker - Assemblers", Displays = new [] { new DisplayDefinition { DisplayNames = new [] { "Worker - Repair-System Status LCD", "Worker - PB Repair-System[0]" }, DisplayKinds = new [] { // DisplayKind.ShortStatus, // DisplayKind.Status, // DisplayKind.WeldTargets, // DisplayKind.GrindTargets, // DisplayKind.CollectTargets, DisplayKind.MissingItems, DisplayKind.BlockWeldPriority, DisplayKind.BlockGrindPriority }, DisplayMaxLines = 19, DisplaySwitchTime = 4 } } } };

This is the exception as displayed in the PB running this script:

Caught exception during execution of script:Invalid property at Sandbox.ModAPI.Interfaces.TerminalPropertyExtensions.Cast[TValue](ITerminalProperty property) at Sandbox.ModAPI.Interfaces.TerminalPropertyExtensions.GetValue[T](IMyTerminalBlock block, String propertyId) at Program.RepairSystemHandler.get_CurrentTarget() at Program.BuildAndRepairSystemQueuingGroupData.DisplayShortStatus(DisplayDefinition settings, StatusAndLogDisplay display) at Program.BuildAndRepairSystemQueuingGroupData.RefreshDisplay(Double elapsedTime) at Program.BuildAndRepairAutoQueuing.RefreshDisplays() at Program.BuildAndRepairAutoQueuing.Handle() at Program.Main(String arg) at Sandbox.Game.Entities.Blocks.MyProgrammableBlock.<>c__DisplayClass42_0.<ExecuteCode>b__0(IMyGridProgram program) at Sandbox.Game.Entities.Blocks.MyProgrammableBlock.RunSandboxedProgramActionCore(Action`1 action, String& response)

Any help is much apprechiated.
I am also willing to debug, but it looks like the call to "Program.RepairSystemHandler.get_CurrentTarget()" is located in the source of the BaR Mod.

Greets Tam
Last edited by Atreyu Wolfson; Dec 27, 2023 @ 7:48pm
< >
Showing 1-1 of 1 comments
Tokin Jesus Aug 29, 2024 @ 10:40pm 
i figured out how to fix it and have uploaded a fixed copy
https://steamcommunity.com/sharedfiles/filedetails/?id=3320491543
< >
Showing 1-1 of 1 comments
Per page: 1530 50