[15.37] Crash caused by mod

Things that has been reported already before.
Post Reply
Heavy_Cat
Manual Inserter
Manual Inserter
Posts: 1
Joined: Mon Nov 20, 2017 9:21 am
Contact:

[15.37] Crash caused by mod

Post by Heavy_Cat »

I'm having trouble with making my first mod. I contacted a popular Factorio server (Supposedly supported by your dev team) and they said that my mod was breaking Factorio because your code is wrong somehow. can you help me on this?

Koub
Global Moderator
Global Moderator
Posts: 7199
Joined: Fri May 30, 2014 8:54 am
Contact:

Re: Mod Difficulty

Post by Koub »

[Koub] Moved to Modding help
Your mod code would probably help diagnosing what's wrong :).
Koub - Please consider English is not my native language.

Bilka
Factorio Staff
Factorio Staff
Posts: 3128
Joined: Sat Aug 13, 2016 9:20 am
Contact:

Re: Mod Difficulty

Post by Bilka »

mod: https://cdn.discordapp.com/attachments/ ... _0.1.2.zip

log file: https://cdn.discordapp.com/attachments/ ... urrent.log

The issue seems to be coming from the recipe definition or the multiple requires in the data.lua, not sure. I fixed those and no longer got an unexpected error: https://cdn.discordapp.com/attachments/ ... _0.1.2.zip
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.

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

Re: [15.37] Crash caused by mod

Post by Rseding91 »

Thanks for the report. This is a duplicate but I can't find the original bug report. Basically it's crashing because it's expecting you have recipes defined like this:

Code: Select all

ingredients =
{
  {"name", count},
}

results=
{
  {"name", count}
}
And you've not provided at least 2 things per ingredient and result. in 0.16 it will give you a proper error saying so.
If you want to get ahold of me I'm almost always on Discord.

Post Reply

Return to “Duplicates”