A high performance and stability patch for SexLab for Skyrim SE.
- python
- xmake
- Add this to your
PATH
- Add this to your
- Spriggit CLI
- Requires Microsoft .NET SDK
- Visual Studio Community 2022
- Desktop development with C++
- On VS Community 2026, use this command first:
xmake f --cxflags="/Wv:18"
- Papyrus Sources:
git clone https://github.com/Scrabx3/SexLabpp.git
cd SexLabpp
git submodule update --init --recursiveBefore building you must provide the following options: spriggit_path, papyrus_path, papyrus_include, and papyrus_gamesource. These can be provided using either:
-
Environment variables (optionally loaded from
.env)- See
.env.examplefor variables/descriptions. - Copy to
.envand edit the values. - Run
xmake fafter making changes to load the new values. - Alternate files can be loaded with
xmake f --dotenv=.env.other
- See
-
Command-line configure
- Set options when configuring with
xmake f:
- Set options when configuring with
xmake f -m release \
--spriggit_path="C:\path\to\Spriggit.CLI" \
--papyrus_path="C:\path\to\Papyrus Compiler" \
--papyrus_include="C:\path\to\ModOrganizer\mods" \
--papyrus_gamesource="C:\Program Files (x86)\Steam\steamapps\common\Skyrim Special Edition\Data"# Everything
xmake
# SexLabUtil.dll
xmake build SexLabUtil
# Papyrus Scripts
xmake build papyrus
# SexLab.exm
xmake build SexLab.esmIf install_path and auto_install are configured, files will be automatically coppied to install_path after a successful build. Otherwise install can be run manually using:
xmake install -o INSTALLDIRAfter making changes to SexLab.esm, serialize back to yaml using:
# From .\dist\SexLab.esm
xmake serialize
# From install_path
xmake serialize -iGenerate a papyrus project file for IDE integration using:
xmake papyrus.project papyrusThe native code is licensed under GPL-3.0-or-later with the Modding Exception and GPL-3.0 Linking Exception (with Corresponding Source), matching the linked CommonLibSSE-NG dependency. These exceptions cover interoperation with Skyrim and linking with modding libraries such as SKSE and Windows; they also apply to this project's native code. See NOTICE for attribution and retained license notices, including the prior Apache 2.0 license.
Portions derived from the original SexLab (including Papyrus scripts and various assets) retain the Permissions terms in Readme - SexLab Framework.txt. Third-party code retains its own license notices.
Binary distributions must provide Corresponding Source as required by the GPL and the linking exception, including the exact CommonLibSSE-NG revision and the source for the parts of Modding Libraries used.