Alternative to wad archive format.
Moderator: GZDoom Developers
-
- Posts: 3288
- Joined: Sun Oct 03, 2004 8:57 am
- Preferred Pronouns: They/Them
- Location: South Africa
Alternative to wad archive format.
I was thinking, seeing as most wad editors are far from bugless and on the most part are anoying to work with (espesially for people new to them).
Why not use something similar to Quake 3 and Doom 3's .pk3 and .pk4 files. For those of you who don't know - these files are actually zip files with a different file extension, which allows you to manipulate them with your favourite zipfile manager (like winrar, winzip etc).
I was thinking that instead of using the the tag start and end to show where the textures, floors, sprites and so on are you could have a directory in the zip archive which would contain all the files. eg. a Sprite directory in the archive would contain all the sprites. All the data lumps could be cept in the root of the archive. The only thing that I'm unsure of is how the maps should be stored.
This feature would be usefull to simply make life easier, seeing as it doesn't add anything new, but IMO would be better than wad files.
Why not use something similar to Quake 3 and Doom 3's .pk3 and .pk4 files. For those of you who don't know - these files are actually zip files with a different file extension, which allows you to manipulate them with your favourite zipfile manager (like winrar, winzip etc).
I was thinking that instead of using the the tag start and end to show where the textures, floors, sprites and so on are you could have a directory in the zip archive which would contain all the files. eg. a Sprite directory in the archive would contain all the sprites. All the data lumps could be cept in the root of the archive. The only thing that I'm unsure of is how the maps should be stored.
This feature would be usefull to simply make life easier, seeing as it doesn't add anything new, but IMO would be better than wad files.
-
- Posts: 186
- Joined: Sun Dec 21, 2003 1:11 am
You can instead propose an integrated wad viewer, for example a wad/unwad couple of programs, like zip/unzip, rar/unrar, ace/unace, tar and gzip/gunzip
Edit: This couple may be used to navigate in the wad as you can navigate inside a zip file with mc or any good file manager.
Edit: This couple may be used to navigate in the wad as you can navigate inside a zip file with mc or any good file manager.
Last edited by ducon on Sun Mar 20, 2005 4:00 am, edited 1 time in total.
-
-
- Posts: 10773
- Joined: Sun Jul 20, 2003 12:15 pm
-
- Posts: 2529
- Joined: Mon Mar 22, 2004 7:00 pm
- Preferred Pronouns: He/Him
- Location: California, USA. Previously known as "Agent ME".
-
- Posts: 2958
- Joined: Thu Jul 17, 2003 12:07 am
- Graphics Processor: ATI/AMD with Vulkan/Metal Support
Sprite offsets are stored in the image. A WAD file is nothing more than:
Not too bad of a format, but the 8-byte restriction on the lump name is very limiting. Otherwise, one could just use / in filenames and have the editor treat them as a seperator (ie, name a lump "sound/d_thunder.ogg" and the editor would treat it as a file "d_thunder.ogg" in the "sound" directory).
That said, it might not be that hard to use zip files. There's libs around that do the handling for you (zzlib, I think) that run off zlib.
Code: Select all
4: IWAD/PWAD header
4: Entry count
4: Directory offset
Directory offset-12: lump data
for Entry count
4: Data offset (points somewhere in lump data)
4: Data length
8: Lump name (Null terminated if less than eight)
end
possible junk data....
That said, it might not be that hard to use zip files. There's libs around that do the handling for you (zzlib, I think) that run off zlib.
-
- Posts: 766
- Joined: Tue Sep 16, 2003 3:03 pm
-
- Lead GZDoom+Raze Developer
- Posts: 49188
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Chris wrote: That said, it might not be that hard to use zip files. There's libs around that do the handling for you (zzlib, I think) that run off zlib.
It's definitely not that hard. So far I just had problems to find some library that is usable for this. Most are either far too complex or just a big pain to use.
-
- Posts: 4019
- Joined: Fri Aug 15, 2003 8:15 pm
- Location: ferret ~/C/ZDL $
-
- Lead GZDoom+Raze Developer
- Posts: 49188
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
-
- ... in rememberance ...
- Posts: 2024
- Joined: Sat Apr 03, 2004 10:58 am
-
- Posts: 4019
- Joined: Fri Aug 15, 2003 8:15 pm
- Location: ferret ~/C/ZDL $
-
- Lead GZDoom+Raze Developer
- Posts: 49188
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
MasterOFDeath wrote:Hmm, maybe some coding from Doomsday could be used (with permission and credit of couse). It supports .PK3 and WAD files. I personally would love to see pk3 support myself.
That would be an option. I just took a look at that code and it doesn't seem too bad. It could be a nice project for the future.
-
- Posts: 101
- Joined: Tue Oct 14, 2003 2:31 am
- Location: Severodvinsk, Russia
I believe there were an MultiArc plugin for Total Commander allowing to browse wad files like archives and extract/add files, it was making group of lumps enclosed by *_start and *_end look like a folder, and so was it for MAP?? and E?M? records... I don't know where to get it though, I lost it long ago and wrote my own, buggy version of that addon )
-
- Posts: 4019
- Joined: Fri Aug 15, 2003 8:15 pm
- Location: ferret ~/C/ZDL $
-
- Posts: 1026
- Joined: Fri Sep 05, 2003 12:49 pm