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.
[0.18.x] Cargo wagon has a mask layer, but doesn't seem to be used correctly
- bobingabout
- Smart Inserter
- Posts: 7352
- Joined: Fri May 09, 2014 1:01 pm
- Contact:
Re: [0.18.x] Cargo wagon has a mask layer, but doesn't seem to be used correctly
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)
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)
- bobingabout
- Smart Inserter
- Posts: 7352
- Joined: Fri May 09, 2014 1:01 pm
- Contact:
Re: [0.18.x] Cargo wagon has a mask layer, but doesn't seem to be used correctly
Thanks for the feedback.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)