chimney

by vlss

Chimney

Content
16 hours ago
2.0
0
Fluids
Owner:
vlss
Source:
N/A
Homepage:
N/A
License:
MIT
Created:
16 hours ago
Latest Version:
0.1.0 (16 hours ago)
Factorio version:
2.0
Downloaded by:
0 users

This mod introduces a functional chimney/flare stack entity to Factorio, designed to safely dispose of various industrial gases and fluids by flaring/burning them, with pollution emissions scaled to the toxicity and type of fluid being processed. The chimney integrates seamlessly with vanilla Factorio and popular mods (Py,Angels, Bob's, Space Exploration, Carna, Vesta, etc.), supporting space deployment and modular customization.

Core Features

1. Entity & Technology Integration

  • Unlockable Technology: The "chimney" technology is added with oil-gathering as a prerequisite (300 science packs: 5 automation + 3 logistic, 30s research time).
  • Craftable Chimney: Requires 1 stone furnace + 2 pipes to craft, categorized under smelting machines with stack size 50.
  • Furnace-Based Entity: Functions as a furnace with "flaring" recipe category, 2 module slots (supports consumption/speed/pollution/quality effects), and circuit connectivity.
  • Visual & Audio: Custom graphics with smoke animations, shadow layers, and light flicker effects for immersive flaring visualization.
  • Space Compatibility: Automatically enabled for space use if the space-exploration mod is installed.

2. Fluid Flaring System

  • Extensive Fluid Support: Flaring recipes auto-generated for 100+ fluids across vanilla and modded environments (Py,Angels/Bob's/Carna/Vesta/Space Exploration/EI/KR).
  • Pollution Tiering: Dynamic pollution emissions based on fluid toxicity (0 for clean gases like oxygen, up to 90x for highly toxic gases like enriched hydrogen sulfide).
  • Automatic Fluid Disposal:
  • Idle chimneys clear supported fluids every 120 ticks (2 seconds).
  • Fluid clearance triggers on entity mining/destruction to prevent unintended fluid retention.
  • Only fluids in the predefined allowlist are cleared (non-listed fluids remain untouched).

3. Recipe & UI Customization

  • Auto-Generated Flaring Recipes: Unique recipes created for each supported fluid, hidden from player crafting UI (only usable by the chimney).
  • Icon Overlays: Flame tint overlay on fluid icons for flaring recipes (visual identification).
  • Pollution Scaling: Emissions multiplier directly tied to fluid properties (configurable per fluid type).

Key Adjustments & Integrations

  1. Mod Compatibility: Full support for Angels, Bob's, Space Exploration, Carna, Vesta, EI, and KR mods (expanded fluid list for cross-mod compatibility).
  2. Performance Optimization: Allowlist converted to key-value pairs for O(1) fluid lookup (faster than linear search).
  3. Safety Checks: Strict entity validation (validity, fluidbox existence) before fluid clearance to prevent game crashes.
  4. Pollution Balance: Granular pollution control (0x for inert gases, 90x for toxic industrial waste gases) for realistic industrial consequences.
  5. Space Deployment: se_allow_in_space flag enabled for Space Exploration mod integration (chimney functional in space environments).

Technical Notes

  • Energy Usage: 1kW power consumption (void energy source, no power input required).
  • Fluid Capacity: 1000 unit fluidbox with south-facing input pipe connection.
  • Crafting Speed: 2x speed for flaring operations (fast fluid disposal).
  • Emissions Base: 8 pollution/minute base rate (scaled by fluid-specific multipliers).
  • Collision/Selection: Compact hitbox (0.3x0.3 collision, 0.5x0.5 selection) for tight industrial layouts.