Anonymous Login
2019-07-21 09:07 UTC

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0002046OpenClonkEngine - C4Scriptpublic2018-12-11 20:17
Assigned ToMarky 
StatusclosedResolutionno change required 
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




Luchs (administrator)

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.


Marky (developer)

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.


Marky (developer)

See comment by Luchs

-Issue History
Date Modified Username Field Change
2018-11-16 20:23 Marky New Issue
2018-11-18 10:45 Luchs Note Added: 0006191
2018-11-18 14:12 Marky Note Added: 0006192
2018-12-11 20:17 Marky Assigned To => Marky
2018-12-11 20:17 Marky Status new => closed
2018-12-11 20:17 Marky Resolution open => no change required
2018-12-11 20:17 Marky Note Added: 0006193
+Issue History