Valve.rc: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (lang)
(Added back button.)
Line 1: Line 1:
{{Lang|Valve.rc}}
{{Lang|Valve.rc}}
Valve.rc is a file that lies inside the game / mod's cfg folder. It is a file that automatically executes [[convar]]s on game launch, identical to that of the [[autoexec]].cfg.
{{back|CFG}}
'''Valve.rc''' is a file that lies inside the game / mod's <code><game>/cfg/</code> folder. It is a file that automatically executes [[convar]]s on game launch, like [[autoexec]].cfg.


To create one create a text document and save it with a .rc extension inside your cfg folder. Simply place your convars inside the file with each convar on a separate line. Your valve.rc should contain these convars if you're making one:
To create one, create a text document and save it with a .rc extension inside your cfg folder. Simply place your convars inside the file with each convar on a separate line. Your valve.rc should contain these convars if you're making one:
<pre>
{{pre|
// load the base configuration
// load the base configuration
//exec default.cfg
//exec default.cfg


// Setup custom controller
// Setup custom controller
exec joystick.cfg
exec joystick.cfg


// run a user script file if present
// run a user script file if present
exec autoexec.cfg
exec autoexec.cfg


//
//
// stuff command line statements
// stuff command line statements
//
//
stuffcmds
stuffcmds


// display the startup level. Remove this if you're using background images instead of maps
// display the startup level. Remove this if you're using background images instead of maps
startupmenu
startupmenu
</pre>
}}


[[Category:Glossary]]
[[Category:Glossary]]

Revision as of 20:27, 19 December 2021

English (en)Русский (ru)Translate (Translate)
CFG

Valve.rc is a file that lies inside the game / mod's <game>/cfg/ folder. It is a file that automatically executes convars on game launch, like autoexec.cfg.

To create one, create a text document and save it with a .rc extension inside your cfg folder. Simply place your convars inside the file with each convar on a separate line. Your valve.rc should contain these convars if you're making one:

// load the base configuration
//exec default.cfg

// Setup custom controller
exec joystick.cfg

// run a user script file if present
exec autoexec.cfg

//
// stuff command line statements
//
stuffcmds

// display the startup level. Remove this if you're using background images instead of maps
startupmenu