There isn't a tool that automatically does that. Are you looking to write a tool to do that?
You can write a tool to open the MPQ (use SFMPQ or StormLib?), convert it to mdl (Guesst's MDLX converter? I think it has command line options), look-up the textures and then export them. The MDL format is very easy to read, so it shouldn't be a problem. You can just find the textures block and look-up each texture.
1e/ yeah, Runtime was the first thing that came up from stackoverflow. I assume you'd use that.
2e/ IMO have them load it one-time with a browse tool. Save it to a txt file or cache it through some other means.
3e/ I haven't looked into java libs for MPQ's. However, you may want to look into:
https://code.google.com/p/pscript-l...va?r=a5d791ba707195220e80aeeafe236c613725b119
Or look at the WurstScript github:
https://github.com/peq/WurstScript
It runs MPQCL.exe to extract/import files. I don't know if it caches the entire thing or not though--AFAIK it was intended for maps; not sure how it runs when loading the war3.mpq.
PitzerMike also made some extensions that handle exporting and importing into mpq's (using SFMPQ). Look into grim extensions (included in JNGP). It has command line support too--just check out GrimExt documention.html.
Are you looking for a converter or an importer? (importer -> import an mdx into the modeling program, converter -> directly convert the mdx to the model program's format)
Are you looking for a converter or an importer? (importer -> import an mdx into the modeling program, converter -> directly convert the mdx to the model program's format)
KMK made one for mdx to 3ds, but I haven't ever tried it:
http://kmkdesign.8m.com/downloads/