MAX_TW_VERTS (12) exceeded


(Arcanis) #1

************ ERROR ************
MAX_TW_VERTS (12) exceeded

When I try to compile map with light this error encoure. I have this problem many mounths ago and I solved it. But now I’m working on a new map and dont remember how to solve it.

Plz help me :frowning:


(DaRkFiRe) #2

Usually, you get this error when you have a brush with more than 12 sides. Check your map for a brush like this.


(G0-Gerbil) #3

Just did a quick search on google for the term and pulled up this:

ERROR: MAX_TW_VERTS exceeded
If you have this error, then you have a cluster of geometry getting sliced up too much in the compile. If you can’t figure out where the problem is, then compile your map using Q3map2 with -debugportals (assuming you have the q3map.shader installed & in shaderlist.txt) then run your map and look for areas with lots of portals (the portals should appear as colored transparent walls in the game if you used the -dbugportals switch). Once you find the area that looks like it might be causing the problem, see if you can cut down on the geometry there and/or make sure your using detail brushes as well instead of only structural brushes. If you can’t figure out where the problem is, then your only option is to run the -light phase in the compile with the -lomem switch (using Q3map2)to disable the trace tree subdivision, but use that as a last resort.


(Detoeni) #4

“-dbugportals” is a very usefull tool, but for finding this error, you would better off trying to find the problem by loading the “prt” file first in radiant.


(Arcanis) #5

The problem was in too many structural brushes :smiley:

Thx for the help :drink: