Results 1 to 4 of 4

Thread: Error in Config.cpp regarding map grid

Hybrid View

  1. #1

    Error in Config.cpp regarding map grid

    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:

    Code:
    #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

  2. #2
    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 .
    A chopper cup of Coffee in a chopper coffee pot
    TOH Now with added Coffee
    http://www.helpivanmartin.org/

  3. #3
    Try this

    PHP Code:
    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 
    UtesCAWorld
        
    {
            class 
    Grid;
            class 
    DefaultClutter;
        };
        class 
    CampCarverUtes
        
    {
            
    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 
    GridGrid
            
    {
                
    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";
            };
        };
    }; 

  4. #4
    Thanks all! The above code worked like a champ!

Similar Threads

  1. Island, Error config.cpp
    By ferst in forum ARMA 2 & OA : TERRAIN - (Visitor)
    Replies: 4
    Last Post: Apr 10 2011, 18:13
  2. config.cpp error
    By Solid_s in forum ARMA : CONFIGS AND SCRIPTING (addons)
    Replies: 0
    Last Post: Jun 11 2010, 09:03
  3. Help With config.cpp Error in BinPBO
    By F2F_BHO in forum ARMA 2 & OA : TERRAIN - (Visitor)
    Replies: 5
    Last Post: Apr 12 2010, 22:42
  4. Map zoom level in config.cpp?
    By Rip31st in forum ARMA : MAP EDITING (VISITOR)
    Replies: 0
    Last Post: Aug 5 2008, 20:21
  5. Config.cpp error thingy?
    By FatJoe in forum OFP : MAP EDITING (VISITOR)
    Replies: 3
    Last Post: Jun 19 2003, 21:17

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •