Unit Flags turning up white for a new civ!

j_mie6

Deity
Joined
Dec 20, 2009
Messages
2,963
Location
Bristol (uni)/Swindon (home)
So today I added a new civilization to my mod (I have already added two) and while testing I have an odd issue...

Spoiler :


as you can see, the civ's colours are working correctly for the city itself, but all the units secondary red colour has been replaced with white!!! What could have gone wrong here?

here is the colour definition:

Spoiler :

Code:
		<Row>
			<Type>PLAYERCOLOR_BRITISH</Type>
			<PrimaryColor>COLOR_PLAYER_WHITE</PrimaryColor>
			<SecondaryColor>COLOR_BRITISH_RED</SecondaryColor>
			<TextColor>COLOR_PLAYER_WHITE_TEXT</TextColor>
		</Row>

Code:
                <Row>
			<Type>COLOR_BRITISH_RED</Type>
			<Red>0.8</Red>
			<Green>0</Green>
			<Blue>0</Blue>
			<Alpha>0</Alpha>
		</Row>


and it is used like normal in the civ defines:

PLAYERCOLOR_BRITISH

it doesn't appear to throw any errors in the lua log, and certainly none on the database log...

Any ideas?

Thanks,
Jamie
 

Attachments

  • 2014-02-02_00001.jpg
    2014-02-02_00001.jpg
    494.4 KB · Views: 165
Joined
May 4, 2010
Messages
346
I think your alpha value should be 1 instead of zero. Try that and see if it works.
 

PrimoXanthous

~ knightmare13 ~
Joined
Feb 19, 2012
Messages
635
Location
Sa Puso mo
I think your alpha value should be 1 instead of zero. Try that and see if it works.
Agree.
Code:
		<Row>
			<Type>COLOR_PLAYER_PHILIPPINES_ICON</Type>
			<Red>0.9961</Red>
			<Green>0.8039</Green>
			<Blue>0.1294</Blue>
			<Alpha>1</Alpha>
		</Row>
In one of my mods
 

j_mie6

Deity
Joined
Dec 20, 2009
Messages
2,963
Location
Bristol (uni)/Swindon (home)
yup, that was it. Don't know why I didn't see that, all my other values where alpha 1 :lol:

Thanks!
 
Top Bottom