Fast reading for inventory slots

User avatar
Oktokolo
Filter Inserter
Filter Inserter
Posts: 883
Joined: Wed Jul 12, 2017 5:45 pm
Contact:

Re: Fast reading for inventory slots

Post by Oktokolo »

Rseding91 wrote:
Wed Feb 12, 2020 8:21 am
get_insertable_count()
Wow. Thanks. Now i have an excuse to further delay updating that mod until next Factorio update.

Honktown
Smart Inserter
Smart Inserter
Posts: 1025
Joined: Thu Oct 03, 2019 7:10 am
Contact:

Re: Fast reading for inventory slots

Post by Honktown »

Bumping since this idea/request is still related:

A way to get an array of LuaSimpleItemStacks from an inventory. Constant Combinators for example have ConstantCombinatorParameters, which returns a table of signal, count, and index. For an inventory there's no similar table (item, count, and index) but it would be a lot lighter than providing a full LuaItemStack for every slot.
I have mods! I guess!
Link

Rseding91
Factorio Staff
Factorio Staff
Posts: 13209
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: Fast reading for inventory slots

Post by Rseding91 »

Honktown wrote:
Wed Apr 22, 2020 12:26 am
Bumping since this idea/request is still related:

A way to get an array of LuaSimpleItemStacks from an inventory. Constant Combinators for example have ConstantCombinatorParameters, which returns a table of signal, count, and index. For an inventory there's no similar table (item, count, and index) but it would be a lot lighter than providing a full LuaItemStack for every slot.
Lua just sucks. It's never going to be fast.
If you want to get ahold of me I'm almost always on Discord.

Post Reply

Return to “Implemented mod requests”