Jump to content
Sign in to follow this  
xm1014

Terrain Builder - Generate Layers crashes on exporting surfase mask

Recommended Posts

Hi forum,

I've been attempting to create my own map inspired by my home county in England, Sussex. This is my first attempt at building a map, but thought I'd use various resources such as YouTube, PMC's wiki etc to collate. I'm using QGIS to generate a heightmap, satmap and mask.

As the title states, my terrain builder crashes regularly (though, occasionally will work) when I generate layers; I have read various threads here and elsewhere and nothing's worked so far, a user here in another thread suggested deleting the heightmap and satmap + the layers folder generated by the generate layers function. However, this has not worked. I am certain my P:\ is mounted correctly and I am using the Terrain Builder.exe directly from the Arma3Tools folder in the C:\.

Here is my layers.cfg:
 

class Layers
{
	
	class sussex_grass
	{
		texture = "sussexlayers\data\gdt_grass_short_co.paa";
		material = "sussexlayers\data\gdt_grass_short.rvmat";
	};
	class sussex_road
	{
		texture = "sussexlayers\data\gdt_asphalt_co.paa";
		material = "sussexlayers\data\gdt_asphalt.rvmat";
	};
	class sussex_field
	{
		texture = "sussexlayers\data\gdt_grass_tall_co.paa";
		material = "sussexlayers\data\gdt_grass_tall.rvmat";
	};
	class sussex_forest
	{
		texture = "sussexlayers\data\gdt_forest_co.paa";
		material = "sussexlayers\data\gdt_forest.rvmat";
	};
	
	class sussex_dirt	{
		texture = "sussexlayers\data\gdt_reddirt_co.paa";
		material = "sussexlayers\data\gdt_reddirt.rvmat";
	};
};
 
class Legend
{
	picture = "sussexlayers\maplegend.png";
 
	class Colors
	{
		sussex_road = (193, 114, 170)  
		sussex_concrete = (249, 44, 212) 
		sussex_water = (91, 137, 223)  
		sussex_grass = (80, 148, 55) 
		sussex_field = (128, 197, 46)
		sussex_forest = (0, 94, 26)  
		sussex_dirt = (126, 62, 6) 
		sussex_sand = (203, 190, 0) 
	};
};

I am confident this is not the issue (however, when it has generated layers and I've used buldozer, I only ever see sussex_grass, but this is a separate issue...)

I have screenshots of the following:

P:\ directory: https://pasteboard.co/PiCJWtudiIt8.png

P:\ Data drive: https://pasteboard.co/sUwTmaDyeOGO.png
Mapframe properties - Location: https://pasteboard.co/0fKNGZREP1vg.png
Mapframe properties - Sampler: https://pasteboard.co/2q2ZnQt3F5Tp.png
Mapframe properties - Processing: https://pasteboard.co/jGVOOvo16VV4.png

On my GTT_Export config, the details are:

[## Export settings ##]
scaling enabled = False
tiling enabled = False
tile resolution = 4096
real terrain size (m) = 10230

[## Terrain Details ##]
grid size = 4096 x 4096
cell size (m) = 2.49755859375
terrain size (m) = 10230
satmap size (px) = 10230 x 10230
resolution (m/px) = 1.0

[## Arma config entries ##]
longitude = -0.27599331753273254
latitude = -50.90498739883566
mapsize = 10230
mapzone = 30

[## Surface entries ##]
road = (193, 114, 170)  #c172aa
concrete = (249, 44, 212)  #f92cd4
water = (91, 137, 223)  #5b89df
grass = (80, 148, 55)  #509437
field = (128, 197, 46)  #80c52e
forest = (0, 94, 26)  #005e1a
dirt = (126, 62, 6)  #7e3e06
sand = (203, 190, 0)  #cbbe00

Any advice/feedback is really appreciated, I'm utterly stuck and every tutorial and thread I have come across never appears to have this issue. Let me know if you need any more information.

Thanks,

Ross


 

Share this post


Link to post
Share on other sites

Update, it's now worked.

I think it's largely created by myself than anything else. For those who have a similar issue, delete your layers subfolder that's normally in the \data\ folder and make sure you have 6 materials per cell and it worked...

Without having to make another thread, in the original post I mentioned despite my layers.cfg referencing various textures and linking this to the gtt_export RGB values - only seeing grass: https://pasteboard.co/fU18o8IKyKJt.png

Any ideas?

Share this post


Link to post
Share on other sites

It's amazing what you can discover when you're posting aimlessly onto a forum!!

My layers.cfg was wrong.. like very wrong lol. 

I'm hoping my folly helps anyone searching for help.

General rules:

Make sure you follow tutorials properly :^)

Share this post


Link to post
Share on other sites
1 hour ago, xm1014 said:

It's amazing what you can discover when you're posting aimlessly onto a forum!!

My layers.cfg was wrong.. like very wrong lol. 

I'm hoping my folly helps anyone searching for help.

General rules:

Make sure you follow tutorials properly :^)

 

 

The texture line isn't used in A3, so you can just put texture = "";

Share this post


Link to post
Share on other sites
20 hours ago, RoF said:

 

 

The texture line isn't used in A3, so you can just put texture = "";

Hey RoF,

Yep! New config file has been amended to reflect that. Also added the proper syntax for the class Legend RGB values.

Share this post


Link to post
Share on other sites

This layer.cfg works perfectly, compare and review the statements. See the names of the class legend.

 

class Layers
{
  class btrx_strthistles
  {
    texture = "btrx\btrx_qcondor\data\btrx_strthistles_co.paa";
    material = "btrx\btrx_qcondor\data\btrx_strthistles.rvmat";
  };
  
  class btrx_rock_red
  {
    texture = "btrx\btrx_qcondor\data\btrx_rock_red_co.paa";
    material = "btrx\btrx_qcondor\data\btrx_rock_red.rvmat";
  };
  
  class btrx_dry_grass
  {
    texture = "btrx\btrx_qcondor\data\btrx_dry_grass_co.paa";
    material = "btrx\btrx_qcondor\data\btrx_dry_grass.rvmat";
  };

 class btrx_grass_green
  {
    texture = "btrx\btrx_qcondor\data\btrx_grass_green_co.paa";
    material = "btrx\btrx_qcondor\data\btrx_grass_green.rvmat";
  };
 
 class btrx_lecho_seco
  {
    texture = "btrx\btrx_qcondor\data\btrx_lecho_seco_co.paa";
    material = "btrx\btrx_qcondor\data\btrx_lecho_seco.rvmat";
  };
  
 class btrx_sand
  {
    texture = "btrx\btrx_qcondor\data\btrx_sand_co.paa";
    material = "btrx\btrx_qcondor\data\btrx_sand.rvmat";
  }; 
  
  class btrx_sand_soil
  {
    texture = "btrx\btrx_qcondor\data\btrx_sand_soil_co.paa";
    material = "btrx\btrx_qcondor\data\btrx_sand_soil.rvmat";
  }; 

  class btrx_forest
  {
    texture = "btrx\btrx_qcondor\data\btrx_forest_co.paa";
    material = "btrx\btrx_qcondor\data\btrx_forest.rvmat";
  }; 
  
  class btrx_concrete
  {
    texture = "btrx\btrx_qcondor\data\btrx_concrete_co.paa";
    material = "btrx\btrx_qcondor\data\btrx_concrete.rvmat";
  };

  class btrx_sand_soilb
  {
    texture = "btrx\btrx_qcondor\data\btrx_sand_soilb_co.paa";
    material = "btrx\btrx_qcondor\data\btrx_sand_soilb.rvmat";
  }; 

};

class Legend
{
  picture = "btrx\btrx_qcondor\source\maplegend.png";
  class Colors
  {
  btrx_strthistles[] = {{255,0,0}}; //rojo, piedras con arena
  btrx_rock_red[] = {{0,0,255 }}; //azul piedras colorados
  btrx_dry_grass[] = {{255,255,0}}; //Amarillo pastos secos montaña  
  btrx_grass_green[] = {{0,255,0}}; // verde pastos verdes
  btrx_lecho_seco[] = {{247,182,0}}; //marron claro lecho seco
  btrx_sand[] = {{102,51,0}}; //marron oscuro arena rio
  btrx_sand_soil[] = {{204,102,0}}; //marron arena tierra seca
  btrx_forest[] = {{47,91,0}}; //verde oscuro suelo arboleda
  btrx_concrete[] = {{135,135,135}}; //solo surface para la pista
  btrx_sand_soilb[] = {{255,153,0}}; //marron arena tierra seca vacia
  };
};

Share this post


Link to post
Share on other sites
12 hours ago, BuitreX said:

  class btrx_strthistles
  {
    texture = "btrx\btrx_qcondor\data\btrx_strthistles_co.paa";
    material = "btrx\btrx_qcondor\data\btrx_strthistles.rvmat";
  };
 

 

 

The texture line isn't used in A3, so you can just put texture = "";

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  

×