View Full Version : .Pak Files Again
Cer3brus
04-04-2009, 09:00 AM
I was reading a post at http://www.pascalgamedevelopment.com/forum/index.php?topic=1460.0 but I couldn't understand the pseudocode :(
Apparently you can also use resource files or .Dat files. This is pretty interesting as you could store all sorts of lovely game recources. Anyone got any ideas?
noeska
04-04-2009, 11:28 AM
I believe .pak are 'just' zip files. So have a search on torry.
If you want to write your own fileformat, a word of warning: storing multiple files in one archive file just is not easy.
You might want to take a look at my nvfs project: http://www.noeska.net/projects/nvfs/ it is available under the mpl license. A word of warning here also it has no compression (yet) and it needs documentation and examples.
@noeska:
For your compression you could always give DIUcl (Link (http://www.yunqa.de/delphi/doku.php/products/ucl/index)) a try. It supports in-memory (de)compression and working with streams.
I used it for my own file packer and it managed reasonably well. However, it had trouble with some files that were already compressed at a better ratio. I just put a check in to "store" those files rather than compress them.
noeska
04-04-2009, 01:50 PM
@ize
the license of DIUcl is gpl and that is not compatible with a mpl license i use. Thanks for the advice though.
Brainer
05-04-2009, 07:28 AM
You can always use resources to store files inside your EXE. Or take a look at Paul's project: http://www.pascalgamedevelopment.com/forum/index.php?topic=4275.0
gintasdx
11-03-2011, 12:29 AM
GLScene fully supports a .PAK files which is plain files stream. I found a really good solution for game resource paks Single File Data Storage (http://www.torry.net/authorsmore.php?id=5967) :)
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.