Hard Light Productions Forums

Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Cross-Platform Development => Topic started by: Mars on August 24, 2006, 10:15:55 pm

Title: cfileextractor woes
Post by: Mars on August 24, 2006, 10:15:55 pm
When I try and use cfileextractor on the warble_fs2.vp file I get this:

Code: [Select]
root@mars:/home/jsampson/FS# ./cfileextractor -x warble_fs2.vp
ERROR: The specified VP file is invalid!  Exiting...

(I think I'm probably missing something obvious.)
Title: Re: cfileextractor woes
Post by: taylor on August 24, 2006, 10:34:52 pm
There are only three cases that that particular error will get thrown, 1) The first 4 bytes aren't "VPVP", 2) the index comes right after the header (ie, no data is in the VP), or 3) there are less that 2 files in the VP (a directory is counted as a file, so "data/my_file.cfg" would actually count as two files).

Is warble_fs2.vp valid?  You can type "head -c 4 warble_fs2.vp" to see if the first 4 bytes are "VPVP".  Also make sure that it's actually large enough, I think that warble_fs2.vp is about 114 meg.
Title: Re: cfileextractor woes
Post by: Mars on August 24, 2006, 10:43:13 pm
I didn't think to check... I should have. I just assumed I was doing somthing wrong... it turns out that the VP is a ghost file, with no data in it.


Thanks for the rapid responce though...