Title: Taking apart .shp files, how is it done? Post by: Razorback on June 10, 2005, 01:58:44 am Looking at using some custom ship graphics from The Pages of Now and Forever, specifically the Black Spathi Squadron ship they have there. Problem is, the file is saved as a .shp instead of the component bits that UQM uses. How do I bust it apart and pull the graphics out?
Title: Re: Taking apart .shp files, how is it done? Post by: 0xDEC0DE on June 10, 2005, 06:59:16 am I'm not sure what the UQM project used to open up the old SHP files (a list of their published conversion/utility tools is here (http://cvs.sourceforge.net/viewcvs.py/sc2/tools/)), but the Free Star Control Project has a tool called "depacker" that will definitely do what you're looking to do.
The FSCP project page is here (http://sourceforge.net/projects/fscp/), click on "Files" and get depacker from the list. Title: Re: Taking apart .shp files, how is it done? Post by: Drith on June 15, 2005, 11:48:28 pm For some reason Winrar disagrees with the compressed depacker, and won't uncompress it properly.
So can anyone point me towards an alternative to this? Or tell me how to fix this? Winrar seems to be saying that the compressed folder has missing files in it. 'Symbolic link points to missing file.' Title: Re: Taking apart .shp files, how is it done? Post by: Novus on June 16, 2005, 12:56:29 am The depacker archive is a gzip-compressed tar archive, which is quite normal for Unix. tar supports some types of file that exist in Unix but not in Windows, such as symbolic links. Essentially, a symbolic link is a pointer to another file; opening a symbolic link opens the referenced file instead (similar to a shortcut in Windows, but built into the file system). As Windows does not have symbolic links, WinRAR is apparently attempting to cheat by copying the referenced file, which doesn't exist.
Just leave out the symbolic links and create your own directories instead. The affected files are: Code: scdepacker/newdata scdepacker/pkgs scdepacker/shps As you have probably guessed by now, the depacker is written for Unix. Getting it to work is likely to be a real pain, so if you have access to a Unix system, I'd strongly suggest you try running the depacker on that instead. To run this on Windows, you'll at least need to fix the directory structures to work without symlinks and install sed, sox, netpng, Perl and a C compiler (preferably GCC). Cygwin (http://www.cygwin.com/) includes most of this. Title: Re: Taking apart .shp files, how is it done? Post by: fossil on June 17, 2005, 02:22:42 am You may want to use my modified version of Mudry's depacker available here (http://www.bpvn.com/sc2/sc2unpack.zip). This version will actually work on Cygwin (the one published on FSCP will not). This one was used to extract DOS ship graphics that are now a part of UQM v0.4. The graphics files generated are suitable for an immediate drop-in replacement, so you can make your own addon and use it with uqm --addon black-spathi
Make sure you read all the READMEs included. |