Page 1 of 1

[2.0.43] Pumps don't pump fluids if their energy usage is 0J

Posted: Tue Apr 29, 2025 6:06 pm
by MazorNoob
Reproduction:

* Run the attached save with the attached mod.
* Extend the pipeline through the forest and wait for a bit.
* The spawned pipeline-pipes-turret sections will open fire.
* Modify the mod at `modules/oil.lua:247` to say `energy_usage = "0J"` and redo the above steps.
* The spawned pipeline-pipes-turret sections won't open fire because the pumps are no longer pumping.

Re: [2.0.43] Pumps don't pump fluids if their energy usage is 0J

Posted: Tue Apr 29, 2025 10:18 pm
by robot256
This could be fixed by a documentation and prototype validation improvement. If you need to make a pump that does not use any energy, you should probably use the 'void' type energy source.

Re: [2.0.43] Pumps don't pump fluids if their energy usage is 0J

Posted: Wed Apr 30, 2025 4:04 pm
by MazorNoob
I already am, it's just surprising that 0J energy usage equals disabled building.

Re: [2.0.43] Pumps don't pump fluids if their energy usage is 0J

Posted: Thu May 01, 2025 2:08 pm
by Rseding91
Thanks for the report however I don't consider this worth changing. If it's not crashing, and there's already a simple solution (use the void energy type) - it's fine to work how it does.