runtime access to spawner capture mechanics

SWeini
Long Handed Inserter
Long Handed Inserter
Posts: 55
Joined: Mon Apr 04, 2022 6:43 am
Contact:

runtime access to spawner capture mechanics

Post by SWeini »

I'd like to have access to these properties in runtime stage:
https://lua-api.factorio.com/latest/typ ... get_filter
https://lua-api.factorio.com/latest/pro ... ner_entity

This is needed to calculate availability of items. Just because an item can be produced by an unlocked recipe doesn't mean you can make it. You need access to the whole chain leading to all ingredients and crafting machines and surface conditions and whatnot. Capturing a spawner might be part of that chain of dependencies. Right now I have all the data up to promethium science pack, which needs biter eggs, which needs a spawner to be captured. I'd rather not rely on hardcoding the space-age way of things and instead read this dynamically.
Rseding91
Factorio Staff
Factorio Staff
Posts: 15676
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: runtime access to spawner capture mechanics

Post by Rseding91 »

Added for the next release.
If you want to get ahold of me I'm almost always on Discord.
Post Reply

Return to “Implemented mod requests”