Reducing grass detail with vbsp?

Discussion in 'Mapping Questions & Discussion' started by Noggin, Jun 14, 2009.

  1. Noggin

    Noggin L5: Dapper Member

    Messages:
    226
    Positive Ratings:
    48
    I wanted to reduce the amount of grass detail so I made a vbsp file for my map and called it "detail_timbertown.vbsp", changed it accordingly in the map properties.

    I put the file in this folder:

    I:\Games\Steam\steamapps\ACCOUNTNAME\team fortress 2

    When I run the map, I get this error:

    "VBSP: Material NATURE/BLENDGROUNDTOGRASS007 uses unknown detail object type tf_forest_grass!"

    Anyone know how to fix this?

    Code:
    detail
    {
    
    tf_forest_grass
    	{
    		"density" "1000.0"
    		Group1
    		{
    	
    			"alpha" "1.0"
    			Model1
    			{
    				"sprite" "0 0 164 256 512" 
    				"spritesize" "0.5 0.0 21 48"
    				"spriterandomscale" "0.2"
    				"amount" "0.1"
    				"detailOrientation" "0"
    			}
    			Model2
    			{
    				"sprite" "200 85 94 172 512" 
    				"spritesize" "0.5 0.0 16 37"
    				"spriterandomscale" "0.2"
    				"amount" "0.1"
    				"detailOrientation" "0"
    			}
    			Model3
    			{
    				"sprite" "354 161 148 96 512" 
    				"spritesize" "0.5 0.0 32 32"
    				"spriterandomscale" "0.2"
    				"amount" "0.1"
    				"detailOrientation" "0"
    			}
    			Model4
    			{
    				"sprite" "32 416 64 96 512" 
    				"spritesize" "0.5 0.0 12 16"
    				"spriterandomscale" "0.2"
    				"amount" "0.4"
    				"detailOrientation" "0"
    			}
    			Model5
    			{
    				"sprite" "217 472 68 40 512" 
    				"spritesize" "0.5 0.0 18 12"
    				"spriterandomscale" "0.2"
    				"amount" "0.75"
    				"detailOrientation" "0"
    			}
    			Model6
    			{
    				"sprite" "418 424 43 88 512" 
    				"spritesize" "0.5 0.0 11 22"
    				"spriterandomscale" "0.2"
    				"amount" "0.1"
    				"detailOrientation" "0"
    			}
    		}
    		Group2
    		{
    			"alpha" "0.5"
    			Model4
    			{
    				"sprite" "32 416 64 96 512" 
    				"spritesize" "0.5 0.0 12 16"
    				"spriterandomscale" "0.2"
    				"amount" "0.2"
    				"detailOrientation" "2"
    			}
    			Model5
    			{
    				"sprite" "217 472 68 40 512" 
    				"spritesize" "0.5 0.0 18 12"
    				"spriterandomscale" "0.2"
    				"amount" "0.5"
    				"detailOrientation" "2"
    			}
    		}
    		Group3
    		{
    			"alpha" "0.25"
    		}
    		Group4
    		{
    			"alpha" "0.0"
    		}
    	}
    
    tf_forest_grass_temp
    	{
    		"density" "1000.0"
    		Group1
    		{
    	
    			"alpha" "1.0"
    			Model1
    			{
    				"sprite" "0 0 164 256 512" 
    				"spritesize" "0.5 0.0 21 48"
    				"spriterandomscale" "0.2"
    				"amount" "0.04"
    				"detailOrientation" "0"
    			}
    			Model2
    			{
    				"sprite" "200 85 94 172 512" 
    				"spritesize" "0.5 0.0 16 37"
    				"spriterandomscale" "0.4"
    				"amount" "0.05"
    				"detailOrientation" "0"
    			}
    			Model3
    			{
    				"sprite" "354 161 148 96 512" 
    				"spritesize" "0.5 0.0 32 32"
    				"spriterandomscale" "0.4"
    				"amount" "0.2"
    				"detailOrientation" "0"
    			}
    			Model4
    			{
    				"sprite" "32 416 64 96 512" 
    				"spritesize" "0.5 0.0 12 16"
    				"spriterandomscale" "0.3"
    				"amount" "0.1"
    				"detailOrientation" "0"
    			}
    			Model5
    			{
    				"sprite" "217 472 68 40 512" 
    				"spritesize" "0.5 0.0 18 12"
    				"spriterandomscale" "0.4"
    				"amount" "0.25"
    				"detailOrientation" "0"
    			}
    			Model6
    			{
    				"sprite" "418 424 43 88 512" 
    				"spritesize" "0.5 0.0 11 22"
    				"spriterandomscale" "0.05"
    				"amount" "0.1"
    				"detailOrientation" "0"
    			}
    		}
    		Group2
    		{
    			"alpha" "0.5"
    			Model4
    			{
    				"sprite" "32 416 64 96 512" 
    				"spritesize" "0.5 0.0 12 16"
    				"spriterandomscale" "0.3"
    				"amount" "0.1"
    				"detailOrientation" "2"
    			}
    			Model5
    			{
    				"sprite" "217 472 68 40 512" 
    				"spritesize" "0.5 0.0 18 12"
    				"spriterandomscale" "0.4"
    				"amount" "0.25"
    				"detailOrientation" "2"
    			}
    		}
    		Group3
    		{
    			"alpha" "0.0"
    		}
    	}
    }
    
    
     
  2. An Icy Mouse

    aa An Icy Mouse

    Messages:
    205
    Positive Ratings:
    34
    I did something like this just the other day, you don't need the _temp one at the bottom of your file and the chances are you got something wrong in the map properties dialogue box, double check all your filenames.
     
  3. AntonJ3000

    AntonJ3000 I am inactive and make horrible maps

    Messages:
    401
    Positive Ratings:
    89
    You should place it in
    I:\Games\Steam\steamapps\ACCOUNTNAME\team fortress 2\tf

    That's atleast where 2fort, dustbowl, granary, lumberyard ones are.
     
  4. Noggin

    Noggin L5: Dapper Member

    Messages:
    226
    Positive Ratings:
    48
    That worked, thanks!