Space Engineers

Space Engineers

Not enough ratings
Public Docking Bay
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
3.458 KB
30 Mar, 2015 @ 2:58pm
16 Sep, 2016 @ 6:45pm
4 Change Notes ( view )

Subscribe to download
Public Docking Bay

Description
Public Docking Bay to allow Players to Dock and Leave their Vehicle without fear of someone robbing it or crashing into it. The Dockng Bay is password protected and is stored in an LCD/Text Panel, make yourself owner of the LCD/Text Panel and keep its contents hidden, here you can view or change the Dock Passwords. You can change the Messages displayed to the player, font colour and font size in the Optional section.

How to Use

• Place a Programmable Block, Open its Control Panel and Edit the Block. Click Browse Workshop and add the Script.
- Scroll down the script until you find the START OF EDIT section.
- Change the 'PDBDockName' to a Unique Dock Name. Default 'PDB_Dock_01'.
- Click Check code and then click Remember & Exit.
- Now place a Text/LCD Panel for the Player to see (this will be the info panel). Name the panel a Unique Name. Default 'PDB_Text_Info_Dock_01'.
- Place another Text/LCD Panel for the Admin to use (this will be the state panel and will store the passwords). Name the panel a Unique Name. Default 'PDB_Text_State_Dock_01'.
- Go back to the Programmable Block and edit the script. Scroll down to the START OF EDIT section and change the 'PDBStateMachineName' to the second placed Panel's Name. Default 'PDB_Text_State_Dock_01'.
- Change the 'PDBInfoPanelName' to the first placed Panel's Name. Default 'PDB_Text_Info_Dock_01'.
- Click Check code and then click Remember & Exit.
- Place how many Landing Gears you would like to use and add them all to a new Unique Group Name. Default 'PDB_Landing_Dock_01_Group_01'.
- Go back to the Programmable Block and edit the script. Scroll down to the START OF EDIT section and under the 'PDBLandingGearGroupNames' change the default name or add another Unique Name. Default 'PDB_Landing_Dock_01_Group_01'.
- Click Check code and then click Remember & Exit.
- Place a Sensor below and in the center of the Landing Gears. Adjust the Sensor so the sensor field reaches just inside and above your Group of Landing Gears. This will detect the Player's Ship Landing on the Landing Gears.
- Edit the Sensor's Trigger by clicking Setup actions. Drag and drop the Programmable Block on to the Enter Trigger, a text box will appear, tpye 'Enter' and then click Ok. Drag and drop the Programmable Block on to the Exit Trigger, a text box will appear type 'Exit' and then click Ok.
- Place a Button Panel for the Player to enter a Password in. Edit the Button Panel's Trigger's. Drag and drop the Programmable Block on to the Button 1 Trigger, a text box will appear type '1' and then click Ok. Do this to Trigger Button 2, 3 and 4 but when the text box appears enter the appropiate number in for the Button.

You are now ready to Land your Ship on top of the Landing Gears. Follow the On Screen Instructions on the Info LCD/Text Panel to Lock your Docking Bay.

WARNING

Make sure the Names of the Group's are all Unique and are equal to the ones Named in the Script.
Make sure all the Blocks used are owned by all the same Owner.
Make sure all the Blocks are connected to the same Grid System (Station/Ship).

OPTIONAL

There is an Animate option to add an simple animation to the Info Text/LCD Panel. To use;

- Place a Timer Block and set the Timer Block Delay to '1' Second. Click on Setup Actions to setup the Trigger's.
- Drag and drop the Programmable Block on to the first Trigger, a Text box will appear tpye 'Animate' in to the text box and click Ok.
- Drag and drop the same Timer Block on to it's own second Trigger, a drop down box will appear, select Start.
- Exit the Timer's actions and now Start the Timer Block.

You can edit the Font Size and Font Colour in the OPTIONAL section of the EDITING SECTION. Here you can also change the Message the player will be displayed.

"\r\n" is for a Line Break so you can go to the next line.
The Font Size is a Value from 0.1-10 including decimal places.
The Color Value is RGB from 0-255.

UPDATES

Update v2.5.0

Mod API Fix.

Group Blocks function changed in Space Engineers version 1.141.

Update v2.4.1

- Bug fix
- Added more State Information
- Added last attempted Password

Update v2.3.2

• Added Arguments
• Removed Lights
• Changed Group Names
• Fixed Group Changes
8 Comments
EnjoyCoke 16 Oct, 2016 @ 12:40pm 
Absolutely amazing!
Sythius  [author] 16 Sep, 2016 @ 6:52pm 
Released update for Mod API Fix.
Group Blocks function changed in Space Engineers version 1.141.
Zacknetic 6 Jul, 2016 @ 4:11am 
Cool stuff! I will definitely try it out.
Sythius  [author] 6 Jul, 2016 @ 2:01am 
I have updated the script to solve a bug where the Locking/Unlocking of the Landing Gears caused the script State to change. I have also added more State information which lets the Admin know when the player is entering or attempted to enter a Password. This is stored in the State Text/LCD Panel along with the last attempted Password.
Dampiir 27 Apr, 2016 @ 11:13pm 
Keep getting an error on the program block it says Caught Exception during execution of script: Argument cannot be Empty!
Zacknetic 24 Jul, 2015 @ 10:00pm 
Looking forward to it.
Sythius  [author] 24 Jul, 2015 @ 2:02pm 
Thanks for the feedback. I have been meaning to update the script and i will get on it. I will update it so it uses arguments and i will make sure the script resets the docks after use, should be ready in a day or two.
Zacknetic 22 Jul, 2015 @ 4:45am 
Looks like a great script! Question, will this script reset the password and other settings once the player has left the hangar? Also, now that you can use buttons to run the programable block with arguments, you should be able to remove the reliance on lights.