Handling spoil results in labs when the spoil result is a science pack
Posted: Thu Dec 05, 2024 9:35 am
Hi all,
so I made a mod where science packs spoil into other science packs. It seemed like a fun idea to me to let all sciences spoil into each other until you end up with automation science pack spoiling into wood. When a science spoils into another science while in a lab, it will be moved to the special spoilage slot. If that's full already, it will stay where it is and wait for the spoilage slot to be freed. This process clogs the lab whith multiple slots holding the same/wrong science packs, stopping the whole research.
The problem here is, that neither do the spoiled science packs move to the correct new slot nor is there a way to remove items only from the spoilage slot but not from the regular slots. Any science pack can be in the spoilage slot so I cannot filter an inserter for anything so it will just remove the science packs from the regular slots, not prioritizing the spoiled sciences in the spoilage slot.
Since I have no clue how to either fix this with regular game mechanics or by coding someting in my mod, I came here to ask for help. Do you guys have any idea how to solve this? I really like this to work because it seems a lot of fun.
Thanks.
so I made a mod where science packs spoil into other science packs. It seemed like a fun idea to me to let all sciences spoil into each other until you end up with automation science pack spoiling into wood. When a science spoils into another science while in a lab, it will be moved to the special spoilage slot. If that's full already, it will stay where it is and wait for the spoilage slot to be freed. This process clogs the lab whith multiple slots holding the same/wrong science packs, stopping the whole research.
The problem here is, that neither do the spoiled science packs move to the correct new slot nor is there a way to remove items only from the spoilage slot but not from the regular slots. Any science pack can be in the spoilage slot so I cannot filter an inserter for anything so it will just remove the science packs from the regular slots, not prioritizing the spoiled sciences in the spoilage slot.
Since I have no clue how to either fix this with regular game mechanics or by coding someting in my mod, I came here to ask for help. Do you guys have any idea how to solve this? I really like this to work because it seems a lot of fun.
Thanks.