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.
0.15.33 Unexpected Error when trying to load
0.15.33 Unexpected Error when trying to load
- Attachments
-
- factorio-current.log
- (47.32 KiB) Downloaded 80 times
-
- M-Coins_0.0.2.zip
- (8.01 KiB) Downloaded 81 times
Re: 0.15.33 Unexpected Error when trying to load
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.
I've fixed it so it gives a proper error message for 0.16.
If you want to get ahold of me I'm almost always on Discord.