Sephus Posted September 30 Share Posted September 30 Take a look at these videos to understand how to setup Horizon on Windows and Linux. Windows Installation 1. Install Visual Studio 2022 with "Desktop Development with C++". 2. Install VCPKG from https://github.com/microsoft/vcpkg into destination path C:\vcpkg 3. Add the following environment variables - C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\2022\COMMUNITY\COMMON7\IDE\COMMONEXTENSIONS\MICROSOFT\CMAKE\CMake\bin\ C:\vcpkg 4. Install the dependencies of Horizon via vcpkg - vcpkg install boost-filesystem:x64-windows-static boost-system:x64-windows-static boost-locale:x64-windows-static boost-log:x64-windows-static boost-test:x64-windows-static boost-charconv:x64-windows-static boost-lockfree:x64-windows-static boost-uuid:x64-windows-static boost-mysql:x64-windows-static boost-crc:x64-windows-static boost-multi-array:x64-windows-static boost-format:x64-windows-static lua:x64-windows-static openssl:x64-windows-static sol2:x64-windows-static zlib:x64-windows-static 5. Download horizon - git clone http://lab.projecthorizon.xyz/horizon/horizon.git 6. Issue the following commands - (Replace <Build Type> with one of the following - Debug, RelWithDebInfo or Release) cd horizon mkdir build cd build cmake -B . -S .. -DCMAKE_BUILD_TYPE=<Build Type> -DCMAKE_TOOLCHAIN_FILE=C:/vcpkg/scripts/buildsystems/vcpkg.cmake -DVCPKG_TARGET_TRIPLET=x64-windows-static cmake --build build --config <Build Type> 7. Once the command is done building, just go to the destination folder indicated by the console for each of the targets - auth, char and zone. 8. Copy the db, scripts and config folders into the destination folder and start horizon with the following commands - auth.exe --with-config="config/auth-server.lua" char.exe --with-config="config/char-server.lua" zone.exe --with-config="config/zone-server.lua" Thats it! You've installed and run Horizon in 8 simple steps. Linux Installation Link to comment Share on other sites More sharing options...
Recommended Posts