Connector Docking Status 1.5.3
Изображение 1 из 12. Материалы автора из Steam Workshop.
О материале
«Connector Docking Status 1.5.3» — материал мастерской Space Engineers. Моды, чертежи кораблей, скрипты и миры для Space Engineers. Данные Steam, описание автора и ссылка для установки через подписку. Совместимость редакцией не проверена.
Описание автора
This is a script that sets the name of connectors according to the status, if they are occupied, unoccupied or disabled. It can also change lights color and trigger timers depending on the status. The script is based upon the usage of prefixes in the beginning of the block names to distinguish blocks from other ships/stations. With the timer feature you can automate some docking/undocking stuff. eg locking/unlocking large landing gears holding your small ship onto a station/large ship
Images in description by Riverey
Example World:
-- Show on hud (configurable, default is only when unoccupied) ! Currently not working due to game changes
-- Lights. Different color depending on status. Unoccupied: Green In Proximity: Yellow Connected: Red Disabled: Cyan (Option to turn the lights of if connector is disabled) If you want to change colors you need to change them in the getColors method inside the script. The programmable block didn't like it when I tried putting those arrays in the beginning. Lights should have the same name as the connector but have the word "Light" at the end. (Configurable) (You can also put other stuff after that if you want e.g. numbers) All lights should work as long as they implements the "IMyLightingBlock" class. (Only interior lights tested)
-- LCD screens. Displays all connectors and their status. Default name is "[Prefix] Connector LCD" (configurable, can put other stuff behind the name e.g. numbers)
-- Timer blocks. Timer blocks can be triggered upon status changes. Name the timer block "CONNECTORNAME Timer STATUS" Eg if you have a connector named "[Station] Connector 1 - STATUS" and name the timer block "[Station] Connector 1 Timer Connected" it will trigger when you lock the connector.
Basic usage:
Option 1: (Does NOT require script editing)
- Load the script into a programmable block.
- Build an lcd and name it "PREFIX Connector LCD", one for each prefix you are using on the ship/station. PREFIX should be the same as your prefix on the connectors.
Option 2: (Does require script editing)
- Load the script into a programmable block.
- Edit the PREFIXES list to include all the prefixes you are using on the ship/station.
Advanced usage:
(Optional, Require script editing)
- Follow one of the options in basic usage
- Edit the variables before the main method to suit your need.
(No script editing required in this case) LCD: [Station] Connector LCD
Connector: [Station] Connector 1 Light: [Station] Connector 1 Light 1 Light: [Station] Connector 1 Light 2 Timer Block: [Station] Connector 1 Timer Connected (Will trigger when Connector 1 is connected) Timer Block: [Station] Connector 1 Timer Unoccupied (Will trigger when Connector 1 becomes unoccupied)
Connector: [Station] Connector 2 Light: [Station] Connector 2 Light 1 Light: [Station] Connector 2 Light 2 Timer Block: [Station] Connector 2 Timer Connected (Will trigger when Connector 2 is connected) Timer Block: [Station] Connector 2 Timer Unoccupied (Will trigger when Connector 2 becomes unoccupied)
Connector: [Station] Connector 3 Light: [Station] Connector 3 Light 1 Light: [Station] Connector 3 Light 2 Timer Block: [Station] Connector 3 Timer Connected (Will trigger when Connector 3 is connected) Timer Block: [Station] Connector 3 Timer Unoccupied (Will trigger when Connector 3 becomes unoccupied)
-
Version 1.5.3 - 15-08-2020 No longer needs a timer block to run
-
Version 1.5.2 - 29-10-2015 Fixed errors. Due to changes in the game, the way I changed the show on hud setting no longer work.
-
Version 1.5.1 - 24-05-2015 Changed the name of the locked status to connected. (You can change back in the script if you want to) Display some information in the programmable block. Minor code changes.
-
Version 1.5 - 23-05-2015 No need for language specific code anymore :) You can now use both manual and automatic prefixes
Known Issues
*When the script first tries to append the status string to connectors it will remove the last character in the original name. Eg: Connector named "[Station] Connector 4" will become "[Station] Connector - Unoccupied"
- The list of prefixes in the programmable block control panel might not show up immediately
Как установить и запустить
Откройте оригинальную страницу в Steam Workshop, проверьте версию игры, зависимости и порядок загрузки в описании автора. Нажмите «Подписаться» и дождитесь загрузки Steam. Включите материал в меню модификаций или контента игры, если это требуется. Совместимость и запуск редакцией не проверены.