Page 1 of 1

Entity Prototype error

Posted: Mon Aug 29, 2016 9:25 pm
by kingsleyevergreen
Hello, I have the following error upon startup of factorio durring the building of prototypes while using my mod (really more of a test) and need a bit of help.

Error while running setup for entity prototype
"advanced-chemical-plant" (assembling-machine): No order string
defined and there is no item to place it.
Modifications: Advanced_Chemical_Plant

Any help would be appreciated.

Re: Entity Prototype error

Posted: Mon Aug 29, 2016 9:28 pm
by Supercheese
You need to make an "advanced-chemical-plant" item and make sure that it places the entity named "advanced-chemical-plant", just as the error text describes; every entity you want the player to be able to place needs an associated item.

Re: Entity Prototype error

Posted: Mon Aug 29, 2016 10:53 pm
by devilwarriors

Code: Select all

data:extend(
{
  {
    type = "item",
    name = "advanced-chemical-plant",
    icon = "__base__/graphics/icons/chemical-plant.png",
    flags = {"goes-to-quickbar"},
    subgroup = "production-machine",
    order = "e[advanced-chemical-plant]",
    place_result = "advanced-chemical-plant",
    stack_size = 10
  }
}
)


Re: Entity Prototype error

Posted: Mon Aug 29, 2016 11:32 pm
by kingsleyevergreen
Thanks! I had not entirely changed the item.lua. This solved the problem.