Jump to content
Sign in to follow this  
landdon

Error in Config.cpp regarding map grid

Recommended Posts

Hello all,

I have run into a stumbling block which for the life of me, I just simply cannot figure it out. I have begun creating an island after completing Sgt. Ace’s, Mondkalb’s and Bushlurker’s tutorials. I have gotten the terrain into the game. The problem is with the map grid; every time I add what I believe is the proper scripted lines for it into “config.ccp†and then binarze the terrain I get an error.

The error in the report states the following:

File p:\lan\CampCarver\config.cpp, line 85: .Grid: Undefined base class 'Grid'

Config : some input after EndOfFile.

Error 3 while parsing

Error in config p:\lan\CampCarver\config.cpp

Updating base class Grid->, by p:\lan\CampCarver\config.cpp/CfgWorlds/Utes/Grid/

File p:\lan\campcarver\config.cpp, line 85: .Grid: Undefined base class 'Grid'

Config : some input after EndOfFile.

Error 3 while parsing

Error in config p:\lan\campcarver\config.cpp

So based on what I have learned so far, with a terrain 4096 with a 10 meter cell size, I believe my “offset†should equal 40960 meters. So I don’t that is the problem. I'm not sure how to "define" the base class "Grid". Below is my config.cpp:

#define _ARMA_

//Class config.bin{
class CfgPatches
{
class CampCarver
{
 units[] = {"CampCarver"};
 weapons[] = {};
 requiredVersion = 1.0;
 requiredAddons[] = {"Utes"};
 version = "28/05/2011";
 fileName = "CampCarver.pbo";
 author = "Landdon";
 mail = "z3us0lympus@comcast.net";
};
};
class CfgWorlds
{
class CAWorld;
class Utes: CAWorld
{
 class Grid {};
 class DefaultClutter;
};
class CampCarver: Utes
{
 cutscenes[] = {};
 description = "10th SFG Training Area v0.1";
 worldName = "lan\campcarver\campcarver.wrp";
 pictureShot = "lan\campcarver\data\campcarver_Menu_ca.paa";
 startTime = "12:00";
 startDate = "05/8/2001";
 startWeather = 0.0;
 startFog = 0.0;
 forecastWeather = 0.2;
 forecastFog = 0.2;
 centerPosition[] = {20480,20480,500};
 seagullPos[] = {20480,20480,500};
 longitude = 25;
 latitude = 39;
 clutterGrid = 1;
 clutterDist = 200;
 noDetailDist = 50;
 fullDetailDist = 10;
 midDetailTexture = "lan\campcarver\data\campcarver_middle_mco.paa";
 minTreesInForestSquare = 2;
 minRocksInRockSquare = 2;
 ilsPosition[] = {5098.86,2879.41};
 ilsDirection[] = {0.6018,0.08,-0.7986};
 ilsTaxiOff[] = {5098.86,2879.41,4616.14,3517.34,4617.24,3535.27,4629.93,3548.52,4645.11,3555.97,4672.58,3542.25};
 ilsTaxiIn[] = {4672.58,3542.25,5128.83,2933.17,5131.32,2911.92,5118.63,2896.75,5102.9,2885.99,5086,2893.72};
class Clutter
	{
		#include "cfgClutter.hpp"
	};
	class Names
	{
		#include "campcarver.hpp"
	};
};
};
class CfgWorldList
{
class CampCarver{};
};
class CfgMissions
{
class Cutscenes
{
 class campcarver_Intro1
 {
  directory = "lan\campcarver\Data\scenes\intro1.campcarver";
 };
 class campcarver_Intro2
 {
  directory = "lan\campcarver\Data\scenes\intro2.campcarver";
 };
};
};


class Grid: Grid
 {
  offsetX = 0;
  offsetY = 40960;
  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;
   format = "XY";
   formatX = "0";
   formatY = "0";
   stepX = 10000;
   stepY = -10000;
  };
 };

I did try to resolve it on my own, I read everything I could find regarding "Map Grids" and even looked at the inner workings of a few islands. I suspect that my terrain is bigger than "utes". So do I need to specify Chernarus instead? Unfortunately, I'm just no experienced enough to solve it on my own. Can anyone please educate me on what I have done wrong and how to fix it? Thanks in advance!

V/R

Landdon

Share this post


Link to post
Share on other sites

everything below the closing bracket of class CampCarver should be inside it .

not entirely sure your inheritence is correct but check other threads here about it, class Grid : grid is not needed if you are not inheriting any values from Utes Grid so just try Class Grid { your values };

if you get missing grid then look again inheritence .

Share this post


Link to post
Share on other sites

Try this

class CfgPatches
{
class CampCarver
{
	units[] = {"CampCarver"};
	weapons[] = {};
	requiredVersion = 1.0;
	requiredAddons[] = {"Utes"};
	version = "28/05/2011";
	fileName = "CampCarver.pbo";
	author = "Landdon";
	mail = "z3us0lympus@comcast.net";
};
};
class CfgWorlds
{
class CAWorld;
class Utes: CAWorld
{
	class Grid;
	class DefaultClutter;
};
class CampCarver: Utes
{
	cutscenes[] = {"campcarver_Intro1","campcarver_Intro2"};
	description = "10th SFG Training Area v0.1";
	worldName = "lan\campcarver\campcarver.wrp";
	pictureShot = "lan\campcarver\data\campcarver_Menu_ca.paa";
	class Grid: Grid
	{
		offsetX = 0;
		offsetY = 40960;
		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;
			format = "XY";
			formatX = "0";
			formatY = "0";
			stepX = 10000;
			stepY = -10000;
		};
	};
	startTime = "12:00";
	startDate = "05/8/2001";
	startWeather = 0.0;
	startFog = 0.0;
	forecastWeather = 0.2;
	forecastFog = 0.2;
	centerPosition[] = {20480,20480,500};
	seagullPos[] = {20480,20480,500};
	longitude = 25;
	latitude = 39;
	clutterGrid = 1;
	clutterDist = 200;
	noDetailDist = 50;
	fullDetailDist = 10;
	midDetailTexture = "lan\campcarver\data\campcarver_middle_mco.paa";
	minTreesInForestSquare = 2;
	minRocksInRockSquare = 2;
	ilsPosition[] = {5098.86,2879.41};
	ilsDirection[] = {0.6018,0.08,-0.7986};
	ilsTaxiOff[] = {5098.86,2879.41,4616.14,3517.34,4617.24,3535.27,4629.93,3548.52,4645.11,3555.97,4672.58,3542.25};
	ilsTaxiIn[] = {4672.58,3542.25,5128.83,2933.17,5131.32,2911.92,5118.63,2896.75,5102.9,2885.99,5086,2893.72};
	class Clutter
	{
		#include "cfgClutter.hpp"
	};
	class Names
	{
		#include "campcarver.hpp"
	};
};
};
class CfgWorldList
{
class CampCarver{};
};
class CfgMissions
{
class Cutscenes
{
	class campcarver_Intro1
	{
		directory = "lan\campcarver\Data\scenes\intro1.campcarver";
	};
	class campcarver_Intro2
	{
		directory = "lan\campcarver\Data\scenes\intro2.campcarver";
	};
};
};

Share this post


Link to post
Share on other sites

Thanks all! The above code worked like a champ!

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  

×