Sign in to follow this  
blackgame

seeking for pak file maker

Recommended Posts

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 !

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
Java and C++ are QUITE simular. You should beable to convert between the two with little to no effort.

Share this post


Link to post
Share on other sites
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~

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this