Page 1 of 1
Electricity questions
Posted: Wed Oct 12, 2016 4:36 pm
by Factoruser
- (How) can you add e.g. the substation an electricity drain ? I.e. it should still work as an energy distributor, but with a small loss, and more important: show the no-power-icon if not electrified.
- Same for containers, and how can you lock resp. better: slow down picking up and placing items in the inventory. Is there an event handler ?
Re: Electricity questions
Posted: Wed Oct 12, 2016 10:36 pm
by aubergine18
There's no event handler but two mods to investigate that might help you find what you're looking for:
* Flow Network -
https://mods.factorio.com/mods/Simdezimon/flownetwork - adds power loss to power network
* KS Power -
https://mods.factorio.com/mods/Klonan/KS_Power - bunch of power stuff
* Creative Mode -
viewtopic.php?f=97&t=28005 - has some power create/drain accus
Re: Electricity questions
Posted: Fri Oct 14, 2016 1:26 pm
by Factoruser
Thanks, but it seems that all entities are hard-coded in some points. I.e. if you want to make something that distributes electricity AND consumes power, you'll have to merge an own subroutine that handles every entity for each tick. Same for the containers, although you might simply use the type "assembling machine" in this case.