Space Engineers

Space Engineers

Nanobot Build and Repair System Queuing / Display / Scripting
Atreyu Wolfson 27. dec. 2023 kl. 19:21
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
Sidst redigeret af Atreyu Wolfson; 27. dec. 2023 kl. 19:48
< >
Viser 1-1 af 1 kommentarer
Tokin Jesus 29. aug. 2024 kl. 22:40 
i figured out how to fix it and have uploaded a fixed copy
https://gtm.steamproxy.vip/sharedfiles/filedetails/?id=3320491543
< >
Viser 1-1 af 1 kommentarer
Per side: 1530 50