Space Engineers

Space Engineers

Not enough ratings
Door Automation (Autoclose + Gateway / Airlocks handling)
   
Award
Favorite
Favorited
Unfavorite
Type: Mod
Mod category: Script, Modpack
File Size
Posted
Updated
329.782 KB
25 Sep, 2021 @ 9:00pm
16 Oct, 2021 @ 5:20pm
12 Change Notes ( view )

Subscribe to download
Door Automation (Autoclose + Gateway / Airlocks handling)

Description
2021-10-13: New update for Multiplayer and Dedicated Server support.
Please report any bugs in comments or discussions.

TODO:
- Transfer Custom Data configuration to GUI (auto-convert existing configurations?)

Summary
Control your doors automatically
  • Auto-close door after amount of time
  • Create Gateways / Airlocks
  • Show current status of all doors on Displays
All settings are stored in door's or display's "Custom Data" field.
Each door / display has separate settings.

Mod compatible with all standard doors:
  • Door
  • Sliding door
  • Offset door
  • Gate
  • Hangar Door (combine several blocks into one door - see <Subgroup-ID> below)

Configuration naming convention:
- Please avoid using colon ':', comma ',' and dot '.' symbols in parameter values since they are used as separators

Door control
1. Auto-close
This allows you to control automatic door closing in specified amount of time.
Setting: DoorAI.AutoClose: <value-in-ms> (1000 ms = 1 sec)
Example: DoorAI.AutoClose: 2000

2. Gateways / Airlocks handling:
This allows you to control Gateways / Airlocks / Lock Chambers (when 2 or more doors would operate as a single cluster)
Setting: DoorAI.GateWay: <Gateway-ID>[.<Subgroup-ID>]
Example-1: DoorAI.GateWay: MAIN-ENTRANCE
Example-2: DoorAI.GateWay: MAIN-ENTRANCE.HANGAR-1

Parameter <Subgroup-ID> is optional and required for Hangar Doors to combine several blocks into "one door".

After assigning the same <Gateway-ID> to several doors these doors will start working as a cluster / airlock. This means that when one door is opened all the other doors within the same cluster will be locked. When opened door is closed (by AutoClose or manually) all doors in the cluster will be unlocked.

<Subgroup-ID> explanation:
Since Hangar Doors are built using multiple blocks of 'Hangar Door' this parameter is used for combining these blocks into one cluster. Just add the same <Subgroup-ID> for all blocks that operate as a single door after a 'dot' symbol in the DoorAI.GateWay setting. This prevent locking separate door blocks when one of these blocks is being opened.
Please keep in mind that these blocks are still separate blocks and you have to open/close them using group. This behavior has been left as is intentionally as some users may want to control such blocks separately. But to unlock other doors in this gateway all door blocks must be closed.

Example:
Let's consider having a Lock Chamber with 1 Sliding Door and a 2 gates with 3 Hangar Door blocks each.
So to make it work you can do the following configuration:

* 'Sliding Door':
DoorAI.GateWay: GARAGE
* Hangar Door array 1 (each block):
DoorAI.GateWay: GARAGE.GATE-1
* Hangar Door array 2 (each block):
DoorAI.GateWay: GARAGE.GATE-2

You can also use <Subgroup-ID> for regular doors, it may be useful in some cases.

Display control
You can display summary or detailed status info about your Gateways (see screenshots for examples).
  • For Gateway its <Gateway-ID> is displayed as a name
  • For REGULAR door its Name is displayed as a name
  • For Clustered door (Hangar Door) its <Subgroup-ID> is displayed as a name

Available configuration options:
  • DisplayAI.GateWayName: <Gareway-ID> from DoorAI.GateWay
    If set then only this gateway info is displayed
    If not set then all gateways will be displayed
  • DisplayAI.InfoType: Detail | Summary
    Detail: include door/clustered door info
    Summary: Only gateway status is displayed with no detalization
  • DisplayAI.ColorClosed: 005500
    What color to use to display "CLOSED" status.
    Can be specified in HEX (RRGGBB) or DEC (R,G,B) formats
  • DisplayAI.ColorOpen: 100,0,0
    What color to use to display "OPEN" status.
    Can be specified in HEX (RRGGBB) or DEC (R,G,B) formats
  • DisplayAI.FontScale: 80
    Font scale in percent. 100 means no scale (100% font size)
After spawning a new door or selecting "Gateway info" script on a display its 'Custom Data' property will be populated with default (commented) config for your convenience (only if Custom Data is empty). The same happens for all doors with empty property 'Custom Data' after loading a game.

After unsubscribing all doors will continue to work as regular doors (without automation).

8 Comments
Origami  [author] 10 Apr, 2022 @ 9:23am 
@condottiere Thanks for your feedback :) I hope I will find the time to make a UI for this mod. At least I have such plans.
condottiere 30 Mar, 2022 @ 6:37am 
I'm using this with Elachi Dance Party's new door mod pack and it works GREAT out of the box for airlocks, regular single door timing, etc. Some of ED's mod doors open a little slower, so I only had to bump the delay from 2000 ms to 3000 ms.

I love the configurability and ease of use! Thank you!
Origami  [author] 16 Oct, 2021 @ 4:55pm 
@mookie1590 if those doors based on the standard ones then they have to work. But there is no guarantee since I simply do not know what these doors are. You can give it a chance. If it does not work - put a link to the modded door here, I will look if I can handle it.
mookie1590 16 Oct, 2021 @ 2:59pm 
Does this work with modded doors, hangers?
Origami  [author] 13 Oct, 2021 @ 9:32am 
Multiplayer / DS support has been released.
camcamhow 8 Oct, 2021 @ 4:42am 
ok thanks
Origami  [author] 8 Oct, 2021 @ 1:25am 
@camcamhow Thanks for the report, found a bug that appears in dedicated servers. Will fix it in a few days.
camcamhow 7 Oct, 2021 @ 8:23pm 
I'm having issues with this mod in my dedicated server where the script on the LCD wont display anything everything else works fine