Archived

This topic is now archived and is closed to further replies.

barazor

pak files?

Recommended Posts

barazor    122
can anybody point me to some decent code for opening pak files? all the stuff i found was either for vb, or was very very old C written to support all sorts of platforms, i just want some basic stuff, preferably in C or C++, any help appreciated

Share this post


Link to post
Share on other sites
Maximus    124
PAK files as in the type that earlier Quake engined (quake2 engine and earlier) games used?

If so, I wrote up a small .lib for reading from them (hey, I was bored!) which is quite easy to use.

Share this post


Link to post
Share on other sites
Zipster    2365
I added ability to scan through the PAK file for a particular file and extract it to my program, and it took literally only five minutes to code. The hardest part is finding the specifications, and even that is made easy by Wotsit. I found the PAK format specifications here. Once you have those, you can write it in any language you want

Edited by - Zipster on November 7, 2001 2:38:03 AM

Share this post


Link to post
Share on other sites
Maximus    124
Well yeah it doesnt take long... the PAK format is soooo simple

My code supports multiple PAK files, and simulates fopen, fread, fseek, fgetc, fclose, etc

Edited by - Maximus on November 7, 2001 7:21:10 AM

Share this post


Link to post
Share on other sites