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

This subforum contains all the issues which we already resolved.
User avatar
Finduxs
Manual Inserter
Manual Inserter
Posts: 1
Joined: Tue Mar 05, 2019 2:39 pm
Contact:

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

Post 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
User avatar
valneq
Smart Inserter
Smart Inserter
Posts: 1261
Joined: Fri Jul 12, 2019 7:43 am
Contact:

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

Post 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.
User avatar
boskid
Factorio Staff
Factorio Staff
Posts: 2983
Joined: Thu Dec 14, 2017 6:56 pm
Contact:

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

Post 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.
User avatar
valneq
Smart Inserter
Smart Inserter
Posts: 1261
Joined: Fri Jul 12, 2019 7:43 am
Contact:

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

Post 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 ;)
Pau1icu5
Burner Inserter
Burner Inserter
Posts: 5
Joined: Sat Jun 10, 2017 4:10 pm
Contact:

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

Post 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.
Post Reply

Return to “Resolved Problems and Bugs”