RimWorld

RimWorld

168 ratings
Simple Custom Gas Framework
5
2
2
2
   
Award
Favorite
Favorited
Unfavorite
Mod, 1.4, 1.5
File Size
Posted
Updated
358.476 KB
Jul 5, 2023 @ 4:52am
Mar 27 @ 9:06pm
14 Change Notes ( view )
You need DLC to use this item.

Subscribe to download
Simple Custom Gas Framework

Description
A framework for creating custom gas types.











To learn more, head over to the wiki[github.com]

Dependencies

Incompatibilities
No known incompatibilities, if you find a mod that doesn't work please let me know!

Compatible Apparel Mods
This framework includes patches for gas-protecting apparel in the following mods:

FAQ
Q: Can you add a pipe network for the gases?
A: No, that is out of scope for this framework.

Q: How much does this impact performance?
A: In normal gameplay performance should actually be better than in vanilla, thanks to the gas grid optimizations in Performance Fish[github.com]

Q: Can this be safely added and removed from a save?
A: Yeah, besides a few one-off errors it'll be fine.

Q: Why does this require the Biotech DLC?
A: RimWorld only does hediff applying logic for gases if Biotech is active.

Q: How do I make a custom gas?
A: Head over to the wiki[github.com]

Q: CE?
A: Gases themselves are CE compatible, however most gas mods will probably also add shells, IEDs, and/or launchers, so you should check the page of the gas mods themselves instead of the framework.

Credits
  • Ludeon Studios for this amazing game.
  • Bradson for making Performance Fish[github.com] - without which none of this would be possible.
  • Smash Phil for their help on Discord.
  • Tory for their various feedback and suggestions.
  • Jormundgandr for their help diagnosing and fixing various issues.

Gases used in example GIFs are from my other gas mods:

Source code on Github[github.com]
Popular Discussions View All (2)
33
Mar 22 @ 3:51am
[Solved] Gases Not Dissipating
NachoToast is now playing RimWor
2
Mar 24 @ 7:04pm
PINNED: Compatibility Testing and Bugfixing
Interloper
128 Comments
NachoToast is now playing RimWor  [author] Jul 25 @ 8:01pm 
@Interloper thank you for the kind words, 1.6 actually hasn't changed anything gas related from what I can see, the only thing blocking the update to 1.6 is Performance Fish - which does a lot of the heavy lifting related to GasDefs.
Interloper Jul 25 @ 10:02am 
@Jsin0 If you really want to change the dispersal radius, you can go to the shell/IED itself, that is. From there the GasDefs can be modified for a greater/lesser density of spawned gas via the dissipationRate and spread via diffuses, either true or false. Keep in mind that you rarely want a dissipationRate at 0, and at 255 it better be a very angry gas.

@NachoToast thanks for continuing this work! GasDefs are universally strange, and I imagine 1.6 made the whole thing even more complex. The current system is way more modular than before, I'll have to see about getting a persistent agent a try via some custom gas fun. Like before, I'll also test it with the 1.6 test build of CE whenever you get the time to update.
NachoToast is now playing RimWor  [author] Jul 12 @ 3:47am 
@Turu no
Turu D. Sleep Jul 12 @ 3:43am 
Is there a chance this mod will work without Performance Fish as a dependency?
NachoToast is now playing RimWor  [author] Jul 11 @ 2:02am 
@Jsin0 GasDefs have diffusion and dissipation rate properties, the radius of gas created by something like an IED/shell is defined in the IED/shell itself though, not the gas
Jsin0 Jul 10 @ 11:46pm 
Is there an option to adjust the radius of the gas?
NachoToast is now playing RimWor  [author] Jul 7 @ 2:06am 
1.6 for this will be out once Performance Fish is updated to 1.6, it also won't require Biotech!
NachoToast is now playing RimWor  [author] May 6 @ 9:15am 
@Kaden Ha not really sorry, checking that a gas is "outside" every time it ticks would be very expensive, and wind doesn't really exist in rimworld (wind turbines are just glorified sine waves) afaik
Kaden Ha May 6 @ 6:42am 
Is there anyway to customize dissipation/diffusion behaviour? Like gas dissipates faster while outside and windy.
NachoToast is now playing RimWor  [author] May 4 @ 9:29am 
@DoodleKatMoon you are very welcome lol :)