Difference between revisions of "Autoexec"
m |
(Basic-ify Autoexec page.) |
||
Line 4: | Line 4: | ||
=Overview= | =Overview= | ||
− | + | The [https://developer.valvesoftware.com/wiki/Autoexec autoexec] is a configuration file that stores settings. [[.cfg Files]] can be executed by Portal 2, and the autoexec is a configuration file that is automatically executed upon launch of your game (hence the name). It is most commonly used to alter settings that are reverted after every game close. | |
− | |||
− | The [https://developer.valvesoftware.com/wiki/Autoexec autoexec] is a configuration file that stores settings. [[.cfg Files]] can be executed by Portal 2, and the autoexec is a configuration file that is executed upon launch of your game. It is most commonly used to alter settings that are reverted after every game close. | ||
For more information on .cfg files, and configuration files check out the page on [[.cfg Files]] and [[Alias]]es | For more information on .cfg files, and configuration files check out the page on [[.cfg Files]] and [[Alias]]es | ||
Line 12: | Line 10: | ||
=Where is my autoexec?= | =Where is my autoexec?= | ||
− | The autoexec is located at Portal 2's installation folder (usually <code>C:\Program Files (x86)\Steam\steamapps\common\Portal 2\portal2\cfg</code>), and is called <code>autoexec.cfg</code>. There is a chance you don't have this file by default, creating it should be fine, just ensure that you have the right file type. [https://www.softwarert.com/show-change-file-extensions-windows-10/ How to show/change file names on Windows 10]. | + | The autoexec is located at Portal 2's installation folder (usually <code>C:\Program Files (x86)\Steam\steamapps\common\Portal 2\portal2\cfg</code>), and is called <code>autoexec.cfg</code>.There is a chance you don't have this file by default, creating it should be fine, just ensure that you have the right file type. [https://www.softwarert.com/show-change-file-extensions-windows-10/ How to show/change file names on Windows 10]. |
− | + | =What should be in my autoexec?= | |
You can put anything you want in your autoexec, a good autoexec should save you time and keep you from having to type any commands into Portal 2 when you launch the game. | You can put anything you want in your autoexec, a good autoexec should save you time and keep you from having to type any commands into Portal 2 when you launch the game. | ||
− | *[[SAR]] commands are not kept between sessions, as well as [[SAR]] loading itself. | + | *Many [[SAR]] commands are not kept between sessions, as well as [[SAR]] loading itself. |
*[[Alias]]es are not kept between sessions. | *[[Alias]]es are not kept between sessions. | ||
*cvars like <code>cl_showpos</code> and <code>r_portal_use_pvs_optimization</code> are reverted to 0 after restarting. | *cvars like <code>cl_showpos</code> and <code>r_portal_use_pvs_optimization</code> are reverted to 0 after restarting. | ||
− | == | + | ==Just give me a pre-filled autoexec, please!== |
− | + | Check out [https://s.portal2.sr/srconfigs srconfigs]! srconfigs is a set of config files made for Portal 2 speedrunning, you can check out more information about it on the [https://github.com/p2sr/srconfigs?tab=readme-ov-file#srconfigs srconfigs README]. | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | [https://s.portal2.sr/srconfigs | ||
− | |||
− | |||
− | |||
− | [https:// | ||
− | |||
− |
Latest revision as of 14:49, 30 October 2024
Contents
Overview
The autoexec is a configuration file that stores settings. .cfg Files can be executed by Portal 2, and the autoexec is a configuration file that is automatically executed upon launch of your game (hence the name). It is most commonly used to alter settings that are reverted after every game close.
For more information on .cfg files, and configuration files check out the page on .cfg Files and Aliases
Where is my autoexec?
The autoexec is located at Portal 2's installation folder (usually C:\Program Files (x86)\Steam\steamapps\common\Portal 2\portal2\cfg
), and is called autoexec.cfg
.There is a chance you don't have this file by default, creating it should be fine, just ensure that you have the right file type. How to show/change file names on Windows 10.
What should be in my autoexec?
You can put anything you want in your autoexec, a good autoexec should save you time and keep you from having to type any commands into Portal 2 when you launch the game.
- Many SAR commands are not kept between sessions, as well as SAR loading itself.
- Aliases are not kept between sessions.
- cvars like
cl_showpos
andr_portal_use_pvs_optimization
are reverted to 0 after restarting.
Just give me a pre-filled autoexec, please!
Check out srconfigs! srconfigs is a set of config files made for Portal 2 speedrunning, you can check out more information about it on the srconfigs README.