Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
example you have "image 1" set for "unoccupied" and "image 2" for "occupied"
then you can have it done so the connectors are named "dock #" and the lcd that recieves dock statuse is named "lcd #" so it matches the dock it is for (this is just to start)
then later may be able to have another lcd setup so it will show list of docks and their status in text format so you can have a list of available docks (if you have more than 1 hanger then you can have "docks # - #" as the name so it only shows the status of the docks from # to # in the list).
# = the number of dock, lcd screen
I think it´s to much at 3 connectors or more
and it don´t change your custom name of the connector, it only adds occupied/unoccupied at the end of it
http://steamproxy.net/sharedfiles/filedetails/?id=367187987
@Wasp Thanks ^^ I made a another version because i think it's not necessary to show occupied connector and because i think erase the source name is a bad idea. It's here [pastebin.com]. But it's difficult to see what's is your code and what's is mine now :/
http://pastebin.com/
This is the only sain way to share code ussually, because of formating issues within comment sections and descriptions.
Also i really don't feel like turning space engineers on, it heats up my pc, stops me from seeing youtube videos, negates my ability to google search.
Theres a reason that even KOS (KSP scripting mod) tells you to script out of game.
bool forceShownOnHud=true;
void Main()
{
for (int i = 0; i < GridTerminalSystem.Blocks.Count; i++)
{
if(GridTerminalSystem.Blocks is IMyShipConnector)
{
if(((IMyShipConnector)GridTerminalSystem.Blocks ).IsLocked)
{
GridTerminalSystem.Blocks .SetCustomName("Occupied");
}
else
{
GridTerminalSystem.Blocks .SetCustomName("Unoccupied");
}
if(forceShownOnHud)
{
GridTerminalSystem.Blocks .RequestShowOnHUD(true);
}
}
}
}
My wish is that the script was visible from the workshop, without having to load the game. It is, after all, just text.