Packing files

Discussion about everything. New games, 3d math, development tips...
Post Reply
Soy1Bonus
Posts: 31
Joined: Mon Jun 21, 2004 8:41 am
Location: Spain (Cantabria)
Contact:

Packing files

Post by Soy1Bonus »

Hi everybody!

I'm using Irrlicht in a game and I want to pack my files (texture, sounds,...) into a single file. I know irrlicht can read zip files, but I want my modules to be independent, so I don't want to use that to pack my sounds, for example.

Do you know any library that can do this?
AutoDMC
Posts: 104
Joined: Sat Sep 18, 2004 3:44 pm

Post by AutoDMC »

I think I'm trying to set up a library for just that... I call it IrrPack because I have no ability to come up with any great ideas for names. Basically I gotta figure out how to read XML files, then I'll post here to let everyone know about it.

What you want is a library that'll let you pack all your files like a zip, but maybe compress the separate stuff separatly? (Use ZIP compression on lossless textures, JPEG on lossy, MP3 for long sounds, Speechx for voice, etc?). Maybe I didn't understand your problem :D
mohaps
Posts: 248
Joined: Tue Jun 08, 2004 1:54 pm
Location: Shrewsbury MA
Contact:

Post by mohaps »

create your own archive structure... and use gzip to compress each individual file...

standard format:

File Header
-------------
File Directory
--------------
File1
--------------
File2
----------------

now implement IReadFile and IWriteFile for this...
---
Saurav Mohapatra
author, artist and bona fide geek

web: http://www.mohaps.com
email: mohaps AT gmail DOT com
Soy1Bonus
Posts: 31
Joined: Mon Jun 21, 2004 8:41 am
Location: Spain (Cantabria)
Contact:

Post by Soy1Bonus »

I just want what can be achieve with Irrlicht but outside irrlicht :D

Because I want, for example, to pack my config files, and I don't want the reader/writer to be Irrlicht dependant, that's all.
Guest

Post by Guest »

So basically you're ok with using zip format then?
How about just using zlib on its own then?
If I understand correctly, that's what Irrlicht uses for its zip support anyway.
Post Reply