[ Midtown Madness 2 Central ] [ Midtown Madness 2 Central ]

Midtown Madness 2 Central > City Editing > [TTCT] Description of configuation files
View previous topic | View next topic
Author
Message Post new topicReply to topic
Maxoff
MM2C Addict

Joined: 11 Nov 2004
Posts: 560
Location: Poland

Status: Offline


Post subject: [TTCT] Description of configuation files Reply with quote

Local references:
- Program
- How to create simple city
- How to add your own object to city
- How to add grass effect
- Objects description
- Description of configuration files

-----------------------------------------------------

This text is part of MM2CT manual but I think that it should be also available here.

Configuration files

The program uses few configurations files which are described in sections below.

Multipaintjobs for INST objects

Filename (1): my_city.3ds.paintjobs

This is text file, you can edit it with notepad. In this file you can specify suffixs for paintjobs. By default MM2CT creates one paintjob for INST object, but when it finds object name in (1), the program creates as many paintjobs as many suffixs you specified (it works the same as exporter in ZModeler).

First suffix is base suffix and the rest is just replacements. The synatex of the file is easy NAME:SUFFIX1,SUFFIX2,SUFFIX3 and the sample file looks file this:
Code:
BH105:_A,_B,_C
PH228:_A,_B,_C


Custom bound material

Filename (1): my_city.3ds.bounds

This is text file, you can edit it with notepad. In this file you can specify material for bound for every inst and props objects. By default MM2CT uses:
Code:
mtl default {
  elasticity: 0.100000
  friction: 0.500000
  effect: none
  sound: 0
}

as material. You can overwrite this settings in (1). The syntax is very easy:
Code:

list of objects
defition of material
list of objects
defition of material
...
list of objects
defition of material

where:
    - list of objecst is list of names separated by comman, e.g PH1,PH23,PH150
    - defition of material in format used in bounds file:
    Code:
    mtl NAME {
      PARAMS
    }

for example:
Code:
mtl cobblestone {
  elasticity: 0.900000
  friction: 0.900000
  effect: none
  sound: 0
  drag: 0.000000
  width: 0.000000
  height: 0.000000
  depth: 0.0000
  ptxindex: 4 7
  ptxthreshold: 0.25 0.3
}

Here is sample file:
Code:
PH176,PH156,PH144,PH159,PH154,PH175,PH180
mtl cobblestone {
  elasticity: 0.900000
  friction: 0.900000
  effect: none
  sound: 0
  drag: 0.000000
  width: 0.000000
  height: 0.000000
  depth: 0.0000
  ptxindex: 4 7
  ptxthreshold: 0.25 0.3
}
PH152,PH153,PH174
mtl grass {
  elasticity: 0.900000
  friction: 0.900000
  effect: none
  sound: 2
  drag: 0.0
  width: 0.450000
  height: 0.040000
  depth: 0.100000
  ptxindex: 1 2
  ptxthreshold: 0.25 0.5
}
PH168
mtl sand {
  elasticity: 0.900000
  friction: 0.90000
  effect: none
  sound: 0
  drag: 1.000000
  width: 0.450000
  height: 0.050000
  depth: 0.10000
  ptxindex: 1 5
  ptxthreshold: 0.25 0.5
}
PH169
mtl water {
  elasticity: 0.190000
  friction: 0.680000
  effect: none
  sound: 1
  drag: 0.119000
  width: 2.420000
  height: 0.0000
  depth: 0.10000
  ptxindex: -1 6
  ptxthreshold: 0 0
}


Custom BAI parameters

Filename (1): city/my_city_bai_params.txt
or
Filename (2): my_city.3ds.bai_params

Both files have the same text format (you can edit them with notepad but it's recommended to use MM2CT). MM2CT creates (1) when you are editing bai parameters in the program. You can copy (1) as (2) without any problem. When you are importing .3ds file, first MM2CT checks if there is (2). If the file exists, it's used to customize ambient traffic in the importing city, so you don't have to edit traffic configuration every time you import the city. If there is no (2), then the program checks for (1) and uses it if exists. If there is no (1) and no (2), MM2CT uses generates default bai configuration.
_________________
... You only have to know how to prepare query, google will do the rest ...
... My software ...
... Guide to Punctuation ...
Post 10 Jun 2007 07:47 pm
View user's profile Send private message Visit poster's website
Display posts from previous: Post new topicReply to topic

Page 1 of 1 All times are GMT


Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Home - MM2C.com - Contact - Staff & Seniors - FAQ - Community Rules - Syndication


Powered by phpBB © 2001, 2005 phpBB Group