Entity activity, electricity, and production

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
Quantumtroll
Burner Inserter
Burner Inserter
Posts: 11
Joined: Mon Apr 11, 2016 12:10 pm
Contact:

Entity activity, electricity, and production

Post by Quantumtroll »

Over in this thread, a few things came up. At least two of us are interested in a few of the following items:
  • Read the effective consumption of an entity? For example, to check if an electric consumer is under-electrified (status of the green electric bar on the entity), i.e. consumes less than it could.
  • Read the actual pollution emission rate of an entity.
  • Read the global electric production and consumption of one network (the values that are displayed in the panel when you click a pole). And also the global accumulator remaining capacity ?
  • Change electric consumption of a device on the fly.
  • On a slightly different topic: an event when a given recipe or item is produced.
The post I linked to provides the context and motivation for these API requests. Personally, I'm trying to find out whether a modified assembling machine is busy producing, so I can use that number to increase the size of a poison cloud.
m44v
Fast Inserter
Fast Inserter
Posts: 138
Joined: Sun May 15, 2016 8:55 pm
Contact:

Re: Entity activity, electricity, and production

Post by m44v »

bumping 'cause I'm interested in having access to the electric network stats.
User avatar
binbinhfr
Smart Inserter
Smart Inserter
Posts: 1525
Joined: Sat Feb 27, 2016 7:37 pm
Contact:

Re: Entity activity, electricity, and production

Post by binbinhfr »

On a slightly different topic: an event when a given recipe or item is produced.
Useful idea that I missed sometimes, but a on_produced event will trigger every time an item is produced, which will be a huge amount of calls...
Because, as any factorio event, the item filtering will occur once the global event is triggered.
My mods on the Factorio Mod Portal :geek:
Post Reply

Return to “Modding interface requests”