MapUpgrader is a .NET tool that processes compiled Half-Life BSP map files and applies all necessary upgrades and bug fixes required for use with the Unified SDK. It handles maps from the base game and each supported expansion, with an optionalDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/twhl-community/halflife-unified-sdk/llms.txt
Use this file to discover all available pages before exploring further.
--game flag to specify which game’s upgrade ruleset to apply. The tool is included in the hlu/tools directory of every Unified SDK release.
MapUpgrader is a .NET tool. On Windows you can run it as
MapUpgrader.exe [options] or dotnet MapUpgrader.dll [options]. On Linux use dotnet MapUpgrader.dll [options].Command line usage
The --game parameter
The --game value is the mod directory name of the game the maps originate from. If not specified, maps are treated as vanilla Half-Life maps (valve). Supported values are:
| Value | Game |
|---|---|
valve | Half-Life (default) |
gearbox | Half-Life: Opposing Force |
bshift | Half-Life: Blue Shift |
cstrike | Counter-Strike |
czero | Counter-Strike: Condition Zero |
czeror | Counter-Strike: Condition Zero — Deleted Scenes |
dod | Day of Defeat |
ricochet | Ricochet |
tfc | Team Fortress Classic |
Running MapUpgrader
- Windows
- Linux
Upgrade a single Half-Life map using the default Upgrade multiple Opposing Force maps at once:Upgrade a Blue Shift map with diagnostic output:
valve ruleset:Diagnostics level
The--diagnostics-level option controls how much information the tool prints about the upgrade process:
| Value | Description |
|---|---|
Disabled | No diagnostics output (default) |
Common | Print commonly useful diagnostic messages |
All | Print all available diagnostic messages |