shp -> png -> shp using OpenRA.Utility

Trying to edit cameos, difficulty with palettes

Information and discussion for custom maps and mods.
Post Reply
twarpie
Posts: 60
Joined: Sun Jun 26, 2011 3:10 pm

shp -> png -> shp using OpenRA.Utility

Post by twarpie »

I'm hoping someone can help me out. I've been trying to edit some cameos using the following steps:
  1. extracting them using XCC mixer
  2. convert them using OpenRA.Utility (and temperat.pal)
  3. edit them
  4. convert back to shp (again with OpenRA.Utility)
My problem is with step 4: "OpenRA.Utility --shp" doesn't take a 'palette' parameter, so I'm guessing the input png needs to already use the correct palette, but I'm kinda stumped as to how to do that.

It was my understanding that XCC mixer would be able to perform all these steps (except #3 of course), based on this post by raminator.

I also found the Open Source SHP Builder, which is nice enough, but it seems its shps aren't recognized by OpenRA as valid files.

Any pointers are appreciated.

Matt
Posts: 1144
Joined: Tue May 01, 2012 12:21 pm
Location: Germany

Post by Matt »

Just use OpenRA.Utility.exe only:

Code: Select all

  --extract MOD[,MOD]* FILES
  --png SHPFILE PALETTE [--transparent]
  --shp PNGFILE FRAMEWIDTH
  --remap SRCMOD:PAL DESTMOD:PAL SRCSHP DESTSHP

Post Reply