How to convert the shp TD unitcolors to RA?

Information and discussion for custom maps and mods.
Post Reply
User avatar
Materianer
Posts: 189
Joined: Mon Jul 04, 2016 8:27 am

How to convert the shp TD unitcolors to RA?

Post by Materianer » Fri May 12, 2017 11:53 am

Unfortunally the td colors wont fit with the ra ones so how can i change them?

User avatar
KOYK_GR
Posts: 52
Joined: Fri Aug 26, 2011 12:46 pm

Post by KOYK_GR » Sat May 13, 2017 11:02 am

There are 2 ways

1: use shp builder to convert the colors https://www.ppmsite.com/?go=shpbuilderinfo

2: use the palette traits

The second is the easiest.

Do the following:

open palettes.yaml and add this

Code: Select all

	PaletteFromFile@playerTD:
		Name: playerTD
		Filename: temperatTD.pal
		ShadowIndex: 4
	PlayerColorPalette@playerTD:
		BaseName: playerTD
		BasePalette: playerTD
		RemapIndex: 176, 178, 180, 182, 184, 186, 189, 191, 177, 179, 181, 183, 185, 187, 188, 190
Next step is to add the TD palette file to your mod directory (rename it to temperatTD.pal first)

Final step is to make the game use the TD palette to the units you want, for that, do this to the units you want to "convert" from TD to RA

Code: Select all

	RenderSprites:
		PlayerPalette: playerTD

bodomalo
Posts: 37
Joined: Tue Feb 20, 2018 7:35 pm

Post by bodomalo » Tue Mar 06, 2018 12:10 pm

OpenRA.YamlException: Actor type playercolorpalette@playerra: Junk value `playerRA` on trait node BaseName

Why do I receive this error Message so many times?

The "Junk value"...whatever...

Is this wrong?

Code: Select all

^Palettes:      
	PaletteFromCurrentTileset@terrain:
		Name: terrain
		ShadowIndex: 4
	PaletteFromCurrentTileset@static:
		Name: staticterrain
		ShadowIndex: 4
	PaletteFromFile@playerRA:
		Name: playerRA
		ShadowIndex: 4
		Filename: temperatRA.pal 
  PlayerColorPalette@playerRA:
    BaseName:playerRA
    BasePalette:playerRA
    RemapIndex: 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95 		
	PaletteFromFile@chrome:
		Name: chrome
		Filename: temperat.pal
		ShadowIndex: 3
		AllowModifiers: false
	PaletteFromFile@beaconposter:
		Name: beaconposter
		Filename: temperat.pal
		ShadowIndex: 3
	PaletteFromFile@effect:
		Name: effect
		Filename: temperat.pal
		ShadowIndex: 4
	PaletteFromFile@colorpicker:
		Name: colorpicker
		Filename: temperat.pal
		ShadowIndex: 4
		AllowModifiers: false
	PaletteFromRGBA@shadow:
		Name: shadow
		R: 0
		G: 0
		B: 0
		A: 140
	PaletteFromRGBA@cloak:
		Name: cloak
		R: 0
		G: 0
		B: 0
		A: 140
	PaletteFromRGBA@highlight:
		Name: highlight
		R: 255
		G: 255
		B: 255
		A: 128
	PaletteFromRGBA@moveflash:
		Name: moveflash
		R: 255
		G: 255
		B: 255
		A: 64
	PaletteFromRGBA@disabled:
		Name: disabled
		R: 0
		G: 0
		B: 0
		A: 180
	ShroudPalette@shroud:
		Name: shroud
		Type: Shroud
	ShroudPalette@fog:
		Name: fog
		Fog: true
	FixedColorPalette@BlueTiberium:
		Base: terrain
		Name: bluetiberium
		Color: 89BAFF
		RemapIndex: 176, 178, 180, 182, 184, 186, 189, 191, 177, 179, 181, 183, 185, 187, 188, 190
	PlayerColorPalette:
		BasePalette: terrain
		RemapIndex: 176, 178, 180, 182, 184, 186, 189, 191, 177, 179, 181, 183, 185, 187, 188, 190
	PlayerHighlightPalette:
	MenuPaletteEffect:
		MenuEffect: Desaturated
	CloakPaletteEffect:
	FlashPaletteEffect:
	RotationPaletteEffect@water:
		ExcludePalettes: effect, chrome
		RotationBase: 32

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

Post by abcdefg30 » Tue Mar 06, 2018 2:16 pm

Just some random guesses: Wrong indentation, missing space between the ":" and the value ("playerRA").

Post Reply