Skip to main content
gamedev.net
🔒 Locked

Compaction, not Compression

Started by Zipster Sep 1, 2000 at 10:06 PM 8 replies 1.6k views
Original Post
Zipster
Zipster
Basically, I''m trying to figure out a way to merge several files into one file. I don''t really want any compression, just the files be merged into one file for ease. I was thinking of opening each file seperatly, and then writing them to one big file, with header information and stuff, but then I was wondering just how i would do that. I have some ideas, but any suggestions would be apreciated. Then, would I have to create some sort of internal file structure? I dunno... I really could just use the PAk format i guess, but I don''t know how that works, or if there is any copyright on it. ======================================= A man with no head is still a man. A head with no man is plain freaky.
Muzzafarath
Muzzafarath
There''s an article right here on Gamedev about that, it''s called "Resource files explained". I''ve got some code that merges several files into one file (it''s messy though ), let me know if you want it.
I'm reminded of the day my daughter came in, looked over my shoulder at some Perl 4 code, and said, "What is that, swearing?" - Larry Wall
Zipster
Zipster
I want to be organized, remember. I''m really trying to avoid PAK format because I don''t want people looking around my PAK files and changing things.

=======================================
A man with no head is still a man.
A head with no man is plain freaky.
Zipster
Zipster
Well, my game isn''t gonna be so impressive that a hacker would really give a hoot. I just don''t want an everyday user to go experementing.

=======================================
A man with no head is still a man.
A head with no man is plain freaky.
Stony
Stony
Hi,

i''ve written a resource-management and a resource-builder myself.
You should have a look at the way doom saved it''s resources. The .wad files was just a bunch of files with an appended TOC (Table of contents). More information about .wad structure is in the unofficial doom faq! (if you don''t find it anywhere in the net, e-mail me!)

Stony

~~~
A bus-station is where a bus stops.
A train station is where a train stops.
On my desktop there is a workstation...
~~~A bus-station is where a bus stops.A train station is where a train stops.On my desktop there is a workstation...
Zipster
Zipster
.wad files just held the map data, right? Because I was looking for the midi files for the music from Doom2. But everything is appended to the executable.

=======================================
A man with no head is still a man.
A head with no man is plain freaky.
Melo
Melo
Descent/Descent2 have a container-file format called .HOG wich is really cool. You should visit the Descent Developer Network (if it still exists) to get more Information....

- - - - - - - - - - - - - -
Andreas Mähler
Wolf359 Interactive

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.