This article's documentation is for the "GoldSrc" engine. Click here for more information.
This article's documentation is for anything that uses the Source engine. Click here for more information.

Cvarlist: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (more text)
No edit summary
 
(19 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{{Console command}}
{{LanguageBar}}
{{Entity|type=convar|cvarlist}}{{confirm}} 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.
{{this is a|console command|name=cvarlist|engine=GoldSrc|engine1=Source}}  


For instance:
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.
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).
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

English (en)Translate (Translate)

cvarlist is a console command available in all GoldSrc GoldSrc and Source 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

GoldSrc GoldSrc:

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

Source Source:

cvarlist
cvarlist <prefix>
cvarlist <prefix> log <filename>
PlacementTip.pngExample:For instance, Source 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.


Icon-Bug.pngBug: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 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 Postal III - console.log:

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 Counter-Strike: Global Offensive Counter-Strike: Global Offensive - using cvarlist log command:

"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 Counter-Strike: Source Counter-Strike: Source - console.log:

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