Anonymous Login
2018-12-16 03:20 UTC

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

-Relationships
+Relationships

-Notes

~0006191

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.

~0006192

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.

~0006193

Marky (developer)

See comment by Luchs
+Notes

-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