1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-04-23 21:27:45 +00:00
A Final Fantasy XIV 4.0+ Server Emulator written in C++
Find a file
2017-11-22 22:29:40 +11:00
bin Merge http://www.github.com/SapphireMordred/Sapphire into SQL_REWRITE_OWN 2017-10-25 14:49:35 +02:00
cmake Fix CMake MySQL module to be more nix-friendly 2017-11-18 22:50:00 +11:00
scripts/chai Fixed Bed not showing up when waking up 2017-10-12 15:30:04 +11:00
sql add sql triggers to update UPDATE_DATE 2017-11-22 22:29:40 +11:00
src Revert "fix UPDATE_DATE in charainfo not being updated" 2017-11-22 22:23:11 +11:00
.appveyor.yml Majorly simplified and improved the cmake setup. 2017-09-13 11:46:17 +02:00
.editorconfig add editorconfig file 2017-08-09 13:44:57 +01:00
.gitignore ignore files generated by edit and continue 2017-10-21 19:22:05 +11:00
.gitmodules Force git to ignore submodule 2017-08-18 23:50:22 +09:00
.travis.yml const all the things for readability 2017-10-19 09:39:05 +01:00
CMakeLists.txt Merge http://www.github.com/SapphireMordred/Sapphire into SQL_REWRITE_OWN 2017-10-25 14:49:35 +02:00
CMakeSettings.json updated CMakeSettings.json for edit and continue 2017-09-04 03:19:40 +01:00
CONTRIBUTING.md Contributing.md 2017-11-02 18:07:49 -02:00
LICENSE.md Initial commit of the sapphire server 2017-08-08 13:53:47 +02:00
README.md updated readme discord link 2017-11-21 09:23:11 +00:00
sql_import.sh lets see if it imports this time.. 2017-08-11 06:00:42 +01:00

Sapphire - FINAL FANTASY XIV Server Emulator

Discord Server Linux Build Status Windows Build Status FFXIV Sapphire

Sapphire is a FINAL FANTASY XIV 4.0+ Server Emulator currently in development.

Sapphire is a research project to learn how retail servers work and currently not production code; at this time it is insecure (use throwaway passwords for accounts) and you should expect a lot of things unimplemented or broken (of course contributions are always welcome).

Dependencies + Compiling

Sapphire requires the following software:

Name Windows Linux
CMake 2.6+ and C++14 capable compiler Visual Studio 2017 gcc 4.9 and g++ 4.9 or newer
Boost 1.63.0 Win32 precompiled binaries Boost libraries from your distribution's package manager
MySQL Server 5.7 Official Site MySQL server from your distribution's package manager

Windows Set the environment variables BOOST_ROOT_DIR and BOOST_LIB_DIR to [boost main folder] and [boost main folder]/lib32-msvc-14.0 respectively or copy your boost installation into the project's src/lib folder.

Visual Studio 2017 users: open Visual Studio Installer and ensure Individual Components > SDKs, libraries, and frameworks > Windows Universal C Runtime is installed. You may also need to install Individual Components > Compilers, build tools, and runtimes > VC++ 2015.3 v140 toolset for desktop (x86, 64).

To enable Edit and Continue ensure you define -DCMAKE_BUILD_TYPE="Debug" when generating with CMake.

If you installed CMake outside of Visual Studio and have it in your PATH environment variable, navigate to Sapphire folder and cmake -DCMAKE_BUILD_TYPE="Debug" && cmake --build ..

Otherwise:

  • In Visual Studio 2017: Open the project via File > Open > Folder and wait, till CMake automatically finishes cache generation. Right click any CMakeLists.txt and select build to build a application. To configure debug startup parameters, select Debug and Launch settings, the application you want to set up parameters for, and add a args json array containing your launch parameters in configurations. If Visual Studio fails to generate a CMake Cache or does not show options to build, make sure that the newest version of it is installed and all environment variables are set correctly. Keep in mind that generating a cache can take a while on some machines.

The solution Sapphire.sln is also generated in the main Sapphire folder.

Linux cmake . -DSAPPHIRE_BOOST_VER="your.boost.ver" && make -j JOBS where JOBS is number of cores on your system.
-j JOBS can be omitted if your system lacks resources (spoiler: your system probably lacks resources if running on 1GB RAM or lower, or if the build fails due to being out of memory)

Final Fantasy XIV © 2010-2017 SQUARE ENIX CO., LTD. All Rights Reserved. We are not affiliated with SQUARE ENIX CO., LTD. in any way.