Stationeers

Stationeers

View Stats:
Sepiche Sep 29, 2018 @ 9:23am
Hardsuit IC Programming
Successfully got a program running to turn my suit off and on based on temperature and pressure, but getting odd results when trying to use the suit sensors to get gas ratios to make sure the air is breathable before I turn everything off.

I'm inside my base with ~69% CO2, 30% O2, and 1% N2, but when I run tests on the values coming back from the various db ratio values, I'm getting a value of 1 for RatioOxygen, but ~.01 for RatioNitrogen.

I assumed the ratios would be based on the percentages from 0 - 1 (i.e. RatioOxygen would be ~.29), and the N2 value seems to be along those lines, but the value of 1 from RatioOxygen is throwing me off.

Any idea what values I should expect, or what I'm doing wrong?

Also, is there an easy way to output values from the IC for debugging? I obviously can't run the IC in the housing, and there doesn't seem to be any Setting on the suit I can use to view values like if I run an IC in a housing.
Last edited by Sepiche; Sep 29, 2018 @ 9:27am
< >
Showing 1-3 of 3 comments
Bigfoot Sep 29, 2018 @ 10:40am 
The ratios you read from db are the internal values and an oxygen ratio of 1 is ok.

You can push values on the stack and save the game. You can then view the values in the world.xml.

l r0 db AirRelease push r0 l r0 db Filtration push r0 l r0 db Pressure push r0 l r0 db PressureExternal push r0 l r0 db PressureSetting push r0 l r0 db RatioCarbonDioxide push r0 l r0 db RatioNitrogen push r0 l r0 db RatioOxygen push r0 l r0 db RatioPollutant push r0 l r0 db RatioVolatiles push r0 l r0 db RatioWater push r0 l r0 db Temperature push r0 l r0 db TemperatureExternal push r0 l r0 db TemperatureSetting push r0 move sp 0 yield j 0

<Stack>1</Stack> <Stack>1</Stack> <Stack>50.000003814697266</Stack> <Stack>160.49534606933594</Stack> <Stack>50</Stack> <Stack>0</Stack> <Stack>0</Stack> <Stack>1</Stack> <Stack>0</Stack> <Stack>0</Stack> <Stack>0</Stack> <Stack>292.45745849609375</Stack> <Stack>307.11669921875</Stack> <Stack>293.14999389648438</Stack>
Sepiche Sep 29, 2018 @ 10:47am 
Ah, good to know, thanks. I was assuming those were external ratios, but makes perfect sense they are internal.
Bigfoot Sep 29, 2018 @ 10:54am 
Currently, there is only external pressure and temperature, but external ratios would be nice.
< >
Showing 1-3 of 3 comments
Per page: 1530 50

Date Posted: Sep 29, 2018 @ 9:23am
Posts: 3