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: [QUESTION] Automatically extract the models used in ADTs  (Read 823 times)

xzetaxx

  • Registred Member
  • GM Isle Explorer
  • *****
  • Posts: 15
    • View Profile
[QUESTION] Automatically extract the models used in ADTs
« on: April 15, 2015, 04:03:30 pm »
Hey Modcraft!
Im trying to find a way to Automatically extract all the M2s that an ADT use and the only one I found was using an encripted patch with all the models from Cata to Wod and a listfile made only with the routes from the ADT. This way I get all the M2s needed but the problem is that now I need a way to get the skin files and blps that those M2s use.

I need ideas... How all the mappers do extract all the models needed for an ADT in a fast way? Or it can only be made at hand. I can make a program or something, I just need ideas.

Hope you understand me :)
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

PhilipTNG

  • Contributors
  • Creator of Worlds
  • *****
  • Posts: 709
    • View Profile
Re: [QUESTION] Automatically extract the models used in ADTs
« Reply #1 on: April 15, 2015, 04:46:48 pm »
Quote from: "xzetaxx"
I can make a program or something, I just need ideas.

If you're serious about that, meaning you can make a program or something and you just need some ideas.

In ADT the M2 files it uses are stored on the chunk called MMDX, but as you should know if you are saying you can make programs, in memory it's switched so it'll say XDMM. here is a picture:


the 4 bytes after the chunk name is the size of the chunk, in this image it says 0x2323 which is decimal 8995 in Integer format.  So if you know how to make a program to seek data and select it using binary inputs, you make it bounce to the the MMDX chunk, find the size and then get that size on the m2 filename chunks and dump it to a file.

Same goes with WMOs and BLPs for the ADT,  WMOs are in MWMO chunk:


BLP's are MTEX(in the hex it'll show up as XETM) , no need for a picture it looks exactly like the other two pretty much.

Anyway I talk about this in my video guide on how to down port Cataclysm 4.0.3 - MoP 5.0.5 maps down to 3.3.5a.  I talk about how to create batch scripts to dump the file names out of ADT, WMO, M2 files:

http://modcraft.io/viewtopic.php?f=93&t=8958


viewtopic.php?f=93&t=8958
And how to format the data into something usable.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »