Page 1 of 1

[Klonan] [1.1.5] Incorrect collision layer defaults

Posted: Sat Dec 05, 2020 7:02 pm
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.

Re: [1.1.5] Incorrect collision layer defaults

Posted: Sat Dec 05, 2020 7:26 pm
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).

Re: [1.1.5] Incorrect collision layer defaults

Posted: Sat Dec 05, 2020 8:12 pm
by Klonan
I fixed it for the next release,

The default is:

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

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

Posted: Mon Dec 07, 2020 1:07 pm
by Earendel
Thanks