How to create a Pack File! Help please!

Started by
5 comments, last by Corrosive 23 years, 9 months ago
Hi ! i´m here again! Well, my problem is this: I want to make a Pack file to insert data from many image, sound, data, etc files in an one big single file and i want to acess this files inside of the pack file! how can i do this! i have created a code, but it does not work! I need help with the structures, how can i verify the size of an entire directory, how can i alloc any type of file in this pack file, and how can i acess this files! Please any help will be Welcome! thank´s! Any source code...? bye!
To code is to make things come to life ;)
Advertisement
Wasn''t Quakes PAK file just a zip file?

well u could open it and add files to it in winzip anyway...

-----------------------------
-cow_in_the_well

http://cowswell.gda.ods.org/


"If it's stupid but works, it's not stupid" - Murphey's Law

- Thomas Cowellwebsite | journal | engine video

Just use zlib. For example on how to do it look at crystalspace. They do exactly what your after...
Chris Brodie
And where can i find ZLIB!! and how can i go to crystalspace, it´s a site or what! please, any help! thank´s for trying!



To code is to make things come to life ;)
Pak files are just .zip files.
-------------I am a Juggalo.
quote:
Pak files are just .zip files.

actually they weren''t in quake and quake 2.


JoeMont001@aol.com www.polarisoft.n3.net
My HomepageSome shoot to kill, others shoot to mame. I say clear the chamber and let the lord decide. - Reno 911
Actually, the ''code on the cob'' series of articles on this site has a page or two (along with source code) of a pakfile system. Might help you out.

This topic is closed to new replies.

Advertisement