Page 1 of 1
MakeSHP -- quick PNG to SHP converter
Posted: Sun Jan 23, 2011 7:38 pm
by chrisf
Here's a very simple tool for converting 8bit (correct palette!) PNGs to SHP without having to wrangle XCC Mixer.
Setup: unzip this package into a folder somewhere
Name your PNGs with frame numbers -- 1.png, 2.png, 3.png etc.
Do
Code: Select all
`makeshp firstframe# lastframe# outputfile.shp`
like this:
Posted: Sat Jan 29, 2011 3:09 am
by chrisf
Ouch! Two retarded things:
1. I left an absolute path in the app.
2. The .NET image loader forces everything to the wrong pixelformat on load, so the palette is all screwy.
Posted: Sun Feb 13, 2011 6:06 am
by chrisf
Here's a new version of makeshp. It works the same way, but it fixes the dimensions of the files for you, and also actually works.
Posted: Mon Feb 14, 2011 5:14 am
by chrisf
Disregard that, I should actually test the builds I upload.
Posted: Sat May 26, 2012 9:48 am
by Matt
You should add this to OpenRA.Utility.exe
Posted: Mon Jul 02, 2012 5:12 pm
by Matt
Do you still have the source code for it?
Posted: Mon Jul 02, 2012 7:45 pm
by chrisf
This is what grew into OpenRA.Utility's --shp command.
Posted: Mon Jul 02, 2012 8:04 pm
by Matt
It would be nice to select multiple single PNGs instead of one already appended one sometimes though.
Posted: Tue Jul 24, 2012 2:51 am
by tacozmeister
I tried it, and I got this.
Code: Select all
Unhandled Exception: System.IO.EndOfStreamException: Unable to read beyond the end of the stream.
at System.IO.BinaryReader.ReadByte()
at OpenRA.Fileformats.Graphics.PngLoader.Load(Stream s)
at OpenRA.FileFormats.Graphics.PngLoader.Load(String filename)
at makeshp.Program.Main(String [] args)
I input "makeshp 1 1 anyname.shp" in the correct directory.
Posted: Tue Jul 24, 2012 9:37 pm
by chrisf
Use OpenRA.Utility, not makeshp. This is a dead tool.