Author Topic: [Java] MPQ utils  (Read 6139 times)

0 Members and 1 Guest are viewing this topic.

Offline Camel

  • Hero Member
  • *****
  • Posts: 1703
    • View Profile
    • BNU Bot
[Java] MPQ utils
« on: May 14, 2009, 04:23:18 pm »
In my free time I've been toying with MPQ files, working towards a stormless file extractor. I've put my work here:
http://bnubot.googlecode.com/svn/trunk/BNUBot/src/net/bnubot/util/mpq/

<Camel> i said what what
<Blaze> in the butt
<Camel> you want to do it in my butt?
<Blaze> in my butt
<Camel> let's do it in the butt
<Blaze> Okay!

Offline MyndFyre

  • Boticulator Extraordinaire
  • x86
  • Hero Member
  • *****
  • Posts: 4540
  • The wait is over.
    • View Profile
    • JinxBot :: the evolution in boticulation
Re: [Java] MPQ utils
« Reply #1 on: May 15, 2009, 12:18:03 pm »
Nice, I've been working on it too!  :)  I haven't committed any of it to my SVN yet, but I'm up to the point where I need to implement pkzip and zlib (at lease explode).  Good times!
I have a programming folder, and I have nothing of value there

Running with Code has a new home!

Our species really annoys me.

Offline Camel

  • Hero Member
  • *****
  • Posts: 1703
    • View Profile
    • BNU Bot
Re: [Java] MPQ utils
« Reply #2 on: May 15, 2009, 02:13:53 pm »
I borrowed explode() from Volker Schönefeld's code so I wouldn't have to port it.

It would appear that zlib inflate is also supported by storm.dll, but I haven't run across an MPQ that uses it. Perhaps that's only in WoW? In any case, if I do run across the problem, java.util.zip.Inflater should be able to do the work.

<Camel> i said what what
<Blaze> in the butt
<Camel> you want to do it in my butt?
<Blaze> in my butt
<Camel> let's do it in the butt
<Blaze> Okay!

Offline Camel

  • Hero Member
  • *****
  • Posts: 1703
    • View Profile
    • BNU Bot
Re: [Java] MPQ utils
« Reply #3 on: May 15, 2009, 03:00:58 pm »
Nevermind; I just went to extract a patch file, and discovered some zlib deflated files.

<Camel> i said what what
<Blaze> in the butt
<Camel> you want to do it in my butt?
<Blaze> in my butt
<Camel> let's do it in the butt
<Blaze> Okay!