This is a read only copy without any forum functionality of the old Modcraft forum.
If there is anything that you would like to have removed, message me on Discord via Kaev#5208.
Big thanks to Alastor for making this copy!

Menu

Author Topic: [Help] Java MPQ Editor  (Read 3330 times)

Themistocles

  • Registred Member
  • MWCS Enthusiast
  • *****
  • Posts: 2
    • View Profile
[Help] Java MPQ Editor
« on: March 28, 2014, 02:07:49 pm »
Hey there Modcraft,

I am currently working on a MPQ Editor in Java. I ripped mpqLib from taliis and it works for extracting and digging around in the MPQ's, but when it comes to saving the MPQs, I run into the problem that WoW doesn't load the newly made MPQ. I am thinking it has something to do with the header formats of the MPQs but, unfortunately, I know next to nothing about the MPQ format. I'm looking around the source to try and figure it out, but I figured I might drop a line here as well, see if anyone might point me in a better direction.

What steps could I take as far as figuring out what the issue is?
Am I looking in the right place, that the header data might be wrong?
What resources could I look at for code / MPQ Format comparisons? I am operating on 3.3.5a MPQ structures (if that is event relevant).

Anything short of reinventing the wheel is welcomed, as well as rewriting it in C++/C#. I also tried using Stormlib and JNA but couldn't figure out how to make the interface file in java.

Thanks!

-Edit-
I found an application that uses StormLib so I am going to try again, using the interface file as an example.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

akspa420

  • Registred Member
  • Polygonshifter
  • *****
  • Posts: 65
    • View Profile
Re: [Help] Java MPQ Editor
« Reply #1 on: April 05, 2014, 12:40:08 am »
I'm no programmer, but be sure to take a look at stormlib from zezula.net, which currently supports all variants of MPQ file formats. There's also BananaMPQ, a C# library that might be a bit closer to what you're looking for.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Steff

  • Administrator
  • Creator of Worlds
  • *****
  • Posts: 4551
    • View Profile
Re: [Help] Java MPQ Editor
« Reply #2 on: April 05, 2014, 12:03:46 pm »
Or perhaps stop work and have a look an the new file system.  There are still mpq editors that work very well.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
Please mark as solved if solved.
Don't ask if you could ask a question... JUST ask the Question.
You can send me also offline messages. I will answer if I get online.
Skype: project.modcraft
Discord: steff#6954