I have this shp from an RA2 mod I was working on that I was trying to insert, and I think it inserted fine except that the palette was different. So I wanted to specify in vehicles.yaml for the unit graphics to use a custom palette we made the shp with (gdi.pal) and I put in the code:
Code: Select all
RenderUnit:
Palette: gdi
Code: Select all
PaletteFromFile@gdit:
Name: gdi
Filename: gdi.pal
ShadowIndex: 4
Code: Select all
Exception of type `OpenRA.YamlException`: Bad indent in miniyaml at mods/ar3/rules/vehicles.yaml:101
at OpenRA.MiniYaml.FromLines (System.String[] lines, System.String filename) [0x00000] in <filename unknown>:0
at OpenRA.MiniYaml.FromFile (System.String path) [0x00000] in <filename unknown>:0
at OpenRA.RulesetCache.<LoadYamlRules`1>m__A3[ActorInfo] (System.String s) [0x00000] in <filename unknown>:0
at System.Linq.Enumerable+<CreateSelectIterator>c__Iterator10`2[System.String,System.Collections.Generic.List`1[OpenRA.MiniYamlNode]].MoveNext () [0x00000] in <filename unknown>:0
at System.Linq.Enumerable.Aggregate[List`1,List`1] (IEnumerable`1 source, System.Collections.Generic.List`1 seed, System.Func`3 func) [0x00000] in <filename unknown>:0
at OpenRA.RulesetCache.LoadYamlRules[ActorInfo] (System.Collections.Generic.Dictionary`2 itemCache, System.String[] files, System.Collections.Generic.List`1 nodes, System.Func`3 f) [0x00000] in <filename unknown>:0
at OpenRA.RulesetCache.LoadMapRules (OpenRA.Map map) [0x00000] in <filename unknown>:0
at OpenRA.Map.<PostInit>m__19A () [0x00000] in <filename unknown>:0
at System.Lazy`1[OpenRA.Ruleset].InitValue () [0x00000] in <filename unknown>:0
e.g., are RA2 shp not supported? (I did manage to unwrap the shp into pngs with gdi.pal using OpenRA.Utility and re-made the shp in the program).
Or, are RA2 pal different from RA1 pal, and whether there is a specific place I must put the .pal file (I put it in the bits folder)?
Thanks!