Container's stack info.

This is the place to request new mods or give ideas about what could be done.
Post Reply
GrumpyJoe
Filter Inserter
Filter Inserter
Posts: 443
Joined: Fri Apr 06, 2018 7:10 pm
Contact:

Container's stack info.

Post by GrumpyJoe »

I'm wondering if the occupied stack info of container entities are/can be exposed and used in the circuit network.

Don't know when this was introduced, if this is even a vanilla feature, but containers "now" show "XX/YY" in the tool tip when hovered over.
Like my Angel's silos say 248/256 or something, when filled with "items"

I couldn't find anything in https://wiki.factorio.com/Prototype/Container
nor do I know if it would be possible to get this info on the network, but I'd like to setup an alarm that doesn't involve calculating this for different stack sizes of items, for different stack sizes of many different containers

When X-Y approaches 0, it would be alot easier to copy/paste this around the hundreds of different AB sub factories.

I'd look into this myself, but as soon as I'd need an API request, I'd run into a wall inside my head :?

robot256
Filter Inserter
Filter Inserter
Posts: 596
Joined: Sun Mar 17, 2019 1:52 am
Contact:

Re: Container's stack info.

Post by robot256 »

You don't need any API changes. The container LuaInventory lets you read each stack individually, so it is simple to count how many are occupied. I'm not aware of any mods that do this already for chests.

Post Reply

Return to “Ideas and Requests For Mods”