Oxygen Not Included

Oxygen Not Included

29 ratings
Show Liquid on Airflow Tiles
   
Award
Favorite
Favorited
Unfavorite
Mods: Tweaks
Compatibility: Base Game, Spaced Out!
File Size
Posted
Updated
1.072 MB
Feb 17, 2024 @ 9:57pm
Mar 23, 2024 @ 12:48am
4 Change Notes ( view )

Subscribe to download
Show Liquid on Airflow Tiles

In 1 collection by llunak
llunak's Oxygen Not Included mods
12 items
Description
This mod provides a workaround for broken rendering of liquids on top of airflow tiles and solar panels.

The game's rendering of liquids on top of airflow tiles and solar panels is broken. Larger amounts strangely float in the air, smaller amounts are not rendered at all. This may result in for example dupes repeatedly getting the soggy feet debuff without a visible cause.

This mod does not fix the problem itself (it most likely cannot be fixed by a mod), but it provides a workaround. If liquid is detected around an airflow tile, it is temporarily switched to act as a solid tile, which fixes the rendering (and gases cannot realistically flow through the tile anyway if covered by liquid). As a side effect it may also fix various exploits related to airflow tiles.

For solar panels, the base tiles are permanently made solid. This is optional (enabled by default), as heavy-watt wires cannot be used in such case. Existing wires appear to continue to function, so if using normal wires is not sufficient, the option can be temporarily disabled, wires built and then the option can be re-enabled.

For changelog see the 'Change Notes' tab.

GitHub: https://github.com/llunak/oni-showliquidonairflowtiles
18 Comments
taz4hvn Sep 1, 2024 @ 8:28am 
This mod does modify game's mechanics. Airflow Tiles are no longer able to stand infinite liquid pressure. A game breaker for me.
llunak  [author] Mar 2, 2024 @ 11:45am 
Airflow tiles are internally treated as gas tiles, not solid tiles, and liquids do not snap to gases,and are not expected to lie on top of solid tiles. https://forums.kleientertainment.com/klei-bug-tracker/oni/liquid-not-rendered-properly-on-top-of-airflow-tiles-or-solar-panels-how-to-fix-r41443/ has some discussion on the matter (apparently I'm wrong on originally placing the problem in the C++ sim code, but given that the workaround in this mod helps, I assume that I'm correct on the cause of the problem itself).

As for why it's been broken for so long, I have no idea.
Stretchytall Mar 2, 2024 @ 11:27am 
Love this mod!

Why is the liquid broken in vanilla?
llunak  [author] Feb 28, 2024 @ 12:49am 
@Shrglwyddes: Yeah, the description mentions it ('may also fix various exploits').
Shrglwyddes Feb 28, 2024 @ 12:10am 
Yeah. I was testing the mod out. The mod breaks hydra spoms I found out.
llunak  [author] Feb 28, 2024 @ 12:04am 
@Shrglwyddes: You have sandbox enabled (not activated, enabled is enough). The game code triggers "dig" of the tile in that case, for whatever strange reason.
Shrglwyddes Feb 27, 2024 @ 4:44pm 
I’m pretty sure this change to airflow tiles allows flaking to occur. I keep shaving bits of metal off of my liquid storage tanks made of airflow tiles.
3GuB Feb 21, 2024 @ 11:42am 
@llunak
add me so i could show u
llunak  [author] Feb 20, 2024 @ 10:26pm 
@Aze: Oh, you mean that I should build outside of mods/Dev/ and have an install step? Yes, that could be an option, I suppose if I one day feel like that'd be less work than running the clean script I can try to copy&paste e.g. from Peter Han's repo and try to get it to work. Not really feeling like that right now, this annoying Windows .csproj stuff has already been enough hassle to get to work on Linux as it is.
Aze Feb 20, 2024 @ 1:55pm 
@llunak: No, you still have to use the uploader. But, if your solution is properly configured, the build dependencies should never end up in your uploaded folder. Having s separate clean step you have to remember to execute should be unnecessary.