apps/config-merger/python/README.md
A command-line tool to update your AzerothCore configuration files with new options from distribution files.
[!NOTE]
Based on and modified from @BoiseComputer (Brian Aldridge)'s update_module_confs project to meet AzerothCore's needs
This tool compares your existing configuration files (.conf) with the latest distribution files (.conf.dist) and helps you add new configuration options that may have been introduced in updates. It ensures your configs stay up-to-date while preserving your custom settings.
filename(d11_m12_y2025_14h_30m_45s).bak)There are two ways to use this. You can either copy this file directly to your /configs folder, or enable TOOL_CONFIG_MERGER in CMake. Upon compiling your core, the file will be generated in the same location as your /configs folder.
Run the script in your configs directory:
python config_merger.py
Or simply double-click the config_merger.py file to run it directly.
Specify configs path (or press Enter for current directory):
Enter the path to your configs folder (default: .) which means current folder:
Choose from the menu:
AzerothCore Config Updater/Merger (v. 1)
--------------------------
1 - Update Auth Config
2 - Update World Config
3 - Update Auth and World Configs
4 - Update All Modules Configs
5 - Update Modules (Selection) Configs
0 - Quit
For automation and scripting, you can use CLI mode:
python config_merger.py [config_dir] [target] [options]
Arguments:
config_dir (optional): Path to configs directory (default: current directory)target (optional): What to update:
auth - Update authserver.conf onlyworld - Update worldserver.conf onlyboth - Update both server configsmodules - Update all module configsmodules-select - Interactive module selectionOptions:
-y, --yes: Skip prompts and auto-add all new config options (default: prompt for each option)--version: Show version informationExamples:
# Interactive mode (default)
python config_merger.py
# Update auth config with prompts
python config_merger.py . auth
# Update both configs automatically (no prompts)
python config_merger.py /path/to/configs both -y
# Update all modules with confirmation
python config_merger.py . modules
authserver.conf from authserver.conf.distworldserver.conf from worldserver.conf.distmodules/ folderFor each missing configuration option found, the tool will:
Add [option_name] to config? (y/n):filename(d11_m12_y2025_14h_30m_45s).bak)Processing worldserver.conf ...
Backup created: worldserver.conf(d11_m12_y2025_14h_30m_45s).bak
# New feature for XP rates
XP.Rate = 1
Add XP.Rate to config? (y/n): y
Added XP.Rate.
# Database connection pool size
Database.PoolSize = 5
Add Database.PoolSize to config? (y/n): n
Skipped Database.PoolSize.
configs/
├── config_merger.py (this script)
├── authserver.conf.dist
├── authserver.conf
├── worldserver.conf.dist
├── worldserver.conf
└── modules/
├── mod_example.conf.dist
├── mod_example.conf
└── ...
This file is part of the AzerothCore Project. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
Note: Original code portions were licensed under the MIT License by Brian Aldridge (https://github.com/BoiseComputer)
Original project: https://github.com/Brian-Aldridge/update_module_confs