Page 1 of 1

Color in missions

Posted: Wed Apr 19, 2023 2:41 pm
by Adrian
I found Color trait in map.yaml.
Can I change it?
I try to change standard red (D64A42) for Harkonnen to another color (ABB7E4 — light-blue). Nothing happened.

This is not important. Just test.

Code: Select all

	PlayerReference@Harkonnen:
		Name: Harkonnen
		Playable: True
		LockFaction: True
		Faction: harkonnen
		LockColor: True
		Color: ABB7E4 # D64A42

Re: Color in missions

Posted: Wed Apr 19, 2023 4:59 pm
by Adrian
Later, I tried to change color for Atreides. From blue to violet.
This is 5 mission. Where is Starport with contraband.

All the units stay blue.
But Mission Text at the top become violet:
"The contraband will arrive in ..."

And Floating Text over Refinery is violet too: "+100".

Code: Select all

	PlayerReference@Atreides:
		Name: Atreides
		(...)
		Faction: atreides
		LockColor: True
		Color: 865994 #5A7394

Re: Color in missions

Posted: Thu Apr 20, 2023 6:51 pm
by abcdefg30
The missions define custom remappings for the player colors, see the "campaign-palettes.yaml" file in the rules directory. You can exclude that file from your mission, then the color should change again as usual.

Re: Color in missions

Posted: Thu Apr 20, 2023 7:56 pm
by Adrian
O, thank you.
I change map.yaml like this, and Atreides are violet now :)

Code: Select all

Rules: d2k|rules/campaign-rules.yaml, d2k|rules/campaign-tooltips.yaml, rules.yaml #, d2k|rules/campaign-palettes.yaml
----------------------------------------------------------------------
see the "campaign-palettes.yaml" file in the rules directory
It looks like this trait.

Code: Select all

	-PlayerColorPalette: