[SOLVED] Error message on launch

Place to get help with not working mods / modding interface.
kallerdaller
Burner Inserter
Burner Inserter
Posts: 10
Joined: Sat Jul 16, 2016 7:28 pm
Contact:

[SOLVED] Error message on launch

Post by kallerdaller »

So I'm making a mod which has multiple tiers of labs. I call them 'lab-*tier number*'
When I launch the game I get this error:
Image
I have researches before and after it. NOTE: this is modifying a research already in the game.
This is the part of the code it refers to (line 1064 to 1100):

Code: Select all

{
    type = "technology",
    name = "research-effectivity-1",
    icon = "__base__/graphics/technology/research-effectivity.png",
    effects =
    {
      {
        type = "laboratory-speed",
        modifier = 0.2
      },
	  {
		type = "unlock-recipe",
		recipe = "lab-2"
	  },
	  {
		type = "unlock-recipe",
		recipe = "lab-3"
	  },
	  {
		type = "unlock-recipe",
		recipe = "lab-4"
	  },
    },
    prerequisites = {"electronics"},
    unit =
    {
      count = 100,
      ingredients =
      {
        {"science-pack-1", 1},
        {"science-pack-2", 1}
      },
      time = 30
    },
    upgrade = true,
    order = "c-m-a"
  },
So, what is wrong with it as I have looked and there should be no reason for it to give me that error for what I can see. I am what you would call a 'noob' at lua.
Last edited by kallerdaller on Sat Jul 16, 2016 8:49 pm, edited 1 time in total.
kallerdaller
Burner Inserter
Burner Inserter
Posts: 10
Joined: Sat Jul 16, 2016 7:28 pm
Contact:

Re: Error message on launch

Post by kallerdaller »

I found out what was wrong. I had been working on this on a USB, when I went to edit it on my home PC, I opened a shortcut from when you right click windows explorer. This was in my USB so the code in the file the game was reading was like

Code: Select all

{type = "laboratory-speed",
        modifier = 0.2
      },{
	  type = "unlock-recipe",
	  recipe = "lab-2"
	  }{
	  type = "unlock-recipe",
	  recipe = "lab-3"
	  } {
	  type = "unlock-recipe",
	  recipe = "lab-4"
	  }
Post Reply

Return to “Modding help”