Pages: [1]
|
|
|
Author
|
Topic: Taking apart .shp files, how is it done? (Read 2448 times)
|
Razorback
Frungy champion
Offline
Gender:
Posts: 99
We are all *happy campers*
|
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?
|
|
|
Logged
|
|
|
|
|
Drith
Guest
|
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.'
|
|
|
Logged
|
|
|
|
Novus
Enlightened
Offline
Gender:
Posts: 1938
Fot or not?
|
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:
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 includes most of this.
|
|
|
Logged
|
|
|
|
fossil
Core Team
Frungy champion
Offline
Gender:
Posts: 94
|
You may want to use my modified version of Mudry's depacker available here. 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.
|
|
|
Logged
|
|
|
|
Pages: [1]
|
|
|
|
|