~ubuntu-branches/ubuntu/precise/supertuxkart/precise

« back to all changes in this revision

Viewing changes to data/stk_config.xml

  • Committer: Bazaar Package Importer
  • Author(s): Christoph Egger
  • Date: 2011-02-24 22:36:25 UTC
  • mfrom: (1.1.9 upstream) (6.1.4 sid)
  • Revision ID: james.westby@ubuntu.com-20110224223625-ygrjfpg92obovuch
Tags: 0.7+dfsg1-1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0"?>
 
2
 
 
3
<config>
 
4
  <!--  Minimum and maximum kart versions that can be used by this binary.
 
5
        Older version will be ignored. -->
 
6
  <kart-version min="2" max="2"/>
 
7
 
 
8
  <!-- Minimum and maxium track versions that be be read by this binary.
 
9
       Older versions will be ignored. -->
 
10
  <track-version min="3" max="3"/>
 
11
 
 
12
  <!-- Maximum number of karts to be used at the same time. This limit
 
13
       can easily be increased, but some tracks might not have valid start
 
14
       positions for those additional karts. -->
 
15
  <karts max-number="20"/>
 
16
 
 
17
  <!-- Scores are the number of points given when the race ends, 
 
18
       order is most-points-first or most-points-last. -->
 
19
  <grand-prix order = "most-points-first">
 
20
    <!-- Karts on position 1 and 2 will have 3 more points than the next kart;
 
21
         a kart on position 3 and 4 will have two more points than the next;
 
22
         and all remaining karts will have one more point than the next. -->
 
23
    <points from="1" to="2" points="3"/>
 
24
    <points from="3" to="4" points="2"/>
 
25
    <points from="5"        points="1"/>
 
26
  </grand-prix>
 
27
 
 
28
  <!-- Time in follow-the-leader after which karts are removed.
 
29
       The last values applies for all remaining karts. 
 
30
       time-per-kart Additional time added to the interval
 
31
       for each kart in the race. -->
 
32
  <follow-the-leader intervals="30 20 10"
 
33
                     time-per-kart="1.5"  />
 
34
 
 
35
  <!-- Startup information. 
 
36
       Penalty: Penalty time if a kart accelerates before GO. -->
 
37
  <startup penalty="1" />
 
38
 
 
39
  <!-- The title music. -->
 
40
  <music title="main_theme.music"/>
 
41
 
 
42
  <!-- Mostly for debugging: maximum number of history entrie$a -->
 
43
  <history max-frames="10000"/>
 
44
 
 
45
  <!-- Skidmark data: maximum number of skid marks, and
 
46
       time for skidmars to fade out. -->
 
47
  <skid-marks max-number="100"  fadeout-time="60"/>   
 
48
 
 
49
  <!-- Defines when the upright constraint should be acctive, it's
 
50
       disables when the kart is more than this value from the track. -->
 
51
  <near-ground distance="2"/> 
 
52
 
 
53
  <!-- How long the end animation will be shown. -->
 
54
  <delay-finish time="0.5"/>
 
55
 
 
56
  <!-- How long the music credits are shown. -->
 
57
  <credits music="10"/>
 
58
 
 
59
  <!-- weight is the additional weight an anvil adds to a kart.
 
60
       speed-factor is the additional slowdown caused by the anvil.
 
61
       time is the time an anvil is active. -->
 
62
  <anvil time="2.0" weight="150"  speed-factor="0.2"/>
 
63
 
 
64
  <!-- friction is the friction increase when a parachute is attached.
 
65
       time is the time an attached parachute is active
 
66
       time-other is the time a parachute attached from other kart works
 
67
       done-fraction is the fraction of speed when lost will detach parachute -->
 
68
  <parachute friction="2.0" time="4.0" time-other="8.0" done-fraction="0.7"/>
 
69
 
 
70
  <!-- time is the time till a bomb explodes. time-increase is the time added 
 
71
       to timer when bomb is passed on. -->
 
72
  <bomb time="30.0" time-increase="-5.0"/>
 
73
 
 
74
  <!-- Powerup collect-mode decides what is collected if a kart has already an 
 
75
       powerup: same: get one more item of the same type.
 
76
                new:  always get a new item.
 
77
                only-if-same: if the random item is the same one as the
 
78
                      one currently owned, increase the number, otherwise
 
79
                      no more/new item s are given to the kart. -->
 
80
  <powerup collect-mode="new"/>
 
81
  <!-- time: How long a switch is being effective.
 
82
       items for each item list the index of the item it is switched with.
 
83
             Order: item, banana, big-nitro, small-nitro, bubble-bum -->
 
84
  <switch time="5"  items="1 0 4 4 2"/>
 
85
 
 
86
  <!-- How often bubble gum get driven over before it disappears. --> 
 
87
  <bubble-gum disappear-counter="1"/>
 
88
 
 
89
  <!-- impulse is the push from explosions when karts aren't hit directly.  
 
90
       explosion-impulse-objects is the impulse for physics objects (smaller
 
91
       ones like the cone, will be pushed way too far with normal impulse). -->
 
92
  <explosion impulse="10000.0" impulse-objects="500.0" />
 
93
 
 
94
  <!-- Networking - the current networking code is outdated and will not
 
95
      work anymore - so for now don't enable this. -->
 
96
  <networking enable="false"/>
 
97
 
 
98
  <!-- Default values for all karts
 
99
       ============================ -->
 
100
  <general-kart-defaults>
 
101
  
 
102
    <!-- Kart's center point:
 
103
        gravity-shift is the shift of the chassis with regards to the center of
 
104
                      mass. E.g. with the the value commented out below the 
 
105
                      chassis will be 30 cm higher than the  center of mass - 
 
106
                      or the center of mass will be 30 cm lower than the  
 
107
                      middle of the chassis. So this effectively lowers the 
 
108
                      center of mass, making the kart more stable and less 
 
109
                      likely to topple over. Default (if nothing is defined 
 
110
                      here) is that the center of the mass is at the very bottom
 
111
                      of the chassis.  -->
 
112
    <center  gravity-shift="0 0.3 0"/>
 
113
 
 
114
    <!-- Camera: Distance between kart and camera. 
 
115
         forward-up-angle: Angle between camera and plane of kart (pitch) 
 
116
                 when the camera is pointing forward
 
117
         backward-up-angke: Angle between camera and plane of kart (pitch)
 
118
                 when the camera is pointing backwards. This is usually 
 
119
                 larger than the forward-up-angle, since the kart itself
 
120
                 otherwise obstricts too much of the view.  -->
 
121
    <camera distance="1.5" forward-up-angle="15"
 
122
            backward-up-angle="30"/>
 
123
 
 
124
    <!-- If a kart starts within the specified time after 'go',
 
125
         it receives the corresponding bonus from 'boost'. Those
 
126
         fields must have the same size, and must be sorted by
 
127
         increasing times. -->
 
128
    <startup time   = "0.3 0.5"
 
129
             boost  = "6 3"  />
 
130
 
 
131
    <!-- Rescue: time: How long it takes the kart to be raised.
 
132
         height: how height the kart will be raised before it is
 
133
         dropped back onto the track. 
 
134
         vert rescue offset: used to raise karts a bit higher before
 
135
         releasing them on the ground after a rescue. Used to avoid
 
136
         resetting karts into the track. Not sure if this is still
 
137
         necessary. -->
 
138
    <rescue vert-offset="0.0" time="2" height="2"/>
 
139
 
 
140
    <!-- Nitro: power-boost: increase in engine power, i.e. 1=plus 100%
 
141
         consumption: nitro consumption - heavier characters can be set
 
142
         to need more nitro than lighter character.
 
143
         small-container: how much energy a small container gives.
 
144
         big-container: how much energy a big container gives. 
 
145
         max-speed-increase: How much the speed of a kart might exceed
 
146
         its maximum speed (in m/s). 
 
147
         duration: How long the increased speed will be valid after
 
148
         the kart stops using nitro (and the fade-out-time starts).
 
149
         fade-out-time: Duration during which the increased maximum
 
150
         speed due to nitro fades out.  -->
 
151
    <nitro power-boost="3" consumption="1" small-container="1" big-container="3"
 
152
           max-speed-increase="5" duration="1" fade-out-time="2"/>
 
153
 
 
154
  <!-- time is the time a zipper is active. force is the additional 
 
155
       zipper force. speed-gain is the one time additional speed.
 
156
       max-speed-increase is the additional speed allowed on top
 
157
       of the kart-specific maximum kart speed. Fade-out time determines
 
158
       how long it takes for a zipper to fade out (after 'time').  -->
 
159
  <zipper time="3.5" force="250.0" speed-gain="4.5" max-speed-increase="15"
 
160
          fade-out-time="1.0"  />
 
161
 
 
162
    <!-- Skidding: increase: multiplicative increase of skidding factor in each frame.
 
163
         decrease: multiplicative decrease of skidding factor in each frame.
 
164
         max: maximum skidding factor = maximum increase of steering angle.
 
165
         time-till-max: Time till maximum skidding is reached.
 
166
         visual: Additional graphical rotation of kart.  -->
 
167
    <skid increase="1.05" decrease="0.95" max="2.5" time-till-max="0.4"
 
168
          visual="0.16"/>
 
169
 
 
170
    <!-- Slipstream: length: How far behind a kart slipstream works
 
171
         collect-time: How many seconds of sstream give  maximum benefit
 
172
         use-time: How long the benefit will last.
 
173
         add-power: Additional power due to sstreaming. 1 = +100%
 
174
         min-speed: Minimum speed necessary for slipstream to take effect. 
 
175
         max-speed-increase: How much the speed of the kart might exceed
 
176
         its normal maximum speed.
 
177
         duration: How long the higher speed lasts after slipstream stopped
 
178
         working.
 
179
         fade-out-time: How long the slip stream speed increase will 
 
180
         gradually be reduced.  -->
 
181
    <slipstream length="10" collect-time="2" use-time="5"
 
182
                add-power="3" min-speed="10"
 
183
                max-speed-increase="5" duration="1" fade-out-time="2"/>
 
184
 
 
185
    <!-- min-speed-radius and max-speed-radius define the smallest turn 
 
186
         radius at lowest speed (4.64 m at speed 0) and at high speed
 
187
         (13.5 m at speed 12 m/s). Maximum steering angles for speeds 
 
188
         in between will be interpolated. This allows for tighter turns
 
189
         at lower speeds. The actual steering  angle is dependent on the
 
190
         wheel base of the kart: radius = wheel_base/sin(steering_angle)
 
191
         By specifying the radius the steering behaviour can be defined 
 
192
         independent of the kart size. 
 
193
         time-full-steer is the time when a player's input goes from neutral
 
194
                         steering to extreme left or right.
 
195
         time-full-steer-ai is the time for the AI to go from neutral steering to
 
196
                         extreme left (or right). This can be used to reduce 
 
197
                         'shaking' of AI karts caused by changing steering direction
 
198
                         too often. It also helps with making it easier to push the
 
199
                         AI karts (otherwise micro-corrections make this nearly
 
200
                         impossible). A value of 1/maxFPS / 2 will guarantee that
 
201
                         the wheel can go from -1 to +1 steering in one frame, 
 
202
                         basically  disabling this mechanism.       -->
 
203
    <turn min-speed-radius="0 3" max-speed-radius="10 15.0"
 
204
          time-full-steer ="0.2" time-full-steer-ai="0.1"    />
 
205
 
 
206
    <!-- Speed and acceleration related values: power and max-speed (in m/s) 
 
207
         have 3 values, one for low, medium, and hard.
 
208
         brake-factor: Value used when braking. max-speed-reverse-ratio is
 
209
         the percentage of max speed for reverse gear. -->
 
210
    <engine power="400 450 500"  max-speed="15 20 23" brake-factor="11.0"
 
211
            max-speed-reverse-ratio="0.3"/>
 
212
 
 
213
    <!-- Simulated gears: switch-ratio defines at what ratio of the maximum
 
214
         speed what gear is selected, e.g. 0.25 means that if the speed is
 
215
         bigger or equal to 0.25 x maxSpeed then use gear 1, 0.5 means if 
 
216
         the speed is bigger or equal to 0.5 x maxSpeed then gear 2.
 
217
         gear-power-increase contains the increase in max power (to simulate
 
218
         different gears), e.g. 2.5 as first entry means: 2.5*maxPower in gear 1
 
219
         | first  | second |  third | . -->
 
220
    <gear switch-ratio="0.25 0.7 1.0" power-increase="2.2 1.7 1.3"/>
 
221
 
 
222
    <!-- mass  -->
 
223
    <mass value="225"/>
 
224
 
 
225
    <!-- Suspension related values. stiffness: kart's suspension stiffness.
 
226
         rest Length of suspension when at rest. travel-cm: maximum 
 
227
         movement of suspension - in cm!!  -->
 
228
    <suspension stiffness="248.0" rest="0.2" travel-cm="19"/>
 
229
 
 
230
    <!-- Wheel related parameters: damping-relaxation/compression: for
 
231
         bullet, damping parameters. Radius and width of wheel.
 
232
         front-right, front-left, rear-right and rear-left give the 
 
233
         position of the physics raycast wheels relative to the center of
 
234
         gravity. Default is to use the corners of the chassis to attach 
 
235
         the wheels to. -->
 
236
    <wheels damping-relaxation="20"  damping-compression="4.4" radius="0.25">
 
237
      <front-right position="0.38 0 0.6"  />
 
238
      <front-left  position="-0.38 0 0.6" />
 
239
      <rear-right  position="0.38 0 -0.6" />
 
240
      <rear-left   position="-0.38 0 -0.6"/>
 
241
    </wheels>
 
242
 
 
243
    <!-- friction: slip used for bullet skidding. A high value 
 
244
         (like 10000000) disables bullet skidding. -->
 
245
    <friction slip="10000000"/>
 
246
 
 
247
    <!-- Values related to stability of the chassis: damping, and reduced
 
248
         impact of roll. -->
 
249
    <stability roll-influence="0.03"
 
250
               chassis-linear-damping="0.2"
 
251
               chassis-angular-damping="30.2"/>
 
252
 
 
253
    <!-- Parameters for the upright constraint, which keeps karts upright. -->
 
254
    <upright tolerance="0.2" max-force="30"/>
 
255
 
 
256
    <!-- An artificial force that pulls a wheel to the ground if its off
 
257
         ground. Reduces the affect if a kart loses contact with the ground
 
258
         (i.e. it then can't steer or accelerate anymore). -->
 
259
    <track-connection-accel value="2"/>
 
260
 
 
261
    <!-- jump-velocity is the z-axis velocity set when a jump is initiated.
 
262
         This will cause the kart to start rising, till it is pulled back
 
263
         by gravity. A higher value means higher Z velocity, meaning the 
 
264
         kart will rise faster and higher, and will be in the air longer.
 
265
         Notice that jumps are currently disabled, so this value is ignored.  -->
 
266
    <jump velocity="3.0"/>
 
267
 
 
268
    <!-- collision-side-impulse is an additional (artificial) impulse that
 
269
         pushes the slower kart out of the way of the faster karts (i.e. 
 
270
         sideways to the faster kart) when a collision happens. This is 
 
271
         for now disabled since it needs tuning and additionally has the
 
272
         problem that the amount of push a hit kart receives depends on
 
273
         the orientation - if a kart is pushed in the direction it is 
 
274
         driving, it will be more (no friction from tires), while when 
 
275
         pushed to the side, hardly anything happens.  -->
 
276
    <collision side-impulse="0"/>
 
277
 
 
278
    <!-- Kart-specific plunger and rubber band handling: max-length is
 
279
         the maximum length of rubber band before it snaps. force is
 
280
         the force a plunger/rubber band applies to the kart(s).
 
281
         duration is the duration a rubber band acts. -->
 
282
    <plunger band-max-length="50" band-force="1500" band-duration="1"
 
283
          band-speed-increase="7" band-fade-out-time="3"
 
284
          in-face-time="4 6 7"/>
 
285
 
 
286
    <!-- Kart-specific explosion parameters. Height: how high this
 
287
         this kart is being pushed in the sky by an explosion.
 
288
         Time: how long it takes before the kart can drive again.  -->
 
289
    <explosion time="2" radius="5" />
 
290
    <!-- Kart-specific settings used by the AI.
 
291
         steering-variation: make each kart steer towards slightly
 
292
         different driveline points, so that AI don't create trains.
 
293
         Maximum value should be 1 (steer towards left/right side 
 
294
         of driveline), 0 means exactly towards quad center point.
 
295
         Depending on kart id karts will aim at different points.-->
 
296
    <ai steering-variation="0.0"  />
 
297
    
 
298
  </general-kart-defaults>
 
299
</config>