Space Engineers

Space Engineers

Not enough ratings
Oxygen Production Control By Kryptur
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
5.808 KB
13 Jan, 2020 @ 4:43pm
19 Jan, 2020 @ 9:35am
7 Change Notes ( view )

Subscribe to download
Oxygen Production Control By Kryptur

Description
It is not the "official" version of the script, but it works in the latest version (version 1.193.103) of the game.
No Timer block needed anymore.



I only made a few minor changes:
  • WritePublicText() -> WriteText()
  • Removed Line 54 -> "ShowPublicTextOnScreen()" removed
  • Reduced min & max oxygen levels to be Airlock ready
  • Made it work without the use of a Timer block
  • added auto LCD "contentType" selection

will be coming soon:
  • Transfer Thingy support (see picture)






How to use (in combination with an Airlock)
  1. Setup a whole new oxygen production System for the Airlock. IMPORTANT !
  2. Connect the oxygen production System with the Airlock vent(s)
  3. Put the nessasary Block in Groups and name them according to the Script variables
  4. Place a Timer block (1 or even just 2 seconds):
    • First Slot - Programmable Block with the script
    • Second Slot - Timer block itself

  5. Start Timer block. Start the Script. (If u want u can additionally setup a LCD Display)


How to setup Text Panels / LCDs
  1. Place a LCD / Text Panel somewhere in the same Grid
  2. Put all LCDs in a Group with the Groupname being "oxyLCD". (it has to be in a GROUP )
  3. let me Magic happen.




In the future I will extend this script even further and add more features.




The original description of the script:

Originally posted by Kryptur:
2018-09-09: Changed primitive data types (float -> double)
2017-07-18: Updated to remove obsolete functions and blocks

UPDATED TO NEW API!

This script lets you easily control the Oxygen Production on your Station / Ship.

It checks all marked OxygenTanks for their Oxygen Level and deactivates / activates all marked Oxygen producting blocks, when this level leaves a specified zone.
This lets you keep the oxygen level of your tanks between two values.

Now with support for AirVents on Planets as Oxygen source.

Usefull to keep some space for depressurizing rooms.

DefaultValues:
minLevel: 70%
maxLevel: 75%

BlockGroup for OxygenTanks: "oxyTanks"
BlockGroup for Oxygen Generators: "oxyGenerators"
*Note*: You may also add Oxygen Farms to this group!

To keep up to date the script displays information on TextPanels in the BlockGroup "OxygenLCD

Use a Timer with interval set to 1 second to call the script (Of course you can choose another interval.

Please tell me if you want me to improve something.
Popular Discussions View All (1)
2
19 Jan, 2020 @ 8:30am
FAQ
it.Carl
2 Comments
GAMEtatron 21 Sep, 2023 @ 3:25am 
It works for me.
I also added the possibility to change the LCD text size in the version I'm using, and it works fine.
Suggest you add that to the script. :)
Taran 18 Sep, 2020 @ 7:06am 
the LCD display no longer works :(