Game settings.tbl

From FreeSpace Wiki
Revision as of 04:19, 27 October 2015 by Yarn (talk | contribs) (added documentation for $Default fiction viewer UI)
Jump to: navigation, search
This feature requires FreeSpace Open

Revision information.....

FSO Git Commit: Date: 2015-10-06 SHA: 3708f101b4
Note: Please update the revision information when the page is updated. If your edit had nothing to do with new code entries then please do not edit the revision information


The game_settings.tbl, also known as mod.tbl, defines options that can be changed globally.


This table is one of the Modular Tables and can be extended with xxx-mod.tbm

List of Tables

#CAMPAIGN SETTINGS

Optional. This group contains various Campaign related settings and overrides.


$Default Campaign File Name:

Defines which campaign will be selected by default for new pilots. A file extension is not needed and, if present, is removed by the code.

  • Syntax: String


#Ignored Campaign File Names

Optional. Defines which campaigns, if present, will not appear in the Campaign Room. Only single-player campaigns can be ignored. File extensions are required.

FS2 Open, 3.7.2: As of 3.7.1, file extensions are not required and, if present, are removed by the code.

$Campaign File Name:

File name of the campaign to ignore. Multiple entries may exist.

  • Syntax: String


$Red-alert applies to delayed ships:

Controls whether red-alert saved statistics (hitpoints, weapons, subsystem strengths) will be restored for ships that are not present at mission start.

  • Syntax: Boolean
  • Default Value: NO


#HUD SETTINGS

Optional. This group contains various HUD behavior settings and overrides


$Directive Wait Time:

  • Defines how long the game will wait before displaying a directive.
  • Syntax: Integer
  • Values: Greater than or equal to 0 ms


$Cutscene camera displays HUD:

Show the HUD when the cutscene camera is enabled.

  • Syntax: Boolean
  • Default Value: NO

In earlier versions of the code, this option was controlled by $Cutscene camera disables HUD: and had a default of YES.


$Full color head animations:

Enables full-color head ANIs. Normal head ANIs will appear in gray.

  • Syntax: Boolean
  • Default Value: NO

In earlier versions of the code, this option was controlled by $Color head animations with hud colors: and had a default of YES.


#SEXP SETTINGS

Optional. This group contains SEXP settings and overrides.


$Loop SEXPs Then Arguments:

Flips how when-argument settings loop. See: SEXP Argument changes via mod.tbl

  • Syntax: Boolean
  • Default Value: NO


$Use Alternate Chaining Behavior:

When set, this makes the event chaining behavior act as people expected it to be in Mantis #82.

  • Syntax: Boolean
  • Default Value: NO


#GRAPHICS SETTINGS

Optional. This group contains settings related to graphics.

$Enable External Shaders:

Enables the use of external shader files. By default, the engine will use the built-in shaders.

  • Syntax: Boolean
  • Default Value: NO


$Default Detail Level:

FS2 Open, 3.6.16:

Determines which graphics detail level preset (low, medium, high, very high) acts as the default for new pilots.

  • Syntax: Integer (0-3)
  • Default Value: 3 (very high)

$Briefing Window FOV:

FS2 Open, 3.7.2:

Determines the FOV in the briefing Icon window. Retail default for this is 0.29375, previous versions of FSO used a value of 0.5.

  • Syntax: Float (0.0 to 1.0)
  • Default Value: 0.29375

$Generic Pain Flash Factor:

FS2 Open, 3.7.4:

Determines the intensity of the pain red flash when the player is hit.

  • Syntax: Float
  • Default Value: 1.0

$Shield Pain Flash Factor:

FS2 Open, 3.7.4:

Determines the intensity of a pain flash when the player's shields are hit. Color will match the current ships shield color defined in ships.tbl. A value of 0 will give retail behavior (no shield effect). Positive values will cause the effect to start at full intensity at full shields and go to next to no intensity at zero shields. Negative values will cause no effect at full shields and full effect at no shields. Values should be kept between -1.0 and 1.0 for good pilot visibility.

  • Syntax: Float
  • Default Value: 0.0

#SOUND SETTINGS

Optional. This group contains sound-related settings

$Default Sound Volume:

FS2 Open, 3.7.2:
  • Defines the default sound fx volume for new pilots.
  • Syntax: Float, between 0.0 and 1.0
  • Default Value: 1.0

$Default Music Volume:

FS2 Open, 3.7.2:
  • Defines the default music volume for new pilots.
  • Syntax: Float, between 0.0 and 1.0
  • Default Value: 0.5

$Default Voice Volume:

FS2 Open, 3.7.2:
  • Defines the default voice volume for new pilots.
  • Syntax: Float, between 0.0 and 1.0
  • Default Value: 0.7


#FRED SETTINGS

Optional. This group contains settings for FRED.

$Disable Hard Coded Message Head Ani Files:

FS2 Open, 3.7.2:

If set, FRED will not fill the head ani selection in the Event Editor with the retail head ani filenames.

  • Syntax: Boolean
  • Default Value: NO

#OTHER SETTINGS

Optional. This group contains miscellaneous settings.


$Fixed Turret Collisions:

Makes all hits to a turret's barrels count as hits to the turret subsystem. By default, this does not happen unless the point of impact falls inside the model radius of the turret's base.

  • Syntax: Boolean
  • Default Value: NO

$Damage Impacted Subsystem First:

If set, a hit to a physical subsystem will always deal damage to that subsystem first, even if another subsystem is closer to the point of impact. By default, the closest subsystem will always receive damage first.

  • Syntax: Boolean
  • Default Value: NO

$Default ship select effect:

FS2 Open, 3.6.16:
  • This specifies which effect to use for ship select animations when no .ani can be found, or the -ship_choice_3d commandline flag is active. This will default to the FS2 effect.
  • Possible options are "FS2", "FS1", and "off"

$Default weapon select effect:

FS2 Open, 3.6.16:
  • This specifies which effect to use for weapon select animations when no .ani can be found, or the -weapon_choice_3d commandline flag is active. This will default to the FS2 effect.
  • Possible options are "FS2", "FS1", and "off"

$Weapons inherit parent collision group:

FS2 Open, 3.6.16:
  • When set to true, Weapons fired by a ship will inherit their parents' collision group setting. Default is false.

$Flight controls follow eyepoint orientation:

FS2 Open, 3.7.2:
  • Specifies that if the player ship's eyepoint happens to rotate into a non-standard orientation, pitch and yaw axes should stay relative to the eyepoint orientation, not the ship. Note that this does not affect the pitch/yaw turning speed, which always remains relative to the ship. Default is false.

$Beams Use Damage Factors:

FS2 Open, 3.7.2:
  • Specifies that beam weapons will use the tabled damage factors for Armour, Shields and Subsystems. Default is false (i.e. all factors are treated as 1.0)

$Default fiction viewer UI:

FS2 Open, 3.7.4:
  • Specifies which fiction viewer layout to use in missions that don't specify one. Possible values are as follows:
    • "FS2": Standard layout. Requires (2_)fictionviewer and (2_)fictionviewer-m to be present in data\interface.
    • "WCS": Moves the "Accept" button to the lower-left corner of the screen. Requires (2_)fictionviewerb and (2_)fictionviewer-mb to be present in data\interface.
    • "auto": Selects "WCS" if the appropriate files are present; otherwise, selects "FS2". This is the default setting.

#END

Required. The last line of the table must be #END


Sample Entry

   #CAMPAIGN SETTINGS
   $Default Campaign File Name: NewCampaignFile
   
   #Ignored Campaign File Names
   $Campaign File Name: FreeSpace2.fc2
   
   #HUD SETTINGS
   $Directive Wait Time: 5000
   
   #SEXP SETTINGS
   $Loop SEXPs Then Arguments: True
   
   #OTHER SETTINGS
   $Self Praise Percentage: 75
   
   #END