-
Notifications
You must be signed in to change notification settings - Fork 178
CVars (console variables)
Petr Ohlídal edited this page Dec 28, 2020
·
2 revisions
Since v0.4.7, RoR is internally driven by a set of global variables. These have certain defaults and can be set via config file (RoR.cfg), via command line switches or ingame console (work in progress). This system is inspired by Quake engine: http://www.quakeforge.net/doxygen/cvars.html
This wikipage is a draft for a http://docs.rigsofrods.org page.
The names and values refer to future release v0.4.8, see this PR which contains signifficant refactor of GVars: https://github.com/RigsOfRods/rigs-of-rods/pull/1333
For meanings of AppState, MpState and SimState, see https://github.com/only-a-ptr/rigs-of-rods/blob/master/source/main/Application.h#L35-L61
CVars have 2 names:
- Name - the console name (lower_case), for example 'app_screenshot_format'
- Config name - long name in RoR.cfg, for example 'Screenshot Format'. For historical reasons.
Name (Conf. name) | Type | Description |
---|---|---|
Application | ||
app_state | AppState | Game state trigger. Default active: BOOTSTRAP, default pending: MAIN_MENU |
app_language (Language) |
string | Language, default: English |
app_locale (Language Short) |
string | Locale, default: en_EN |
app_multithread (Multi-threading) |
bool | Enable multithreading? Default: true |
app_screenshot_format (Screenshot Format) |
string | Fileformat; default: jpg |
Simulation | ||
sim_terrain_name (Preselected Map) |
string | Terrain to use next |
sim_state | SimState | Simulation state trigger; default: NONE |
sim_replay_enabled (Replay mode) |
bool | Default: false |
sim_replay_length (Replay length) |
int | Default: 200 |
sim_replay_stepping (Replay Steps per second) |
int | Default: 1000 |
sim_position_storage (Position Storage) |
bool | Default: false |
sim_gearbox_mode (GearboxMode) |
SimGearboxMode | Default: AUTO |
sim_no_collisions (DisableCollisions) |
bool | Default: false |
sim_no_self_collisions (DisableSelfCollisions) |
bool | Default: false |
Multiplayer | ||
mp_state_active (Network enable ) |
MpState | Multiplayer state trigger; Default: DISABLED |
mp_server_host (Server name ) |
string | MP server to join |
mp_server_port (Server port ) |
int | MP server port |
mp_server_password (Server password) |
string | MP server password |
mp_player_name (Nickname ) |
string | MP player nickname; Default: Player |
mp_player_token_hash (User Token Hash) |
string | MP player token |
mp_portal_url (MP portal URL) |
string | Default: http://multiplayer.rigsofrods.org |
System | ||
sys_process_dir | string | Directory where RoR is currently running. Detected. |
sys_user_dir | string | User directory, detected. Windows: MyDocuments/Rigs of Rods [version]; Linux: ~/.rigsofrods; OSX: ~/.RigsOfRods. |
sys_config_dir | string | Configuration files location. Default: $user/config |
sys_cache_dir | string | Mod cache read/write dir. Default: $user/cache |
sys_logs_dir | string | Logs directory. Default: $user/logs |
sys_profiler_dir (Profiler output dir) |
string | For developers. Default: $user /profiler |
sys_resources_dir | string | Builtin game resources Default: $workdir /resources |
sys_screenshot_dir | string | Screenshots output directory Default: $user /screenshots |
Gfx | ||
gfx_flares_mode (Lights) |
GfxFlaresMode | Flares and lights. Takes effect on vehicle (re)spawn. Default: GfxFlaresMode::"all vehicles, headlights" |
gfx_shadow_type (Shadow technique) |
GfxShadowType | Default: GfxShadowType::NONE |
gfx_extcam_mode (External Camera Mode) |
GfxExtCamMode | Default: GfxExtCamMode::PITCHING |
gfx_sky_mode (Sky effects) |
GfxSkyMode | Default: GfxSkyMode::SANDSTORM |
gfx_texture_filter (Texture Filtering) |
GfxTexFilter | Default: GfxTexFilter::TRILINEAR |
gfx_vegetation_mode (Vegetation) |
GfxVegetation | Default: GfxVegetation::NONE |
gfx_water_mode (Water effects) |
GfxWaterMode | Default: GfxWaterMode::BASIC |
gfx_water_waves (Waves) |
bool | Enable Hydrax? Default: false |
gfx_minimap_disabled (disableOverViewMap) |
bool | Default: false |
gfx_particles_mode (Particles) |
int | Use particles? Default: 0 |
gfx_enable_videocams (gfx_enable_videocams) |
bool | Enable VidCams by default? Default: false |
gfx_envmap_enabled (Envmap) |
bool | Realtime vehicle reflection (environment map). Default: false |
gfx_envmap_rate (EnvmapUpdateRate) |
int | Realtime vehicle reflection (environment map). 1-6: update interleaving (1=update each frame, 2=update every 2n frame...) . Default: 2 |
gfx_skidmarks_mode (Skidmarks) |
int | Default: 0 |
gfx_sight_range (SightRange) |
float | Sight range of 3D scene. Default: 3000.f |
gfx_fov_external (FOV External) |
float | Field of view. Default: 60.f |
gfx_fov_internal (FOV Internal) |
float | Field of view. Default: 75.f |
gfx_fps_limit (FPS-Limiter) |
int | Default: 0 |
gfx_speedo_digital (DigitalSpeedo) |
bool | Controls on-screen dashboard looks. Default: false |
gfx_speedo_imperial | bool | Controls on-screen dashboard looks. Default: 0 |
gfx_reduce_shadows (Shadow optimizations) |
bool | Disables shadows in 1st person mode, Default: true |
Input/Output | ||
io_input_grab_mode (Input Grab ) |
int | Input grabbing mode Default: 1 |
io_arcade_controls (ArcadeControls ) |
bool | Default: false |
io_ff_enabled (Force Feedback ) |
bool | Force feedback enabled? Default: false |
io_ff_camera_gain (Force Feedback Camera ) |
float | Force feedback camera gain |
io_ff_center_gain (Force Feedback Centering) |
float | Force feedback center gain Default: 0.5 |
io_ff_master_gain (Force Feedback Gain ) |
float | Force feedback master gain Default: 1.0 |
io_ff_stress_gain (Force Feedback Stress ) |
float | Force feedback stress gain Default: 1.0 |
io_outgauge_mode (OutGauge Mode ) |
int | 1=enabled Default: 0 |
io_outgauge_ip (OutGauge IP ) |
string | Default: 192.168.1.100 |
io_outgauge_port (OutGauge Port ) |
int | Default: 1337 |
io_outgauge_delay (OutGauge Delay ) |
float | Default: 10.0 |
io_outgauge_id (OutGauge ID ) |
int | Default: 0 |
Audio | ||
audio_master_volume (Sound Volume ) |
float | Default: 1.0 |
audio_enable_creak (Creak Sound ) |
bool | Beams creaking when deformed? Default: false |
audio_device_name (AudioDevice ) |
string | Default: (detect) |
audio_menu_music (MainMenuMusic) |
bool | Play music in main menu? Default: true |
Diagnostic | ||
diag_trace_globals | bool | Log variable updates to RoR.log? Default:true |
diag_debug_envmap (EnvMapDebug ) |
bool | Debug environment map? default:false |
diag_collisions (Debug Collisions) |
bool | Default: false |
diag_truck_mass (Debug Truck Mass) |
bool | Default: false |
diag_envmap (EnvMapDebug ) |
bool | Default: false |
diag_videocameras (VideoCameraDebug) |
bool | Default: false |
diag_rig_log_node_import (RigImporter_Debug ._TraverseAndLogAllNodes) |
bool | Default: false |
diag_rig_log_node_stats (RigImporter_PrintNodeStatsToLog) |
bool | Default: false |
diag_rig_log_messages (RigImporter_PrintMessagesToLog) |
bool | Default: false |
diag_extra_resource_dir (resourceIncludePath) |
string | Extra media directory, evaluated each time an actor is spawned. Command line option: "-includepath". Empty by default. |
More to come!