Jump to content
Mattastic

Layers and mask texture mismatch

Recommended Posts

I'm doing some work on my mask layer and I'm running into an issue. I recently added a new texture (concrete) to add to my airport(s) and some other places on my terrain. After my first pass at editing the mask, updating Layers.cfg and other code, re-importing it into TB, regenerating layers, and packing it up, everything looked fine in game when observing the actual areas of the mask that I edited (See Image 1). However, areas all over the map that do not have the mask color for concrete now have the concrete texture merged into them or speckled about seemingly (See Image 2 & 3). Image 4 is my mask for the airport area and below all of the images is my Layers.cfg. Not sure what the issue is here so anyone who can shine light on anything would be a godsend. Much thanks!

 

Images:

Spoiler

 

Image #1

5ReeYuS.jpg

Image #2

4dIvg1j.jpg

Image #3

9k00leu.jpg

Image #4

swePfjy.png

 

Layers.cfg:

Spoiler

class Layers
{
  class mef_alaska_soil
  {
    texture = #(rgb,1,1,1)color(0.5,0.5,0.5,1,cdt);
    material = "mef_alaska2035\data\mef_alaska_soil.rvmat";
  };
  class mef_alaska_forest_pine
  {
    texture = #(rgb,1,1,1)color(0.5,0.5,0.5,1,cdt);
    material = "mef_alaska2035\data\mef_alaska_forest_pine.rvmat";
  };
  class mef_alaska_grass_green
  {
    texture = #(rgb,1,1,1)color(0.5,0.5,0.5,1,cdt);
    material = "mef_alaska2035\data\mef_alaska_grass_green.rvmat";
  };
  class mef_alaska_beach
  {
    texture = #(rgb,1,1,1)color(0.5,0.5,0.5,1,cdt);
    material = "mef_alaska2035\data\mef_alaska_beach.rvmat";
  };
  class mef_alaska_dirt
  {
    texture = #(rgb,1,1,1)color(0.5,0.5,0.5,1,cdt);
    material = "mef_alaska2035\data\mef_alaska_dirt.rvmat";
  };
  class mef_alaska_dry_grass
  {
    texture = #(rgb,1,1,1)color(0.5,0.5,0.5,1,cdt);
    material = "mef_alaska2035\data\mef_alaska_dry_grass.rvmat";
  };
  class mef_alaska_hlina
  {
    texture = #(rgb,1,1,1)color(0.5,0.5,0.5,1,cdt);
    material = "mef_alaska2035\data\mef_alaska_hlina.rvmat";
  };
  class mef_alaska_marsh
  {
    texture = #(rgb,1,1,1)color(0.5,0.5,0.5,1,cdt);
    material = "mef_alaska2035\data\mef_alaska_marsh.rvmat";
  };
  class mef_alaska_rock
  {
    texture = #(rgb,1,1,1)color(0.5,0.5,0.5,1,cdt);
    material = "mef_alaska2035\data\mef_alaska_rock.rvmat";
  };
  class mef_alaska_sterk
  {
    texture = #(rgb,1,1,1)color(0.5,0.5,0.5,1,cdt);
    material = "mef_alaska2035\data\mef_alaska_sterk.rvmat";
  };
  class mef_alaska_stony
  {
    texture = #(rgb,1,1,1)color(0.5,0.5,0.5,1,cdt);
    material = "mef_alaska2035\data\mef_alaska_stony.rvmat";
  };
  class mef_alaska_thistle_stony
  {
    texture = #(rgb,1,1,1)color(0.5,0.5,0.5,1,cdt);
    material = "mef_alaska2035\data\mef_alaska_thistle_stony.rvmat";
  };
  class mef_alaska_trava
  {
    texture = #(rgb,1,1,1)color(0.5,0.5,0.5,1,cdt);
    material = "mef_alaska2035\data\mef_alaska_trava.rvmat";
  };
  class mef_alaska_vres
  {
    texture = #(rgb,1,1,1)color(0.5,0.5,0.5,1,cdt);
    material = "mef_alaska2035\data\mef_alaska_vres.rvmat";
  };
  class mef_alaska_weed
  {
    texture = #(rgb,1,1,1)color(0.5,0.5,0.5,1,cdt);
    material = "mef_alaska2035\data\mef_alaska_weed.rvmat";
  };
  class mef_alaska_wild_grass
  {
    texture = #(rgb,1,1,1)color(0.5,0.5,0.5,1,cdt);
    material = "mef_alaska2035\data\mef_alaska_wild_grass.rvmat";
  };
  class mef_alaska_wildfield
  {
    texture = #(rgb,1,1,1)color(0.5,0.5,0.5,1,cdt);
    material = "mef_alaska2035\data\mef_alaska_wildfield.rvmat";
  };
  class mef_alaska_concrete
  {
    texture = #(rgb,1,1,1)color(0.5,0.5,0.5,1,cdt);
    material = "mef_alaska2035\data\mef_alaska_concrete.rvmat";
  };
};

class Legend
{
  picture="mef_alaska2035\source\mapLegend.png";
  class Colors
  {
	mef_alaska_weed[]={{110,180,80}};
  mef_alaska_soil[]={{255,255,255}};
  mef_alaska_grass_green[]={{140,195,80}};
  mef_alaska_beach[]={{230,230,120}};
  mef_alaska_rock[]={{120,121,120},{120,120,120}};
  mef_alaska_dry_grass[]={{170,190,80}};
  mef_alaska_hlina[]={{175,161,131}};
  mef_alaska_marsh[]={{120,122,122}};
  mef_alaska_dirt[]={{170,180,70}};
  mef_alaska_sterk[]={{80,80,80}};
  mef_alaska_trava[]={{160,195,80}};
  mef_alaska_thistle_stony[]={{150,195,80}};
  mef_alaska_stony[]={{150,180,80}};
  mef_alaska_forest_pine[]={{120,190,80}};
  mef_alaska_wild_grass[]={{140,185,70}};
  mef_alaska_wildfield[]={{110,190,80}};
  mef_alaska_concrete[]={{255,45,49}};
  };
};

 

 

Share this post


Link to post
Share on other sites

Are you using solid colours? The surface image is low res, so I can't really see. But make sure you don't go over 6 colours or what you have it set to. Maybe try setting you tile size to 512x512 if you haven't already.

Share this post


Link to post
Share on other sites

Yes definitely using solid colors and im already at 512. Ill do another pass and look to see if I passed that color limit. Ive only ever used the 4 and 5 mats option (right now it is 5). Have you ever used the 6 mats per cell option?

Share this post


Link to post
Share on other sites

Been using it for a year and a half, works fine

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

×