Skip to content

Instantly share code, notes, and snippets.

@spacehare
Last active August 6, 2024 18:59
Show Gist options
  • Select an option

  • Save spacehare/1b866ba9af58ac45a9333e26c049c758 to your computer and use it in GitHub Desktop.

Select an option

Save spacehare/1b866ba9af58ac45a9333e26c049c758 to your computer and use it in GitHub Desktop.
%APPDATA%\TrenchBroom\games\Quake\CompilationProfiles.cfg
{
"profiles": [
{
"name": "DirtDebug",
"tasks": [
{
"target": "${WORK_DIR_PATH}/build/${MAP_BASE_NAME}.map",
"type": "export"
},
{
"parameters": "-bsp2 build/${MAP_BASE_NAME}.map maps/${MAP_BASE_NAME}.bsp",
"tool": "${qbsp}",
"treatNonZeroResultCodeAsError": true,
"type": "tool"
},
{
"enabled": false,
"parameters": "-fast -threads ${CPU_COUNT - 1} maps/${MAP_BASE_NAME}.bsp",
"tool": "${vis}",
"treatNonZeroResultCodeAsError": true,
"type": "tool"
},
{
"parameters": "-dirtdebug -threads ${CPU_COUNT - 1} maps/${MAP_BASE_NAME}.bsp",
"tool": "${light}",
"treatNonZeroResultCodeAsError": true,
"type": "tool"
},
{
"source": "${WORK_DIR_PATH}/maps/${MAP_BASE_NAME}.bsp",
"target": "${GAME_DIR_PATH}/${MODS[-1]}/maps",
"type": "copy"
}
],
"workdir": "${MAP_DIR_PATH}"
},
{
"name": "Full Compile",
"tasks": [
{
"target": "${WORK_DIR_PATH}/build/${MAP_BASE_NAME}.map",
"type": "export"
},
{
"parameters": "-litwater -bsp2 build/${MAP_BASE_NAME}.map maps/${MAP_BASE_NAME}.bsp",
"tool": "${qbsp}",
"treatNonZeroResultCodeAsError": true,
"type": "tool"
},
{
"enabled": false,
"parameters": "-noambient -threads ${CPU_COUNT - 1} maps/${MAP_BASE_NAME}.bsp",
"tool": "${vis}",
"treatNonZeroResultCodeAsError": true,
"type": "tool"
},
{
"parameters": "-threads ${CPU_COUNT - 1} maps/${MAP_BASE_NAME}.bsp ",
"tool": "${light}",
"treatNonZeroResultCodeAsError": true,
"type": "tool"
},
{
"source": "${WORK_DIR_PATH}/maps/${MAP_BASE_NAME}.bsp",
"target": "${GAME_DIR_PATH}/${MODS[-1]}/maps",
"type": "copy"
},
{
"source": "${WORK_DIR_PATH}/maps/${MAP_BASE_NAME}.lit",
"target": "${GAME_DIR_PATH}/${MODS[-1]}/maps",
"type": "copy"
}
],
"workdir": "${MAP_DIR_PATH}"
},
{
"name": "SUBMISSION",
"tasks": [
{
"target": "${WORK_DIR_PATH}/build/${MAP_BASE_NAME}.map",
"type": "export"
},
{
"parameters": "-leaktest -splitturb -bsp2 build/${MAP_BASE_NAME}.map maps/${MAP_BASE_NAME}.bsp",
"tool": "${qbsp}",
"treatNonZeroResultCodeAsError": true,
"type": "tool"
},
{
"parameters": "-noambient -threads ${CPU_COUNT - 1} maps/${MAP_BASE_NAME}.bsp",
"tool": "${vis}",
"treatNonZeroResultCodeAsError": true,
"type": "tool"
},
{
"parameters": "-extra4 -threads ${CPU_COUNT - 1} maps/${MAP_BASE_NAME}.bsp ",
"tool": "${light}",
"treatNonZeroResultCodeAsError": true,
"type": "tool"
},
{
"source": "${WORK_DIR_PATH}/maps/${MAP_BASE_NAME}.bsp",
"target": "${GAME_DIR_PATH}/${MODS[-1]}/maps",
"type": "copy"
},
{
"source": "${WORK_DIR_PATH}/maps/${MAP_BASE_NAME}.lit",
"target": "${GAME_DIR_PATH}/${MODS[-1]}/maps",
"type": "copy"
}
],
"workdir": "${MAP_DIR_PATH}"
},
{
"name": "Phong debug",
"tasks": [
{
"target": "${WORK_DIR_PATH}/build/${MAP_BASE_NAME}.map",
"type": "export"
},
{
"parameters": "-bsp2 build/${MAP_BASE_NAME}.map maps/${MAP_BASE_NAME}.bsp",
"tool": "${qbsp}",
"treatNonZeroResultCodeAsError": true,
"type": "tool"
},
{
"enabled": false,
"parameters": "-fast -threads ${CPU_COUNT - 1} maps/${MAP_BASE_NAME}.bsp",
"tool": "${vis}",
"treatNonZeroResultCodeAsError": true,
"type": "tool"
},
{
"parameters": "-phongdebug -threads ${CPU_COUNT - 1} maps/${MAP_BASE_NAME}.bsp",
"tool": "${light}",
"treatNonZeroResultCodeAsError": true,
"type": "tool"
},
{
"source": "${WORK_DIR_PATH}/maps/${MAP_BASE_NAME}.bsp",
"target": "${GAME_DIR_PATH}/${MODS[-1]}/maps",
"type": "copy"
}
],
"workdir": "${MAP_DIR_PATH}"
},
{
"name": "Leak test",
"tasks": [
{
"target": "${WORK_DIR_PATH}/build/${MAP_BASE_NAME}.map",
"type": "export"
},
{
"parameters": "-leaktest -splitturb -bsp2 build/${MAP_BASE_NAME}.map maps/${MAP_BASE_NAME}.bsp",
"tool": "${qbsp}",
"treatNonZeroResultCodeAsError": true,
"type": "tool"
}
],
"workdir": "${MAP_DIR_PATH}"
},
{
"name": "only ents",
"tasks": [
{
"target": "${WORK_DIR_PATH}/build/${MAP_BASE_NAME}.map",
"type": "export"
},
{
"parameters": "-onlyents -leaktest -litwater -bsp2 build/${MAP_BASE_NAME}.map maps/${MAP_BASE_NAME}.bsp",
"tool": "${qbsp}",
"treatNonZeroResultCodeAsError": true,
"type": "tool"
},
{
"parameters": "-onlyents build/${MAP_BASE_NAME}.map maps/${MAP_BASE_NAME}.bsp",
"tool": "${light}",
"type": "tool"
},
{
"source": "${WORK_DIR_PATH}/maps/${MAP_BASE_NAME}.bsp",
"target": "${GAME_DIR_PATH}/${MODS[-1]}/maps",
"type": "copy"
},
{
"source": "${WORK_DIR_PATH}/maps/${MAP_BASE_NAME}.lit",
"target": "${GAME_DIR_PATH}/${MODS[-1]}/maps",
"type": "copy"
}
],
"workdir": "${MAP_DIR_PATH}"
}
],
"version": 1
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment