| |
servers:windows:games:trinitycore_3.3.5_localhost [2025/09/03 05:37] – Sean Rhone | servers:windows:games:trinitycore_3.3.5_localhost [2025/09/11 06:43] (current) – external edit 127.0.0.1 |
---|
===== Prerequisites ===== | ===== Prerequisites ===== |
| |
* [[windows;10|Windows 10 (21H2)]] | * [[windows;11_ltsc|Windows 11 (24H2)]] |
* [[programs;windows;git|Git]] | * [[programs;windows;git|Git]] |
* [[servers;windows;mariadb|MariaDB]] (Dev components required; no service/networking) | * [[servers;windows;mariadb|MariaDB]] (Dev components required; no service/networking) |
* 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.4188) | * Windows 11 SDK (10.0.26100.4654) |
| |
"%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\setup.exe" | "%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\setup.exe" |
COPY /Y "%UserProfile%\Projects\TrinityCore-335\build\bin\Release\authserver.conf.dist" "%UserProfile%\Projects\TrinityCore-335\build\bin\Release\authserver.conf" | COPY /Y "%UserProfile%\Projects\TrinityCore-335\build\bin\Release\authserver.conf.dist" "%UserProfile%\Projects\TrinityCore-335\build\bin\Release\authserver.conf" |
| |
MKDIR "%UserProfile%\Projects\TrinityCore-335\conf\authserver" && "notepad.exe" "%UserProfile%\Projects\TrinityCore-335\conf\authserver\localhost.conf" | MKDIR "%UserProfile%\Projects\TrinityCore-335\conf\authserver" & "notepad.exe" "%UserProfile%\Projects\TrinityCore-335\conf\authserver\localhost.conf" |
| |
<code> | <code> |
| |
# Connection | # Connection |
BindIP = "127.0.0.1" | |
MySQLExecutable = "C:\Program Files\MariaDB 12.1\bin\mariadb.exe" | |
LoginDatabaseInfo = ".;3306;authserver;x;authserver" | LoginDatabaseInfo = ".;3306;authserver;x;authserver" |
| MySQLExecutable = "C:\Program Files\MariaDB 12.1\bin\mariadb.exe" |
| BindIP = "127.0.0.1" |
AllowLoggingIPAddressesInDatabase = 0 | AllowLoggingIPAddressesInDatabase = 0 |
| |
| |
# Connection | # Connection |
BindIP = "127.0.0.1" | |
MySQLExecutable = "C:\Program Files\MariaDB 12.1\bin\mariadb.exe" | |
LoginDatabaseInfo = ".;3306;authserver;x;authserver" | LoginDatabaseInfo = ".;3306;authserver;x;authserver" |
WorldDatabaseInfo = ".;3306;worldserver;x;worldserver" | |
CharacterDatabaseInfo = ".;3306;characters;x;characters" | CharacterDatabaseInfo = ".;3306;characters;x;characters" |
| WorldDatabaseInfo = ".;3306;worldserver;x;worldserver" |
| MySQLExecutable = "C:\Program Files\MariaDB 12.1\bin\mariadb.exe" |
| BindIP = "127.0.0.1" |
AllowLoggingIPAddressesInDatabase = 0 | AllowLoggingIPAddressesInDatabase = 0 |
| |
| |
===== Server Start ===== | ===== Server Start ===== |
| |
| * Shutdown order: ''worldserver'' -> ''authserver'' -> MariaDB |
| |
MKDIR "%UserProfile%\Projects\TrinityCore-335\scripts" & "notepad.exe" "%UserProfile%\Projects\TrinityCore-335\scripts\localhost-server-start.bat" | MKDIR "%UserProfile%\Projects\TrinityCore-335\scripts" & "notepad.exe" "%UserProfile%\Projects\TrinityCore-335\scripts\localhost-server-start.bat" |
<code> | <code> |
@echo off | @echo off |
| |
| TITLE TrinityCore 335 Launcher |
| |
START "MariaDB Server" "%ProgramFiles%\MariaDB 12.1\bin\mariadbd.exe" --defaults-file="%ProgramFiles%\MariaDB 12.1\data\my.ini" | START "MariaDB Server" "%ProgramFiles%\MariaDB 12.1\bin\mariadbd.exe" --defaults-file="%ProgramFiles%\MariaDB 12.1\data\my.ini" |
<code> | <code> |
@echo off | @echo off |
| |
| TITLE TrinityCore 335 Updater |
| |
"%ProgramFiles%\Git\bin\git.exe" -C "%UserProfile%\Projects\TrinityCore-335\src" reset --hard | "%ProgramFiles%\Git\bin\git.exe" -C "%UserProfile%\Projects\TrinityCore-335\src" reset --hard |
"%ProgramFiles%\Git\bin\git.exe" -C "%UserProfile%\Projects\TrinityCore-335\src" pull origin "3.3.5" --rebase | "%ProgramFiles%\Git\bin\git.exe" -C "%UserProfile%\Projects\TrinityCore-335\src" pull origin "3.3.5" --rebase |
| |
"%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_89_0" -DMYSQL_INCLUDE_DIR="%ProgramFiles%\MariaDB 12.1\include\mysql" -DMYSQL_LIBRARY="%ProgramFiles%\MariaDB 12.1\lib\libmariadb.lib" -DWITHOUT_METRICS="1" -DTOOLS="1" | "%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_89_0" -DMYSQL_INCLUDE_DIR="%ProgramFiles%\MariaDB 12.1\include\mysql" -DMYSQL_LIBRARY="%ProgramFiles%\MariaDB 12.1\lib\libmariadb.lib" -DWITHOUT_METRICS="1" -DTOOLS="0" |
| |
"%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" | "%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" |
<code> | <code> |
@echo off | @echo off |
| |
| TITLE WoW 3.3.5 Database Back-up |
| |
START "MariaDB Server" "%ProgramFiles%\MariaDB 12.1\bin\mariadbd.exe" --defaults-file="%ProgramFiles%\MariaDB 12.1\data\my.ini" | START "MariaDB Server" "%ProgramFiles%\MariaDB 12.1\bin\mariadbd.exe" --defaults-file="%ProgramFiles%\MariaDB 12.1\data\my.ini" |