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 ".world file - M2TW"

From TWC Wiki
Jump to navigationJump to search
(Created page with '==Overview== The .world file forms the major part of the information controlling each settlement or ambient building in M2TW. The file contains details of the 3d structures maki...')
 
(Overview)
Line 1: Line 1:
 
==Overview==
 
==Overview==
The .world file forms the major part of the information controlling each settlement or ambient building in M2TW.  The file contains details of the 3d structures making up each building, wall or other static object.
+
The .world file forms the major part of the information controlling each settlement or ambient building in M2TW.  The file contains details of the 3d structures making up each building, wall or other static object.  It is very closely interelated to the [[.worldcollision]] file.
 +
 
 +
The 3d game elements are grouped into:
 +
*'''Complexes'''  Each complex is numbered (0 to ''n'')in Table 1 and can comprise one or more structures.
 +
*'''Structures''' Each structure can comprise one or more objects, a structure can be viewed as a Milkshape ms3d file or in mayavi by use of the [[WorldEditor]] user developed modding tool.
 +
*'''Objects''' Each object can comprise one or more groups, where an object contains more than one group the first will be the undamaged state of the 3d element and the successive groups will be the damaged states.  The most common object size is two groups - a pair of undamaged and damaged versions of an element.
 +
*'''Groups''' In game groups are the same as Milkshape ms3d groups, they are organised into objects by the .world files.
 +
 
 +
Each of the above element stages will also have an invisible bounding sphere or box which effects where it can be viewed from in game (and probably other factors like collision and animation).  The complex bounding spheres are located within an octree structure of bounding boxes described by [[Argantonio]] [http://www.twcenter.net/forums/showthread.php?p=4273886&highlight=octree#post4273886 here].
  
 
==File Structure==
 
==File Structure==

Revision as of 22:04, 28 August 2009

Overview

The .world file forms the major part of the information controlling each settlement or ambient building in M2TW. The file contains details of the 3d structures making up each building, wall or other static object. It is very closely interelated to the .worldcollision file.

The 3d game elements are grouped into:

  • Complexes Each complex is numbered (0 to n)in Table 1 and can comprise one or more structures.
  • Structures Each structure can comprise one or more objects, a structure can be viewed as a Milkshape ms3d file or in mayavi by use of the WorldEditor user developed modding tool.
  • Objects Each object can comprise one or more groups, where an object contains more than one group the first will be the undamaged state of the 3d element and the successive groups will be the damaged states. The most common object size is two groups - a pair of undamaged and damaged versions of an element.
  • Groups In game groups are the same as Milkshape ms3d groups, they are organised into objects by the .world files.

Each of the above element stages will also have an invisible bounding sphere or box which effects where it can be viewed from in game (and probably other factors like collision and animation). The complex bounding spheres are located within an octree structure of bounding boxes described by Argantonio here.

File Structure

The file layout (with names used in KnightErrant's WorldEditor is as follows:



Modding Information

Implications of Group number changes