OpenClonk Bugtracker - OpenClonk
View Issue Details
0002046OpenClonkEngine - C4Scriptpublic2018-11-16 20:232018-12-11 20:17
ReporterMarky 
Assigned ToMarky 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionno change required 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0002046: GetTeamColor() has an alpha value of 0
DescriptionIn my opinion, the alpha value in colors provided by GetTeamColor() should be 255 instead of 0. At the moment, if you call someobject->SetClrModulation(GetTeamColor(1)) that object becomes invisible.

This is done on purpose, instead of calling SetColor() ;)
TagsNo tags attached.
Attached Files

Notes
(0006191)
Luchs   
2018-11-18 10:45   
The automatically-assigned colors correctly have alpha=255. I assume you set these colors with alpha=0 yourself in Teams.txt? In that case, it's correctly passing through the colors you set, and the alpha value is just usually ignored for player and team colors.
(0006192)
Marky   
2018-11-18 14:12   
That could indeed be the cause of the problem. Colors were ported from Clonk Rage, e.g. Color=33535, and logically this value would have alpha=0.
(0006193)
Marky   
2018-12-11 20:17   
See comment by Luchs

Issue History
2018-11-16 20:23MarkyNew Issue
2018-11-18 10:45LuchsNote Added: 0006191
2018-11-18 14:12MarkyNote Added: 0006192
2018-12-11 20:17MarkyAssigned To => Marky
2018-12-11 20:17MarkyStatusnew => closed
2018-12-11 20:17MarkyResolutionopen => no change required
2018-12-11 20:17MarkyNote Added: 0006193