Page 1 of 1

0.15.33 Unexpected Error when trying to load

Posted: Thu Aug 17, 2017 1:40 am
by KorGgenT
The attached mod is supposed to give a "monetary value" to each item, via recipes. The error i received is in the title, though I expect it has something to do with lines 19-23 in data-final-fixes.lua

I was hammering out some of the details in how the mod iterates through the recipes, when the error appeared. the log shows me (mostly) expected results for the two lists that are being used by MC.get_coin_cost() [which is declared in MC-functions.lua]

I expect the (mostly) part is that i'm not recursively calling the function quite correctly, though with the log outputs i wouldn't know what made factorio crash.

How to reproduce the error: add the mod. crash on load. no save necessary.

Re: 0.15.33 Unexpected Error when trying to load

Posted: Thu Aug 17, 2017 5:46 am
by Rseding91
Thanks for the report. You've defined an ingredient as a single string: {"item-name"} instead of the required: {"item-name", count} or {name="...", amount=...}. Specifically you're passing "nil" as the cost argument to your create buy recipe function.

I've fixed it so it gives a proper error message for 0.16.