| Both sides previous revisionPrevious revisionNext revision | Previous revision |
| servers:windows:games:trinitycore_3.3.5_localhost [2026/02/27 20:11] – [Required Components] Sean Rhone | servers:windows:games:trinitycore_3.3.5_localhost [2026/03/03 16:24] (current) – [MMaps] Sean Rhone |
|---|
| * https://cmake.org/download/#dev | * https://cmake.org/download/#dev |
| * https://cmake.org/files/dev/?C=M;O=D (Ctrl + F) | * https://cmake.org/files/dev/?C=M;O=D (Ctrl + F) |
| * Last tested: ''cmake-4.3.20260226-g880752c-windows-x86_64.msi'' | * Last tested: ''cmake-4.3.20260302-g95a8003-windows-x86_64.msi'' |
| |
| * ''[ ]'' Add CMake to the PATH environment variable | * ''[ ]'' Add CMake to the PATH environment variable |
| * [[https://learn.microsoft.com/en-us/cpp/build/reference/guard-enable-control-flow-guard?view=msvc-170|/guard:cf-]] | * [[https://learn.microsoft.com/en-us/cpp/build/reference/guard-enable-control-flow-guard?view=msvc-170|/guard:cf-]] |
| |
| ==== LLVM ==== | ==== Clang ==== |
| |
| * https://clang.llvm.org/docs/UsersManual.html | * https://clang.llvm.org/docs/UsersManual.html |
| ===== Compile ===== | ===== Compile ===== |
| |
| * ~5 minutes i5-8400H ((2025/12/12: ''00:04:43.25'')) | * ~5 minutes i5-8400H ((2026/03/03: Clang ''00:04:36.64'')) |
| |
| <code>"%ProgramFiles%\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\amd64\MSBuild.exe" "%UserProfile%\Projects\TrinityCore-335\build\ALL_BUILD.vcxproj" -target:"Rebuild" -property:"Configuration=Release" -maxCpuCount -nodeReuse:"False" -terminalLogger:"off" -binaryLogger:"output.binlog;ProjectImports=None"</code> | <code>"%ProgramFiles%\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\amd64\MSBuild.exe" "%UserProfile%\Projects\TrinityCore-335\build\ALL_BUILD.vcxproj" -target:"Rebuild" -property:"Configuration=Release" -maxCpuCount -nodeReuse:"False" -terminalLogger:"off" -binaryLogger:"output.binlog;ProjectImports=None"</code> |
| ===== MMaps ===== | ===== MMaps ===== |
| |
| * :!: 30-40 minutes i5-8400H ((2025/12/13: ''28 Minutes 26 Seconds'' at ''--threads 8'')) | * :!: 30-40 minutes i5-8400H ((2026/03/03: 32 Minutes at ''--threads 8'' Clang)) |
| * ''--threads %NUMBER_OF_PROCESSORS%'' | * ''--threads %NUMBER_OF_PROCESSORS%'' |
| |
| |
| ===== Server Update ===== | ===== Server Update ===== |
| |
| * [[https://learn.microsoft.com/en-us/visualstudio/install/use-command-line-parameters-to-install-visual-studio?view=visualstudio|Visual Studio setup.exe Flags]] | |
| * TODO: ''-target:Build'' and have VC update on separate script with the ''Rebuild'' ((updating VC isn't a req, but full rebuilds slow quick casual updating)) | |
| |
| "%SystemRoot%\System32\notepad.exe" "%UserProfile%\Projects\TrinityCore-335\scripts\localhost-server-update.bat" | "%SystemRoot%\System32\notepad.exe" "%UserProfile%\Projects\TrinityCore-335\scripts\localhost-server-update.bat" |
| |
| TITLE TrinityCore 335 Updater | TITLE TrinityCore 335 Updater |
| | CD "%Temp%" |
| | |
| | "%ProgramFiles%\Git\bin\git.exe" -C "%UserProfile%\Projects\TrinityCore-335\src" reset --hard "origin/3.3.5" |
| | "%ProgramFiles%\Git\bin\git.exe" -C "%UserProfile%\Projects\TrinityCore-335\src" pull origin "3.3.5" --rebase |
| | |
| | :: Clang |
| | SET "LLVMInstallDir=%ProgramFiles%\LLVM" |
| | SET "LLVMToolsVersion=22" |
| | "%ProgramFiles%\CMake\bin\cmake.exe" -S "%UserProfile%\Projects\TrinityCore-335\src" -B "%UserProfile%\Projects\TrinityCore-335\build" -G "Visual Studio 17 2022" --fresh -Wno-dev -DBOOST_ROOT="%SystemDrive%/local/boost_1_90_0" -DMYSQL_INCLUDE_DIR="%ProgramFiles%\MariaDB 12.3\include\mysql" -DMYSQL_LIBRARY="%ProgramFiles%\MariaDB 12.3\lib\libmariadb.lib" -DWITHOUT_METRICS="1" -DTOOLS="0" -T "ClangCL" -DBoost_COMPILER="-vc143" -DCMAKE_CXX_FLAGS="/EHs /arch:AVX2 /favor:INTEL64 /Gz /Oy /GS- /guard:cf- /W0 -Wno-everything" |
| | |
| | :: MSVC |
| | ::"%ProgramFiles%\CMake\bin\cmake.exe" -S "%UserProfile%\Projects\TrinityCore-335\src" -B "%UserProfile%\Projects\TrinityCore-335\build" -G "Visual Studio 17 2022" --fresh -Wno-dev -DBOOST_ROOT="%SystemDrive%/local/boost_1_90_0" -DMYSQL_INCLUDE_DIR="%ProgramFiles%\MariaDB 12.3\include\mysql" -DMYSQL_LIBRARY="%ProgramFiles%\MariaDB 12.3\lib\libmariadb.lib" -DWITHOUT_METRICS="1" -DTOOLS="0" -DCMAKE_CXX_FLAGS="/EHs /arch:AVX2 /favor:INTEL64 /Gz /Oy /GS- /guard:cf- /W0" |
| | |
| | "%ProgramFiles%\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\amd64\MSBuild.exe" "%UserProfile%\Projects\TrinityCore-335\build\ALL_BUILD.vcxproj" -target:"Build" -property:"Configuration=Release" -maxCpuCount -nodeReuse:"False" -terminalLogger:"off" -binaryLogger:"output.binlog;ProjectImports=None" |
| | |
| | SET "LLVMInstallDir=" |
| | SET "LLVMToolsVersion=" |
| | |
| | "%SystemRoot%\System32\msg.exe" %USERNAME% /TIME:"2" "WoW 3.3.5 localhost server update complete" |
| | |
| | :: End</code> |
| | |
| | "%UserProfile%\Projects\TrinityCore-335\scripts\localhost-server-update.bat" |
| | |
| | ===== Server Update (Full) ===== |
| | |
| | * [[https://learn.microsoft.com/en-us/visualstudio/install/use-command-line-parameters-to-install-visual-studio?view=visualstudio|Visual Studio setup.exe Flags]] |
| | |
| | "%SystemRoot%\System32\notepad.exe" "%UserProfile%\Projects\TrinityCore-335\scripts\localhost-server-update-full.bat" |
| | |
| | <code> |
| | @echo off |
| | |
| | TITLE TrinityCore 335 Updater (Full) |
| CD "%Temp%" | CD "%Temp%" |
| |
| "%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\setup.exe" update --channelId "VisualStudio.17.Release" --channelURI "https://aka.ms/vs/17/release/channel" --productId "Microsoft.VisualStudio.Product.Community" --nocache --norestart --quiet | "%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\setup.exe" update --channelId "VisualStudio.17.Release" --channelURI "https://aka.ms/vs/17/release/channel" --productId "Microsoft.VisualStudio.Product.Community" --nocache --norestart --quiet |
| |
| "%ProgramFiles%\CMake\bin\cmake.exe" -S "%UserProfile%\Projects\TrinityCore-335\src" -B "%UserProfile%\Projects\TrinityCore-335\build" -G "Visual Studio 17 2022" --fresh -Wno-dev -DBOOST_ROOT="%SystemDrive%/local/boost_1_90_0" -DMYSQL_INCLUDE_DIR="%ProgramFiles%\MariaDB 12.3\include\mysql" -DMYSQL_LIBRARY="%ProgramFiles%\MariaDB 12.3\lib\libmariadb.lib" -DWITHOUT_METRICS="1" -DTOOLS="0" -DCMAKE_CXX_FLAGS="/EHs /arch:AVX2 /favor:INTEL64 /Gz /Oy /GS- /guard:cf- /W0" | :: Clang |
| | SET "LLVMInstallDir=%ProgramFiles%\LLVM" |
| | SET "LLVMToolsVersion=22" |
| | "%ProgramFiles%\CMake\bin\cmake.exe" -S "%UserProfile%\Projects\TrinityCore-335\src" -B "%UserProfile%\Projects\TrinityCore-335\build" -G "Visual Studio 17 2022" --fresh -Wno-dev -DBOOST_ROOT="%SystemDrive%/local/boost_1_90_0" -DMYSQL_INCLUDE_DIR="%ProgramFiles%\MariaDB 12.3\include\mysql" -DMYSQL_LIBRARY="%ProgramFiles%\MariaDB 12.3\lib\libmariadb.lib" -DWITHOUT_METRICS="1" -DTOOLS="0" -T "ClangCL" -DBoost_COMPILER="-vc143" -DCMAKE_CXX_FLAGS="/EHs /arch:AVX2 /favor:INTEL64 /Gz /Oy /GS- /guard:cf- /W0 -Wno-everything" |
| | |
| | :: MSVC |
| | ::"%ProgramFiles%\CMake\bin\cmake.exe" -S "%UserProfile%\Projects\TrinityCore-335\src" -B "%UserProfile%\Projects\TrinityCore-335\build" -G "Visual Studio 17 2022" --fresh -Wno-dev -DBOOST_ROOT="%SystemDrive%/local/boost_1_90_0" -DMYSQL_INCLUDE_DIR="%ProgramFiles%\MariaDB 12.3\include\mysql" -DMYSQL_LIBRARY="%ProgramFiles%\MariaDB 12.3\lib\libmariadb.lib" -DWITHOUT_METRICS="1" -DTOOLS="0" -DCMAKE_CXX_FLAGS="/EHs /arch:AVX2 /favor:INTEL64 /Gz /Oy /GS- /guard:cf- /W0" |
| |
| "%ProgramFiles%\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\amd64\MSBuild.exe" "%UserProfile%\Projects\TrinityCore-335\build\ALL_BUILD.vcxproj" -target:"Rebuild" -property:"Configuration=Release" -maxCpuCount -nodeReuse:"False" -terminalLogger:"off" -binaryLogger:"output.binlog;ProjectImports=None" | "%ProgramFiles%\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\amd64\MSBuild.exe" "%UserProfile%\Projects\TrinityCore-335\build\ALL_BUILD.vcxproj" -target:"Rebuild" -property:"Configuration=Release" -maxCpuCount -nodeReuse:"False" -terminalLogger:"off" -binaryLogger:"output.binlog;ProjectImports=None" |
| | |
| | SET "LLVMInstallDir=" |
| | SET "LLVMToolsVersion=" |
| |
| "%SystemRoot%\System32\msg.exe" %USERNAME% /TIME:"2" "WoW 3.3.5 localhost server update complete" | "%SystemRoot%\System32\msg.exe" %USERNAME% /TIME:"2" "WoW 3.3.5 localhost server update complete" |
| :: End</code> | :: End</code> |
| |
| "%UserProfile%\Projects\TrinityCore-335\scripts\localhost-server-update.bat" | "%UserProfile%\Projects\TrinityCore-335\scripts\localhost-server-update-full.bat" |
| |
| ===== Database Back-up ===== | ===== Database Back-up ===== |
| |
| Server Updater | Server Updater |
| | |
| | ==== Update (Full) ==== |
| | |
| | "%UserProfile%\Projects\TrinityCore-335\scripts\localhost-server-update-full.bat" |
| | |
| | Server Updater (Rebuild) |
| |
| ==== Database Backup ==== | ==== Database Backup ==== |
| |
| Database Maintenance | Database Maintenance |
| |
| ==== Updates Check ==== | |
| |
| "https://github.com/TrinityCore/TrinityCore/commits/3.3.5" | |
| |
| Updates Check (Server) | |
| |
| ==== Install Notes ==== | ==== Install Notes ==== |