Page 1 of 1

Help

Posted: Fri Feb 19, 2016 1:50 pm
by Andreyt1234
Error when starting the game: EntityPrototype Turecar doesn't have an order string and there is no item to place it.

Re: Help

Posted: Fri Feb 19, 2016 2:25 pm
by Arch666Angel
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
  },

Re: Help

Posted: Fri Feb 19, 2016 4:20 pm
by Andreyt1234
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
  },
Error: _turecar_/data.lua:1:_turecar_/prototypes/Turecar.lua:6:'}' expected (to close '{at line 4) near 'lowercases'
Throw please modes in finished form. My English - Google Translation.

Re: Help

Posted: Fri Feb 19, 2016 4:21 pm
by Arch666Angel

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
  },

Re: Help

Posted: Fri Feb 19, 2016 4:28 pm
by Andreyt1234
Arch666Angel 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
  },
Error: Error in assignID, entity with name 'turecar' does not exist

Re: Help

Posted: Fri Feb 19, 2016 4:35 pm
by Arch666Angel
That's because you mixed upper and lower case names.

Re: Help

Posted: Fri Feb 19, 2016 4:45 pm
by Andreyt1234
Arch666Angel wrote:That's because you mixed upper and lower case names.
Thank you.

Re: Help

Posted: Sun May 22, 2016 7:00 am
by darthun
is there a decent tutorial or documentation on this order thing ? I don't get it and i have a similar error.