Stationeers

Stationeers

Not enough ratings
AIO Atmospherics Control
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
285.244 KB
3 Aug, 2022 @ 2:22am
14 Aug, 2022 @ 10:11am
4 Change Notes ( view )

Subscribe to download
AIO Atmospherics Control

Description
All in One - Atmospherics Control v1.1.2 by LOG3

--------------
Table of Contents
--------------


-Description
-Room Setup
-Installation
-Screw Setup
-Script Settings

--------------
Description
--------------


This IC10 script takes care of the whole atmosphere of a room:

-regulating the pressure and temperature
-regulating the set gas ratios of N2, CO2 and O2
-venting all other unwanted gasses


I tried to make it easy to undersand and flexible enough to be changed according to your preferences.

New with v1.1: Buffer mechanics
Temperature/Pressure/Gas ratios now all have a target and buffer value set in the script. Once a value is over/under its target +/- the buffer the system is triggered and react until the target is reached.

This acts as a buffer so that the system is not constantly reacting to small changes and spends longer time in idle when everything is within limits.
The default Settings should be good to go but if you are not happy you can play around with the appropriate settings. Refer to the Script Settings section.

--------------
Room Setup
--------------


This script works with active vents for both intake and exhaust and wall coolers and wall heaters.

Your room needs:

-access to a filtration loop where every gas is filtered.
-2 active vents for sucking up the air in the room back into the filtration loop. Unwanted gasses should be either stored or vented outside.
-3 active vents, one for each gas in the atmosphere: N2, CO2 and O2 which supply the room with these wanted gasses.
-at least 1 wall cooler and 1 wall heater and these should be the only ones connected to the IC10 network.

Notice: It should be possible to rework the script for other solutions with minimal changes:

-You could replace the 3 active intake vents with volume pumps and combine the pipes into a single passive vent but you will need to alter the script slightly by deleting the section where it sets the vent modes and vent pressures.
-You could use other forms of heating/cooling as long as you can write to all of them in the network because this does not use up one of the screw slots.
-You could use only 1 or 2 gasses for the atmosphere and free up more screw slots this way. You will need to delete the appropriate section where it regulates the gas you don't want in your room and copy one of the unwanted gasses section and replace the sensor readout to that gas.


--------------
Installation
--------------


1. Turn off the IC10 you want to use
2. Load the script from the ingame library
3. Select the correct IC10 housing and click export
4. Set the screws accordingly (see section below) and verify or change the settings in the script to your liking
5. Turn on the IC10 and observe your atmosphere to see if its working


--------------
Screw Setup
--------------


d0 - (Sensor) a gas sensor in your room. It should be placed in the middle or at least away from your intake/exhaust vents to read the poper room atmosphere and not a local atmosphere influenced by the vents
d1 - (N2 intake) an active vent that can supply your room with pure N2 gas
d2 - (CO2 intake) an active vent that can supply your room with pure CO2 gas
d3 - (O2 intake) an active vent that can supply your room with pure O2 gas
d4 - (Exhaust) an active vent that sucks the air from the room
d5 - (Exhaust) another active vent that sucks the air from the room

Notice: The correct inward/outward settings are handled by the script and do not need to be set up manually.
Also you could use only 1 active vent as exhaust and free up a screw slot but 2 are preffered for better performance.


--------------
Script Settings
--------------


These values can be found relatively at the top of the script and can be recognized by the keyword define.
They dictate how the system reacts and operates and also your target values that you want your atmosphere to have.

vPO - Upper pressure limit in kPa for when your intake vents are running. Has to be higher than your target room pressure tP + buffer bP to work! Default 106
vPI - Lower pressure limit in kPa for when your exhaust vents are running. Has to be lower than your target room pressure tP - buffer bP to work! Default 91

The vPO and vPI settings dictate how powerful the vents reacts when they turn on. The further away they are from the current room pressure the more violently will they suck air in or spew in new gasses. This can make the system work faster or slower but can also make the difference between an unstable or stable system. An unstable system reacts too strong to reach equilibrium and will bounce between being over/under the limits. I like to have a little bit more power on the vPI because it usually takes longer to suck up all the air when waiting for a specific gas ratio to drop than waiting for a gas ratio to rise when only this specific gas is being pumped in.

tN2 - The target ratio of N2 you want to achieve. This is in percent divided by 100. A value of 0.1 equals 10%. Default 0.1
bN2 - The buffer of N2 you want to have. This is the value that defines the limits for when the system starts to react. Upper limit is target ratio tN2 + buffer bN2. Lower limit is target ratio tN2 - buffer bN2. This is in percent divided by 100. A value of 0.01 equals 1%. Default 0.01

tCO2 - CO2 target ratio. Same as above with N2 but with CO2 Default 0.5
bCO2 - CO2 buffer. Same as above with N2 but with CO2 Default 0.01
tO2 - O2 target ratio. Same as above with N2 but with O2 Default 0.4
bO2 - O2 buffer. Same as above with N2 but with CO2 Default 0.01

!!! CAUTION !!! Make absolutely sure that all target ratios add up to exactly 1.0 (100%)!
This is not yet checked by the script but I will have a look if I can add it in a later version.

tP - The target pressure you want to achieve. This is in kPa. Default 101
bP - The pressure buffer you want to have. This is in kPa. Default 2

tTC - The target temperature you want to achieve. This is in degree Celsius. Default 20
bT - The temperature buffer you want to have. Default 1

Notice: A higher buffer value makes the system take longer to react to changes but also makes it work longer to reach the target value again. For example if you have a 10% percent target of N2 ratio in your atmosphere and you set the buffer to 0.05 (5%) then the system will only react when the N2 ratio is under 5% or over 15% and then it has to suck up air or pump in N2 until it reaches 10% again. This can take a long time in big rooms. Smaller values are better for the lesser prominent gasses and for the overall room pressure and conversely you can use larger values for gasses that you have set a higher ratio for.

coolers - The prefab hash of wall coolers. This is used to activate all wall coolers in the network in order to access them without needing a screw slot. This should not be changed unless you want to use other devices for cooling. Default -739292323
heaters - The prefab hash of wall heaterss. Same as with coolers. Default 24258244

Notice: The values for prefab hashes can be found in the Stationpedia ingame but be sure to use the hashes of the actual item and not of the kit.

--------------
Have fun and don't be afraid to experiment. You can discuss or ask me anything in the comments or just add me on Steam.
LOG3
5 Comments
Mojo 14 Mar @ 3:58pm 
This works really well. I suggest if you build this putting in a pressure regulator between each of your storage tanks and set it to 2-3mpa it reallly helped with the overshoot. Doing this put a limiter in line on the system O2 at 25mpa was filling gushing into the room while the CO2 and N2 were filling not so fast. The system was oscollating way to much without this.
Sharp777 20 Jan, 2023 @ 5:07pm 
Bit late to the party but thanks very much for this.
Vince 20 Aug, 2022 @ 3:53pm 
And forgot to add - thanks for all the good notes in the program as well, the explanations are very useful.
Vince 20 Aug, 2022 @ 3:51pm 
Thanks a lot. This is the best climate control program I've found on the workshop so far! I really like how you can have any number of heaters/air conditioners without having to use a batch writer, I thought that was pretty clever of you. It was also really easy to tie this climate control program into my gas treatment system.

I really enjoy this game, but the IC coding is a little beyond me, and the logic is too messy, so I'm glad there's folks like you in the community uploading great programs for people like me.

The only issue I've had with this program is the CO2 intake flicks off and on constantly, though I think this may have to do with the buffer value so I'm doing some monkeying around to try and fix it. Thanks again!
LOG3  [author] 3 Aug, 2022 @ 4:23am 
Let me know if you have questions or suggestions. I am happy to help with configuring it for your setup!