Начните вводить название — например, MoreHead, Sodium или PEAK

Whip's Auto Door and Airlock Script — иконка
Обложка Space EngineersМод для Space Engineers

Whip's Auto Door and Airlock Script

от Whiplash141

Описание "Конечно, я мог бы развернуться и закрыть дверь, как цивилизованный человек. Или я могу позволить роботу сделать это для меня... как современный человек. - Акарий о достоинствах автоматического..

  • Редкий
  • 110,1 тыс. подписок
  • Обновлён 12 сентября 2021
  • Не обновлялся больше года
  • Скрипты

О моде Whip's Auto Door and Airlock Script

Whip's Auto Door and Airlock Script — мод для Space Engineers (Спейс Инженерс) от автора Whiplash141. Описание "Конечно, я мог бы развернуться и закрыть дверь, как цивилизованный человек. Или я могу позволить роботу сделать это для меня... как современный человек. - Акарий о достоинствах автоматического..

На него подписались 110,1 тыс. раз в Мастерской Steam: это 149-е место среди модов Space Engineers в нашем каталоге, редкость — «редкий» (топ-50% по подпискам). Мод давно не обновлялся — проверьте совместимость с текущей версией игры.

Нужны ли ему другие моды, видно на его странице в Мастерской Steam в блоке «Необходимые продукты» — при подписке Steam сам предложит их добавить.

Полное описание Whip's Auto Door and Airlock Script

Текст автора на языке оригинала

Description

"Sure, I could turn around and close the door like a civilized man. Or I could let a robot do it for me... like a modern man."

  • Acarii on the virtues of automatic doors

This script will close any door once it has been fully open for over 3 seconds (10 seconds for hangar doors). The duration that a door is allowed to be open is independent of the status of any other doors. This is to say that if I open one door at a certain time then open another door a second later, each door will stay open for 3 seconds, then close. This script also supports an INFINITE amount of simple airlock systems.

Instructions

  • Place this script in a programmable block
  • (Optional) Set up airlock systems

If you don't want/need the airlock functionality, only step (1) is necessary!

Auto Door Closer

The script will fetch ALL doors on the grid and automagically close any door that has been open for a set number of seconds. Doors can also be excluded from this feature.

Changing the Auto-Close Interval

You can change the auto close interval one of two ways:

  • Globally by changing the "auto close time" in the Custom Data of the Programmable Block
  • Per door by changing "Custom auto close time (s)" and setting "Use default auto close time" to false in the Custom Data of a Door.

Excluding Doors:

Add the tag "Excluded" anywhere in the door's name to exclude it from auto closing. Hangar doors are excluded from auto closing by default, but you can change that in the Custom Data of this programmable block.

Airlocks

This script supports the optional feature of airlock systems. Airlock systems are composed of AT LEAST one Interior Door AND one Exterior Door. The airlock status lights and sound blocks do not affect the functionality of the doors so if you don't have space for them, don't fret :)

Naming:

  • Interior doors should be named like so: "[Prefix] Airlock Interior"
  • Exterior doors should be named like so: "[Prefix] Airlock Exterior"
  • (Optional) Airlock status lights should be named like so: "[Prefix] Airlock Light"
  • (Optional) Airlock Sound Block should be named like so: "[Prefix] Airlock Sound"
  • The "[Prefix]" is the unique name that you group your airlock doors by

Example Names:

  • "Main Airlock Interior" and "Main Airlock Exterior"
  • "[Main] Airlock Interior" and "[Main] Airlock Exterior"
  • "Potato Airlock Interior" and "Potato Airlock Exterior"
  • "1337 Airlock Interior" and "1337 Airlock Exterior"

Rules:

  • An airlock system is composed of at least one Interior Door and one Exterior Door. You can have more than one of each type of door. If you do not have one or more Interior and Exterior doors in your airlock system, that particular system will be ignored.
  • Prefixes are case insensitive and spaces are ignored
  • Doors with the same prefix are linked together in an airlock system
  • You do not need an airlock light for the doors to function properly
  • For each airlock system, if an Interior Door is opened, all Exterior Doors are locked and vice versa
  • Each airlock system operates independently of others

Custom Data Configuration

I've rewritten this code (yet again) to support Custom Data configuration. This means that you do not need to touch any values inside of the code.

Programmable Block Config

In the Custom Data of the programmable block, you can change the global default auto close intervals as well as any and all of the name tags used by this script.

[Auto Door and Airlock - General Config] Enable automatic door closing=true Enable airlock system=true Ignore all hangar doors=true Default regular door auto close time (s)=3 Default hangar door auto close time (s)=10 Auto door exclusion name tag=Excluded Interior airlock door name tag=Airlock Interior Exterior airlock door name tag=Airlock Exterior Airlock light name tag=Airlock Light Airlock sound block name tag=Airlock Sound

Per Door Config

By popular request, if you want to set auto close intervals per door, you can do so in the Custom Data of a door.

[Auto Door and Airlock - Door Config] Use default auto close time=true ; To use a custom auto close time, set "Use default auto close time" to false Custom auto close time (s)=3

Airlock Light Config

Because hardcoding stuff is mega lame, I've also added configuration settings in the Custom Data of light blocks that are being used as airlock indicator lights.

[Auto Door and Airlock - Light Config] Turn on when airlock is open=true Airlock open - Color (R,G,B)=255, 40, 40 Airlock open - Blink interval (seconds)=0.8 Airlock open - Blink length (%)=50 Turn on when airlock is closed=true Airlock closed - Color (R,G,B)=80, 160, 255 Airlock closed - Blink interval (seconds)=0.8 Airlock closed - Blink length (%)=100

Author's Notes

This script has been rewritten (on 2021/02/22) to support Custom Data configuration. The script is still very performance friendly, and this should make configuring stuff much cleaner since you no longer need to edit variables in the code.

This is/was my first script, I hope y'all enjoy! :)

Thanks to LordTylus for the script in his Self-Maintaining Survival Ship that I initially based the logic of the auto door closing on. It was.one of my first exposures to C# and partially responsible for piquing my interest in programming :)

If you have any questions, comments, or concerns, feel free to leave a comment.

  • Whiplash141 :)

(Do not reupload without permission, not even to mod.io)

Как установить Whip's Auto Door and Airlock Script

Мод ставится подпиской в Мастерской Steam — без архивов, перезаливов и сторонних установщиков

Подробная инструкция для Space Engineers
  1. Откройте страницу мода «Whip's Auto Door and Airlock Script» в Мастерской Steam (кнопка «Скачать» на нашем сайте ведёт именно туда) и нажмите «Подписаться» — Steam сам скачает мод и будет его обновлять.
  2. Если Steam покажет список обязательных модов, подпишитесь и на них — без них мод не заработает.
  3. Запустите Space Engineers: моды подключаются к конкретному миру — при создании мира или в его настройках нажмите «Моды» и добавьте мод в список активных.
  4. Если мод не появился в игре, откройте вкладку «Загрузки» в Steam и дождитесь, пока он скачается полностью, затем перезапустите игру.
  5. Для игры по сети подпишитесь на одни и те же моды всей компанией: набор модов у хоста и у игроков, как правило, должен совпадать.
Вы автор мода? Поставьте ссылку на русское описание

Вставьте значок в описание на Мастерская Steam, в README или в Discord — русскоязычные игроки сразу попадут на страницу с переводом и инструкцией.

Описание на русском — Модка
Markdown[![Описание на русском — Модка](https://modka.app/badge.png)](https://modka.app/space-engineers/whip-s-auto-door-and-airlock-script/)
HTML<a href="https://modka.app/space-engineers/whip-s-auto-door-and-airlock-script/"><img src="https://modka.app/badge.png" alt="Описание на русском — Модка" height="44"></a>
Steam (BBCode)[url=https://modka.app/space-engineers/whip-s-auto-door-and-airlock-script/]Описание на русском — Модка[/url]

Частые вопросы о Whip's Auto Door and Airlock Script

Как установить Whip's Auto Door and Airlock Script?

Откройте страницу мода «Whip's Auto Door and Airlock Script» в Мастерской Steam (кнопка «Скачать» на нашем сайте ведёт именно туда) и нажмите «Подписаться» — Steam сам скачает мод и будет его обновлять. Если Steam покажет список обязательных модов, подпишитесь и на них — без них мод не заработает. Запустите Space Engineers: моды подключаются к конкретному миру — при создании мира или в его настройках нажмите «Моды» и добавьте мод в список активных. Если мод не появился в игре, откройте вкладку «Загрузки» в Steam и дождитесь, пока он скачается полностью, затем перезапустите игру. Для игры по сети подпишитесь на одни и те же моды всей компанией: набор модов у хоста и у игроков, как правило, должен совпадать.

Безопасен ли Whip's Auto Door and Airlock Script?

Мы ничего не перезаливаем: кнопка скачивания открывает официальную страницу мода в Мастерской Steam. Там нужно нажать «Подписаться» — файлы загрузит и будет обновлять сам Steam.

Нужно ли друзьям ставить Whip's Auto Door and Airlock Script?

В сетевой игре Space Engineers набор модов у хоста и у остальных игроков, как правило, должен совпадать: подпишитесь на одни и те же моды всей компанией. Исключения — моды, которые меняют только то, что видите и слышите вы сами; точные требования автор пишет в описании мода.

Когда Whip's Auto Door and Airlock Script обновлялся последний раз?

12 сентября 2021. Это больше года назад: перед установкой проверьте, работает ли мод на текущей версии игры.

Isy's Solar Alignment Script — иконка

Isy's Solar Alignment Script

Это сценарий выравнивания солнечных панелей, который использует роторы (и шарниры) или гироскопы для выравнивания солнечных панелей для максимальной эффективности. Ключевой особенностью этого сценария является то, что он может..

Эпический240 тыс.Скрипты

MART | Whip's Mouse Aimed Rotor Turret Script — иконка

MART | Whip's Mouse Aimed Rotor Turret Script

Да, это работает с шарнирами. Внимание Начиная с версии 1.200, игра теперь правильно синхронизирует входные данные игрока на сиденьях. Это означает, что вы можете использовать MART с несколькими..

Редкий127,5 тыс.Скрипты

Whip's Subgrid Thruster Manager — иконка

Whip's Subgrid Thruster Manager

Ранее называлось «Whip’s Rotor Thruster Manager» Update • Добавлена пользовательская конфигурация данных. Вам больше не нужно открывать код и менять переменные. Добавлена милая маленькая анимационная..

Редкий116,8 тыс.Скрипты

Whip's Turret AI Slaving Script — иконка

Whip's Turret AI Slaving Script

(перенаправлено с «Whip’s AI Rotor Turret Control Script») Примечание В документации ниже «ротор» относится как к роторам, так и к шарнирам! Это связано с тем, что игра рассматривает петли

Обычный91,4 тыс.Скрипты

(THYA) Shield HUD Script — иконка

(THYA) Shield HUD Script

Текущая версия сценария 1.7.6b апрель 2025 Этот скрипт отображает экраны кораблей в виде % и/или визуальной панели на ЖК-дисплее. Обсуждение DarkStar's Defense Shield Mod

Обычный85,2 тыс.Скрипты

SWCS | Whip's Subgrid Wheel Control Script — иконка

SWCS | Whip's Subgrid Wheel Control Script

Описание Этот скрипт позволяет управлять рулевым управлением и движением колес, прикрепленных через поршни, роторы или шарниры, используя обычные клавиши движения! Колеса также будут эмулировать тормоза

Обычный79,2 тыс.Скрипты