Difference between revisions of ".world file - M2TW"
(→Overview) |
|||
Line 12: | Line 12: | ||
==File Structure== | ==File Structure== | ||
The file layout (with names used in [[KnightErrant]]'s WorldEditor is as follows: | The file layout (with names used in [[KnightErrant]]'s WorldEditor is as follows: | ||
+ | ===Table 1=== | ||
+ | This table deals with the inter-relation of the bounding boxes and Complex relative locations and bounding spheres. | ||
Revision as of 22:09, 28 August 2009
Contents
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:
Table 1
This table deals with the inter-relation of the bounding boxes and Complex relative locations and bounding spheres.