Space Engineers

Space Engineers

Taleden's Inventory Manager
allbad 19 Dec, 2016 @ 6:30am
LCD to display the contents of container it is mounted to?
I'm not sure if this has beem mentioned before: is there a way to have TIM detect the container an LCD is mounted to and display the contents of this container? i.e. plop down an LCD on some container block (cargo, refinery, reactor, etc), change the LCD title to [TIM someCommand] and it is now displaying that container's contents.

FYI: I read through the guide, but didn't see that this was possible. I'm only asking here as MustangDood on reddit said it was in reddit post:

https://www.reddit.com/r/spaceengineers/comments/5j2aqm/is_there_an_ingame_script_that_an_lcd_will_show/

Thanks for the help!
< >
Showing 1-5 of 5 comments
taleden  [developer] 20 Dec, 2016 @ 6:55am 
No, TIM can't currently do that and offhand I can't think of an easy way to tie that into how TIM already works. It would probably be easiest to just write that as a separate script, for which you could certainly look at TIM for examples of how to scan inventories and how to display things on LCDs. If I find some time eventually I may do that, but it probably won't be soon, so if you (or anyone) wants to take a shot at it sooner I'll be happy to give suggestions if you get stuck.
allbad 20 Dec, 2016 @ 3:42pm 
Thanks for the reply taleden. I've got some ideas as pointed out in the reddit post. It makes sense that it would have to be a proximity thing as blocks aren't really "attached to" others from the perspective of the grid. It could also be that MMaster's LCD status script would be a better fit for this feature if you two don't want to overlap too much :)
taleden  [developer] 21 Dec, 2016 @ 7:04am 
If you'd like to give it a try yourself, as a starting point I'd suggest finding the spots in TIM where it uses the "panelSpan" structure in ParseQuotaPanels() and WriteTableToPanel(). Those sections involve reading the orientation of the first panel so that TIM can look through the grid below and to the right of it and identify the other nearby panels that will be part of the spanned display. In your case you'd want to do something similar, except that you'll use that orientation to identify the block behind the LCD, which would be the block it appears to be attached to. Then you can look at TIM's inventory scanning code for how to read the contents of that block (if any), which you can then display on your LCD.
allbad 22 Dec, 2016 @ 5:27pm 
ahh great idea! Thanks for the tip
Quait 7 Jan, 2017 @ 8:13am 
I read through this and I may have a solution to your question, someone already did this script:
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=825460674
< >
Showing 1-5 of 5 comments
Per page: 1530 50