CommonLibSSE-NG Plugin Template
Template for building SKSE plugins using the NG branch of CommonLibVR.
Requirements
- Any terminal of your choice (e.g., PowerShell)
- Visual Studio Community 2022
- Desktop development with C++
- CMake
- Edit the
PATHenvironment variable and add the cmake.exe install path as a new value - Instructions for finding and editing the
PATHenvironment variable can be found here
- Edit the
- Git
- Edit the
PATHenvironment variable and add the Git.exe install path as a new value
- Edit the
- Vcpkg
- Install vcpkg using the directions in vcpkg's Quick Start Guide
- After install, add a new environment variable named
VCPKG_ROOTwith the value as the path to the folder containing vcpkg
User Requirements
- Address Library for SKSE
- Needed for SSE/AE
- VR Address Library for SKSEVR
- Needed for VR
Register Visual Studio as a Generator
- Open
x64 Native Tools Command Prompt - Run
cmake - Close the cmd window
Clone and Build
Open terminal (e.g., PowerShell) and run the following commands:
git clone https://github.com/ponzipyramid/CommonLibSSE-NG-Template.git --recursive
cd CommonLibSSE-NG-Template
.\BuildRelease.bat SE/AE
.\BuildRelease.bat VR
CMAKE Options (optional)
If you want an example CMakeUserPreset to start off with you can copy the CMakeUserPresets.json.template -> CMakeUserPresets.json
AUTO_PLUGIN_DEPLOYMENT
- This option is default
"OFF" - Make sure
"AUTO_PLUGIN_DEPLOYMENT"is set to"ON"inCMakeUserPresets.json - Change the
"SamplePluginOutputDir"value to match your desired outputs, if you want multiple folders you can separate them by;is shown in the template example
When using custom preset you can call BuildRelease.bat with an parameter to specify which preset to configure eg:
.\BuildRelease.bat ALL-WITH-AUTO-DEPLOYMENT
When switching between different presets you might need to remove the build folder
Install
Install it with the Modhold app, or add the zip to MO2 as a new mod and tick it. SKSE plugins need SKSE64 and, for most, Address Library for SKSE Plugins.
Licence
This mod is shared here under its authors' MIT licence. Its full text:
MIT License
Copyright (c) [year] [fullname]
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.





















































