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
2 years ago
0.14 - 1.1
19.4K
Manufacturing

b Error with Deconstruction and Ctrl+Z

5 years ago
(updated 5 years ago)

Environment

Factorio 0.17.34
Crafting Combinator 10.8

Reproduction

  1. Let Robots build a crafting combinator (e.g. by ghost placement)
  2. Press Ctrl+Z to undo and let the robots pick up the combinator.
    2.1 Observe: Where the combinator stood, there is an invisible module chest entity. You can hover over it and mine it manually.
  3. With an deconstruction planner try to deconstruct the chest.
    3.1 This results in the following error:

    Error while running event crafting_combinator::on_marked_for_deconstruction (ID 20)
    __crafting_combinator__/script/cc.lua:77: attempt to index a nil value
    stack traceback:
    __crafting_combinator__/script/cc.lua:77: in function 'mark_for_deconstruction'
    __crafting_combinator__/control.lua:192: in function <__crafting_combinator__/control.lua:191>

Tests

I tested it in a minimal creative environment:
a roboport, a storage chest with crafting combinators and a bit of solar power suffice.
Enable all tech/items/daytime/cheat mode.

Not crashing

Mining the remaining module chest manually won't result in a crash.

5 years ago

That's interesting, the combinator entity is supposed to not be deconstructible, but undo apparently ignores that. Shouldn't be too hard to fix tho.

5 years ago

Should be fixed in 0.10.9.

New response