Materialsub.cfg: Difference between revisions
Jump to navigation
Jump to search
Confirm:Does this occur before or after material map compile flags are parsed?
Code:Keyvalue handling occurs in materialsub.cpp.
Confirm:Verify this is accurate; it was determined by reading VBSP source code.
SirYodaJedi (talk | contribs) No edit summary |
SirYodaJedi (talk | contribs) (→Syntax) |
||
Line 4: | Line 4: | ||
{{codenote|Keyvalue handling occurs in [https://github.com/ValveSoftware/source-sdk-2013/blob/master/src/utils/vbsp/materialsub.cpp materialsub.cpp].}} | {{codenote|Keyvalue handling occurs in [https://github.com/ValveSoftware/source-sdk-2013/blob/master/src/utils/vbsp/materialsub.cpp materialsub.cpp].}} | ||
== Syntax == | == Syntax == | ||
{{ | <source lang=json> | ||
"MaterialReplacements" | |||
{ | |||
"AllMaps" | |||
{ | |||
"material_in_vmf" "material_in_bsp" | |||
} | |||
"mapname" | |||
{ | |||
"material_in_vmf" "material_in_bsp" | |||
} | |||
} | |||
</source> | |||
{{confirm|Verify this is accurate; it was determined by reading VBSP source code.}} | |||
[[Category:File formats]] | [[Category:File formats]] | ||
[[Category:Plain text files]] | [[Category:Plain text files]] |
Revision as of 08:44, 29 March 2025
cfg/materialsub.cfg
is a KeyValues file which, when the -replacematerials parameter is used by VBSP, causes the materials defined in the VMF to be swapped out in the compiled BSP.


Syntax
"MaterialReplacements"
{
"AllMaps"
{
"material_in_vmf" "material_in_bsp"
}
"mapname"
{
"material_in_vmf" "material_in_bsp"
}
}
