0.15.33 Unexpected Error when trying to load

This subforum contains all the issues which we already resolved.
Post Reply
KorGgenT
Burner Inserter
Burner Inserter
Posts: 5
Joined: Tue Apr 26, 2016 11:24 am
Contact:

0.15.33 Unexpected Error when trying to load

Post 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.
Attachments
factorio-current.log
(47.32 KiB) Downloaded 64 times
M-Coins_0.0.2.zip
(8.01 KiB) Downloaded 67 times

Rseding91
Factorio Staff
Factorio Staff
Posts: 13204
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: 0.15.33 Unexpected Error when trying to load

Post 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.
If you want to get ahold of me I'm almost always on Discord.

Post Reply

Return to “Resolved Problems and Bugs”