[Klonan] [1.1.5] Incorrect collision layer defaults

This subforum contains all the issues which we already resolved.
Post Reply
User avatar
Earendel
Factorio Staff
Factorio Staff
Posts: 712
Joined: Sun Nov 23, 2014 11:57 am
Contact:

[Klonan] [1.1.5] Incorrect collision layer defaults

Post by Earendel »

data/core/lualib/collision-mask-util.lua
Contains the default collision mask:
unit = {"doodad-layer", "item-layer", "not-colliding-with-itself", "consider-tile-transitions"},
but should be something like
unit = {"player-layer", "train-layer", "consider-tile-transitions"},

It might be a worth automating the defaults list population for futureproofing.

Rseding91
Factorio Staff
Factorio Staff
Posts: 13347
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [1.1.5] Incorrect collision layer defaults

Post by Rseding91 »

Actually the default for units according to the C++ is "player-layer", "train-layer", and "not-colliding-with-itself".

The copy-paste of these defaults into the collision-mask-util.lua file will be ripe with incorrect values for the rest of time :P Unless someone is able to make a script to parse the C++ values automatically (maybe.... not likely).
If you want to get ahold of me I'm almost always on Discord.

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

Re: [1.1.5] Incorrect collision layer defaults

Post by Klonan »

I fixed it for the next release,

The default is:

unit = {"player-layer", "train-layer", "not-colliding-with-itself"},

User avatar
Earendel
Factorio Staff
Factorio Staff
Posts: 712
Joined: Sun Nov 23, 2014 11:57 am
Contact:

Re: [Klonan] [1.1.5] Incorrect collision layer defaults

Post by Earendel »

Thanks

Post Reply

Return to “Resolved Problems and Bugs”