.cfg: Difference between revisions

From Jedi Knight Wiki | JKHub
(Created page with "The .cfg file type which stands for Context-free grammar is one of the files used to get the game to know when to use certain codes or command to make things work. Most player...")
 
(Pretty much completely re-written)
Line 1: Line 1:
The .cfg file type which stands for Context-free grammar is one of the files used to get the game to know when to use certain codes or command to make things work.
A CFG file is a plain text file containing a list of [[Cvar|cvars]] and/or [[Command|commands]], which are all [[exec|executed]] when the .cfg file run. They are commonly used to store [[Setting|game settings]], or execute multiple commands at once. CFG can stand for Context-free grammar or Configuration. The game automatically saves your settings to a config file which is automatically loaded when the game starts
 
==Syntax==
Simply list multiple commands and/or cvars on separate lines, or separated by semicolons. They can be created in any plain text editor simply by saving a document with the file extension ''.cfg'' instead of ''.txt''.
 
==Related Commands==
* [[exec]] [config file path] - executes the named file within the [[Base Folder|base folder]] (or current [[mod]] folder).
* [[write]] [file name] - saves your current settings to a new cfg file.
 
Most players customize there own .cfg files so they don't have to while in game.
Most players customize there own .cfg files so they don't have to while in game.

Revision as of 22:33, 2 March 2013

A CFG file is a plain text file containing a list of cvars and/or commands, which are all executed when the .cfg file run. They are commonly used to store game settings, or execute multiple commands at once. CFG can stand for Context-free grammar or Configuration. The game automatically saves your settings to a config file which is automatically loaded when the game starts

Syntax

Simply list multiple commands and/or cvars on separate lines, or separated by semicolons. They can be created in any plain text editor simply by saving a document with the file extension .cfg instead of .txt.

Related Commands

  • exec [config file path] - executes the named file within the base folder (or current mod folder).
  • write [file name] - saves your current settings to a new cfg file.

Most players customize there own .cfg files so they don't have to while in game.