Pro text/hex editor
with Binary Templates

M2.bt

Parses a Blizzard M2(.m2) Compatible with 1.x.x up to 11.x.x (Tested on 1.12.1 / 2.4.3 / 3.3.5 / 7.0.1 / 8.0.1 / 9.0.1 / 9.2.0 / 10.0.0 / 11.0.0)



File Information

 Authors:Alastor Strix'Efuartus + credits to all previous Authors of the Original M2 template (Sorry but I have no idea who the original authors are)
 Category:Game
 Version:2.0.7
 File Mask:*.m2
 ID Bytes:4D 44 32 30, 4D 44 32 31 //MD20, MD21

Available Versions

Version Date Author Changes Download
2.0.7 2025-03-17 Alastor Added minor inline reading for material flags struc Download
2.0.6 2024-12-11 Alastor Particle reading fix Download
2.0.3 2024-12-09 Alastor Fixed reading of TexIndicesByIDRec+ TexComboIDRec for MD21 models Download
2.0.2 2024-12-06 Alastor Particle autofixer bug fix Download
2.0.1 2024-12-05 Alastor Fixed bones CRC ReadFunc + Improved FallBackAnimation ReadFunc both for vanila/tbc support + condition for particle error checks should optimize it a bit Download
2.0.0 2024-12-04 Alastor Finished refactoring of whole M2 template to rename most of all known data blocks to be exact to names used by blizzard which were datamined by reverse engineering wow client by this the template is practicaly 90%~ accurate just as offical blizzards tech with some minor deviations + Added Read function that translates the .anim file name if the sub anim sequence has data sitting outside of the m2 file + Rewrote expansin checking code and all checks in the template accounting for version checks as well alongside with better header version selection too + Interpolation ranges in M2Track finished for <=TBC + SkinProfile section reading enabled + Fixed the Multiexture patam reading in particles for >= Cata + Fixed particle block for <= TBC + Camera version check upgrade + With this update TBC should be fully supported according to documentation on wow dev wiki alongside with that vanilla as well if therre are bugs they should be notified to me since I do not have a way to test it myself Download
1.9.8 2024-11-05 Alastor Fixing missing M2Track sub value type C2Vector + Changed some variable types for better clarity + changed M2Track sub value type for ribbons to C3RGB Download
1.9.7 2024-10-29 Alastor Added more clues to event strucutres of what they are used for + Added more Readlines for other blocks to indicate correct amount of records + Better Handling of Unk Attachment points + TexComboTableID and TexIndicesByIDTable will now show links to textures types/names refferenced by them + Added read camera type refference for CameraLookUp block Download
1.9.5 2024-10-16 Alastor Fix on chunk reading that sometimes detected wrong data now the failsave will prevent reading from Adr > filesize Download
1.9.4 2024-09-30 Alastor Cleanup on code some formating and shited coloring + Revised ordering of blocks processing + fixed typos and cleared syntax from some white spaces + preparations for vanilla support + improved no anim/skid check + Fixed bone optimization issue + More helper Comments + Fixed typo on Particle_Type + Added Cata Check + Operand fix in ReadTexture Download
1.9.3 2024-09-09 Alastor Fixed nSplinePoints in particle block Download
1.9.1 2024-09-02 Alastor Added new lines to Ribbons and fixed the Ribbon AlphaBlock missmatching structure values PriorityPlane, RibbonColorIndex, textureTransformLookupIndex - Added TXID x nTexture matching to show in the Texture Block - Added support for new undocumented MD21 chunk AFRA further research needed - Upgraded RGB value track by removing tons of clutter and moving most of the functions to the variable attributes - Added helpet union value of bit flags to material flags to better depict functions that are impractical for enum listbox which was preserved - Converted the Light blocks C3 values of Color M2 Tracks from using float via inline conversion to 0 to 256 range to keep with standarts from particle block for better reading - Added E_CRC_BoneName to translate names of bones for debugging purposes - Added <open=true> to M2_File main structure - reworked some of the SetColor schemes to lessen the occurange of buggy colorization of structure Download
1.9.0 2024-08-20 Alastor Added MovingSpeed calculation inline function to display the percentual speed of animation played Download
1.8.6 2024-08-13 Alastor M2Track arguemnt bug fix Download
1.8.0 2024-08-12 Alastor Remade how SubAnimationSeq blocks are handled made them more modulare decreased the amount of typedefs needed and simplified var types + Changed structures of CollisionIndices, CollisionPositions, CollisionFaceNormals Download
1.7.8 2024-07-24 Alastor replacable_texture_lookup --> textureIndicesById, bone_lookup_table --> boneCombos, --> texture_lookup_table --> textureCombos, tex_unit_lookup_table --> textureCoordCombos, transparency_lookup_table --> textureWeightCombos, texture_transforms_lookup_table --> textureTransformCombos, TextureAnimations --> TexAnimations Download
1.7.7 2024-07-17 Alastor Texture_Combiner block restructured simplified and optimzed no longer causing the wrong highlight issue due the loop being used instead of struct[n] Download
1.7.6 2024-05-21 Alastor Fixed issue where RGB values in Particle Color Track where displayed incorrect now the particle color will be correctly translated and display by the same color in the Hex preview of model Download
1.7.1 2024-05-16 Alastor Minor typo fixes and cleanup with some additional comments and filled in many colors for different data blocks Download
1.7.0 2024-05-15 Alastor Added MessageBox to detection of faulty Particle items such as Blending / Type / Emmiter / HeadOrTail once prompted template will list commands to fix faulty particle items into the outpur box from where can user copy and execute Download
1.6.8 2024-02-21 Alastor Added DB0C strucutre which was discovered in 9ard_nebulacloud_b01.m2 which was by Deamon gussed to be added by thed end of SL in late 9.X.X + Removed some Skel strcutures which are not needed anymore as they were used for merging .skel and .m2 but the said method is no longer in use Download
1.6.6 2024-01-29 Alastor More comments on functions and minor clean up and readability adjustments Download
1.6.5 2023-08-06 Alastor Removal of some characters left from HIP's commit for some reason that commit inserted seemingly random amount of "•" characters into the template at random places Download
1.6.4 2023-05-10 Alastor Particle color track now shows the actual color in the template of the particle rgb value Download
1.6.2 2023-03-06 HIP Fixed some formatting and characters Download
1.6.1 2023-02-14 Alastor Additional conditions for Particle strcuture to alert if some values are incorrect for exact client version where issue most commonly happens Download
1.6.0 2022-12-27 Alastor Significant changes to MD21 Chunks added more variable to keep track of data and internal relative offsets within chunks Download

Return to the Template Repository


Newsletter - Receive special offers, tips, tricks and news. Join now

010 Editor v15.0.1 is here!
What's new?



E-mail: info@sweetscape.com