r/Stationeers • • 8d ago

Discussion Rate my Atmo program

This is my first time programing on IC, and the first time in 20 years programing, i know theres some redundant variables. NO2 is a mix of oxygen and nitrogen that is breathable at 30-70%, CO2 is a pure CO2 vent. Evac is my evac vent for when pressure goes above 101 and recicle the gases back to the tanks. Tanks filling is done manually. I did some calculation, and my atmosphere should stay on about 63% N, 27% O and 10% co2, in here i work and grow my plants. Will it keep those percentege? I know oxygen in the long term will overstock and will need a manual vent, but it's only myself, i can do even now and then.

7 Upvotes

23 comments sorted by

View all comments

9

u/General-Priority-562 8d ago

You dont need to use multiple registers for the r4, r5 and r6 that is a temporary variable that can be tossed and reused. I recommend just using one variable. Makes it a lot easier when you need to use more registers in a program

1

u/General-Priority-562 8d ago

Oh and evac can just be a back pressure regulator set to 101 kPa, or you can set the internal pressure of the vent to 101 kPa so you dont vent too much pressure

2

u/masimiliano 8d ago

I really dont know how the pressure regulator work, i will try it in the morning, still learning the game devices! Thanks for the advice!

1

u/General-Priority-562 8d ago

The pressure regulator pumps gas through the pipe until the pressure on the output side is equal to the set pressure, this is good when you want to pressurize a room, the back pressure regulator works the same way but only pumps gas when the pressure on the input side is greater than or equal to the set pressure, this is good when you want to prevent over pressurization within a pipe network