WotLK to Cata/MoP/WoD Model Converter v1


1 Screenshot

About This File

This script for 010editor converts Wrath of the Lich King .M2 and .SKIN files to Cataclysm, Mists of Pandaria and Warlords of Draenor.

Supports:
-Cameras.
-Particles.
-Animation flags.
-Projected shadows.
-Transparency flags.
-Blend mode overrides.

Also includes:
-Batch file converter.
-Shadow remover script.
-Sequence flag remover script.
-Skin template for 010editor with shadow batches added.

DOWNLOAD

Some notes and technical information:

-make sure you are working on "OVR" mode before running the script.

Projected shadows
As you may know, projected shadows are stored inside the .skin file since Cataclysm. This script creates shadows for all texture units, including those with additive materials.
If you want to remove the shadows from a specific geoset, just open the skin file with 010editor, run the skin template included inside the tools folder and delete the texture batch corresponing to that mesh.
If you want to remove ALL shadows from a model, just use the "Cataclysm Shadow Remover" included in the tools folder (it's useful for stuff like fire or lights, that are not supposed to cast a shadow).

H3L3Gzj.jpg

As you can see, the glow, which is a billboarded square with addivite renderflag, is casting a shadow and the game can't handle shadows with additive materials. To remove it I selected its shadow batch, deleted it and reduced the shadow batch count by 1 in 010editor.
More info in this video:

Flying mount animations
In WotLK, mounts use swimming animations for flying. Since Cataclysm, however, there are separate ids for swimming and flying since flying mounts can now be used as ground mounts and therefore swim.
But, if a mount model doesn't have fly animations, the game will use its swimming animations. That's why this script doesn't duplicate them. It's not necessary. WotLK flying mounts should still work perfectly in Cata, MoP and WoD.

Reflections
This script doesn't convert reflections since there is no exact way to know when a texture unit is used for a reflection, glow, etc. So you must do it by hand.
Just open your skin file, convert it to Cata+, go to the texunit with the reflection and change its shader to "144". Here is an example using "Creature\Murloc\Murloc00.skin":

yFvRXZ0.jpg

You can change the "texunit" and "texunit2" fields to "0" but it's optional since those fields are unused since Cataclysm, but just in case.

Animation sequence flags
Sequence flags are 128 digits bigger since Cataclysm. Without these flags some animation frames loop when they shouldn't and sequences don't blend correctly. This script fixes that problem and gives smoothness to the animations.
If you want to remove the extra flags for some reason, just run the "Cataclysm Sequence Flag Remover" script included in the tools folder

  • Like 4



User Feedback

Recommended Comments

I can honestly say im impressed by how well it works an was wandering is there any plans at this stage as to  supporting up to legion as well? other then that nice job :)

Share this comment


Link to comment
Share on other sites
On 11/2/2018 at 6:48 AM, Xion Hearthem said:

I can honestly say im impressed by how well it works an was wandering is there any plans at this stage as to  supporting up to legion as well? other then that nice job :)

To convert a model from WoD to Legion you just need to add 3 chunks to the m2: MD21 (contains the size of the M2 in bytes), SFID (includes the file id of the m2 .skin files) and AFID (includes the file id of the m2 .anim files). But you can't do that with a 010 editor script since SFID and AFID point to specific file ids, and they are unique to the model. So you have to do it by hand or copy them from the model you are swapping.
The script would only generate the MD21 chunk, since it's quite easy to make.

In previous versions the game just loads all the files inside your model folder, but in Legion you have to tell the game which files to load for each M2, and that's quite annoying.

  • Like 1

Share this comment


Link to comment
Share on other sites

When I convert BFA models to 3.3.5 and then to 4.3.4, they crash the game, has anyone found a fix?

Legion models converted to 3.3.5, and then to 4.3.4, work correctly.

Share this comment


Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now