Wow. Thanks. Now i have an excuse to further delay updating that mod until next Factorio update.
Fast reading for inventory slots
Re: Fast reading for inventory slots
Re: Fast reading for inventory slots
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.
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
Link
Re: Fast reading for inventory slots
Lua just sucks. It's never going to be fast.Honktown wrote: ↑Wed Apr 22, 2020 12:26 amBumping 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.
If you want to get ahold of me I'm almost always on Discord.