Page 1 of 1

[1.0.0] Player colour is different when set via UI vs command

Posted: Tue Nov 10, 2020 7:42 pm
by Finduxs
Alpha value have a different value depending if the command or UI is used, resulting in a different opacity.

Think the command use 255 as the default alpha value if nothing is used.

Image

Re: [1.0.0] Player colour is different when set via UI vs command

Posted: Tue Nov 10, 2020 8:23 pm
by valneq
I can confirm. Executing

Code: Select all

/color 221 127 33
appears to be equivalent to

Code: Select all

/color 221 127 33 255
while

Code: Select all

/color default
looks more like

Code: Select all

/color 221 127 33 128
Using the GUI to set the color appears to reset the alpha channel to some default value. It is unclear why using the command with only three arguments uses a default for the alpha channel that is different from the default via the GUI.

Re: [1.0.0] Player colour is different when set via UI vs command

Posted: Tue Nov 10, 2020 8:28 pm
by boskid
This issue was already fixed for 1.1: when doing /color it will not be possible to specify custom alpha value, it will be always forced to 128 (0.5) even if provided. Only way to set custom alpha for color will be through lua.

Re: [1.0.0] Player colour is different when set via UI vs command

Posted: Tue Nov 10, 2020 8:32 pm
by valneq
Well … no pressure or anything, but if you release 1.1 with all the 230 fixes and changes in it, we can stop wasting your time by reporting bugs that have been fixed already ;)

Re: [1.0.0] Player colour is different when set via UI vs command

Posted: Thu Nov 26, 2020 3:08 pm
by Pau1icu5
So changing the alpha color value will now be considered cheating.... ok.

/c game.players["Player_name"].color = {r=0, g=0, b=0, a=255}

Thanks for the clarification.