Files
tbd-station-14/Resources/ServerInfo/Guidebook/Engineering/GasManipulation.xml
ArtisticRoomba f874459092 Pressure Relief Valve (#36708)
* initial system (this math is probably WRONG)

* General code cleanup and OnExamined support
(holy moly this code sucks)

* UICode and related events foundation
TODO:
- Actually write the XAML UI and the underlying system
- Un-shitcode the entire thing
- Actually test everything...

* Working UI code
TODO: Make predicted, as this certainly isn't predicted. Even though I said it was. It isn't.

* Remove one TODO for unshitcoding the examine code

* Add reminder
yea

* Make predicted (defenitely isn't)
(also defenitely isn't a copypaste from pressure pump code)

* It's predicted!
TODO:
- Give it snazzy predicted visuals!
- Have a different field for pressure entry, lest it gets bulldozed every UI update.

* Improve gas pressure relief valve UI
TODO: Reminder to reduce amount of dirties using deltafields

* Implement DirtyField prediction

* Entity<T> cleanup
A lot of Entity<T> conversions and lukewarm cleanup.

Also got caught copy pasting code in 4K UHD but it's not like you couldn't tell.

* More cleanup and comments

* Remove TODO comment on bulldozing window title

* """refactoring"""
- Move appearance out of shared and finally fix it. Pointless to predict appearance in this instance.
- More Entity<T> conversions because I like them.
- Move UI creation handling over entirely to the ActivatableUI system.
- Fix a hardcoded locale string (why????).

* Add visuals

* Revert debugging variable replacememt
yea

* Revert skissue

* Remove unused using directives and remove TODO

* Localize, cleanup, document

* Fix adminlogging discrepancy

* Add ability to construct, add guidebook entry

* Clear up comment

* Add guidebook tooltip to valve

* Convert GasPressureReliefValveBoundUserInterface declaration into primary constructor

* Adds more input handling and adds autofill on open

* Un-deepfry input validator shitcode
Genuinely what was I smoking

* improve visuals logic

* Refactor again
- Update math to the correct implementation
- Moved code that could be re-used in the future into a helper method under AtmosphereSystem.Gases.cs

* I'm sorry but I hate warnings

* Remove unused using directive in AtmosphereSystem.Gases.cs

* Review and cleanup

* Lukewarm UI glossup

* Maintainer for the upstream project btw

* Remove redundant state sets and messy logic

* Unduplicate valve updater code

* Redo UI (im sorry Slarti)

* run tests

* Test refactored UI messaging

* Second round of UI improvements
- God please find a way to improve this system. Feels bad.

* Update loop implementation

* Further predict UI

* Clear up SetToCurrentThreshold

* cleanup

* Update to master + pipe layers and bug fixes
want to run tests

* fixes

* Deploy rename pipebomb

* Documentation and requested changes

* Rename the method that wiggled away

* Undo rounding changes

* Fix comment

* Rename and cleanup

* Apply suggestions from code review

---------

Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com>
2025-07-03 18:00:34 +02:00

110 lines
3.6 KiB
XML

<Document>
# Gas Manipulation
Atmos has a wide variety of tools and equipment at their disposal for the manipulation of gasses throughout the station.
[bold]Warning: unanchoring (unwrenching) most devices containing gas will [color=red]leak gas[/color] into the atmosphere.[/bold]
You can safely unanchor [textlink="canisters" link="GasCanisters"], [textlink="portable scrubbers" link="PortableScrubber"], [textlink="condensers" link="GasCondensing"], and [textlink="thermomachines" link="Thermomachines"].
<Box>
<GuideEntityEmbed Entity="GasPipeStraight" Caption=""/>
<GuideEntityEmbed Entity="GasPipeHalf" Caption=""/>
<GuideEntityEmbed Entity="GasPipeBend" Caption=""/>
<GuideEntityEmbed Entity="GasPipeTJunction" Caption=""/>
<GuideEntityEmbed Entity="GasPipeFourway" Caption=""/>
</Box>
<Box>
## Pipes
</Box>
<Box>
[color=#999999][italic]Distributing gasses from one place to another[italic][/color]
</Box>
<Box>
<GuideEntityEmbed Entity="GasPressurePump" Caption=""/>
<GuideEntityEmbed Entity="GasVolumePump" Caption=""/>
</Box>
<Box>
## Pumps
</Box>
<Box>
[color=#999999][italic]Forcing the movement of gasses from one place to another[italic][/color]
</Box>
<Box>
<GuideEntityEmbed Entity="GasVentPump" Caption=""/>
<GuideEntityEmbed Entity="GasPassiveVent" Caption=""/>
<GuideEntityEmbed Entity="GasOutletInjector" Caption=""/>
<GuideEntityEmbed Entity="GasVentScrubber" Caption=""/>
<GuideEntityEmbed Entity="PortableScrubber" Caption=""/>
</Box>
<Box>
## Atmosphere Input and Output
</Box>
<Box>
[color=#999999][italic]Inserting and extracting gasses from a present (or non-present) atmosphere[italic][/color]
</Box>
<Box>
<GuideEntityEmbed Entity="GasValve" Caption=""/>
<GuideEntityEmbed Entity="SignalControlledValve" Caption=""/>
<GuideEntityEmbed Entity="PressureControlledValve" Caption=""/>
<GuideEntityEmbed Entity="GasPassiveGate" Caption=""/>
<GuideEntityEmbed Entity="GasPressureRegulator" Caption=""/>
</Box>
<Box>
## Valves
</Box>
<Box>
[color=#999999][italic]Controlling the flow of gas through pipes[italic][/color]
</Box>
<Box>
<GuideEntityEmbed Entity="GasMixer" Caption=""/>
<GuideEntityEmbed Entity="GasFilter" Caption=""/>
</Box>
<Box>
## Mixing and Filtering
</Box>
<Box>
[color=#999999][italic]Manipulating the composition of gas[italic][/color]
</Box>
<Box>
<GuideEntityEmbed Entity="AirCanister" Caption=""/>
<GuideEntityEmbed Entity="OxygenCanister" Caption=""/>
<GuideEntityEmbed Entity="NitrogenCanister" Caption=""/>
<GuideEntityEmbed Entity="CarbonDioxideCanister" Caption=""/>
<GuideEntityEmbed Entity="StorageCanister" Caption=""/>
<GuideEntityEmbed Entity="GasPort" Caption=""/>
</Box>
<Box>
## Gas Canisters
</Box>
<Box>
[color=#999999][italic]Storing and transporting gas for easy use by the crew[italic][/color]
</Box>
<Box>
<GuideEntityEmbed Entity="SpaceHeater" Caption=""/>
<GuideEntityEmbed Entity="GasThermoMachineHeater" Caption=""/>
<GuideEntityEmbed Entity="GasThermoMachineFreezer" Caption=""/>
<GuideEntityEmbed Entity="HeatExchanger" Caption=""/>
</Box>
<Box>
## Thermomachines and Radiators
</Box>
<Box>
[color=#999999][italic]Manipulating the temperature of gasses in a pipenet or atmosphere[italic][/color]
</Box>
<Box>
<GuideEntityEmbed Entity="BaseGasCondenser" Caption=""/>
</Box>
<Box>
## Gas Condensing
</Box>
<Box>
[color=#999999][italic]Condensing gasses for further use[italic][/color]
</Box>
</Document>