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.
[Klonan] [1.1.5] Incorrect collision layer defaults
Re: [1.1.5] Incorrect collision layer defaults
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 Unless someone is able to make a script to parse the C++ values automatically (maybe.... not likely).
The copy-paste of these defaults into the collision-mask-util.lua file will be ripe with incorrect values for the rest of time 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.
Re: [1.1.5] Incorrect collision layer defaults
I fixed it for the next release,
The default is:
unit = {"player-layer", "train-layer", "not-colliding-with-itself"},
The default is:
unit = {"player-layer", "train-layer", "not-colliding-with-itself"},