Api Request : Add defines.inventory.assembling_machine_trash & a way to write in assembling machine inv

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
Puke
Burner Inserter
Burner Inserter
Posts: 6
Joined: Mon Jun 13, 2016 7:00 pm
Contact:

Api Request : Add defines.inventory.assembling_machine_trash & a way to write in assembling machine inv

Post by Puke »

Hello !

Could you please add the defines : inventory.assembling_machine_trash ?
It looks like it's intended to be here, but currently missing.

I'm trying to hotswap items in several types of inventories with a script. It works for every inventory I have tried, except for assembling-machines.
I understand why I cannot write an arbitrary item in the "output" slot, since its restricted by the recipe used, but I would like a way to insert() or set_stack() with an arbitrary item inside either the dump or the trash inventory of the assembling machine. (Or any additional "output" inventory)

This would allow, notably, to replace spoiling items with a script, since you made this technically possible recently (thanks for this btw!).
When an item spoils normally, it will stay in the slot where it was initially.

Thanks to the fact we can have a spoiling_result and a spoil_to_trigger result at the same time, we can now make an item spoil into a placeholder, and trigger an event at the same time. The event can use the placeholder to detect which item_stack has just spoiled, and replace it with an arbitrary item.

The goal is to replicate the normal spoiling behavior, but to control the result at runtime using a set of conditions. This works fine for chests, bots, inserters, belts etc... but not for assembling-machines. The inability to write in any assembling-machine slot hinders this and is a hard limitation.

Providing us with a way to write in an output slot of an assembling-machine would open a lot of gameplay possibilities, making the behavior I described consistent across all entities.

Thank you for your consideration.
Post Reply

Return to “Modding interface requests”