Following the docs: https://lua-api.factorio.com/stable/con ... igger.html
"craft-item" only has members 'item" and "item_quality", but in-game I also get "count"
[2.0.72] Runtime ReserachTrigger does not contain item.count for craft-item
-
Subject314159
- Burner Inserter

- Posts: 17
- Joined: Thu Oct 12, 2023 8:53 pm
- Contact:
-
Subject314159
- Burner Inserter

- Posts: 17
- Joined: Thu Oct 12, 2023 8:53 pm
- Contact:
Re: [2.0.72] Runtime ReserachTrigger does not contain item.count for craft-item
Additionally I see that technology "space-platform" has a trigger "create-space-platform" which is also not mentioned in the docs. Analyzing the data in game it appears that the research trigger only has a type and no additional properties. Looking at the research itself it appears that it uses the locale from core.cfg:
[technology-trigger]
create-space-platform-specific=Create space platform by sending __1__ to space.
I would also expect to be able to get an item from this trigger (but maybe that is more of a mod interface request)
[technology-trigger]
create-space-platform-specific=Create space platform by sending __1__ to space.
I would also expect to be able to get an item from this trigger (but maybe that is more of a mod interface request)
Re: [2.0.72] Runtime ReserachTrigger does not contain item.count for craft-item
Added for the next doc release, thanks for the note.Subject314159 wrote: Sun Jan 18, 2026 1:38 pm "craft-item" only has members 'item" and "item_quality", but in-game I also get "count"
It's already listed as a possible value in type. It's not listed in the list with additional attributes since it doesn't have additional attributes. If you'd like it to have an item, that would also need to be specified in the prototype stage (it doesn't load one currently) so please make a modding interface request for that.Subject314159 wrote: Sun Jan 18, 2026 2:47 pm Additionally I see that technology "space-platform" has a trigger "create-space-platform" which is also not mentioned in the docs.
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.
-
Enderdraak
- Inserter

- Posts: 37
- Joined: Mon Jan 14, 2019 2:39 pm
- Contact:
Re: [2.0.72] Runtime ReserachTrigger does not contain item.count for craft-item
I just ran into this myself.
It seems that the trigger item contains both a `name` and `quality`.
Which is not what it suggests on the page at all.
To me it seems like `item` should go [ItemIDFilter](https://lua-api.factorio.com/latest/con ... ilter.html) Just like the `send-item-to-orbit`.
It seems that the trigger item contains both a `name` and `quality`.
Which is not what it suggests on the page at all.
To me it seems like `item` should go [ItemIDFilter](https://lua-api.factorio.com/latest/con ... ilter.html) Just like the `send-item-to-orbit`.
Re: [2.0.72] Runtime ReserachTrigger does not contain item.count for craft-item
Thanks for noticing this, it should indeed be ItemIDFilter and item_quality shouldn't be there. Fixed for the next doc release.
In the future, please don't post in threads in the resolved subforum, but instead make a new thread, new posts are easily missed here.
In the future, please don't post in threads in the resolved subforum, but instead make a new thread, new posts are easily missed here.
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.
