Page 1 of 1
[0.14] no empty category possible in player
Posted: Fri Aug 26, 2016 3:39 pm
by binbinhfr
Hi,
it seems that we cannot define anymore a player entity with empty crafting/mining categories, which is not very handy if we want to create a fake player that has no interaction.
This not works :
Code: Select all
type = "player",
crafting_categories = {},
mining_categories = {},
it was possible in 0.13 and used by some mods. Why preventing it now ?
Re: [0.14] no empty category possible in player
Posted: Tue Aug 30, 2016 1:48 pm
by Klonan
This is fixed for the next 0.14 release
Re: [0.14] no empty category possible in player
Posted: Wed Aug 31, 2016 8:22 am
by binbinhfr
Klonan wrote:This is fixed for the next 0.14 release
I suppose that you meant 0.14.3 because it's not in 0.14.2 .
Re: [0.14] no empty category possible in player
Posted: Wed Aug 31, 2016 10:52 am
by Klonan
binbinhfr wrote:Klonan wrote:This is fixed for the next 0.14 release
I suppose that you meant 0.14.3 because it's not in 0.14.2 .
Its fixed in 0.14.2, just wasn't in the changelog because it was fixed before you reported it as a bug
Re: [0.14] no empty category possible in player
Posted: Wed Aug 31, 2016 11:44 am
by binbinhfr
Strange, because I still have the same error when I try to put an empty {} on these categories :
Code: Select all
data:extend(
{
----------------------------------------------------------------------------------
{
type = "player",
name = "drone-surveillance",
icon = "__Drones__/graphics/drone-surveillance-icon.png",
flags = {"pushable", "placeable-player", "placeable-off-grid", "not-repairable", "not-on-map"},
max_health = 1000,
healing_per_tick = 1000,
collision_box = {{0,0}, {0, 0}},
collision_mask = {},
render_layer = "air-object",
final_render_layer = "air-object",
crafting_categories = {},
mining_categories = {},
-- crafting_categories = {"crafting"},
-- mining_categories = {"basic-solid"},
it was working in 0.13
you can reproduce it using this mod and commenting/uncommenting in the prototypes/drones.lua file.
- bug player no categ.jpg (28.66 KiB) Viewed 2044 times
Re: [0.14] no empty category possible in player
Posted: Thu Sep 01, 2016 3:28 pm
by binbinhfr
any idea ?
Re: [0.14] no empty category possible in player
Posted: Thu Sep 01, 2016 3:49 pm
by Klonan
You defined the crafting categories as an empty array, just don't include any crafting categories, so remove the whole line
Re: [0.14] no empty category possible in player
Posted: Thu Sep 01, 2016 5:31 pm
by binbinhfr
Klonan wrote:You defined the crafting categories as an empty array, just don't include any crafting categories, so remove the whole line
Oh OK. The empty array was working under 0.13, that's why I wrote it that way. Thx.