Closed elswindle closed 2 years ago
This is a little like the chicken and egg problem; do you have the recipe check the requested items to see if they mismatch first , or do you have the requested items check the recipe for mismatch first?
I've changed it so that recipe is set first, and then the requested items are checked against this recipe. This will be in version 0.9.7
.
By the way, is there any reason why the requester chests in that blueprint string have a "direction" key? I'm pretty sure setting that is prohibited in LogisticRequestContainer
.
I don't know why it has a direction key. I copied the blueprint string from fbe.teoxoy.com not from Factorio itself. I use it so I don't have to have Factorio running all the time.
Noted, hadn't heard of that tool before. I considered writing a bug report, though I'm sure they've got bigger fish to fry. On a related note, I'm working on fixing a number of incorrect Draftsman warnings, such as the overlapping rail entities warnings you were getting with the blueprint in issue #24; if you have any more to add it would be great put them here: #27
During the
AssemblingMachine
init,RequestItemMixin
calls theset_item_request
method fromAssemblingMachine
which tries to accessself.recipe
before it has been initialized byRecipeMixin
. Swapping priority of the initialization of parent classes only hasRecipeMixin
try to accessself.item
beforeRequestItemMixin
has initialized it. This only occurs when a productivity module is placed in the assembling machine. Here is a simple blueprint string to try to import that will raise this error.