Difference between revisions of "Plugins"
m (whoops) |
m (clarify plugin location) |
||
(3 intermediate revisions by the same user not shown) | |||
Line 3: | Line 3: | ||
==How to install plugins== | ==How to install plugins== | ||
− | Plugins are very easy to install and use. To install, first get yourself the <code>.dll</code> (Windows) or <code>.so</code> (Linux) file of the plugin and place it in <code>...\steamapps\common\Portal 2\portal2</code>. | + | Plugins are very easy to install and use. To install, first get yourself the <code>.dll</code> (Windows) or <code>.so</code> (Linux) file of the plugin and place it in either <code>...\steamapps\common\Portal 2</code> or <code>...\steamapps\common\Portal 2\portal2</code>. |
===Windows Firewall Issues=== | ===Windows Firewall Issues=== | ||
Line 14: | Line 14: | ||
====Notes==== | ====Notes==== | ||
− | *Ensure that the plugin is installed in your actual game location. Be sure to check this by browsing local files through the Steam properties of the game. | + | *Ensure that the plugin is installed in your actual game location. Be sure to check this by browsing local files through the Steam properties of the game. The plugin file must be in one of the <code>Portal 2</code> or <code>Portal 2/portal2</code> folders. If it is in both, the one in <code>Portal 2/portal2</code> will be loaded. |
− | *If you use the plugin often, it is recommended you add the <code>plugin_load < | + | *If you use the plugin often, it is recommended you add the <code>plugin_load <name></code> line to your [[Autoexec]] so that you will not need to reload the plugin every time you launch the game. |
===Troubleshooting=== | ===Troubleshooting=== | ||
− | *On fresh Windows installs, there can often be dependencies that aren't installed. If all steps have been followed, and | + | *On fresh Windows installs, there can often be dependencies that aren't installed. If all steps have been followed, and the plugin still isn't loading, check your device drivers, and install other applications that are common on Windows machines (can include other games). Try installing these dependencies: |
*[https://www.microsoft.com/net/download/dotnet-framework-runtime DotNet Framework Runtime] | *[https://www.microsoft.com/net/download/dotnet-framework-runtime DotNet Framework Runtime] | ||
*[https://aka.ms/vs/15/release/vc_redist.x86.exe VC_redist] | *[https://aka.ms/vs/15/release/vc_redist.x86.exe VC_redist] |
Latest revision as of 03:03, 13 April 2022
Plugins are files that can be attached to Portal 2 in order to add console commands and extra functionality.
Contents
How to install plugins
Plugins are very easy to install and use. To install, first get yourself the .dll
(Windows) or .so
(Linux) file of the plugin and place it in either ...\steamapps\common\Portal 2
or ...\steamapps\common\Portal 2\portal2
.
Windows Firewall Issues
It's important to note that Windows often doesn't trust downloaded .dll files. There is a chance that downloading plugins will result in Windows Defender or other anti-virus programs automatically deleting the files. If this happens, you will need to manually add exceptions for the file in any directory you keep it in (more than likely the downloads folder and your portal2 folder).
Loading Plugins in Portal 2
Portal 2 can load plugins through the console command plugin_load <name>
.
Notes
- Ensure that the plugin is installed in your actual game location. Be sure to check this by browsing local files through the Steam properties of the game. The plugin file must be in one of the
Portal 2
orPortal 2/portal2
folders. If it is in both, the one inPortal 2/portal2
will be loaded. - If you use the plugin often, it is recommended you add the
plugin_load <name>
line to your Autoexec so that you will not need to reload the plugin every time you launch the game.
Troubleshooting
- On fresh Windows installs, there can often be dependencies that aren't installed. If all steps have been followed, and the plugin still isn't loading, check your device drivers, and install other applications that are common on Windows machines (can include other games). Try installing these dependencies: