Open patrikjuvonen opened 4 years ago
Any news about this issue? Is there a workaround for this?
Any news about this issue? Is there a workaround for this?
For now you can use the black color provided by the palette, for example:
<vehicle color="0"></vehicle>
<vehicle color="0,0"></vehicle>
<vehicle color="0,0,0,0"></vehicle>
Will not work:
<vehicle color="0,0,0"></vehicle>
"backwards compatibility" nah. Is there any kind of version attribute in the map file? Or would this really be an issue?
Describe the bug If the
color
attribute, provided in RGB, for avehicle
in map file is same as currentm_Color
(currently both RGB and palette are initialized as0, 0, 0, 0
in CVehicleColor), the providedcolor
will be ignored and will use randomized color.To reproduce Will not be set (interpreted as RGB):
Will be set (interpreted as RGB different from own RGB value):
Will be set (interpreted as palette color):
Expected behaviour Vehicle color should be set to the provided color.
Version Multi Theft Auto v1.5.7-release-20402
Additional context
First discovered in #263
Perhaps add a
force
attribute for the affected color functions: SetRGBColors, SetPaletteColors. See previous work done for this in #263@00ad397, #263@ff052d3 and #263@274d9b3.We have to evaluate backwards-compatibility before anyone starts to work on this issue.
Originally posted by @Woovie in https://github.com/multitheftauto/mtasa-blue/pull/263#issuecomment-575700932: