Space Engineers

Space Engineers

Not enough ratings
Auto Door and Airlock Manager
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
52.554 KB
17 Nov, 2018 @ 3:30am
23 Apr, 2019 @ 6:21pm
17 Change Notes ( view )

Subscribe to download
Auto Door and Airlock Manager

Description
Automates doors and airlocks - reduced setup
Automatically recognizes double sliding door airlocks


Set Up:
- Name doors
- Put sensor in range of doors



Airlock Setup

Tag airlock doors with range, ID, and inner/outer
E.g. '-Range [Airlock ID:Inner]' or '-Range [Airlock ID:Outer]'
- Airlock ID is case sensitive
- Inner/Outer tag is not case sensitive
- Range can be whole number or decimal

Airlock door examples
  • Door-5.5 [Airlock ID:Inner]
  • Door-5.5 [Airlock ID:Outer]
  • My door-15[Personnel:inner]
  • My door-15[Personnel:outer]

Vents are automatic and not required
Sound blocks and panels are automatic by default and not required



Auto Door Setup

Tag auto doors with range and keyword
E.g. '-Range Autodoor' or '-6.5 Autodoor'
- Autodoor keyword not case sensitive and changeable in settings
- Range can be whole number or decimal

Auto door examples
  • Autodoor-5.5
  • Door-5.5 Autodoor
  • Door -5[autodoor]
  • My door-15 [AuToDooR]

Airlock Area
- This script scans both sides of outer doors to find an enclosed area
-- The max size for enclosed areas can be modified in settings
- The enclosed area and the doors are considered the airlock area

Airlock and auto doors
- Only opens for owner and allies
- Will open or close doors based on your location
- Will enable or disable vents based on your location and orientation
-- For multiple people or ships, make sure everyone is going the same way or the doors will remain closed


Commands
- Save - Save user settings
- Load - Load user settings
- Scan - Scans for new airlocks and doors


Settings
- Settings set in Custom data and loaded with 'load'

- OutputPanelName - Keyword for output to panels
- InnerAirlockPanel - Keyword for airlock status panels
- AutoDoorKeyword - Keyword for auto doors
- SoundBlockKeyword- Keyword for sound blocks
- AutoUseLCDs - Automatically use text panels found in airlocks
- AutoUseSoundBlocks - Automatically use sound blocks found in airlocks
- UseRangeOnly - Don't use airlock area
- ControlIntake - Turn on/off vents at 90% oxygen in tanks
- ThoughtLine - A changing line to show script activity
- ProgressBarLength - Length of progress bar for oxygen pressure levels
- OxygenFillLevel - Percentage of oxygen pressure considered full
- SizeLimit - Limit for airlock area
- OutputLimit - Limit for lines of output saved
- ActionLimiterMultiplier - Percentage of actions usable
- RunTimeLimiter - Max desired runtime in milliseconds
- OccupyDelay - Delay before doors close behind you while inside airlock
- SmallBlockDistance - Distance from airlock area to be considered inside airlock on small grid
- LargeBlockDistance - Distance from airlock area to be considered inside airlock on large grid
- SmallBlockPlayerLead - Distance in front of player used to determine desired direction on small grid
- LargeBlockPlayerLead - Distance in front of player used to determine desired direction on large grid
6 Comments
E79Tank 4 Jun, 2020 @ 6:16am 
ah right that's what i thought was the case, as I've had no problems with the autodoor and airlock set up, even made a lovely vertical airlock hangar and horizontal entrance/exit airlock for my ships of the moon, this code and it's effects are a work of beauty, In the video footage I noticed that some of the airlock gates are tagged [Big] and was wondering if the gates infront of the multidoor airlock on the inner side were technically seperate from the multidoor airlock shown, sadly I was wrong and feel a fool not asking sooner lol
nicknds  [author] 3 Jun, 2020 @ 2:19pm 
There are only 3 commands; save, load, and scan

There is two types of doors. Airlocks and autodoors


Airlocks require two sets of doors, an inner and an outer. The doors are tagged as a single large group divided between inner and outer doors


Autodoors are single doors that open and close depending on proximity. These are for those doors you have laying around to separate rooms in case pressure is lost

They don't support multiple doors opening simultaneously but if you increase the radius enough then doors near you will open sort of like an automated hangar that only opens as wide as necessary


If someone wants a single set of doors to open as a group like the airlocks but with only one set of doors, I would recommend using a sensor and a group

Group your doors in the control panel
Set a sensor in range of the doors
Open the sensor
-On the left (Detects Entity) set it to open the group of doors
-On the right (Doesn't Detect Entity) set it to close the group of doors
nicknds  [author] 3 Jun, 2020 @ 2:11pm 
E79Tank, the script is designed for airlocks or single doors

For the single doors, it just opens when you're near and closes when you're not

For the airlocks, you need two sets of doors. For your hangar I assume the hangar door is the outermost set of doors. You will need to assign something as the inner door(s) that is attached to the hangar, a single door or something would work.

Name all your hangar doors "Door-40 [Hangar:Outer]"
-This makes it so the doors are registered to the airlock "Hangar" and if someone comes within 40m of any of the doors that hangar door will try to open

Name the inner door(s) "Door-10 [Hangar:Inner]"
-Run the command "Scan" and the airlock will start working
E79Tank 3 Jun, 2020 @ 7:52am 
is it possible to see the full list of door commands in the script? trying to make a singular hangar door for earth and can't seem to find the right fit unless i put autodoor and then it only opens a select number of the 1x5 gates depending on where i'm stood or how big my ship is
requiemfang 1 Dec, 2018 @ 1:59pm 
Works effectively well. Took me some trial and error to set up some airlocks but I managed lol
XEN 17 Nov, 2018 @ 8:57am 
:O!