Having trouble with cloak

Tried to change ttnk and shok to include cloak.

Information and discussion for custom maps and mods.
Post Reply
Lassar
Posts: 33
Joined: Tue Dec 18, 2018 11:20 pm

Having trouble with cloak

Post by Lassar »

I get a exception log that says: Palette `cloak` does not exist

What am I doing wrong?

Code: Select all

SHOK:
	Buildable:
		Prerequisites: ~disabled
	Cloak:
		InitialDelay: 125
		CloakDelay: 250
		CloakSound:
		UncloakSound:
	DetectCloaked:
		Range: 6

TTNK:
	Buildable:
		Prerequisites: ~disabled
	Cloak:
		InitialDelay: 125
		CloakDelay: 250
		CloakSound: appear1.aud
		UncloakSound: appear1.aud
	DetectCloaked:
		Range: 6

Code: Select all

OpenRA engine version release-20210321
Red Alert mod version release-20210321
on map ae4eb70116f0444b8107ebb06846f52ee028bdee (05a: Tanya's Tale by Westwood Studios).
Date: 2021-05-31 06:10:21Z
Operating System: Windows (Microsoft Windows NT 6.2.9200.0)
Runtime Version: .NET CLR 4.0.30319.42000
Exception of type `System.InvalidOperationException`: Palette `cloak` does not exist
   at OpenRA.Graphics.HardwarePalette.GetPalette(String name)
   at OpenRA.Graphics.WorldRenderer.CreatePaletteReference(String name)
   at OpenRA.Exts.GetOrAdd[K,V](Dictionary`2 d, K k, Func`2 createFn)
   at OpenRA.Mods.Common.Traits.Cloak.OpenRA.Traits.IRenderModifier.ModifyRender(Actor self, WorldRenderer wr, IEnumerable`1 r)
   at OpenRA.Actor.Render(WorldRenderer wr)
   at OpenRA.Graphics.WorldRenderer.GenerateRenderables()
   at OpenRA.Graphics.WorldRenderer.PrepareRenderables()
   at OpenRA.Game.RenderTick()
   at OpenRA.Game.Loop()
   at OpenRA.Game.Run()
   at OpenRA.Game.InitializeAndRun(String[] args)
   at OpenRA.WindowsLauncher.WindowsLauncher.RunGame(String[] args)




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

Re: Having trouble with cloak

Post by abcdefg30 »

As it says the palette is missing. :P If you're using the palettes.yaml from RA try adding "IsPlayerPalette: true" to the "Cloak" trait.

Post Reply