Optional instructions
Building Modules (Optional)
To build and install optional modules:
# Navigate to the repository directorycd ~/SylCore-WoTLK
# Make sure the build directory existsmkdir -p buildcd build
# Configure the build with CMake for modulescmake ../ -DCMAKE_INSTALL_PREFIX=~/SylCore -DCMAKE_C_COMPILER=/usr/bin/clang \-DCMAKE_CXX_COMPILER=/usr/bin/clang++ -DWITH_WARNINGS=1 -DSCRIPTS=static -DMODULES=static
# Compile and install SylCore (replace 4 with the number of CPU cores you want to use)make -j4 && make install
# Set up module configuration filescd ~/SylCore/etc/modulesfor file in *.conf.dist; do if [ ! -f "${file%.conf.dist}.conf" ]; then cp "$file" "${file%.conf.dist}.conf" echo "Created module config file: ${file%.conf.dist}.conf" else echo "Module config file already exists: ${file%.conf.dist}.conf - keeping existing configuration" fidone
# Return to the home directorycd ~/
Updating SylCore
To update SylCore to the latest version:
# First, properly stop any running serversif tmux has-session -t worldserver 2>/dev/null; then tmux send-keys -t worldserver "server shutdown" C-m echo "Sent shutdown command to worldserver, waiting 30 seconds..." sleep 30fi
if tmux has-session -t authserver 2>/dev/null; then tmux send-keys -t authserver "exit" C-m echo "Sent exit command to authserver, waiting 5 seconds..." sleep 5fi
# Verify servers are stoppedif tmux has-session -t worldserver 2>/dev/null || tmux has-session -t authserver 2>/dev/null; then echo "Warning: Some servers might still be running. Please stop them manually before continuing." echo "You can check running sessions with: tmux ls"fi
# Create a backupmkdir -p ~/SylCore/backup_$(date +%Y%m%d_%H%M%S)cp -r ~/SylCore/etc/*.conf ~/SylCore/backup_$(date +%Y%m%d_%H%M%S)/
# Navigate to the repository directorycd ~/SylCore-WoTLK
# Get the latest changesgit fetch origingit pull origin master # or whatever branch you're using
# Rebuild SylCoremkdir -p buildcd buildcmake ../ -DCMAKE_INSTALL_PREFIX=~/SylCore -DCMAKE_C_COMPILER=/usr/bin/clang \-DCMAKE_CXX_COMPILER=/usr/bin/clang++ -DWITH_WARNINGS=1 -DSCRIPTS=static -DMODULES=static
# Compile and install SylCore (replace 4 with the number of CPU cores you want to use)make -j4 && make install
Help
If you get stuck at any point, please feel free to join our Discord.
- Join Our Discord NOTE: SylCore Discord is not a 24/7 support server, so be respectful towards staff and other members!