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.

.world file - M2TW

From TWC Wiki
Revision as of 23:04, 28 August 2009 by Makanyane (talk | contribs) (Overview)
Jump to navigationJump to search

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

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