Help
Posted: Fri Feb 19, 2016 1:50 pm
				
				Error when starting the game: EntityPrototype Turecar doesn't have an order string and there is no item to place it.
			Andreyt1234 wrote:Error when starting the game: EntityPrototype Turecar doesn't have an order string and there is no item to place it.
Code: Select all
 
--Item car
{
    type = "item",
    name = "Turecar", -use lowercases, uppercase names are defined in the localisation files
    icon = "__base__/graphics/icons/car.png",
    flags = {"goes-to-quickbar"},
    subgroup = "transport",
    order = "a[personal-transport]-c[car]",  - has to be [turecar] then
    [b]place_result = "car",[/b] - has to be "turecar" then, this the entity you actually place in the world
    stack_size = 1
  },Error: _turecar_/data.lua:1:_turecar_/prototypes/Turecar.lua:6:'}' expected (to close '{at line 4) near 'lowercases'Arch666Angel wrote:Andreyt1234 wrote:Error when starting the game: EntityPrototype Turecar doesn't have an order string and there is no item to place it.Code: Select all
--Item car { type = "item", name = "Turecar", -use lowercases, uppercase names are defined in the localisation files icon = "__base__/graphics/icons/car.png", flags = {"goes-to-quickbar"}, subgroup = "transport", order = "a[personal-transport]-c[car]", - has to be [turecar] then [b]place_result = "car",[/b] - has to be "turecar" then, this the entity you actually place in the world stack_size = 1 },
Code: Select all
--Item car
{
    type = "item",
    name = "Turecar",
    icon = "__base__/graphics/icons/car.png",
    flags = {"goes-to-quickbar"},
    subgroup = "transport",
    order = "a[personal-transport]-c[turecar]",
    place_result = "turecar",
    stack_size = 1
  },Error: Error in assignID, entity with name 'turecar' does not existArch666Angel wrote:Code: Select all
--Item car { type = "item", name = "Turecar", icon = "__base__/graphics/icons/car.png", flags = {"goes-to-quickbar"}, subgroup = "transport", order = "a[personal-transport]-c[turecar]", place_result = "turecar", stack_size = 1 },
Thank you.Arch666Angel wrote:That's because you mixed upper and lower case names.