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.
Api Request : Add defines.inventory.assembling_machine_trash & a way to write in assembling machine inv
Re: Api Request : Add defines.inventory.assembling_machine_trash & a way to write in assembling machine inv
+1 as while I don't know whether it is the last thing preventing mods from chance and count of side products being affected by any runtime event, it certainly is one of them.
-
- Fast Inserter
- Posts: 200
- Joined: Fri Sep 09, 2022 4:33 pm
- Contact:
Re: Api Request : Add defines.inventory.assembling_machine_trash & a way to write in assembling machine inv
+1, perhaps instead you could write to the output slots and if it's beyond the current recipe outputs, it becomes trash slots?
If you need to reach me, message me on discord.
I make qol mods. Check them out, maybe.
https://mods.factorio.com/user/protocol_1903
If you have a mod idea, I can look into it.
I make qol mods. Check them out, maybe.
https://mods.factorio.com/user/protocol_1903
If you have a mod idea, I can look into it.
Re: Api Request : Add defines.inventory.assembling_machine_trash & a way to write in assembling machine inv
Note that since 2.0.36 the trash_inventory_size was fixed allowing us to add items to the non-controlbehavior-inventory, but that's still very much a fixed size so its still quite a pain if you only know how much you'll end up wanting to insert in the control stage, it would still be desirable if mods could resize trash/dump to fit more items.