when cursor.get_blueprint_entities()
You can't run splitter specific methods
e.splitter_filter.name
e.splitter_input_priority
e.splitter_output_priority
error:
attempt to index field 'splitter_filter' (a nil value)
[0.16.51] get_blueprint_entities() Splitters
Re: [0.16.51] get_blueprint_entities() Splitters
e.type is also nil (at least for splitters.)
error:
attempt to concatenate field 'type' (a nil value)
error:
attempt to concatenate field 'type' (a nil value)
Re: [0.16.51] get_blueprint_entities() Splitters
The fields are called
You can use https://wiki.factorio.com/Blueprint_str ... ity_object as a reference for the "blueprint entity" that is returned by the function.
- filter
- input_priority
- output_priority
You can use https://wiki.factorio.com/Blueprint_str ... ity_object as a reference for the "blueprint entity" that is returned by the function.
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.
- eradicator
- Smart Inserter
- Posts: 5207
- Joined: Tue Jul 12, 2016 9:03 am
- Contact:
Re: [0.16.51] get_blueprint_entities() Splitters
The whole API is sprayed with slight naming inconsistencies like that. I think "expecting" things to be different is actually quite possible especially for new modders :p.
@OP: Don't be discouraged. This happens to all of us. The next time just print the table and read what it actually says.
Author of: Belt Planner, Hand Crank Generator, Screenshot Maker, /sudo and more.
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.