Author Topic: VP archive open source unpacker (or docs)  (Read 2115 times)

0 Members and 1 Guest are viewing this topic.

Offline dizzy

  • 26
    • http://dizzy.roedu.net
VP archive open source unpacker (or docs)
Hi there

I would like to be able to pack/view/unpack .vp archives on my favourite platform. Is there any such program for Linux ? What about a (Windows or not) open source program ? What about if there is somewhere documented the format of the files ?

Reasoning: if I cannot find right now a program for my needs I am willing to start a project to write such a program (should be fairly easy unless some complex compression techniques are beeing used in there heh, but I doubt that considering how nice .vp files compress with zip, so they seem pretty much uncompressed to me)

Thanks for any help!

 

Offline dizzy

  • 26
    • http://dizzy.roedu.net
VP archive open source unpacker (or docs)
Ok, lol, just discovered in fs2_open code/cfileextractor and code/cfilearchiver and managed to build them just fine with commands like:
$ g++ -I. -I /usr/include/SDL -D SCP_UNIX cfilearchiver/cfilearchiver.cpp -o cfilearc

However, seems that SCP is duplicating this codes all arround. They are once in cfileextractor (I mean the VP_header and those structures), once in cfilearchiver and then once again in "cfile" dir (for fs2_open usage). Now while I have not spent too much time for the "cfile" codes which seem pretty hackish, at least the extractor/archiver codes are not very good done as they miss a lot of buffer overflow checks and system error checks.

Anyway, I have made this tiny document explaining the VP archive file format:
http://dizzy.roedu.net/fs/VPformat.txt

At this moment I am not very sure if I still want to go with my project to the open source library to handle this file archive format, but I am inclining to because I still have to start somewhere if I am every going to work on this project (which I want to) and also should offer some good codes for a future rewrite of the "cfile" codes to clean them up into a nice C++ API and possible eliminate the duplicated codes and missing checks from the archiver/extractor codes.

PS: someone please move this thread to SCP forum as now is mostly on that topic :) Thanks!

 

Offline WMCoolmon

  • Purveyor of space crack
  • 213
-C

 

Offline dizzy

  • 26
    • http://dizzy.roedu.net
VP archive open source unpacker (or docs)
Ok, sorry that I didnt found out about it earlier, good that I asked about it before doing any work :)

I'll just unpack and try to test it and forward any comments on that thread, thanks!