A general-purpose multiplayer mod for Skyrim SE.
Explore Docs
·
Report Bug
·
Request Feature
·
Join Discord
You can find instructions on setting up the project locally below. To get a local copy up and running follow these simple example steps. You need ~4 GB RAM, ~22 GB on your hard drive and some free time.
These tools required regardless of your system:
- 64-bit NodeJS 12.x/14.x/16.x
- Yarn:
npm install --global yarn
- CMake 3.18.2 or higher
Before your start make sure that your system meets the conditions:
- Windows 7 or higher (Windows 10 is recommended)
- Visual Studio 2019
- .NET Framework SDK at 4.6.0 or higher (Visual Studio Installer -> .NET desktop development)
You can build and run server and unit-tests on Linux. As Skyrim has no native Linux version, client can only be built using MSVC. Client can be run with Proton (though it can be tricky to get Skyrim itself to work properly).
- Ubuntu (Some other distributions may also work, but we know that Alpine doesn't)
- Clang 12 (GCC is not supported):
sudo apt install clang-12
- Python 2 (not 3.x! It is needed to build ChakraCore. Don't worry, it won't conflict with Python 3):
sudo apt install python2
- Make sure that your NodeJS and CMake are fresh enough:
- You can use
nvm
or Nodesource's apt repositories to install fresh Node - The simpliest way to install fresh CMake is to download a
.tar.gz
from CMake download page, unpack it to your home directory and add it to path:echo 'export PATH="$HOME/apps/cmake-3.22.0-.../bin:$PATH"' >> ~/.bashrc
- You can use
-
Clone the repo, including submodules
git clone https://github.com/skyrim-multiplayer/skymp.git cd skymp git submodule init git submodule update
-
Do OS-specific steps (see below)
-
Make a build directory (used for project files, cache, artifacts, etc)
mkdir build
-
Generate project files with CMake (replace path with your actual Skyrim SE folder)
cd build cmake .. -DSKYRIM_DIR="C:/Program Files (x86)/Steam/steamapps/common/Skyrim Special Edition"
For users who don't have Skyrim SE installed:
cd build cmake ..
- Some tests would be skipped
- The server would require manual installation of Skyrim.esm and other master files
- Papyrus scripts that require Bethesda's compiler would not be compiled, prebuilts would be used
-
Build with CMake:
cmake --build . --config Debug
On Windows you also can open
build/skymp.sln
with Visual Studio, thenBuild -> Build Solution
.All build artifacts would be placed into
build/dist
.
-
For those users who want to build SP but not SkyMP there is
ONLY_SP
option:cmake .. -DONLY_SP=ON
On Linux, there might be some tricky dependency issues. To work around them,
we recommend you to use a wrapper script build.sh
. It will create a temporary
directory and add some aliases to PATH
.
-
Generate project files with CMake wrapper (replace path with your actual Skyrim SE folder)
./build.sh --configure -DCMAKE_BUILD_TYPE=Debug \ -DSKYRIM_DIR="$HOME/.steam/debian-installation/steamapps/common/Skyrim Special Edition"
For users who don't have Skyrim SE installed:
./build.sh --configure -DCMAKE_BUILD_TYPE=Debug
If you're building for a production machine, change build type to Release:
./build.sh --configure -DCMAKE_BUILD_TYPE=Release
-
Build with CMake wrapper:
cd build ../build.sh --build
Additional arguments after
--build
will be passed to CMake. E.g. you can specify the build target:cd build ../build.sh --build --target=unit # only build unit-tests and their dependencies # Will run cmake --build . --target=unit
-
Run tests:
ctest -C Debug --verbose
Some tests (ESPMTest) require Skyrim SE data files and will be skipped if you didn't specify
-DSKYRIM_DIR
.In order to avoid potential errors, make sure:
- You have installed it using Steam and it's up to date (currently last update was on Nov 20, 2019). See SteamDB for hashes and update history.
- You did not modify
Skyrim.esm
,Update.esm
,Dawnguard.esm
,HearthFires.esm
andDragonborn.esm
. (Ideally, you should have pure Vanilla version installed.)
-
Calculate test coverage (Windows-only):
Install OpenCppCoverage and then:
cmake .. -DCPPCOV_PATH="C:\Program Files\OpenCppCoverage" ctest -C Debug --verbose
These commands would re-generate project files with coverage enabled and run tests. Coverage report would be in
build/__coverage
. -
If you wish to use solely SP build, you can run
CreateArchive_SkyrimPlatform
script to get zip with only related files (Windows-only):Go to
ci
folder and double-clickCreateArchive_SkyrimPlatform
.
Use of this source code is subject to GPLv3. (See LICENSE
for more information)
Leonid Pospelov - Pospelov#3228 - [email protected]
Project Link: https://github.com/skyrim-multiplayer/skymp