Crafting Combinator


Includes combinators that allow you to set or read the recipe of any crafting machine, get ingredients or products of a recipe and more!

Content
3 years ago
0.14 - 1.1
21.1K
Manufacturing

b not working

5 years ago

both combinators are not working ..
where can i find any lua errors?

5 years ago

If there were any lua errors, you'd get a crash.

5 years ago

crafting combinator solved..
recipe detector still not working.

i give a signal over wire with ex. 1 cooper plate, set it to "find ingredients" and nothing happens on the output.
also tested with other combinations of signals and products.

no crash.. can i somehow observe the output from lua? i use quite some mods.. maybe i can then directly point in the right direction? :)

(using bob and quite some other mods)

5 years ago

Sorry for the delay... Just to make sure, what do you mean exactly by "nothing happens on the output"? If you're talking about the output section when you hover over the combinator, then that's expected to be empty. I can't just make the entity output whatever I want, so I instead use a hidden constant combinator that's connected to the outputs. This is functionally the same thing, but it won't be shown in the ui.

As for checking the output from lua: The only place the output is ever stored is the aforementioned constant combinator, so there is no real reason to even try it, since you can just hook the combinator up to a pole and see the exact output there. If you really want to debug it, the best way is probably to just dig into the code and log whatever you're interested in. The relevant files for this would be script/rc.lua and script/recipe-selector.lua.

New response