Can not craft the Item I modded

Place to get help with not working mods / modding interface.
Fazzel
Manual Inserter
Manual Inserter
Posts: 2
Joined: Mon Apr 21, 2014 8:04 pm
Contact:

Can not craft the Item I modded

Post by Fazzel »

Hello guys,
first: Sorry about my bad English. I'm still learning this language.

Here is my Problem:
I'm trying to mod a Mod, named MK-Mod. In future the mod should add Machines, like Solar Panel MK2, -MK3,....

Now I have a Problem. I've already began with this work, and started adding Solar-Panel-MK2, but when I open Factorio, and go into a game, I can't craft this item. I can only see it, if I want to set a filter to the logistic.


If you don't understand the question, please ask me, and then i will try to descripe it more clearly.
I hope you can help me.

Fazzel

Here is the "Mod":
MK.rar
(90.34 KiB) Downloaded 94 times
User avatar
FreeER
Smart Inserter
Smart Inserter
Posts: 1266
Joined: Mon Feb 18, 2013 4:26 am
Contact:

Re: Can not craft the Item I modded

Post by FreeER »

Well the first thing I see (or do not see technically) is that you have the recipe for solar-panel-MK2 set to be disabled (enabled=false) and you have no Technology prototype to enable (unlock) it. You can set enabled=true (or delete that line entirely since it will default to true) if you do not want to have to research it, otherwise create a technology prototype like the one below:

Code: Select all

data:extend(
{
  {
    type = "technology",
    name = "solar-energy-2",
    icon = "__base__/graphics/technology/solar-energy.png",
    effects =
    {
      {
        type = "unlock-recipe",
        recipe = "solar-panel-MK2"
      },
    },
    prerequisites = {"solar-energy"},
    unit =
    {
      count = 20,
      ingredients = {{"science-pack-1", 10}},
      time = 5
    },
    order = "a-h-c-a"
  }
)}
After that technology is researched the item should be available for crafting. Of course you'll also need a locale name/description for the Technology.
Hope that helps :)
<I'm really not active any more so these may not be up to date>
~FreeER=Factorio Modding
- Factorio Wiki
- My Factorio Modding Guide
- Wiki Modding Guide
Feel free to pm me :)
Or drop into #factorio on irc.esper.net
Post Reply

Return to “Modding help”