RaydiumWikiNi

MNI

PagePrincipale :: DerniersChangements :: ParametresUtilisateur :: Vous êtes ec2-34-231-21-123.compute-1.amazonaws.com

MNI files are ManiaDrive tracks :

Here it is a small document about this format.

MNI is a text format. Each line is an entity, and the first character of each line is the entity type:

Details about line types :


Meta line

This line (d type) used 4 or 5 fields, with the character ; as field delimiter.
Fields are the following:

Example:
d Let's start slowly, please ...;xfennec;9.0;7.722 (simple.mni)

Grid lines

g type. Each of these lines use 6 fields:

Example:
g -2.000000 -1.000000 0.000000 90 0 wania1.tri

Box lines

Lines with b type, with 7 fields:
- X, Y and Z position. Same as for grid lines.
- X, Y and Z sizes (Floating point number with a decimal point). You should use predefined box sizes. See at the end of this page.
- Type of box (integer). See the following list:

#define TYPE_CHECKPOINT         100
 
#define TYPE_LOOP               30
 
#define TYPE_START_E            10
#define TYPE_START_W            11
#define TYPE_START_N            12
#define TYPE_START_S            13
 
#define TYPE_END                20
 
#define TYPE_TURBO_E            2
#define TYPE_TURBO_W            3
#define TYPE_TURBO_N            4
#define TYPE_TURBO_S            5 
 


Default sizes for boxes (from mania.cfg) :

You should use only theses values for box sizes.

#  * x_offset y_offset z_offset x_size y_size z_size type
 
# Start boxes (E,W,N,S)
* 0.5 0.5 0.1 0.1 0.4 0.2 10
* 0.5 0.5 0.1 0.1 0.4 0.2 11
* 0.5 0.5 0.1 0.4 0.1 0.2 12
* 0.5 0.5 0.1 0.4 0.1 0.2 13
 
# Stop box
* 0.5 0.5 0.1 0.4 0.4 0.2 20
 
# Checkpoint
* 0.5 0.5 0.1 0.4 0.4 0.2 100
 
# Turbo boxes
* 0.5 0.5 0.1 0.1 0.4 0.2 2
* 0.5 0.5 0.1 0.1 0.4 0.2 3
* 0.5 0.5 0.1 0.4 0.1 0.2 4
* 0.5 0.5 0.1 0.4 0.1 0.2 5