Page 1 of 1

[0.18.x] Cargo wagon has a mask layer, but doesn't seem to be used correctly

Posted: Fri May 15, 2020 7:11 pm
by bobingabout
Cargo wagon has a mask layer, which has "apply-runtime-tint" set on it, however, it always seems to show up as a gold-ish colour, no matter what colour the player is set to.

The locomotive also has an apply-runtime-tint mask layer, but the player can change that to whatever they want from the locomotive's GUI.

In theory, it should be set to the player colour, and/or the player should have the option to change it in the wagon GUI.

Re: [0.18.x] Cargo wagon has a mask layer, but doesn't seem to be used correctly

Posted: Sat May 16, 2020 4:36 am
by posila
Hello, cargo wagons can be runtime tinted by changing LuaEntity.color. color defined in cargo wagon prototype is used as default tint https://wiki.factorio.com/Prototype/CargoWagon

Wagons are not supposed to be tinted by player color.
Initial plan was to make them player colorable, like locomotives are, but this was cancelled (so as a result, there exists colorable mask for cargo wagons, but not for fluid wagons nor artillery wagons - but they all have ability to apply a runtime tint set by LuaEntity.color)

Re: [0.18.x] Cargo wagon has a mask layer, but doesn't seem to be used correctly

Posted: Sat May 16, 2020 3:17 pm
by bobingabout
posila wrote: Sat May 16, 2020 4:36 am Hello, cargo wagons can be runtime tinted by changing LuaEntity.color. color defined in cargo wagon prototype is used as default tint https://wiki.factorio.com/Prototype/CargoWagon

Wagons are not supposed to be tinted by player color.
Initial plan was to make them player colorable, like locomotives are, but this was cancelled (so as a result, there exists colorable mask for cargo wagons, but not for fluid wagons nor artillery wagons - but they all have ability to apply a runtime tint set by LuaEntity.color)
Thanks for the feedback.