MAX MAP BRUSHSIDES: Difference between revisions
(Remove some of the weird wording and make the statement about the technicalities of the limit more correct.) |
1416006136 (talk | contribs) (use {{MultiPage}}) |
||
Line 1: | Line 1: | ||
{{MultiPage|no-en-subpage=1}} | |||
'''MAX_MAP_BRUSHSIDES''' occurs when your map exceeds the VBSP 19 maximum defined brush amount. | '''MAX_MAP_BRUSHSIDES''' occurs when your map exceeds the VBSP 19 maximum defined brush amount. | ||
Line 13: | Line 14: | ||
As rule of thumb for figuring this out easier. 6 + angled faces = brushsides per brush | As rule of thumb for figuring this out easier. 6 + angled faces = brushsides per brush | ||
{{MultiPage/end}} | |||
[[category:Level_Design]] | [[category:Level_Design]] |
Revision as of 22:20, 27 October 2023


MAX_MAP_BRUSHSIDES occurs when your map exceeds the VBSP 19 maximum defined brush amount.
The current limit is 65536, this is due to the VBSP 19 format using 16-bit integers (also known as "shorts") to count the number of brushsides. The maximum value of a 16-bit unsigned integer is 65536 (2^16), hence the limit.
There is no fix for this without altering the BSP format and possibly breaking compatibility.
Hammer/Compiled brushsides discrepancy
The term "brush sides" is a bit misleading, if you've paid attention to your brush sides in hammer before, you may have noticed the compiled result was higher.
This is because when compiling, it includes the bounding box of a brush, which can be up to an additional 6 brushsides per brush. If a face is lined up with the edge of the bounding box(meaning not angled in any way) it will not add an additional brushside.
Example: A 5 sided pyramid shaped brush with the bottom face lining up the bottom of the bounding box. While the brush itself is only 5 sides, it will count as 10. The 5 extra brushsides come from the bounding box.
As rule of thumb for figuring this out easier. 6 + angled faces = brushsides per brush