Color in missions

Dune 2000

Information and discussion for custom maps and mods.
Post Reply
Adrian
Posts: 73
Joined: Wed Feb 12, 2020 5:44 pm

Color in missions

Post 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

Adrian
Posts: 73
Joined: Wed Feb 12, 2020 5:44 pm

Re: Color in missions

Post 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

abcdefg30
Posts: 643
Joined: Mon Aug 18, 2014 6:00 pm

Re: Color in missions

Post 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.

Adrian
Posts: 73
Joined: Wed Feb 12, 2020 5:44 pm

Re: Color in missions

Post 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:

Post Reply