Jump to content

Recommended Posts

Does TB generate a new config.cpp ?

What is everyone else using are you all using the Altis config.cpp but just changing the paths if not could anyone please post an up-to-date config.cpp :)

Thanks guys

Share this post


Link to post
Share on other sites
Does TB generate a new config.cpp ?

What is everyone else using are you all using the Altis config.cpp but just changing the paths if not could anyone please post an up-to-date config.cpp :)

Thanks guys

Config:

#define _ARMA_

//Class config.bin{
class CfgPatches
{
class abc_sample
{
 units[] = {"abc_sample"};
 weapons[] = {};
 requiredVersion = 1.0;
 version = "30/07/2011";
 fileName = "abc_sample.pbo";
 author = "Jakerod";
};
};
class CfgWorlds
{
class CAWorld;
class Stratis: CAWorld
{
 class Grid;
 class DefaultClutter;
};
class abc_sample: Stratis
{
 cutscenes[] = {};
 description = "Your Sample Map";
 worldName = "abc\abc_sample\abc_sample.wrp";
 startTime = "11:00";
 startDate = "05/03/2001";
 startWeather = 0.2;
 startFog = 0.0;
 forecastWeather = 0.6;
 forecastFog = 0.0;
 centerPosition[] = {2560,2560,500};
 seagullPos[] = {2560,2560,500};
 longitude = 65;
 latitude = -34;
 elevationOffset = 2000;
  envTexture = "A3\Data_f\env_land_ca.tga";
 minTreesInForestSquare = 2;
 minRocksInRockSquare = 2;
 //newRoadsShape = "\abc\abc_sample\data\roads\roads.shp";
 ilsPosition[] = {1024,1024};
 ilsDirection[] = {0.5075,0.08,-0.8616};
 ilsTaxiIn[] = {};
 ilsTaxiOff[] = {};
 drawTaxiway = 0;
class SecondaryAirports {};

class Sea
 {
  seaTexture = "a3\data_f\seatexture_co.paa";
  seaMaterial = "#water";
  shoreMaterial = "#shore";
  shoreFoamMaterial = "#shorefoam";
  shoreWetMaterial = "#shorewet";
  WaterMapScale = 20;
  WaterGrid = 50;
  MaxTide = 0;
  MaxWave = 0;
  SeaWaveXScale = "2.0/50";
  SeaWaveZScale = "1.0/50";
  SeaWaveHScale = 2.0;
  SeaWaveXDuration = 5000;
  SeaWaveZDuration = 10000;
 };

/*
class OutsideTerrain
     {
       satellite = "jsp\abc_sample\Data\s_satout_co.paa";
       enableTerrainSynth = 1;
       class Layers
       {
         class Layer0
         {
           nopx = "jsp\abc_sample\data\abc_sample_grass_green_nopx.paa";
           texture = "jsp\abc_sample\data\abc_sample_grass_green_co.paa";
         };
       };
     };
*/

 class Grid: Grid
 {
  offsetX = 0;
  offsetY = 5120;
  class Zoom1
  {
   zoomMax = 0.15;
   format = "XY";
   formatX = "000";
   formatY = "000";
   stepX = 100;
   stepY = -100;
  };
  class Zoom2
  {
   zoomMax = 0.85;
   format = "XY";
   formatX = "00";
   formatY = "00";
   stepX = 1000;
   stepY = -1000;
  };
  class Zoom3
  {
   zoomMax = 1e+030.0;
   format = "XY";
   formatX = "0";
   formatY = "0";
   stepX = 10000;
   stepY = -10000;
  };
 };
#include "cfgClutter.hpp"
	class Names
	{
		#include "abc_sample.hpp"
	};
};
};
class CfgWorldList
{
class abc_sample{};
};
class CfgMissions
{
class Cutscenes
{

};
};


//SURFACES
#include "cfgSurfaces.hpp"

cfgClutter.hpp

class Clutter	
{
class abc_StrGrassGreenGroup: DefaultClutter
  {
   model = "A3\plants_f\Clutter\c_StrGrassGreen_group.p3d";
   affectedByWind = 0.6;
   swLighting = "true";
   scaleMin = 0.7;
   scaleMax = 1.0;
  };
};

cfgSurfaces.hpp

class CfgSurfaces 
{
class Default {};
class abc_samplemap_grass_green_Surface : Default
{	
	 files = "abc_samplemap_grass_green_*";
	 rough = 0.1;
	 dust = 0.05;
	 soundEnviron = "grass";
	 character = "abc_samplemap_grass_green_Character";
	  soundHit = "soft_ground";
};
};

class CfgSurfaceCharacters
{
class abc_samplemap_grass_green_Character
 	{
		probability[]={1.00};
		names[]={"abc_StrGrassGreenGroup"};
 	};
};

Share this post


Link to post
Share on other sites

I thank you, it must have been my config as this one after changing to my setting works great after Packing !

Many thanks !

Share this post


Link to post
Share on other sites
thanks @Jakerod for you always being around and willing to help.
I 2nd that !

No problem guys. I'm happy to help. Some people around here set some great examples for me.

Share this post


Link to post
Share on other sites

I get this error when I try and pack.

#include "abc_sample.hpp"

"abc_sample.hpp"

rapify x32UnicodeVersion 1.75, Dll 4.73 "config.cpp"

In File abc\abc_sample\config.cpp: Line 120 Cannot include file

were does the abc_sample.hpp come from?

Have I missed a step some were?

BTW: This is from your tut, I have read it many times, both the wiki and the readme :/

Share this post


Link to post
Share on other sites

I believe they are just Key points - so make a new Key-point in TB and it will create the file for you

If not just create an empty text file and rename it to abc_sample.hpp and try again that will work until you want to add keypoints

HTH

Share this post


Link to post
Share on other sites

Hi All, I know this thread is somewhat old being 3 1/2 years old but I wondered if anyone could tell me what's wrong with my config.cpp file. It packs with addon builder fine each time but I get a series of crashes when loading the game with the my map mod, my first time btw so still very much learning on an incredibly steep curve.

My latest crash message goes like this         

"File testisland\config.cpp, line 124: ' ,cfgClutter':  ',' encountered instead of '='

The one before that was

"File testisland\config.cpp, line 124: 'CfgWorlds.cfgClutter': '.' encountered instead of '='

 

I'm using the config that was given out above in the thread. After overcoming all sorts of  brick walls and learning around them I feel I'm close to an end result. The end result will be a simple island and I hope to progress from there.

All help humbly received. 

 

#define _ARMA_

//Class config.bin{
class CfgPatches
{
class testisland
{
 units[] = {"testisland"};
 weapons[] = {};
 requiredVersion = 1.0;
 version = "30/07/2011";
 fileName = "testisland.pbo";
 author = "GemStar";
};
};
class CfgWorlds
{
class CAWorld;
class Stratis: CAWorld
{
 class Grid;
 class DefaultClutter;
};
class testisland: Stratis
{
 cutscenes[] = {};
 description = "jerrys testisland";
 worldName = "testisland.wrp";
 startTime = "11:00";
 startDate = "05/03/2001";
 startWeather = 0.2;
 startFog = 0.0;
 forecastWeather = 0.6;
 forecastFog = 0.0;
 centerPosition[] = {2560,2560,500};
 seagullPos[] = {2560,2560,500};
 longitude = 65;
 latitude = -34;
 elevationOffset = 2000;
  envTexture = "testisland\data\testisland_env_land_co.paa";
 minTreesInForestSquare = 2;
 minRocksInRockSquare = 2;
 //newRoadsShape = "";
 ilsPosition[] = {1024,1024};
 ilsDirection[] = {0.5075,0.08,-0.8616};
 ilsTaxiIn[] = {};
 ilsTaxiOff[] = {};
 drawTaxiway = 0;
class SecondaryAirports {};

class Sea
 {
  seaTexture = "testisland\data\seatexture_co.paa";
  seaMaterial = "#water";
  shoreMaterial = "#shore";
  shoreFoamMaterial = "#shorefoam";
  shoreWetMaterial = "#shorewet";
  WaterMapScale = 20;
  WaterGrid = 50;
  MaxTide = 0;
  MaxWave = 0;
  SeaWaveXScale = "2.0/50";
  SeaWaveZScale = "1.0/50";
  SeaWaveHScale = 2.0;
  SeaWaveXDuration = 5000;
  SeaWaveZDuration = 10000;
 };

/*
class OutsideTerrain
     {
       satellite = "jsp\abc_sample\Data\s_satout_co.paa";
       enableTerrainSynth = 1;
       class Layers
       {
         class Layer0
         {
           nopx = "jsp\abc_sample\data\abc_sample_grass_green_nopx.paa";
           texture = "jsp\abc_sample\data\abc_sample_grass_green_co.paa";
         };
       };
     };
*/

 class Grid: Grid
 {
  offsetX = 0;
  offsetY = 5120;
  class Zoom1
  {
   zoomMax = 0.15;
   format = "XY";
   formatX = "000";
   formatY = "000";
   stepX = 100;
   stepY = -100;
  };
  class Zoom2
  {
   zoomMax = 0.85;
   format = "XY";
   formatX = "00";
   formatY = "00";
   stepX = 1000;
   stepY = -1000;
  };
  class Zoom3
  {
   zoomMax = 1e+030.0;
   format = "XY";
   formatX = "0";
   formatY = "0";
   stepX = 10000;
   stepY = -10000;
  };
 };
#include "cfgClutter.hpp"
    class Names
    {
        #include "testisland.hpp"
    };
};
};
class CfgWorldList
{
class testisland{};
};
class CfgMissions
{
class Cutscenes
{

};
};

#include "cfgSurfaces.hpp"

cfgClutter.hpp

class Clutter    
{
class testisland_grass: DefaultClutter
  {
   model = "testisland_grass_co.paa";
   affectedByWind = 0.6;
   swLighting = "true";
   scaleMin = 0.7;
   scaleMax = 1.0;
  };
class testisland_dry_grass: DefaultClutter
  {
   model = "gdt_dry_grass_co.paa";
   affectedByWind = 0.6;
   swLighting = "true";
   scaleMin = 0.7;
   scaleMax = 1.0;
  };
class testisland_beach_sand: DefaultClutter
  {
   model = "sand_detail_co.paa";
   affectedByWind = 0.6;
   swLighting = "true";
   scaleMin = 0.7;
   scaleMax = 1.0;
  };
};
cfgSurfaces.hpp

class CfgSurfaces 
{
class Default {};
class testisland_grass_Surface : Default
{    
     files = "testisland_grass_*";
     rough = 0.1;
     dust = 0.05;
     soundEnviron = "grass";
     character = "testisland_grass_Character";
      soundHit = "soft_ground";
};
class testisland_beach_sand_Surface : Default
{    
     files = "testisland_beach_sand_*";
     rough = 0.1;
     dust = 0.05;
     soundEnviron = "sand";
     character = "testisland_beach_sand_Character";
      soundHit = "soft_ground";
};
};

class CfgSurfaceCharacters
{
class testisland_grass_Character
     {
        probability[]={0.5,0.5};
        names[]={"testisland_grass_co.paa","gdt_dry_grass_co.paa"};
     };
class testisland_beach_sand_Character
     {
        probability[]={0.05};
        names[]={"sand_detail_co.paa"};
     };
};

Share this post


Link to post
Share on other sites
5 hours ago, Jeremy James said:

Hi All, I know this thread is somewhat old being 3 1/2 years old but I wondered if anyone could tell me what's wrong with my config.cpp file. It packs with addon builder...

 

Addon Builder is broken for making maps, you should be using pboproject. Since you are using addon builder, the guide you are learning from is wrong. So start with https://pmc.editing.wiki/doku.php?id=arma3:terrain

It has the most up to date info, also get on the Arma Discord for quicker help

Share this post


Link to post
Share on other sites

Hi thanks for reply, It's broken, oh dear that's 2 days I will never get back lol.

I was using pboproject but that kept telling me I had a problem in my layers.cfg which to be honest I couldn't find, last error was .............

testisland\source\layers.cfg: Generic error or EOF

Failed. View->output logs for testisland

testisland.pbo not produced due to error(s)

...........

class Layers
{
  class testisland_beach_sand
  {
    texture = "testisland\data\testisland_beach_sand_co.paa";
    material = "testisland\data\testisland_beach_sand.rvmat";
  };
  class testisland_pebbles
  {
    texture = "testisland\data\testisland_pebbles_co.paa";
    material = "testisland\data\testisland_pebbles.rvmat";
  };
  class testisland_dry_grass
  {
    texture = "testisland\data\testisland_dry_grass_co.paa";
    material = "testisland\data\testisland_dry_grass.rvmat";
  };
  class testisland_coastal_grass
  {
    texture = "testisland\data\testisland_coastal_grass_co.paa";
    material = "testisland\data\testisland_coastal_grass.rvmat";
  };
  class testisland_dry_grass2
  {
    texture = "testisland\data\testisland_dry_grass2_co.paa";
    material = "testisland\data\testisland_dry_grass2.rvmat";
  };
  class testisland_dry_grass3
  {
    texture = "testisland\data\testisland_dry_grass3_co.paa";
    material = "testisland\data\testisland_dry_grass3.rvmat";
  };
  class testisland_grass
  {
    texture = "testisland\data\testisland_grass_co.paa";
    material = "testisland\data\testisland_grass.rvmat";
  };
  class testisland_coastal_grass2
  {
    texture = "testisland\data\testisland_coastal_grass2_co.paa";
    material = "testisland\data\testisland_coastal_grass2.rvmat";
  };
  class testisland_coastal_grass3
  {
    texture = "testisland\data\testisland_coastal_grass3_co.paa";
    material = "testisland\data\testisland_coastal_grass3.rvmat";
  };
};

class Legend
{
  picture="testisland\source\mapLegend.png";
  class Colors
  {
    testisland_beach_sand[]={{230,230,120}};
    testisland_pebbles[]={{175,160,130}};
    testisland_dry_grass[]={{170,190,80}};
    testisland_coastal_grass[]={{160,200,90}};
    testisland_dry_grass2[]={{160,195,80}};
    testisland_dry_grass3[]={{150,195,80}};
    testisland_grass[]={{140,195,80}};
    testisland_coastal_grass2[]={{158,198,90}};
    testisland_coastal_grass3[]={{155,195,90}};
  };
};

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

×