Jump to content

AT-241659 Atmo switch incorrectly active in vacuum


Moggles
  • Branch: Preview Branch Version: Steam Known Issue

These two atmo switches are currently in complete vacuum but they are still active. They are set to be active if above 0kg.

The pumps drained the room down to the last mcg but the switches do not register the 0kg vacuum. If I drag the slider up and back down to 0kg the switch will then register 0kg and turn off.

image.thumb.png.5a1d7340f2c300ab604c0bd2d7fc03ce.png


Steps to Reproduce
Build an atmo switch and pump out the gas.



User Feedback


I was trying to swap from a water lock to an automated checkpoint airlock with mini pumps

image.thumb.png.45ceae26cdec7250f4d563c207e0dc5a.png

They also can't detect fractions of pressure.

image.thumb.png.b299d5e94152ee2f1bd9d1b5fd97acd9.png

Share this comment


Link to comment
Share on other sites

Figure I better put this here too:

if (this.activateAboveThreshold)
{
	if ((currentValue > this.threshold && !base.IsSwitchedOn) || (currentValue < this.threshold && base.IsSwitchedOn))
	{
		this.Toggle();
	}
}
else if ((currentValue > this.threshold && base.IsSwitchedOn) || (currentValue < this.threshold && !base.IsSwitchedOn))
{
	this.Toggle();
}

The ones with "base.IsSwitchedOn" require = to be added to be correct.
 

Share this comment


Link to comment
Share on other sites



Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
  • Create New...