Settings: Difference between revisions

From OpenMW Wiki
Jump to navigation Jump to search
m (Fix typo.)
(Changed link to reflect new RTD structure.)
 
(12 intermediate revisions by 2 users not shown)
Line 1: Line 1:
This page documents OpenMW configuration settings in the settings.cfg file.   
Settings information can now be found in the OpenMW source documentation at:
 
http://openmw.readthedocs.io/en/master/reference/modding/settings/index.html
 
<!--
This page documents OpenMW configuration settings in the settings.cfg file.  Caution should be exercised when editing the settings.cfg file directly, since invalid values may cause poor performance, unexpected behavior, or even crashes. 
 
For the most current list of available settings in the development version of OpenMW, please see the [https://github.com/OpenMW/openmw/blob/master/files/settings-default.cfg settings-default.cfg] file at GitHub.
 
There's also older documentation available on [[Config file tweaks]].
 
==Location==
 
The effective settings are supposed to be loaded from a sequence of files providing successive overrides of the values.
 
The OpenMW launcher looks for default settings in an operating system dependent path:
 
* Linux /usr/local/etc/openmw/settings-default.cfg
* Windows: ?
* Mac: ?
 
Then the settings-default.cfg in the current directory is loaded if one exists.
 
Then the user's personal settings.cfg file is loaded from an operating system dependent path:
 
* Linux: $HOME/.config/openmw
* Windows: C:\Users\username\Documents\my games\openmw (harddrive, username and language may vary)
* Mac: $HOME/Library/Preferences/openmw
 
Some of these [[Paths]] are documented elsewhere.  Cleanup required?


==Format==
==Format==
Line 5: Line 34:
The settings.cfg file uses a variation of the [https://en.wikipedia.org/wiki/INI_file Windows INI file format].  The OpenMW variation uses hash marks (#) as the comment character instead of semicolons.
The settings.cfg file uses a variation of the [https://en.wikipedia.org/wiki/INI_file Windows INI file format].  The OpenMW variation uses hash marks (#) as the comment character instead of semicolons.


==Location==
Settings are divided into sections of related settings that begin with a declaration composed of the section name inside square brackets.  Settings follow one per line, with the setting name, an equals sign (=), and the value.  An example ''Video'' section looks like this:
 
  [Video]
  # Set the resolution to 800x600
  resolution x = 800
  resolution y = 600
  # Run in full screen mode
  fullscreen = true
  # Limit framerate to 60.0 frames per second.
  framerate = 60.0


The location of the settings.cfg file operating system dependentSee [[Paths]] for more information.
Settings value types are boolean, integer, floating point and string.  Comments are not allowed on the line following a setting value assignment.  The sections and the settings may be in any order.  Duplicate setting assignments are not permitted.  While multiple declarations of the same section are permitted, this configuration is not recommended, and future code might reorder the settings or disallow this featureSetting assignments are allowed to follow the section declaration on the same line, but this configuration is not recommended.


==Sections==
==Sections==
Descriptions of individual settings are divided into separate pages according to the section in which they appear:


* [[Camera Settings Section]] - Clipping, view distance, culling, etc.
* [[Camera Settings Section]] - Clipping, view distance, culling, etc.
Line 23: Line 63:
* [[Video Settings Section]] - Resolution, screens, frame rates, etc.
* [[Video Settings Section]] - Resolution, screens, frame rates, etc.
* [[Water Settings Section]] - Water shader configuration.
* [[Water Settings Section]] - Water shader configuration.
* [[Objects Settings Section]] - Object shader configuration.
* [[Terrain Settings Section]] - Terrain shader configuration.
* [[Shadows Settings Section]] - Shadow shader configuration.
* [[Windows Settings Section]] - Size and location of GUI windows.
* [[Windows Settings Section]] - Size and location of GUI windows.
-->

Latest revision as of 05:05, 17 February 2017

Settings information can now be found in the OpenMW source documentation at:

http://openmw.readthedocs.io/en/master/reference/modding/settings/index.html