strange AssignID error

Place to get help with not working mods / modding interface.
Post Reply
User avatar
PeteTheLich
Long Handed Inserter
Long Handed Inserter
Posts: 89
Joined: Tue Jun 28, 2016 4:06 am
Contact:

strange AssignID error

Post by PeteTheLich »

I am having the problem with this error

error in assignID, recipe with name "concrete-gold" does not exist.

I changed concrete-gold to mf-concrete-gold and cannot figure out why it's having an assign error

ive checked all my code to make sure i changed all my concrete-gold 's to mf-concrete-gold

if i change it back to concrete-gold it gives
error in assignID, recipe with name "mf-concrete-gold" does not exist.

I tested with changing only black to mf-concrete-black as a test and it worked flawlessly so when i changed all of them gold keeps getting this error


here's the code relating to gold from

Code: Select all

  

 from recipe.lua
 {
    
	type = "recipe",
    name = "mf-concrete-gold",
    energy_required = 0.25,
    enabled = false,
    category = "crafting",
    ingredients =
    {
      {"concrete", 10}
    },
    result= "mf-concrete-gold",
    result_count = 10
   },

from item.lua
	 {
	
	type = "item",
    name = "mf-concrete-gold",
    icon = "__More_Floors__/graphics/icons/concrete_gold.png",
    flags = {"goes-to-main-inventory"},
    subgroup = "colors",
    order = "b[concrete]-c[mf-concrete-gold]",
    stack_size = 1000,
    place_as_tile =
     {
      result = "mf-concrete-gold",
      condition_size = 4,
      condition = { "water-tile" }	
	 }
	 },


part of code from tiles_concrete_gold.lua

type = "tile",
      name = "mf-concrete-gold",
      needs_correction = false,
      minable = {hardness = 0.2, mining_time = 0.5, result = "mf-concrete-gold"},
      mined_sound = { filename = "__base__/sound/deconstruct-bricks.ogg" },
      collision_mask = {"ground-tile"},
	 


User avatar
Adil
Filter Inserter
Filter Inserter
Posts: 945
Joined: Fri Aug 15, 2014 8:36 pm
Contact:

Re: strange AssignID error

Post by Adil »

What about technologies? They're the only thing that references recipes.
I do mods. Modding wiki is friend, it teaches how to mod. Api docs is friend too...
I also update mods, some of them even work.
Recently I did a mod tutorial.

User avatar
PeteTheLich
Long Handed Inserter
Long Handed Inserter
Posts: 89
Joined: Tue Jun 28, 2016 4:06 am
Contact:

Re: strange AssignID error

Post by PeteTheLich »

Adil wrote:What about technologies? They're the only thing that references recipes.
Yes I cant believe I didnt change that.

Guess im just dumb i was confused looking at recopies/items/concrete prototypes

I appreciate you taking the time to respond to my post.

Post Reply

Return to “Modding help”