Space Engineers

Space Engineers

(Obsolete) Loop Computers
Lynnuxx 4. apr. 2015 kl. 10:13
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)
Sidst redigeret af Lynnuxx; 4. apr. 2015 kl. 10:14
< >
Viser 1-14 af 14 kommentarer
Digi  [udvikler] 4. apr. 2015 kl. 11:39 
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 kl. 16:15 
PBlocks are loaded again but are not executed now...
Btw. all the worlds are single player.
Sidst redigeret af Lynnuxx; 4. apr. 2015 kl. 16:16
Digi  [udvikler] 4. apr. 2015 kl. 22:58 
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 kl. 15:46 
No problem, it's working again. Sorry for the late feedback.
Twotwinbrothers 20. maj 2016 kl. 3:23 
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  [udvikler] 20. maj 2016 kl. 3:26 
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
Sidst redigeret af Digi; 20. maj 2016 kl. 3:26
Twotwinbrothers 20. maj 2016 kl. 3:39 
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. maj 2016 kl. 3:56 
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  [udvikler] 20. maj 2016 kl. 4:51 
Ah I see the issue, whops, no idea what happened there, I'll fix ASAP.

EDIT: Fixed, some float accuracy issue :/
Sidst redigeret af Digi; 20. maj 2016 kl. 4:55
deimosx6 20. dec. 2016 kl. 12:45 
block.SetValueFloat("LoopComputers.RepeatTime", 0.1); - error: invalid token '(' in class, struct, or interface member declaration
Digi  [udvikler] 20. dec. 2016 kl. 13:03 
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.
Sidst redigeret af Digi; 20. dec. 2016 kl. 13:04
deimosx6 20. dec. 2016 kl. 13:33 
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 kl. 13:50 
token '(' after SetValueFloat
Digi  [udvikler] 20. dec. 2016 kl. 15:00 
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.
Sidst redigeret af Digi; 20. dec. 2016 kl. 15:00
< >
Viser 1-14 af 14 kommentarer
Per side: 1530 50