energy_source.type = 'null' to not require energy

Place to ask discuss and request the modding support of Factorio. Don't request mods here.

energy_source.type = 'null' to not require energy

Postby eradicator » Tue Feb 13, 2018 11:34 am


An new energy source type that does not require fuel / a connection to the electricity network and instead runs entities for free.


Mods often require the use of hidden entities such as assemblers, furnaces, beacons, inserters, etc, to implement new functionality. But all of these prototypes can not be used in a way that makes them function without some sort of energy source ("energy_usage = '0W'" doesn't work). The only current workaround is to specify a really low energy_usage and hide with connection icons, but this still has some major problems:
1) The hidden entity shows up on the energy network page where it confuses the player.
2) The hidden entity has to have the exact same collision box and position as the visible parent entity to ensure that it is always connected when the parent is.
3) The hidden entity might stop due to energy shortage when it should still be running.
4) Usage of hidden entities is limited to usecases where the player connects the parent entity to the electricity network (unless one wants to spawn in an additional power pole + eei for everything outside the network).

Being able to simply specify that an entity does not require external energy would fix all of those three problems (and maybe as a side-effect some memory too?) :).
User avatar
Filter Inserter
Filter Inserter
Posts: 753
Joined: Tue Jul 12, 2016 9:03 am

Re: energy_source.type = 'null' to not require energy

Postby bobingabout » Tue Feb 13, 2018 1:27 pm

Sounds reasonable to me.
User avatar
Smart Inserter
Smart Inserter
Posts: 4993
Joined: Fri May 09, 2014 1:01 pm

Return to Modding interface requests

Who is online

Users browsing this forum: No registered users and 2 guests