[quake3-bugzilla] [Bug 5298] New: Support for .pk3dir

bugzilla-daemon at icculus.org bugzilla-daemon at icculus.org
Mon Nov 28 07:23:44 EST 2011


https://bugzilla.icculus.org/show_bug.cgi?id=5298

           Summary: Support for .pk3dir
           Product: ioquake3
           Version: SVN HEAD
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P3
         Component: Misc
        AssignedTo: zakk at icculus.org
        ReportedBy: dersaidin at gmail.com
         QAContact: quake3-bugzilla at icculus.org


Created attachment 3017
  --> https://bugzilla.icculus.org/attachment.cgi?id=3017
Add support for .pk3dir

This patch adds support for .pk3dir; folders in a search path which end in
.pk3dir are treated like .pk3 files.

For example:
baseq3/textures/foo/whatever.jpg   // normal file
baseq3/mymap.pk3dir/textures/mymap/tex1.jpg    // files in the pk3dir for my
map

The patch does this by finding folders ending in .pk3dir and adding them to the
search paths in the correct order.

This is awesome for mapping/modding, you can keep all the assets for your
project bundled together making it easy to zip them into a pk3.

Another advantage: with modern version control you can make each pk3dir a
submodule and have a real neat repository.

Notes:
- pk3dir are not read like pk3s on a pure server
- pk3dir should be accessed in the correct order as it it was a pk3s
- This patch doesn't handle recursion or avoiding reading the pk3dir as a
folder, but I see no need to (and not having it keeps it backwards compatible
if you happen to have a resource at "mymap.pk3dir/textures/mymap/tex1.jpg")

-- 
Configure bugmail: https://bugzilla.icculus.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the quake3-bugzilla mailing list