-
Notifications
You must be signed in to change notification settings - Fork 214
Building
OS specific guides:
The best way to get the code for Sapphire is to use git
. This document will assume you're using a git clone, but the master tarball from GitHub should work as well for a single build rather than developing. If you intend to develop, you should absolutely use git.
After a git clone, cd into the repository and initialise the library submodules.
$ git clone https://github.com/SapphireMordred/Sapphire.git sapphire
$ cd sapphire
$ git submodule init
Sapphire requires CMake and a C++ compiler to build. The specifics are best left for the OS documentation in the side bar to the right. You will also need a copy of the Boost, ChaiScript, MySQL, and zlib libraries plus the Sapphire bundled libraries. Except for Boost, all of these can be found in the git submodule. If you used the tarball for whatever reason, you'll need to download them separately into src/libraries
.
Once you have the dependencies setup, you can run CMake either in CLI, the CMake GUI, or your IDE of choice to generate project files for your compiler. After that it's as simple as building the resulting project file. The resulting binaries should be in the top level bin
directory, along with a config
directory and XML settings files for each of the servers.
The servers currently have no installation or packaging target but can be run as is. Load up the data into your DB with the packaged scripts, configure the server settings_*.xml
files, and start the processes. You can then use the launcher injector to point your client at the servers.
Getting Started
About
Installation
Developing
Actor Control
Scripting
Administration
Debug Commands
GM Commands
Other
PS4 Support