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.

Difference between revisions of ".animinstances file - M2TW"

From TWC Wiki
Jump to navigationJump to search
Line 25: Line 25:
 
[[Image:Animtexture.jpg]]  
 
[[Image:Animtexture.jpg]]  
  
which isn't now specified for it in the .world file...  (The texture reference might be being picked up by use of the texture header and trailer numbers from somewhere else in the world file that texture is being used)
+
which isn't now specified for it in the .world file...  (The texture reference might be being picked up by use of the texture header and trailer numbers from somewhere else in the world file where that texture is still being used - yet to be confirmed)
  
 
[[Category:Battle Map Modification - M2TW]]
 
[[Category:Battle Map Modification - M2TW]]

Revision as of 11:35, 2 September 2009

The .animinstances files are so far the least understood of all the M2TW battlemap building world files.

The function of the file is to provide the animated transitions that occur when some objects switch from undamaged to damaged group. Not all paired group objects have an animation. The objects that have the most obvious animation are the wall breach areas, where the wall passes through five animations as it switches between the undamaged and five progressively more damages states.

Relationship to collision volume

Experimentation shows that the animinstances file does not contain the co-ordinate data for the animation in relation to the settlement plan. Moving the objects collision volume in the.worldcollision file results in the animated version moving to the new position of the collision volume.

In this example the normally visible structural groups have been moved backwards in the ms3d file the pathfinding and docking information has been left as it was, and the collision volume has been moved forward and right:

Objectmoved.jpg

Interestingly the unit that deployed the ladders to the old docking position then abandoned them - they wouldn't climb ladders with the collision volume in different location....

When the wall gets to the damage level where the animated transition comes in the wall appears in the collision volume location. Collisionmoved.jpg

Textures

The animinstances file also seems to include a reference (not in text form) to the texture used for the building whilst its in transition.

Worldtexture.jpg

The above is a quick test changing the texture used for the wall in the .world file to the litter texture. While the animation is in progress that same bit of wall switches texture back to the normal one

Animtexture.jpg

which isn't now specified for it in the .world file... (The texture reference might be being picked up by use of the texture header and trailer numbers from somewhere else in the world file where that texture is still being used - yet to be confirmed)