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

cvarlist

From Valve Developer Community
Jump to: navigation, search

cvarlist is a console variable available in all Source Source games.[confirm]

English (en)
Edit

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.

For instance:

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 will have this however, or they might be non-functional.

Icon-Bug.pngBug:All (or most) console variables with description longer than ~128 characters will get it's description cut-off when generated. This issues affected most Source 1 games, but was fixed in some games such as Counter-Strike: Source, and in all Source 2 games (example: Counter-Strike 2)

See the issue below:

From 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 - 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 "

See the example from the game that was not affected:

From 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.
However, the ~128 character limit is not affected if the help command was used instead.

See also