Crafting Combinator Xeraph's Fork

by Xeraph

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
1.1
8.25K
Circuit network Manufacturing

b [handled in 0.3.4] crash: during blueprint

2 years ago
(updated 2 years ago)

Hi, thanks for the great mod.

I have this error while updating an existing blueprint in a book (Save or Escape, doesn't matter)

The mod Crafting Combinator Xeraph's Fork (0.3.3) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event crafting_combinator_xeraph::on_gui_closed (ID 88)
crafting_combinator_xeraph/script/blueprint.lua:127: attempt to index field 'item' (a nil value)
stack traceback:
crafting_combinator_xeraph/script/blueprint.lua:127: in function 'f'
crafting_combinator_xeraph/script/blueprint.lua:212: in function 'handle_event'
crafting_combinator_xeraph/control.lua:403: in function <crafting_combinator_xeraph/control.lua:396>

Thanks

2 years ago

hi thanks for the report but unfortunately it uncovers another limitation in this functionality. It seems to be a Factorio API limitation according to this post.

TLDR: A blueprint in a blueprint book cannot be updated by my mod simply because no item reference was returned by the game when the GUI is closed.

I will push a patch to handle the non-existent item so that the mod does not crash, but it will only avoid the crashing part - Factorio will have to update the API to allow this mod to handle blueprint entity updates within a blueprint book.

New response