Clan x86

Technical (Development, Security, etc.) => General Programming => Botdev => Topic started by: MyndFyre on February 18, 2008, 06:53:42 PM

Title: Experimental Support of BLP1 files in MBNCSUtil
Post by: MyndFyre on February 18, 2008, 06:53:42 PM
I've added experimental support for BLP1 files into MBNCSUtil.  The support is not code-complete and so I'm not yet making an official release.  However, you can check the files out of Subversion; details are here (http://www.jinxbot.net/mbncsutil).  I haven't yet tested Jpeg compression - I just kind of implemented what the spec said - I haven't yet had a chance to track down a Jpeg-compressed version.

Here's a file from the downloads Ringo posted loaded into my test app:

(http://www.jinxbot.net/pub/war3blp1.png)

Usage samples can be found in my test app, which is located under /branches/Blp1Test.

Note that repository code has the same version as the existing release, 2.0.5.18, and so certain dependencies may break if this is used next to production code.

Also corrected: an issue with the MpqFileStream class, in that it reported that it did not support seeking, but in fact did.
Title: Re: Experimental Support of BLP1 files in MBNCSUtil
Post by: iago on February 18, 2008, 07:03:02 PM
I'm sure I'm not the only one who's thinking.... what's BLP1 mean?
Title: Re: Experimental Support of BLP1 files in MBNCSUtil
Post by: Newby on February 18, 2008, 07:16:25 PM
Who knows? It's a texture file.

Click (http://en.wikipedia.org/wiki/.BLP).
Title: Re: Experimental Support of BLP1 files in MBNCSUtil
Post by: MyndFyre on February 18, 2008, 08:20:29 PM
Quote from: iago on February 18, 2008, 07:03:02 PM
I'm sure I'm not the only one who's thinking.... what's BLP1 mean?

BLP1 is the texture/image file used in Warcraft 3.
Title: Re: Experimental Support of BLP1 files in MBNCSUtil
Post by: MyndFyre on February 18, 2008, 11:25:12 PM
I corrected the issues with JPG loading.  I also added a couple utility methods to the MpqArchive class.  However, I won't be making a final release until I've ported some BLP2 loading code.  It will also likely be refactored.

(http://www.jinxbot.net/pub/war3blpjpg.png)
Title: Re: Experimental Support of BLP1 files in MBNCSUtil
Post by: Joe on February 19, 2008, 10:47:07 AM
Hey, pandas!