The Ur-Quan Masters Home Page Welcome, Guest. Please login or register.
Did you miss your activation email?
December 14, 2024, 07:34:39 pm
Home Help Search Login Register
News: Celebrating 30 years of Star Control 2 - The Ur-Quan Masters

+  The Ur-Quan Masters Discussion Forum
|-+  The Ur-Quan Masters Re-Release
| |-+  Technical Issues (Moderator: Death 999)
| | |-+  Taking apart .shp files, how is it done?
« previous next »
Pages: [1] Print
Author Topic: Taking apart .shp files, how is it done?  (Read 2448 times)
Razorback
Frungy champion
**
Offline Offline

Gender: Male
Posts: 99


We are all *happy campers*


View Profile
Taking apart .shp files, how is it done?
« 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?
Logged

0xDEC0DE
*Many bubbles*
***
Offline Offline

Posts: 175



View Profile WWW
Re: Taking apart .shp files, how is it done?
« Reply #1 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), 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, click on "Files" and get depacker from the list.
Logged

"I’m not a robot like you. I don’t like having disks crammed into me… unless they’re Oreos, and then only in the mouth."  --Fry
Drith
Guest


Email
Re: Taking apart .shp files, how is it done?
« Reply #2 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.'
Logged
Novus
Enlightened
*****
Offline Offline

Gender: Male
Posts: 1938


Fot or not?


View Profile
Re: Taking apart .shp files, how is it done?
« Reply #3 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 includes most of this.
Logged

RTFM = Read the fine manual.
RTTFAQ = Read the Ur-Quan Masters Technical FAQ.
fossil
Core Team
Frungy champion
*****
Offline Offline

Gender: Male
Posts: 94



View Profile
Re: Taking apart .shp files, how is it done?
« Reply #4 on: June 17, 2005, 02:22:42 am »

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] Print 
« previous next »
Jump to:  


Login with username, password and session length

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!