Editing .cfg

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.

Latest revision Your text
Line 1: Line 1:
A '''CFG''', or '''configuration file''', is a .cfg document that allows the player to group a list of [[command|commands]], or change numerous [[cvar|cvars]] simultaneously. [[the game|The game]] automatically saves your settings to a config file which is automatically loaded when the game starts.
A '''CFG''', or '''configuration file''', is a .cfg document that allows the player to group a list of [[command|commands]], or change numerous [[cvar|cvars]] simultaneously. [[the game|The game]] automatically saves your settings to a config file which is automatically loaded when the game starts


== Format ==
== Format ==
A .cfg file is a regular text file, usually renamed to have the extension ".cfg", although this is not required. The text file is then modified and filled with content, like so
Generically, a .cfg file is a regular text file, renamed to have the extension ".cfg", however, this is not required. The text file is then modified and filled with content, like so


{| class="wikitable"
{| class="wikitable"
Line 16: Line 16:
{| class="wikitable"
{| class="wikitable"
|-
|-
| exec [cfg name (no '.cfg' is required)]
| exec [cfg name (no '.cfg' is required]
|}
|}


Line 25: Line 25:
* 'default.cfg' and 'mpdefault.cfg' are used in [[JKA]] to set the [[bind|binds]] for the game.
* 'default.cfg' and 'mpdefault.cfg' are used in [[JKA]] to set the [[bind|binds]] for the game.
* In JKA, 'JASP.cfg' and 'JAMP.cfg' are created when the respective game is played, and they store the session's information there.
* In JKA, 'JASP.cfg' and 'JAMP.cfg' are created when the respective game is played, and they store the session's information there.
* Any cvar changed using [[Cvar|seta]] gets saved to .cfg files.
* The player can use [[Cvar|seta]] to modify cvars. This makes the modification saved to any written .cfg files.


== Related Commands ==
== Related Commands ==
* The [[write]] command writes a .cfg file
* The [[write]] command writes a .cfg file
* The [[exec]] command (mentioned above) executes a given .cfg file
* The [[exec]] command (mentioned above) executes a desired .cfg file


[[category:File Types]]
[[category:File Types]]
[[category:Needs Expansion]]
Please note that all contributions to Jedi Knight Wiki | JKHub are considered to be released under the Public Domain (see JKHub:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

To edit this page, please answer the question that appears below (more info):

Cancel Editing help (opens in new window)