Flushable fluid wagons (2.1)

by Maxorio

Allows you to open fluid wagons like storage tanks and access a flush button.

Utilities
3 days ago
2.1
25
Trains Fluids Storage

Changelog

Version: 2.1.4
Date: 2026. 09. 30
  Fixes:
    - closing works only out of remore view
Version: 2.1.3
Date: 2026. 09. 30
  Info:
    - Added automatic closing
Version: 2.1.2
Date: 2026. 09. 29
  Info:
    - Added stockalike progress bar and percent display
Version: 2.1.1
Date: 2026. 09. 17
  Info:
    - Added storage tank sounds to openning and closing wagons
Version: 2.1.0
Date: 2026. 09. 17
  Info:
    - Ported to 2.1
    - Uses the standard game localization template
    - Clean up the player tracking storage to properly shut down the on_tick loop
Version: 2.0.0
Date: 2024. 04. 02
  Info:
    - Ported to 2.0, phase 1/2
    - Fluke?
    - Design the luagui
    - Extract gui updating code into another method
    - Ported to 2.0, phase 2/2
Version: 1.0.3
Date: 2024. 02. 04
  Info:
    - Prevent crash from opening a fluid wagon with fluid from the map
Version: 1.0.2
Date: 2024. 01. 31
  Info:
    - Fix loading with editor extensions instead of marking it as incompatible
Version: 1.0.1
Date: 2024. 01. 28
  Info:
    - Teleport the fake tank along to keep it in range
Version: 1.0.0
Date: 2024. 01. 28
  Info:
    - Create a flushable tank prototype for each fluid wagon
    - Give the entity a red icon in the editor
    - Setup flags for the tank prototype
    - Open the tank when opening the fluid wagon
    - Only elements in 'gui.screen' can use bring_to_front.
    - Move the gui to the screen
    - Attempt to use rendering.draw_sprite
    - Mess around with the sprite sizes
    - Discover the no crop flag
    - Yeet the attempt at rendering a train in the selection box
    - Flush the wagon when you flush the tank (and sync)
    - Use a struct to keep track of valids and players
    - Support all fluid wagons in the control stage
    - Cleanup and set the thumbnail
    - Disable on_tick whilst inactive
    - Mod portal release