Finding unused origin brushes


(Flippy) #1

Hey all…

is there some technique used to find unused origin brushes, causing sv_setbrushmodel: Null errors?

Im trying to mod goldrush a bit, deleted all objectives to save some bsp size (instead of hiding them via the script as in LMS mode), and now after compiling i get the sv_setBrushModel: NULL error… well, i’ve already spent half an hour skimming the map for lost origin brushes, found a few, error is still there…

is there any way of quickly selecting a brush with a certain texture? i’ve heard about this, something about shift+ctrl+click on the texture in the texturebrowser, but it doens’t work…

and using Find/Replace is no use obviously as it only selects faces (unable to delete the brush then) and it doesnt show them in 2D window then… sigh


(carnage) #2

im not sure lost origin brushes are the cause of your problem but akaik there is no quick way to slect origin brushes that are not in use. however i have a few ideas that might help you find them

try hiding all trasparent brushes, invert your selection and hide everyhting, then show transparent brushes and you should have a much easier time of finding the origin brushes


(Shaderman) #3

Select a face of a (origin) brush and press SHIFT + A then (select all of type).


(Flippy) #4

thnx both, it helped :slight_smile: I now have only 5 origin brushes left… 3 for the command post (LMS one, deleted the other one) and 2 for 2 health/ammo cabs. Compiling now… and it will take some time so ill get back to you tomorrow to see if the error is still there :stuck_out_tongue:

what else could cause the error? roeltje told me something about entities that contain brushes (func_explosive, func_constructible etc), when you delete the brushes, sometimes the entity itself stays… but i haven’t found anything like this looking in the entity list…


(=PoW= Kernel 2.6.5) #5

The SHIT+A thing is handy but is there a key that will select only the matching faces of a brush and not the entire brush?

If you have a brush with all caulk - except one face is a texture - and then you use SHIFT-A on the texture it will select the entire brush and not just the one face.

Is there a way to select just the faces?
That would be handy for a search and replace type things.


(SCDS_reyalP) #6

this error is not specific to orign brushes. It is caused by any antity which is expected to have brushes, but does not.

Origin brushes are discarded by the compiler, so a brush-based entity that consists of only an origin brush will cause this error, but it isn’t the only possible cause.

You may find the simplest way to resolve this is going through the .map file with a text editor. Search for the classnames of the brush based entities you use (“func_explosive” “script_mover” etc) and find the ones that don’t have any brushes, or have only origin brushes.

Always be sure to make a backup before you do this.

Alternately, you can go though the entity list (L key) and check each one from radiant.


(Flippy) #7

thanks, will do that… but i think the error is gone… i now get “info_limbo_camera doesnt have a target” … seems easy to fix, but at least the setbrushmodel error is gone :slight_smile:

@ =PoW= Kernel 2.6.5:
There is a Find/Replace function in radiant (1.4)… It’s under the Textures menu.

Just type in the texture to find, then the texture to replace, and press replace all or something…
be carefull not to use only Find and then replace the selected faces by hand, this always crashes my radiant…