Exception of type `System.InvalidOperationException`: Actor tran has multiple traits of type `OpenRA.Traits.IDefaultVisibility`
at OpenRA.TraitDictionary.TraitContainer`1.GetOrDefault(UInt32 actor)
at OpenRA.TraitDictionary.TraitContainer`1.Get(UInt32 actor)
at OpenRA.TraitDictionary.Get[T](Actor actor)
at OpenRA.Actor.Trait[T]()
at OpenRA.Actor..ctor(World world, String name, TypeDictionary initDict)
at OpenRA.World.CreateActor(Boolean addToWorld, String name, TypeDictionary initDict)
at OpenRA.World.CreateActor(String name, TypeDictionary initDict)
at OpenRA.Mods.Common.Traits.ProductionFromMapEdge.<Produce>c__AnonStorey0.<>m__1(World w)
at OpenRA.World.Tick()
at OpenRA.Game.InnerLogicTick(OrderManager orderManager)
at OpenRA.Game.LogicTick()
at OpenRA.Game.Loop()
at OpenRA.Game.Run()
at OpenRA.Program.Run(String[] args)
at OpenRA.Program.Main(String[] args)
So is this even possible? how you make this work?
p.s. any tutorials on Identifier Suffix will be a welcome addition, thanks.
Looking at the trait list: HiddenUnderFog does not support suffix or conditions by default.
I'm fairly novice at this - and perhaps someone more experienced has a method for doing this - but I think without modifying the trait, the closest you could do is have air units visible at all times through fog, or not at all.
Inq wrote: ↑Looking at the trait list: HiddenUnderFog does not support suffix or conditions by default.
I'm fairly novice at this - and perhaps someone more experienced has a method for doing this - but I think without modifying the trait, the closest you could do is have air units visible at all times through fog, or not at all.
This.
IdentifierSuffix doesn't really need a tutorial IMO - it allows to set unique IDs for trait instances where the trait has multiple-instances support (HiddenUnderFog/AlwaysVisible/FrozenUnderFog aren't among these however). Technically all traits support IdentifierSuffixes though, but it's no point specifying one if the actor can't/won't have additional instances of them.