Jump to content
Sign in to follow this  
Tonto-

Too many surface materials found

Recommended Posts

SOLVED:

I cant get rid of this error "Warning: surface mask tile "asd_555_555_lca.png" - found xx materials (6 allowed)" in Terrain Builder while trying to generate surface mask layer. It generates the layer but when i try the terrain in bulldozer, everything is just one surface texture.

 

This is from TB console:

Debugger info - Cannot evaluate 'X¢¨¤' - no file 
Debugger info - Cannot evaluate 'X¢¨¤' - no file 
Debugger info - Cannot evaluate 'X¢¥' - no file 
Debugger info - Cannot evaluate 'X¢¥' - no file 
Debugger info - Cannot evaluate 'X¢h¥' - no file 
Debugger info - Cannot evaluate 'X¢h¥' - no file 
Warning: surface mask tile "M_006_000_lca.png" - found 101 materials (6 allowed)
Warning: surface mask tile "M_007_000_lca.png" - found 118 materials (6 allowed)
Warning: surface mask tile "M_008_000_lca.png" - found 140 materials (6 allowed)
Warning: surface mask tile "M_009_000_lca.png" - found 77 materials (6 allowed)
Warning: surface mask tile "M_006_001_lca.png" - found 94 materials (6 allowed)
Warning: surface mask tile "M_007_001_lca.png" - found 138 materials (6 allowed)
Warning: surface mask tile "M_008_001_lca.png" - found 119 materials (6 allowed)
Warning: surface mask tile "M_009_001_lca.png" - found 27 materials (6 allowed)
Warning: surface mask tile "M_006_002_lca.png" - found 68 materials (6 allowed)
Warning: surface mask tile "M_007_002_lca.png" - found 120 materials (6 allowed)
Warning: surface mask tile "M_008_002_lca.png" - found 130 materials (6 allowed)
Warning: surface mask tile "M_009_002_lca.png" - found 77 materials (6 allowed)
Warning: surface mask tile "M_007_003_lca.png" - found 65 materials (6 allowed)
Warning: surface mask tile "M_008_003_lca.png" - found 114 materials (6 allowed)
Warning: surface mask tile "M_009_003_lca.png" - found 105 materials (6 allowed)
Warning: surface mask tile "M_007_004_lca.png" - found 57 materials (6 allowed)
Warning: surface mask tile "M_008_004_lca.png" - found 124 materials (6 allowed)
Warning: surface mask tile "M_009_004_lca.png" - found 91 materials (6 allowed)
Warning: surface mask tile "M_007_005_lca.png" - found 12 materials (6 allowed)
Warning: surface mask tile "M_008_005_lca.png" - found 110 materials (6 allowed)
Warning: surface mask tile "M_009_005_lca.png" - found 74 materials (6 allowed)
Warning: surface mask tile "M_008_006_lca.png" - found 92 materials (6 allowed)
Warning: surface mask tile "M_009_006_lca.png" - found 62 materials (6 allowed)
Warning: surface mask tile "M_008_007_lca.png" - found 89 materials (6 allowed)
Warning: surface mask tile "M_009_007_lca.png" - found 31 materials (6 allowed)
Warning: surface mask tile "M_008_008_lca.png" - found 63 materials (6 allowed)
Warning: surface mask tile "M_009_008_lca.png" - found 19 materials (6 allowed)

Grid size is 8192 x 8192, same as heightmaps resolution.

Cell size 2.250

Im trying to build 18.432 x 18.432km terrain.

 

Sat image resolution is 18432 x 18432px

Mask image 36864 x 36864px in .tiff format

 

The mask image has no more than 6 colors strictly picked from maplegend picture.

 

Heres layers.cfg:

class Layers
{
	class lapua_sammal
	{
		texture = "";
		material = "p:\lapua\data\lapua_sammal.rvmat";
	};
	class lapua_hietikko2_gravel
	{
		texture = "";
		material = "p:\lapua\data\lapua_hietikko2_gravel.rvmat";
	};
	class lapua_pelto
	{
		texture = "";
		material = "p:\lapua\data\lapua_pelto.rvmat";
	};
	class lapua_pelto2_green
	{
		texture = "";
		material = "p:\lapua\data\lapua_pelto2_green.rvmat";
	};
	class lapua_hakkuu2
	{
		texture = "";
		material = "p:\lapua\data\lapua_hakkuu2.rvmat";
	};
	class lapua_nurmi2
		{
		texture = "";
		material = "p:\lapua\data\lapua_nurmi2.rvmat";
	};
};

class Legend
{
	picture="p:\lapua\source\MapLegend.png";
	class Colors
		{
			lapua_sammal[]={{0,255,0}};
			lapua_hietikko2_gravel[]={{255,255,0}};
			lapua_pelto[]={{0.255.137}};
			lapua_pelto2_green[]={{7.0.254}};
			lapua_hakkuu2[]={{255.128.0}};
			lapua_nurmi2[]={{255,0,4}};
		}
};

 Im all out of ideas. Why tb finds those materials?

Share this post


Link to post
Share on other sites

Try ditching the "P:\" at the front of your file paths.

Share this post


Link to post
Share on other sites

Should have caught this before but it seems like some of your color entries use "," (e.g. 0,255,0) and others use "." (e.g. 0.255.137). Try changing them all to ",". Additionally try changing your texture lines to this: texture = #(rgb,1,1,1)color(0.5,0.5,0.5,1,cdt);

Share this post


Link to post
Share on other sites

Oh boy how can a person be this blind. It was about those dots. :D

 

Thanks a million, jakerod.

Share this post


Link to post
Share on other sites

No problem! Those are easy to miss since they are small, similar, and next to each other on the keyboard. It's a lot of fun when you're scripting/coding and have to look through a hundred lines or so :D

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×