User Tools

Site Tools


servers:windows:games:trinitycore_3.3.5_localhost

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
servers:windows:games:trinitycore_3.3.5_localhost [2026/02/21 18:54] – [Server Update] Sean Rhoneservers:windows:games:trinitycore_3.3.5_localhost [2026/03/03 16:24] (current) – [MMaps] Sean Rhone
Line 38: Line 38:
   * Desktop development with C++ (C++ core desktop features)   * Desktop development with C++ (C++ core desktop features)
   * MSVC v143 - VS 2022 C++ x64/x86 build tools (Latest)   * MSVC v143 - VS 2022 C++ x64/x86 build tools (Latest)
-  * Windows 11 SDK (10.0.26100.7175)+  * Windows 11 SDK (10.0.26100.7705) 
 +  * MSBuild support for LLVM (clang-cl) toolset
  
   "%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\setup.exe"   "%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\setup.exe"
 +
 +===== LLVM =====
 +
 +  * https://github.com/llvm/llvm-project/releases
 +  * Last tested: ''LLVM-22.1.0-win64.exe''
 +
 +  * ''[x]'' Do not add LLVM to the system PATH
 +  * ''[ ]'' Create LLVM Desktop Icon
 +  * ''[x]'' Do not create shortcuts
  
 ===== Boost ===== ===== Boost =====
Line 51: Line 61:
   * 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.2.20260212-g41b270b-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
Line 140: Line 150:
  
 ===== CMake ===== ===== CMake =====
- 
-**** 
- 
-<code>"%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="1" -DCMAKE_CXX_FLAGS="/EHs /arch:AVX2 /favor:INTEL64 /Gz /Oy /GS- /guard:cf- /W0"</code> 
  
 ==== CXX_FLAGS Info ==== ==== CXX_FLAGS Info ====
Line 154: Line 160:
   * [[https://learn.microsoft.com/en-us/cpp/build/reference/gs-buffer-security-check?view=msvc-170|/GS-]]   * [[https://learn.microsoft.com/en-us/cpp/build/reference/gs-buffer-security-check?view=msvc-170|/GS-]]
   * [[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-]]
 +
 +==== Clang ====
 +
 +  * https://clang.llvm.org/docs/UsersManual.html
 +
 +  DIR /B "%ProgramFiles%\LLVM\lib\clang"
 +
 +  SET "LLVMInstallDir=%ProgramFiles%\LLVM"
 +
 +  SET "LLVMToolsVersion=22"
 +
 +<code>"%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="1" -T "ClangCL" -DBoost_COMPILER="-vc143" -DCMAKE_CXX_FLAGS="/EHs /arch:AVX2 /favor:INTEL64 /Gz /Oy /GS- /guard:cf- /W0 -Wno-everything"</code>
 +
 +==== MSVC ====
 +
 +****
 +
 +<code>"%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="1" -DCMAKE_CXX_FLAGS="/EHs /arch:AVX2 /favor:INTEL64 /Gz /Oy /GS- /guard:cf- /W0"</code>
  
 ===== Compile ===== ===== Compile =====
  
-  * ~5 minutes i5-8400H ((2025/12/12: ''00:04:43.25''))+  * ~5 minutes i5-8400H ((2026/03/03Clang ''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>
 +
 +  SET "LLVMInstallDir="
 +
 +  SET "LLVMToolsVersion="
  
 ===== DLLs ===== ===== DLLs =====
Line 199: Line 227:
 ===== MMaps ===== ===== MMaps =====
  
-  * :!: 30-40 minutes i5-8400H ((2025/12/13''28 Minutes 26 Seconds'' at ''--threads 8''))+  * :!: 30-40 minutes i5-8400H ((2026/03/0332 Minutes at ''--threads 8'' Clang))
   * ''--threads %NUMBER_OF_PROCESSORS%''   * ''--threads %NUMBER_OF_PROCESSORS%''
  
Line 351: Line 379:
  
 ===== 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"
Line 361: Line 386:
  
 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%"
  
Line 368: Line 427:
 "%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"
Line 376: Line 444:
 :: 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 =====
Line 452: Line 520:
  
   Server Updater   Server Updater
 +
 +==== Update (Full) ====
 +
 +  "%UserProfile%\Projects\TrinityCore-335\scripts\localhost-server-update-full.bat"
 +
 +  Server Updater (Rebuild)
  
 ==== Database Backup ==== ==== Database Backup ====
Line 464: Line 538:
  
   Database Maintenance   Database Maintenance
- 
-==== Updates Check ==== 
- 
-  "https://github.com/TrinityCore/TrinityCore/commits/3.3.5" 
- 
-  Updates Check (Server) 
  
 ==== Install Notes ==== ==== Install Notes ====
/usr/local/www/wiki/data/attic/servers/windows/games/trinitycore_3.3.5_localhost.1771718083.txt.gz · Last modified: by Sean Rhone