Oxygen Not Included

Oxygen Not Included

Fan Tiles
72 Comments
staticicarus 21 Jun @ 6:16am 
Excellent mod. Very stable, never seen a crash. Useful for managing both living spaces and industrial builds. Be careful when integrating these with o2 production devices. Their gas draw effect can be powerful and easily unbalance some SPOM designs.
Crovax 8 May @ 1:51pm 
Would it be possible to get the inverted solution as a mod? I.e. a power generator that checks the gas density on both sides of the "fan" and generates power by moving gas from the higher density side to the lower density side?
Dirigible 19 Apr @ 4:46am 
This is such a nice idea, thank you for all the neat rooms I'm going to be able to build without big pumps or convoluted ducting
Romen  [author] 27 Mar @ 6:13pm 
@Sililos, Mod Updater is not broken right now. It is probably an issue specific to you that can be fixed in a few ways:
- Verify your steam game files.
- Un-subscribe and re-subscribe to Mod Updater.
- Download a zip build of the latest Mod Updater from Peter Han's GitHub and put it in the Local mods folder.
Sililos 26 Mar @ 6:43pm 
Just a heads up that mod updater is broken preventing this mod and any with updater as a requirement from being useable.
Seibutsu 24 Feb @ 7:12pm 
Nice mod.

It would be very helpful if you could add the option to set a max pressure for the compressor fan and compressor turbine. Having access to a building that can infinitely compress gasses and liquids is a bit too OP for my taste.
Romen  [author] 15 Jan @ 8:25pm 
@Not_A_Cactus, there are settings to change all sorts of balancing for the fans and turbines; Including max pressure.
Not_A_Cactus 18 Aug, 2024 @ 10:04pm 
Could you raise the water pressure for turbines to 2k? It would be neat to have these underwater but pressure constraints don’t allow it.
Piisfun 18 Jul, 2024 @ 11:57am 
Just a heads-up: this mod seems to have been broken the update for the "Frosty Planet" DLC.
Greystar 12 Dec, 2023 @ 6:39am 
Is there any way you could add a power toggle for these so you can turn them off, either via automation or a power switch toggle?
Plato 11 Nov, 2023 @ 12:24pm 
Uhh.. Could you make an insulated version of it.
Plato 22 Oct, 2023 @ 4:00am 
Could you add an amalgam of a filter and a fan? I mean a fan which only pumps certain gasses from an area. That would be great for filtering CO2 from area without the need of gas element detector.
Romen  [author] 21 May, 2023 @ 6:42am 
The turbine issue has been fixed, make sure you are using the latest version with Mod Updater.
slavicplayer251 21 May, 2023 @ 1:33am 
game crashes when either kind of turbine runs however fans work fine
shane_357 6 Apr, 2023 @ 8:46pm 
Minor quibble, could you possibly make it so that fans can be replaced by a wall without deconstructing them first and thus creating leaks?
hazimemasite 16 Mar, 2023 @ 5:57pm 
thanks for updating:steamhappy:
Romen  [author] 16 Mar, 2023 @ 5:06pm 
Just pushed the update!
Romen  [author] 16 Mar, 2023 @ 4:38pm 
Don't worry guys, I'm working on fixing this right now...
Just fighting with some translation related bug before I can upload the fix.
crashfly 16 Mar, 2023 @ 4:34pm 
@Rampart - not sure why it did not work the first time. i may have had the wrong assemblies linked. thank you for the assistance though. that change was able to make the mod work.

compressing the oil biome to a small space is quite useful. :steamhappy:
Rampart 16 Mar, 2023 @ 5:39am 
@crashfly So, basically I looked for other usages of the .AddParticle function in the ONI Assembly-csharp.dll and noticed they cast that variable as a ushort not a byte. I also looked at the original function and it expects a ushort.

Unfortunately all I did was right click>edit method, changed (byte) to (ushort), hit compile, and it worked. You may have to make sure the above mentioned assembly-csharp.dll in \steamapps\OxygenNotIncluded\OxygenNotIncluded_Data\Managed\ is also in dnspy when you try to compile.
Hope that works!
crashfly 15 Mar, 2023 @ 11:10pm 
Unfortunately, the game does crash and burn as suggested below.

@Rampart - Do you have slightly more instructions on that change. I attempted what you said and when trying to recompile, I get the error "Argument 2: cannot covert from 'ushort' to 'byte'". Any help would be appreciated.
Rampart 14 Mar, 2023 @ 7:48pm 
If you're getting a crash with the turbines with this error:

MissingMethodException: void FallingWater.AddParticle(int,byte,single,single,byte,int,bool,bool,bool,bool)

You'll see that error in \LocalLow\Klei\Oxygen Not Included\Player.log

You can fix it by using dnspy on FanTiles.dll. Find the Fan class, look for Fan.EmitDelegate line 246, change the byte to a ushort and recompile. Save the mod locally with the new .dll otherwise steam might overwrite it.

current:

FallingWater.instance.AddParticle(cell, (byte) ElementLoader.elements.IndexOf(primary_element.Element), primary_element.Mass, primary_element.Temperature, primary_element.DiseaseIdx, primary_element.DiseaseCount, true, false, true, false);

change to:

FallingWater.instance.AddParticle(cell, (ushort) ElementLoader.elements.IndexOf(primary_element.Element), primary_element.Mass, primary_element.Temperature, primary_element.DiseaseIdx, primary_element.DiseaseCount, true, false, true, false);
hooya_n05 27 Feb, 2023 @ 5:56am 
thank very much it's not crash now :D
hooya_n05 26 Feb, 2023 @ 1:47am 
me too
chaotix14 2 Feb, 2023 @ 11:26am 
The fan tiles work, the turbines appear to cause crashes when used.
danteswrath 7 Nov, 2022 @ 8:16am 
Same issue, mod crashes on latest version. I love this mod when it was working, please update :)
NoComment 4 Nov, 2022 @ 9:12am 
Same Issue as 4D when build high pressure water fan
4D 7 Oct, 2022 @ 3:38am 
I think the latest update broke this good mod
this is what i've gotten when built the fluid one : https://i.imgur.com/Ksxktzz.png
Github bug submitted as well
Romen  [author] 29 Jun, 2022 @ 5:17pm 
Yes, that's why I have added Mod Updater as a dependency. You need something to update your mods. Ony's Mod Manager can do it too, and I'm not stopping you from using it. Adding a dependency on Steam Workshop only causes the dependency to be subscribed when you hit my subscribe button. It doesn't automatically activate Mod Updater in the game mod list.
Julian Skies 29 Jun, 2022 @ 3:24pm 
@xelax90 I know it's been a while but, the thing about requiring the Mod Updater is that, yeah Mod Manager does the same thing and is fine to use instead, but you absolutely need a forced updating mod with ONI. The normal updater is *abysmal*, like, plain old useless level of abysmal. As in "It not will update your mods even once in the span of three years" levels of useless, in my experience. So any mod that might see support in the future effectively requires it.
xelax90 21 Apr, 2022 @ 1:41pm 
Hi, what is the point of requiring the Mod Updater?
1. There are other mods that do the same ting (like Mod Manager) and
2. Shouldn't the user decide if they want to use the updater or not?
Romen  [author] 13 Apr, 2022 @ 4:38pm 
Yay! :steamhappy:
KaedanJarret 13 Apr, 2022 @ 12:27am 
I have a liquid compressor that has survived against 40,000 kg of water for probably 50 cycles, so I think your fix was successful! Thank you very much for the work. :)
Romen  [author] 10 Apr, 2022 @ 10:36am 
Just uploaded a new version that should fix the pressure damage now.
KaedanJarret 13 Mar, 2022 @ 2:47pm 
@Romen thank you for the response and the effort.
VoiD 13 Mar, 2022 @ 2:12pm 
Thank you for the response. I assumed you were leaving the mod as-is, so my apologies for that.

I do appreciate your effort to keep this mod going, and I wish you luck in spotting any problems and finding fixes for them. :steamthumbsup:
Romen  [author] 13 Mar, 2022 @ 1:22pm 
Also consider that the material you're using to build the fans has a direct impact on how much pressure they can handle. Until I can fix the problem you can experiment with which metals have the highest pressure tolerance.
Romen  [author] 13 Mar, 2022 @ 1:12pm 
I am not saying that I am leaving the mod the way it is, I just haven't figured out how to make it not take damage from pressure now. Give me some time. I am only trying to explain that there was a bug and it had to be fixed; Unfortunately that has introduce a less severe bug. Live with it for now.

It can't be reverted to the old code because the old code was broken. Things have to move forward because of changes in the game. If I roll back the mod then you'd have to roll back your game version too.
VoiD 13 Mar, 2022 @ 10:56am 
While it may have been a bug, I don't think it caused any real problems that anybody noticed, and it actually allowed the mod to function as the description states. By 'fixing the bug' the compressor fans no longer "exhaust into liquids/gasses without ever becoming overpressurized or taking pressure damage!" There isn't really a use for the compressor fans anymore since they break and leak.

To your response to KaedanJarret, of course nobody wants them to be completely useless, but it looks like people want them to work as advertised. He's right about the point of the compressor. They worked this way, and well, for a long time, until you 'fixed' it.

Everyone appreciates authors and editors keeping old mods updated and running. If you decide to keep your fix in place, can you update the mod description to reflect the change that doesn't allow the compressor block to work as intended anymore?

If UserOptions.FixTheBug then {
runNewFixedCode
} else {
runOldWorkingCode
}
Romen  [author] 13 Mar, 2022 @ 7:17am 
I'm aware than the compressor fans are less useful now, but would you rather have them be completely useless? I had to fix a bug that made them leaky!
KaedanJarret 12 Mar, 2022 @ 10:17am 
@romen the whole point of the liquid compressor turbine is to enable infinite liquid storage. Having it take damage defeats that. Why should we bother to use it now? Please enlighten us.
VoiD 10 Mar, 2022 @ 10:28pm 
Thanks for the response! I understand that it was a bug, but some of us enjoyed the bug =)
Romen  [author] 10 Mar, 2022 @ 3:54pm 
There is nothing to toggle though. The fans used to have a bug that has been fixed now. Toggling that would mean recreating the bug. The pressure damage has nothing to do with fans. Pressure is something that happens in the sim that affects every solid thing: i.e. Natural ground, Tiles, Closed Doors, Farm Tiles, Heavi-Watt Plates.
VoiD 10 Mar, 2022 @ 10:47am 
Thanks for keeping this updated!

Would you consider adding a toggle-able option for people that want to continue using the fans for infinite compression?
jandrimi8 3 Mar, 2022 @ 10:27am 
it would be grate if you could make it so it didnt create a solid seal, but if you cant its fine.
Romen  [author] 2 Mar, 2022 @ 12:31pm 
So the reason the fans are breaking is because it creates a solid seal between the rooms like a normal wall/tile does. It didn't do that before and it was a bug! Now it is going to take pressure damage like a metal wall should at those insane pressures anyway. The overpressure damage is something in the base game, not part of my mod.

I guess you just can't store infinite amounts of pressure with these fans. I will update the text to make sure the compressor versions don't suggest that they can compress infinitely.
jandrimi8 2 Mar, 2022 @ 9:23am 
yes it is also hapening to me, my whol water storage sistem is made of compresor turbines and it's exploding and flooding my base my base, i would like if this issue was delt with as soon as posible, and thanks for the incredible mod, by the way.
Romen  [author] 28 Feb, 2022 @ 7:11pm 
Might be a mistake. Some of the fans were meant to have maximum pressures and the ones that do infinite compression obviously shouldn't take damage like that.
nathanoliveira1983 28 Feb, 2022 @ 4:29pm 
cheers for the update, such a handy mod. one small thing, the Compressor Turbine is getting overpressure damage at +6000kg/tile now. Is this normal?
Romen  [author] 27 Feb, 2022 @ 4:00pm 
Just uploaded the fixed version.