Navigation menu

WoW:Console variables: Difference between revisions

Jump to navigation Jump to search
 
(2 intermediate revisions by 2 users not shown)
Line 2: Line 2:
In the World of Warcraft game client you can access many of its configuration options through 'console variables' or 'CVars'. These variables affect many aspects of the game, including the graphics engine, sound system, and user interface.
In the World of Warcraft game client you can access many of its configuration options through 'console variables' or 'CVars'. These variables affect many aspects of the game, including the graphics engine, sound system, and user interface.


== Details ==
The term 'CVar' predates WoW and originated with id Software's game Quake (the lead programmer of vanilla WoW was John Cash, a former programmer at idSoftware), and is meant to differentiate base game script ''variables'' from ''commands''. 'CVars' should not be confused with the game's script variables, called ''vars''. It's a bit of a misnomer because the base game scripting language is used for many things, and happens to be accessible through the game console. Here are several common ways accessing these vars and commands:
The term 'CVar' predates WoW and originated with id Software's game Quake (the lead programmer of vanilla WoW was John Cash, a former programmer at idSoftware), and is meant to differentiate base game script ''variables'' from ''commands''. 'CVars' should not be confused with the game's script variables, called ''vars''. It's a bit of a misnomer because the base game scripting language is used for many things, and happens to be accessible through the game console. Here are several common ways accessing these vars and commands:
* .wtf files - [[Config.wtf]], in 'WTF', in WoW folder, stores game settings, like 'gxResolution', and 'locale' for the language.
* .wtf files - [[Config.wtf]], in 'WTF', in WoW folder, stores game settings, like 'gxResolution', and 'locale' for the language.
Line 7: Line 8:
* 'wow.exe -Console' - allows you to open ''"the console"'' in-game, opening and closing by using <code>~</code> key
* 'wow.exe -Console' - allows you to open ''"the console"'' in-game, opening and closing by using <code>~</code> key
* Configuration UI - WoW's normal in-game configuration interface. Hit Esc to get to it.
* Configuration UI - WoW's normal in-game configuration interface. Hit Esc to get to it.
* [[API SetCVar|SetCVar]]() - [[WoW API|WoW global API]] for changing settings using [[Macros]] or [[AddOns]]
* [[API SetCVar|SetCVar]]() - [[WoW API|WoW global API]] for changing settings using [[Macros]] or [[AddOn]]s


:{{icon-exclamation}} Warning: changing CVars directly can cause issues. Like changing 'cameraDistanceMax' in Config.wtf may render the "Max Camera Distance" slider useless. In some cases you may have to quit the game, and manually remove the CVar line from the .wtf file. Any changes done though CVars are generally the same as setting them through the game Configuration UI and will be saved.
:{{icon-exclamation}} Warning: changing CVars directly can cause issues. Like changing 'cameraDistanceMax' in Config.wtf may render the "Max Camera Distance" slider useless. In some cases you may have to quit the game, and manually remove the CVar line from the .wtf file. Any changes done though CVars are generally the same as setting them through the game Configuration UI and will be saved.