Space Engineers

Space Engineers

Automatic LCDs 2
Romans 24 Mar, 2022 @ 6:46pm
Retrieve custom block states
Hello! Is there a way to retriev, like the working command, the state of other options?
Like "SHow in HUD" if is it on or off?
< >
Showing 1-7 of 7 comments
Kham 24 Mar, 2022 @ 8:35pm 
The PropBool command can get a lot of the properties for varying blocks.

The guide explains how to use the command and has a link to a full list of properties assigned to each block type. Keep in mind PropBool only works with boolean type properties.

https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=407158161
Romans 25 Mar, 2022 @ 9:04am 
Originally posted by Kham:
The PropBool command can get a lot of the properties for varying blocks.

The guide explains how to use the command and has a link to a full list of properties assigned to each block type. Keep in mind PropBool only works with boolean type properties.

https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=407158161

It doesn't work for custom mod blocks
Last edited by Romans; 25 Mar, 2022 @ 9:16am
Kham 25 Mar, 2022 @ 9:26am 
It depends on the mod and the block. Most custom mod blocks have to be defined to the game as a vanilla block type because we can't actually create custom block types. Though if they add custom properties to the block then the script may not be able to read those without specific support for the mod in question.

MMaster has said many times he does not intend to add functions for specific mods because those mods would become a dependency and not everyone who uses the script would necessarily want to use those mods.

The way you phrased your question didn't make any mention of mod blocks just asked how to get the properties of things like show on hud. Which mod are you specifically trying to get properties from and what properties are you trying to read?
Romans 25 Mar, 2022 @ 9:28am 
Originally posted by Kham:
It depends on the mod and the block. Most custom mod blocks have to be defined to the game as a vanilla block type because we can't actually create custom block types. Though if they add custom properties to the block then the script may not be able to read those without specific support for the mod in question.

MMaster has said many times he does not intend to add functions for specific mods because those mods would become a dependency and not everyone who uses the script would necessarily want to use those mods.

The way you phrased your question didn't make any mention of mod blocks just asked how to get the properties of things like show on hud. Which mod are you specifically trying to get properties from and what properties are you trying to read?

I'm trying with nanobot buildandrepair system mod(https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=857053359&searchtext=nanobot+build+and+repair), for example the Show Area boolean option.

And for same mod i would also would display if the active mode, is Walk or Fly, but it is not boolean
Last edited by Romans; 25 Mar, 2022 @ 9:42am
Kham 25 Mar, 2022 @ 9:42am 
Ok yeah it wont work for that. The Build and Repair block, as far as block definition is concerned, is a ship welder so the script can only read properties which would normally appear on that block type. The script isn't aware of the custom properties added to the block.
Romans 25 Mar, 2022 @ 9:45am 
Originally posted by Kham:
Ok yeah it wont work for that. The Build and Repair block, as far as block definition is concerned, is a ship welder so the script can only read properties which would normally appear on that block type. The script isn't aware of the custom properties added to the block.
Ok thank you so much
Kham 25 Mar, 2022 @ 9:51am 
You're welcome. Sorry it wasn't quite the answer you were hoping for. :)
< >
Showing 1-7 of 7 comments
Per page: 1530 50