Cvarlist: Difference between revisions
Jump to navigation
Jump to search

Example:For instance,
Bug:All (or most) console variables will have its description cut off if it is longer than ~128 characters. However, this is not an issue if the
m (more text) |
No edit summary |
||
(19 intermediate revisions by 5 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{LanguageBar}} | ||
{{ | {{this is a|console command|name=cvarlist|engine=GoldSrc|engine1=Source}} | ||
This console command generates a list of all console commands for the game it is run from. Parameters allow the generation of a partial list and saving the list to a file. | |||
Not all games have this command, however, or even if, it might be non-functional. | |||
== Syntax == | |||
{{gldsrc|2}}: | |||
<pre> | |||
cvarlist : List all cvars | |||
cvarlist ? : Shows this help | |||
cvarlist <prefix> : List cvars starting with 'prefix' | |||
cvarlist log <prefix> : Logs cvars to file "cvarlist.txt" in the gamedir | |||
</pre> | |||
{{src|2}}: | |||
<pre> | |||
cvarlist | |||
cvarlist <prefix> | |||
cvarlist <prefix> log <filename> | |||
</pre> | |||
{{example|For instance, {{src}} <code>cvarlist ai log ai_commands.txt</code> will display a list of all console commands beginning with "ai", and will record that list to "ai_commands.txt" in the game's root directory.}} | |||
{{Bug|since=src04|fixed=src13-except-l4d|hidetested=1|All (or most) console variables will have its description cut off if it is longer than ~128 characters. However, this is not an issue if the <code>help</code> command was used instead. This issue affects most Source 1 games, but was fixed in some games such as {{css|1}}, and in all {{source2|1}} games such as {{cs2|1}}. | |||
From {{postal3|2}} - console.log: | |||
{{codeblock|1=cl_clock_correction_adjustment_max_amount : 200 : , "cheat" : Sets the maximum number of milliseconds per second it is allowed to correct the client clock. It will only correct this amount}} | |||
From {{csgo|2}} - using cvarlist log command: | |||
{{codeblock|1="cl_clock_correction_adjustment_max_amount","200 ",,,,"CHEAT",,,,,,,,,,,,,,,,,"Sets the maximum number of milliseconds per second it is allowed to correct the client clock. It will only correct this amount "}} | |||
From {{css|2}} - console.log: | |||
{{codeblock|1=cl_clock_correction_adjustment_max_amount : 200 : , "cheat" : Sets the maximum number of milliseconds per second it is allowed to correct the client clock. | |||
It will only correct this amount if the difference between the client and server clock is equal to or larger than cl_clock_correction_adjustment_max_offset.}} | |||
}} | |||
== See also == | |||
*[[Developer console]] | |||
*[[Console Command List]] | |||
**[[:Category:Lists of console commands and variables]] - List of console commands and variables for specific games. |
Latest revision as of 12:35, 11 May 2025


cvarlist
is a console command available in all GoldSrc and
Source games.
This console command generates a list of all console commands for the game it is run from. Parameters allow the generation of a partial list and saving the list to a file.
Not all games have this command, however, or even if, it might be non-functional.
Syntax
cvarlist : List all cvars cvarlist ? : Shows this help cvarlist <prefix> : List cvars starting with 'prefix' cvarlist log <prefix> : Logs cvars to file "cvarlist.txt" in the gamedir
cvarlist cvarlist <prefix> cvarlist <prefix> log <filename>


cvarlist ai log ai_commands.txt
will display a list of all console commands beginning with "ai", and will record that list to "ai_commands.txt" in the game's root directory.

help
command was used instead. This issue affects most Source 1 games, but was fixed in some games such as Counter-Strike: Source, and in all Source 2 games such as Counter-Strike 2.
From Postal III - console.log:
From Counter-Strike: Global Offensive - using cvarlist log command:
From Counter-Strike: Source - console.log:
See also
- Developer console
- Console Command List
- Category:Lists of console commands and variables - List of console commands and variables for specific games.
Categories:
- GoldSrc base console commands
- Source base console commands
- Pages with Source 2004 bugs
- Pages with Source 2006 bugs
- Pages with Source 2007 bugs
- Pages with Source 2009 bugs
- Pages with Left 4 Dead engine branch bugs
- Pages with Alien Swarm engine branch bugs
- Pages with Portal 2 engine branch bugs
- Pages with CS:GO engine branch bugs