Space Engineers

Space Engineers

(Obsolete) Loop Computers
Lynnuxx 4 Apr, 2015 @ 10:13am
Bug Report
Modification of 4.Apr.2015 to fix MP issue causes PBs not being created (loaded) in the world anymore upon loading:

2015-04-04 18:47:16.709 - Thread: 1 -> ERROR while adding cube Programmable block: System.NullReferenceException: Object reference not set to an instance of an object. at Digi.Computer.Init(MyObjectBuilder_EntityBase objectBuilder) at Sandbox.Game.Entities.MyEntity.Init(MyObjectBuilder_EntityBase objectBuilder) at Sandbox.Game.Entities.MyCubeBlock.Init(MyObjectBuilder_CubeBlock builder, MyCubeGrid cubeGrid) at Sandbox.Game.Entities.Cube.MyTerminalBlock.Init(MyObjectBuilder_CubeBlock objectBuilder, MyCubeGrid cubeGrid) at Sandbox.Game.Entities.Cube.MyFunctionalBlock.Init(MyObjectBuilder_CubeBlock objectBuilder, MyCubeGrid cubeGrid) at =Md3wVrClLwOYmXHuHTJ8TVFqIt=.Init(MyObjectBuilder_CubeBlock , MyCubeGrid ) at =Q6WknzTZKSlxBUSpPd9birHnHM=.Init(MyObjectBuilder_CubeBlock , MyCubeGrid , MyCubeBlock ) at Sandbox.Game.Entities.MyCubeGrid.AddCubeBlock(MyObjectBuilder_CubeBlock objectBuilder, Boolean testMerge, MyCubeBlockDefinition blockDefinition) at Sandbox.Game.Entities.MyCubeGrid.AddBlock(MyObjectBuilder_CubeBlock objectBuilder, Boolean testMerge)
Last edited by Lynnuxx; 4 Apr, 2015 @ 10:14am
< >
Showing 1-14 of 14 comments
Digi  [developer] 4 Apr, 2015 @ 11:39am 
I only added a server check in that code, which means the thing I'm accessing is not ready to be used when that block is initialized, really bad order of execution in the API :/

Regardless, I removed that and placed it where it should work properly.

Thanks for the report :}
Lynnuxx 4 Apr, 2015 @ 4:15pm 
PBlocks are loaded again but are not executed now...
Btw. all the worlds are single player.
Last edited by Lynnuxx; 4 Apr, 2015 @ 4:16pm
Digi  [developer] 4 Apr, 2015 @ 10:58pm 
After some tests it seems the PBs didn't work at initializion, I was testing them on a world where I was adding the tag manually every time which is why it worked.

Fixed that too now and tested, hopefully there are no more surprises :/
Lynnuxx 7 Apr, 2015 @ 3:46pm 
No problem, it's working again. Sorry for the late feedback.
Twotwinbrothers 20 May, 2016 @ 3:23am 
hi Digi like this mod u se it al long time

but i notice today that there were some changes today

like the new slider. and that it wil be shown in the name as well.

But on the left side it will be shown like this
PB [lcd] {LoopComputers:0....

i should like to see somthing like this
PB [lcd] {LC:0.016}

one of them is that all my programble blok wil run always, even when all te sliders are off
al my PB show what thay usely show wen thay will run whit a argument.
Digi  [developer] 20 May, 2016 @ 3:26am 
The name is a necessity, there's nowhere else to store things per-block.

And it's too late to change that to anything else because people that saved their worlds with the other tag will have it remain there, and I really don't wanna add another backward compatibility layer =)

If/when Keen adds a storage method for blocks then I'll completely remove the name stuff, so nag them :P
Last edited by Digi; 20 May, 2016 @ 3:26am
Twotwinbrothers 20 May, 2016 @ 3:39am 
all my programble blok wil run continuously, even when all te sliders are off
al my PB show what thay usely show wen thay will run whitout a argument.
Twotwinbrothers 20 May, 2016 @ 3:56am 
Hi digi

iike it that it wil be shown in the name as well, but it is so long.
the time it running will not be shown on the left of the terminal
Digi  [developer] 20 May, 2016 @ 4:51am 
Ah I see the issue, whops, no idea what happened there, I'll fix ASAP.

EDIT: Fixed, some float accuracy issue :/
Last edited by Digi; 20 May, 2016 @ 4:55am
deimosx6 20 Dec, 2016 @ 12:45pm 
block.SetValueFloat("LoopComputers.RepeatTime", 0.1); - error: invalid token '(' in class, struct, or interface member declaration
Digi  [developer] 20 Dec, 2016 @ 1:03pm 
Syntax errors can't be caused by mods in your PB script.
The line indicator seems off by 1 line ahead, so read what line it says and go back one line.

Also 0.1 is double type and won't work, use 0.1f for a float.
Last edited by Digi; 20 Dec, 2016 @ 1:04pm
deimosx6 20 Dec, 2016 @ 1:33pm 
Program(1,19): Error: Invalid token '(' in class, struct, or interface member declaration.
I add f but have same error
Please add example
deimosx6 20 Dec, 2016 @ 1:50pm 
token '(' after SetValueFloat
Digi  [developer] 20 Dec, 2016 @ 3:00pm 
Line 1, did you simply copy paste that line into a PB or something ? If you don't know how to program in C# then don't write stuff in the code.

The normal way to use the mod is the slider in the UI.

And again, this mod has nothing to do with your error.
Last edited by Digi; 20 Dec, 2016 @ 3:00pm
< >
Showing 1-14 of 14 comments
Per page: 1530 50