[Mod Request] UI Alert for out-of-fuel for burner inserters and stone furnaces

This is the place to request new mods or give ideas about what could be done.
Post Reply
n_slash_a
Inserter
Inserter
Posts: 24
Joined: Wed Feb 27, 2019 1:05 am
Contact:

[Mod Request] UI Alert for out-of-fuel for burner inserters and stone furnaces

Post by n_slash_a »

We have UI alerts when trains run out of fuel. I was hoping there could be a mod for when a burner inserter, stone furnace, or steel furnace does not have fuel. I know this can be done with combinators and speakers, but I was hoping for a non-circuit-network solution.

Is there a mod like this already? If not, I am not totally opposed to making it, but don't have any experience with LUA (C/C++ guy here), so maybe if there is something similar I could use as a starting point?

Thanks.

User avatar
darkfrei
Smart Inserter
Smart Inserter
Posts: 2471
Joined: Thu Nov 20, 2014 11:11 pm
Contact:

Re: [Mod Request] UI Alert for out-of-fuel for burner inserters and stone furnaces

Post by darkfrei »

You are need the code for checking one or several entities per tick.

So you are need the list of needed entities and you go through it. If the list is over then go from start again.

Small function proofs if the entity is not out of energy.

If out of energy then make alarm. Maybe new list with alarming entities.

See also viewtopic.php?f=34&t=80568 and such as mods:

Steam Cooling -- the steam cooling mod changes temperature by one storage tank per tick
RITEG -- the mod changes power output by only one RTG per tick
Empty Slots Reader -- the mod reads just only one constant combinator's neighbors per tick
Vertical Axis Wind Turbines -- the mod changes the power output by only one wind turbine, based on wind speed, the wind changing is done in another mod

Post Reply

Return to “Ideas and Requests For Mods”

Who is online

Users browsing this forum: No registered users