I've just had an idea for a potential mod that would require changing the base_level of a given entity's fluid_box during gameplay.
Does anybody know if this is possible to do?
Is it possible to change fluid_box during gameplay?
- dragon-architect
- Burner Inserter
- Posts: 16
- Joined: Sun Dec 17, 2023 7:41 pm
- Contact:
Re: Is it possible to change fluid_box during gameplay?
The fluid_box is hard-wired into the prototype and can only be changed in the data stage. However, there may be a way to work around this problem: Define several look-alike prototypes that differ only in their fluid_box and swap the entities as needed in the control stage. I've used this technique in the Water Turret mod, so that the same turret (from the perspective of players) can shoot either water or steam, depending on the contents of the connected pipes:dragon-architect wrote: ↑Tue Apr 16, 2024 11:13 pm I've just had an idea for a potential mod that would require changing the base_level of a given entity's fluid_box during gameplay.
Does anybody know if this is possible to do?
A good mod deserves a good changelog. Here's a tutorial (WIP) about Factorio's way too strict changelog syntax!
- dragon-architect
- Burner Inserter
- Posts: 16
- Joined: Sun Dec 17, 2023 7:41 pm
- Contact:
Re: Is it possible to change fluid_box during gameplay?
Hmmm, alright then. I'll have to figure out how to do that.