Jump to content

Recommended Posts

I have been having this error pop up upon trying to generate layers for a terrain that I am building for the entirety of the day and I've had no clue why or how it is happening, help or a push in the right direction would be much appreciated.

 

 

 

the Layers.cfg file

class Layers
{
  {
  class SirB_Rangmore_forest_pine
  {
   texture=""
   material="SirB\Rangmore\data\SirB_Rangmore_forest_pine.rvmat";
  };
  class SirB_Rangmore_snow
  {
   texture=""
   material="SirB\Rangmore\data\SirB_Rangmore_snow.rvmat";
  };
  class SirB_Rangmore_rock
  {
   texture=""
   material="SirB\Rangmore\data\SirB_Rangmore_rock.rvmat"
  };
  class SirB_Rangmore_stony
  {
   texture=""
   material="SirB\Rangmore\data\SirB_Rangmore_stony.rvmat"
  };
  class SirB_Rangmore_beach
  {
   texture=""
   material="SirB\Rangmore\data\SirB_Rangmore_beach.rvmat"
  };
  class SirB_Rangmore_desert
  {
   texture=""
   material="SirB\Rangmore\data\SirB_Rangmore_desert.rvmat"
  };
  class SirB_Rangmore_wild_grass
  {
   texture=""
   material="SirB\Rangmore\data\SirB_Rangmore_wild_grass.rvmat"
  };
  class SirB_Rangmore_wildfield
  {
   texture=""
   material="SirB\Rangmore\data\SirB_Rangmore_wildfield.rvmat"
  };
  class SirB_Rangmore_marsh
  {
   texture=""
   material="SirB\Rangmore\data\SirB_Rangmore_marsh.rvmat"
  };
  class SirB_Rangmore_strseabed
  {
   texture="SirB\Rangmore\data\SirB_Rangmore_strseabed.rvmat"
  };
};
class Legend
{
  {
  picture="SirB\Rangmore\source\mapLegend.png"
  class Colors
  {
		SirB_Rangmore_forest_pine[]={{170,190,80}};
		SirB_Rangmore_snow[]={{255,255,255}};
		SirB_Rangmore_stony[]={{120,120,120}}:
		SirB_Rangmore_rock[]={{80,80,80}};
		SirB_Rangmore_beach[]={{175,160,130}};
		SirB_Rangmore_desert[]={{255,190,0}};
		SirB_Rangmore_wild_grass[]={{140,195,80}};
		SirB_Rangmore_wildfield[]={{170,180,70}};
		SirB_Rangmore_marsh[]={{158,198,90}};
		SirB_Rangmore_strseabed[]={{230,230,120}};
  };
};

and just in case it was an issue with an .rvmat file here is an .rvmat file

ambient[]={1.5,1.5,1.5,1};
diffuse[]={0.5,0.5,0.5,1};
forcedDiffuse[]={0,0,0,0};
emmisive[]={0,0,0,0};
specular[]={0,0,0,0};
specularPower=1;
PixelShaderID="NormalMapDiffuse";
VertexShaderID="NormalMapDiffuseAlpha";
class Stage1
{
	texture="SirB\data\SirB_Rangmore_beach_nopx.paa";
	uvSource="tex";
	class uvTransform
	{
		aside[]={10,0,0};
		up[]={0,10,0};
		dir[]={0,0,10};
		pos[]={0,0,0};
	};
};
class Stage2
{
	texture="SirB\data\SirB_Rangmore_beach_co.paa";
	uvSource="tex";
	class uvTransform
	{
		aside[]={10,0,0};
		up[]={0,10,0};
		dir[]={0,0,10};
		pos[]={0,0,0};
	};
};

what I have tried already

  1. got rid of duplicate references inside the cfg file
  2. retype the Layers.cfg file by hand
  3. take another Layers.cfg file
  4. renamed everthing
  5. made a Layers.cfg file with only four textures
  6. retype Layers.cfg file again
  7. restart the project

 

At the moment the only other thing I can think of is that the mask_Ico is a .bmp and has slightly different RGB codes (like 1-2 in any of the R,G or B) for some pixel than what is there for the colors class, but I think that would generate a different error code and using the magic wand w/ the fill tool would be a nightmare.

 

So once again, help me out please.

Share this post


Link to post
Share on other sites

Could it be something about adminrights and windows? This does not look like an error in your layers.cfg (at least i could not find one). It more seems to be the problem that terrainbuilder can not (or is not allowed to) open the file. Did you have look at this?

E.g. by starting terrainbuilder as admin or look at the folders and files wether they are protected or something?

 

Wrong colors usually doesnt stop terrainbuilder, it will just create the maps anyway (and you will see the wrong result in A3 or bulldozer).

 

Edit: One thing i noticed in your rvmats:

Your paths are not the same, as they should be (depending on where your data lays, but usually layers rvmat and paa are in the same data-folder):

 

Rvmat:

texture="SirB\data\SirB_Rangmore_beach_nopx.paa";

Layers.cfg:

 material="SirB\Rangmore\data\SirB_Rangmore_beach.rvmat"

You are missing one

\Rangmore

behind your "SirB...". Maybe that leads to the problem? Check all your layer rvmats for thoses paths and compare them to the data.

Share this post


Link to post
Share on other sites

Also do not choose 4 materials per cell. Use either 5 (if you have a sat normal mask) or 6 if you do not

Share this post


Link to post
Share on other sites
4 hours ago, Cosmo_D41 said:

Could it be something about adminrights and windows? This does not look like an error in your layers.cfg (at least i could not find one). It more seems to be the problem that terrainbuilder can not (or is not allowed to) open the file. Did you have look at this?

 

Edit: One thing i noticed in your rvmats:

Your paths are not the same, as they should be (depending on where your data lays, but usually layers rvmat and paa are in the same data-folder):

 

Rvmat:


texture="SirB\data\SirB_Rangmore_beach_nopx.paa";

Layers.cfg:


 material="SirB\Rangmore\data\SirB_Rangmore_beach.rvmat"

You are missing one


\Rangmore

behind your "SirB...". Maybe that leads to the problem? Check all your layer rvmats for thoses paths and compare them to the data.

Well, I ran tools in admin mode with all versions of windows compatibility with no dice. 

 For the rvmat. files, the one I posted was the only one that was like that.

 

3 hours ago, m1lkm8n said:

Also do not choose 4 materials per cell. Use either 5 (if you have a sat normal mask) or 6 if you do not

I tried that but, didn't seem to do anything.

 

EDIT: I went somewhere...

I got rid of 2 of { that weren't associated with a }; 

 

EDIT2: Well... I found the problem

So after that error I started taking things out of my layers.cfg file until another error occured or the processes of making the tiles started and when that happened I would put things back in until the first edit's error message popped up again.

class SirB_Rangmore_stony
  {
   texture=""
   material="SirB\Rangmore\data\SirB_Rangmore_stony.rvmat"
  };

		SirB_Rangmore_stony[]={{120,120,120}}:

turns out something is up here..... aaaaannnddd its the colon          :yeahthat: 

I'm going to generate my 1900 tiles now and eat some breakfast

 

 

Edited by Sir_Benton
  • Like 1

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

×