Difference between revisions of "VDrift.config"

From VDrift
Jump to: navigation, search
(new page about VDrift.config file)
 
m (Formatting style updates)
 
(11 intermediate revisions by 2 users not shown)
Line 1: Line 1:
VDrift.config is the main settings file for VDrift. It usually stays in the user's home directory or user settings space, and is in the [[configfile format]]. It is not the only file VDrift uses (see also [[options.config]], [[controls]], and others). VDrift does not use any kind of registry or configuration database. The options available to this configuration file are the ones defined in [[options.config]].
+
'''VDrift.config''' is the main user settings file for VDrift. It is in the [[configfile format]]. It is not the only file which VDrift uses for storing user settings (see also [[configuring the controls]]); however, it is the one which contains most of the settings important to users. VDrift does not use any kind of registry or configuration database. The options available to this configuration file are the ones defined in [[options.config]].
  
==Location==
+
==Location and Defaults==
===Linux===
+
'''VDrift.config''' is located inside the [[user settings directory]]. The default '''VDrift.config''' is located in '''data/settings/VDrift.config'''. If VDrift fails to start, the next time it runs, it will move the user's current '''VDrift.config''' to '''VDrift.config.backup''' and make a new '''VDrift.config''' from the default one.
On Linux VDrift.config is stored in a subdirectory of the user's home directory named '''.vdrift'''. If the name of the user running VDrift is '''username''' then the file will be located at '''/home/username/.vdrift/VDrift.confg'''.
 
===FreeBSD===
 
===OS X===
 
===Windows===
 
  
 
==Example==
 
==Example==
This is the author's current VDrift.config.
+
This is an example '''VDrift.config''' file.
  [ control ]
+
  [control]
  autoclutch = off
+
  autoclutch = true
  autotrans = off
+
  autotrans = true
  button_ramp = 5.000000
+
  button_ramp = 5
  profile = joystick
+
  mousegrab = true
  speed_sens_steering = 0.000000
+
  speed_sens_steering = 1
 
   
 
   
  [ display ]
+
  [display]
  FOV = 45.000000
+
  FOV = 45
  anisotropic = 2
+
  anisotropic = 0
  antialiasing = 2
+
  antialiasing = 0
  car_shadows = on
+
  bloom = true
 +
camerabounce = 1
 +
contrast = 1
 
  depth = 16
 
  depth = 16
  fullscreen = off
+
  fullscreen = true
  height = 1024
+
  height = 1050
  input_graph = on
+
  input_graph = true
  lighting = 1
+
language = English
  mph = on
+
  lighting = 0
 +
  mph = true
 +
normalmaps = true
 +
racingline = true
 
  reflections = 1
 
  reflections = 1
  show_fps = on
+
shaders = true
  show_hud = on
+
shadow_distance = 1
 +
shadow_quality = 1
 +
shadows = true
 +
  show_fps = true
 +
  show_hud = true
 
  skin = simple
 
  skin = simple
  texture_size = large
+
  texture_size = medium
  view_distance = 2500.000000
+
trackmap = true
  width = 1280
+
  view_distance = 1000
 +
  width = 1680
 +
zdepth = 16
 
   
 
   
  [ game ]
+
  [game]
  antilock = on
+
  ai_difficulty = 1
camera_mode = 5
+
  antilock = true
car_paint = 1
+
  camera_mode = chase
  game_mode = 0
 
  ghost = off
 
num_replays = 80
 
num_shots = 138
 
 
  number_of_laps = 1
 
  number_of_laps = 1
  opponent = TL
+
  opponent = XS
  opponents = TL
+
  opponent_color = 1,1,1
  record = off
+
  opponent_color_blue = 1.000000
  reverse = off
+
opponent_color_green = 0.000000
  selected_car = T73
+
opponent_color_red = 0.000000
  selected_replay = 66
+
opponent_paint = 00
  track = spa
+
player = XS
  traction_control = on
+
player_color = 1,1,1
 +
player_color_blue = 1.000000
 +
player_color_green = 0.000000
 +
player_color_red = 0.000000
 +
player_paint = 00
 +
  record = false
 +
  reverse = false
 +
  selected_replay = 0
 +
  track = paulricard88
 +
  traction_control = true
 
   
 
   
  [ joystick ]
+
  [joystick]
  calibrated = on
+
  calibrated = false
deadzone = low
+
  ff_device = /dev/input/event0
  ff_device = /dev/input/event2
+
  ff_gain = 2
  ff_gain = 2.000000
+
  ff_invert = false
  ff_invert = off
+
  hgateshifter = false
selected_index = 0
+
  two_hundred = false
  touchcomp = off
 
  two_hundred = off
 
 
  type = joystick
 
  type = joystick
 
   
 
   
[ main ]
+
==Options==
version = 2006-07-08
+
===Control section===
+
For information on the Control settings, see [[Configuring the controls]].  
[ mouse ]
 
enabled = 0
 
xsens = 1.000000
 
ydead = 0.200000
 
ysens = 0.900000
 
 
[ network ]
 
host_game = off
 
server_ip = 127.0.0.1
 
server_port = 1234
 
 
[ sound ]
 
music_volume = 0.420000
 
volume = 0.326389
 
  
==Options==
 
===Main section===
 
====main.version====
 
The version of the game.
 
 
===Display section===
 
===Display section===
 
See [[Configuring the display]] for detailed descriptions of each option.
 
See [[Configuring the display]] for detailed descriptions of each option.
 +
 
===Game section===
 
===Game section===
 
See [[Starting the game]] for detailed descriptions of each option.
 
See [[Starting the game]] for detailed descriptions of each option.
 +
 +
===Joystick section===
 +
For information on the Joystick settings, see [[Configuring the controls]].
 +
 
===Sound section===
 
===Sound section===
 
See [[Configuring the sound]] for more information.
 
See [[Configuring the sound]] for more information.
====sound.volume====
+
 
The gain for the sound effects in-game.
+
[[Category:Files]]
====sound.music_volume====
+
[[Category:Configuration]]
There is currently no in-game music, this has no effect.
 
===Network section===
 
See [[Network play]] for more information.
 
====network.host_game====
 
Host a game or not (join another host).
 
====network.server_ip====
 
IP of host to connect to.
 
====network.server_port====
 
Port of host to connect to, or if hosting, port to run server on.
 
===Control, Joystick and Mouse sections===
 
For information on the Control and Joystick settings, see [[Configuring the controls]]. Mouse settings are now deprecated.
 

Latest revision as of 09:52, 27 August 2012

VDrift.config is the main user settings file for VDrift. It is in the configfile format. It is not the only file which VDrift uses for storing user settings (see also configuring the controls); however, it is the one which contains most of the settings important to users. VDrift does not use any kind of registry or configuration database. The options available to this configuration file are the ones defined in options.config.

Location and Defaults

VDrift.config is located inside the user settings directory. The default VDrift.config is located in data/settings/VDrift.config. If VDrift fails to start, the next time it runs, it will move the user's current VDrift.config to VDrift.config.backup and make a new VDrift.config from the default one.

Example

This is an example VDrift.config file.

[control]
autoclutch = true
autotrans = true
button_ramp = 5
mousegrab = true
speed_sens_steering = 1

[display]
FOV = 45
anisotropic = 0
antialiasing = 0
bloom = true
camerabounce = 1
contrast = 1
depth = 16
fullscreen = true
height = 1050
input_graph = true
language = English
lighting = 0
mph = true
normalmaps = true
racingline = true
reflections = 1
shaders = true
shadow_distance = 1
shadow_quality = 1
shadows = true
show_fps = true
show_hud = true
skin = simple
texture_size = medium
trackmap = true
view_distance = 1000
width = 1680
zdepth = 16

[game]
ai_difficulty = 1
antilock = true
camera_mode = chase
number_of_laps = 1
opponent = XS
opponent_color = 1,1,1
opponent_color_blue = 1.000000
opponent_color_green = 0.000000
opponent_color_red = 0.000000
opponent_paint = 00
player = XS
player_color = 1,1,1
player_color_blue = 1.000000
player_color_green = 0.000000
player_color_red = 0.000000
player_paint = 00
record = false
reverse = false
selected_replay = 0
track = paulricard88
traction_control = true

[joystick]
calibrated = false
ff_device = /dev/input/event0
ff_gain = 2
ff_invert = false
hgateshifter = false
two_hundred = false
type = joystick

Options

Control section

For information on the Control settings, see Configuring the controls.

Display section

See Configuring the display for detailed descriptions of each option.

Game section

See Starting the game for detailed descriptions of each option.

Joystick section

For information on the Joystick settings, see Configuring the controls.

Sound section

See Configuring the sound for more information.