[0.14] no empty category possible in player

This subforum contains all the issues which we already resolved.
Post Reply
User avatar
binbinhfr
Smart Inserter
Smart Inserter
Posts: 1524
Joined: Sat Feb 27, 2016 7:37 pm
Contact:

[0.14] no empty category possible in player

Post 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 ?
My mods on the Factorio Mod Portal :geek:

User avatar
Klonan
Factorio Staff
Factorio Staff
Posts: 5150
Joined: Sun Jan 11, 2015 2:09 pm
Contact:

Re: [0.14] no empty category possible in player

Post by Klonan »

This is fixed for the next 0.14 release

User avatar
binbinhfr
Smart Inserter
Smart Inserter
Posts: 1524
Joined: Sat Feb 27, 2016 7:37 pm
Contact:

Re: [0.14] no empty category possible in player

Post 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 . ;-)
My mods on the Factorio Mod Portal :geek:

User avatar
Klonan
Factorio Staff
Factorio Staff
Posts: 5150
Joined: Sun Jan 11, 2015 2:09 pm
Contact:

Re: [0.14] no empty category possible in player

Post 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

User avatar
binbinhfr
Smart Inserter
Smart Inserter
Posts: 1524
Joined: Sat Feb 27, 2016 7:37 pm
Contact:

Re: [0.14] no empty category possible in player

Post 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.
Drones_1.0.20.zip
(216.38 KiB) Downloaded 61 times
bug player no categ.jpg
bug player no categ.jpg (28.66 KiB) Viewed 2002 times
My mods on the Factorio Mod Portal :geek:

User avatar
binbinhfr
Smart Inserter
Smart Inserter
Posts: 1524
Joined: Sat Feb 27, 2016 7:37 pm
Contact:

Re: [0.14] no empty category possible in player

Post by binbinhfr »

any idea ?
My mods on the Factorio Mod Portal :geek:

User avatar
Klonan
Factorio Staff
Factorio Staff
Posts: 5150
Joined: Sun Jan 11, 2015 2:09 pm
Contact:

Re: [0.14] no empty category possible in player

Post by Klonan »

You defined the crafting categories as an empty array, just don't include any crafting categories, so remove the whole line

User avatar
binbinhfr
Smart Inserter
Smart Inserter
Posts: 1524
Joined: Sat Feb 27, 2016 7:37 pm
Contact:

Re: [0.14] no empty category possible in player

Post 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.
My mods on the Factorio Mod Portal :geek:

Post Reply

Return to “Resolved Problems and Bugs”