Welcome to the TWC Wiki! You are not logged in. Please log in to the Wiki to vote in polls, change skin preferences, or edit pages. See HERE for details of how to LOG IN.

Unit Animations - M2TW

From TWC Wiki
Revision as of 08:41, 27 December 2022 by Makanyane (talk | contribs) (Created page with "Unit animations in M2TW are based on a skeleton system using a maximum of 24 bones. There are two different ways of importing skeletons and animations to a mod. ==Original G...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Unit animations in M2TW are based on a skeleton system using a maximum of 24 bones.

There are two different ways of importing skeletons and animations to a mod.

Original Game

Although M2TW ships with a copy of descr_skeleton.txt it is not read by the game unless the pack and skeletons .idx and .dat files in data/animations are deleted. The game cannot rebuild the pack/skeletons files with the information originally shipped with the game.

Caliban from CA supplied a full set of original .cas and .evt files which can be added to the data/animations folder and will allow the game to rebuild the packs based on the contents of descr_skeleton.txt

Porting Modded Skeletons

The only way to initially get a modded skeleton into the pack files is by letting the game rebuild from the full .cas and .evt files and descr_skeleton.txt.

Once the packs have been made the .cas and .evt files can be deleted from the modfolder.

Porting by Merging Packs

If you need skeletons and anims that exist in two or more separate packs you can merge them into one pack by using tools such as XIDX. These 'unpack' the skeletons (which contain the .evt information) and the anims, they provide you with a list of skeleton names and animation names and you can then manipulate the lists to re-pack the skeletons and animations you want.

Porting by Converting back to Original Format

Using a combination of the original .cas and .evt files supplied by Caliban, original modded .cas files if available, or converted .cas files using JoJo's tool, or a full set of converted .cas files using IWTE, you can get the game to rebuild from a descr_skeleton.txt file. IWTE will write a descr_skeleton.txt file for each pack set it unpacks, you can then text edit the required skeletons into one file.

NOTE - The Unpackers e.g. XIDX will provide you with a large folder of '.cas' files - THESE ARE NOT THE SAME AS ORIGINAL OR CONVERTED CAS FILES! You need a full set of the correct type of 'cas' (unpacked OR original/converted), you can't mix and match some of each...

YOU can help us improve this Wiki! ~ Look for ways to help and editing advice. ~ If you need further advice, please post here.