seeking for pak file maker

Started by
2 comments, last by dhm 18 years, 4 months ago
hi all~ i read one article within this site about creating pak file which is written in C++, it is pity that i know little C++ and i am just a Java programmer, so is there any Java way or tools instead ? i just want to pack resource files into one(and compress then if possible) like what pak file did, tks for any help !
Never end on learning~
Advertisement
Java and C++ are QUITE simular. You should beable to convert between the two with little to no effort.
yes they are similar, but i know only basic knowledge(almost nothing! lol) of C++ and get confused when facing pointers and references etc, so that's why i'm seeking for one written in Java(can it be possible ?).

and another question, are there any docs on pak file format explanation ? i dont know nothing about it so it is very possible for me to build a pak file which is unavailable. tks in adv~
Never end on learning~
Hey,

As far as I know the PAK file format (as used by Quake etc.) was just a PKWare compatible ZIP file (using a .pak extension).

You can use ZLib (with MiniZip) to read these files.
See http://www.zlib.net/ - many language interface bindings available.

Now, my knowledge of the Java SDK is a little rusty - but they have a JAR format - which is, as far as I can remember, just renamed ZIP files. Have a look at http://java.sun.com/developer/technicalArticles/Programming/compression/index.html for details on the latest java.util.zip API.

Hope that helps,
dhm

This topic is closed to new replies.

Advertisement