Space Engineers

Space Engineers

Not enough ratings
Space Anchor Info Display Sample
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
1.359 KB
31 Dec, 2016 @ 9:08am
1 Change Note ( view )

Subscribe to download
Space Anchor Info Display Sample

Description
This is a small sample script to show off the custom data capibilities of my Space Anchor mod. You could even just use it as is, and just modify some of the variables I've set up. To use the output of this in an Automatic LCD's 2 setup, you can just place a LCD somewhere hidden, have it display the Space Anchor data, and then use the TextLCD command to display it on one of the script's LCDs. Also, since this script is very small, you can even run it from the same timer as the Automatic LCD's 2 script is run from, since it is small enough to be used with a timer set to 'Trigger Now' (meaning every tick).

The original code can be found here[gist.github.com]. Take note that I used a base file for in-game scripting that allows me to use Visual Studio, as this is why all the code at the top is there.
3 Comments
davemort 9 Jan, 2017 @ 11:55pm 
UPDATE Continued...I think this is caused by SE renaming the block. Sometimes when I look it is the normal name and sometimes SE has added [right] or [forward], etc. If the script could look for a string within the name rather than an EXACT name it would fix this.
davemort 9 Jan, 2017 @ 11:52pm 
UPDATE...I found room for the normal block and it fixes the update of the Custom Data area....apparently the Admin block doesn't update. I still have a problem however with the script not finding the block 30% of the time. It will find it eventually, but then loose it...only to find it again. This results in the display toggling between "not found" and the % charged.
davemort 8 Jan, 2017 @ 11:02pm 
This does not work for me. There are two issues. One is that SE changes the name of your space anchor adding [Forward] thinking your block is a thruster. I can compensate for this by changing the name again in the script. The other issue is that the Custom data field in the block is not being updated with the current charge level. It always reads 0 of 25 despite the info field of the block being updated correctly. I am using the Admin 1x1x1 block because I built my ship before your larger blocks were made. Perhaps that is the issue?