Jump to content
dragon91

missing inheritence class(es)

Recommended Posts

I tried to pack my map and encountered a  problem. 
In File myfirstmap\cfgClutter.hpp: Line 3 rap: missing inheritence class(es)

 

My config.cpp
#define false 0
#define true !false
 
class CfgPatches
{
    class myfirstmap
    {
        units[] =
        {
            "myfirstmap"
        };
        weapons[] = {};
        requiredVersion = 1;
        requiredAddons[] =
        {
            "myfirstmap"
        };
    };
};
 
class CfgWorldList
{
    class myfirstmap_{};
};
 
class CfgWorlds
{
    class Stratis;
    class myfirstmap: Stratis
    {
        cutscenes[] = {};
        description = "myfirstmap Terrain";
        worldName = "myfirstmap.wrp";
        author = "PMC";
        pictureMap = "myfirstmap\data\yourtag_yourproject_pictureMap.paa";
        pictureShot = "";
 
        newRoadsShape = "";
 
        centerPosition[] =
        {
            2560, 2560
        };
        ilsDirection[] =
        {
            0, 0.08, 1
        };
        ilsPosition[] =
        {
            0, 0
        };
        ilsTaxiIn[] = {};
        ilsTaxiOff[] = {};
        drawTaxiway = false;
        class SecondaryAirports{};
        class ReplaceObjects{};
 
        class Sounds
        {
            sounds[] = {};
        };
 
        class Animation
        {
            vehicles[] = {};
        };
 
        minTreesInForestSquare = 2;
        minRocksInRockSquare = 2;
 
        class Subdivision{};
        class Names{};
    };
};
#include "cfgClutter.hpp"
class clutter
        {
            class myfirstmap_AutumnFlowers: DefaultClutter
            {
                model = "ca\plants2\clutter\c_autumn_flowers.p3d.p3d";
                affectedByWind = 0.4;
                swLighting = 1;
                scaleMin = 0.7;
                scaleMax = 1.0;
            };
            class myfirstmap_GrassCrooked: DefaultClutter
            {
                model = "ca\plants2\clutter\c_GrassCrookedGreen.p3d";
                affectedByWind = 0.3;
                swLighting = 1;
                scaleMin = 0.7;
                scaleMax = 1.3;
            };
            class myfirstmap_GrassCrookedGreen: DefaultClutter
            {
                model = "ca\plants2\clutter\c_GrassCrookedGreen.p3d";
                affectedByWind = 0.3;
                swLighting = 1;
                scaleMin = 0.9;
                scaleMax = 1.3;
            };
            class myfirstmap_WeedDead: DefaultClutter
            {
                model = "ca\plants2\clutter\c_WeedDead.p3d";
                affectedByWind = 0.3;
                swLighting = 1;
                scaleMin = 0.75;
                scaleMax = 1.1;
            };
            class myfirstmap_GrassDryBunch: DefaultClutter
            {
                model = "ca\plants2\clutter\c_deadGrassBunch.p3d";
                affectedByWind = 0.35;
                swLighting = 1;
                scaleMin = 0.5;
                scaleMax = 1.0;
            };
            class myfirstmap_grassDryLongBunch: DefaultClutter
            {
                model = "ca\plants2\clutter\c_grassDryLongBunch.p3d";
                affectedByWind = 0.35;
                swLighting = 1;
                scaleMin = 0.6;
                scaleMax = 1.1;
            };
            class myfirstmap_HeatherBrush: DefaultClutter
            {
                model = "ca\plants2\clutter\c_caluna.p3d";
                affectedByWind = 0.15;
                swLighting = 1;
                scaleMin = 0.8;
                scaleMax = 1.8;
            };
            class myfirstmap_WeedSedge: DefaultClutter
            {
                model = "ca\plants2\clutter\c_weed3.p3d";
                affectedByWind = 0.2;
                swLighting = 1;
                scaleMin = 0.5;
                scaleMax = 0.85;
            };
            class myfirstmap_WeedTall: DefaultClutter
            {
                model = "ca\plants2\clutter\c_weed2.p3d";
                affectedByWind = 0.3;
                swLighting = 1;
                scaleMin = 0.8;
                scaleMax = 1.1;
            };
            class myfirstmap_WeedDeadSmall: DefaultClutter
            {
                model = "ca\plants2\clutter\c_WeedDead2.p3d";
                affectedByWind = 0.3;
                swLighting = 1;
                scaleMin = 0.75;
                scaleMax = 0.9;
            };
            class myfirstmap_BlueBerry: DefaultClutter
            {
                model = "ca\plants_E2\clutter\c_blueberry.p3d";
                affectedByWind = 0.05;
                swLighting = 1;
                scaleMin = 0.85;
                scaleMax = 1.3;
            };
            class myfirstmap_FernAutumn: DefaultClutter
            {
                model = "ca\plants2\clutter\c_fern.p3d";
                affectedByWind = 0.1;
                scaleMin = 0.6;
                scaleMax = 1.2;
            };
            class myfirstmap_GrassTall: DefaultClutter
            {
                model = "ca\plants2\clutter\c_GrassTall.p3d";
                affectedByWind = 0.15;
                scaleMin = 0.75;
                scaleMax = 1;
            };
            class myfirstmap_GrassCrookedForest: DefaultClutter
            {
                model = "ca\plants2\clutter\c_GrassCrookedForest.p3d";
                affectedByWind = 0.3;
                swLighting = 1;
                scaleMin = 0.8;
                scaleMax = 1.4;
            };
            class myfirstmap_MushroomsPrasivka: DefaultClutter
            {
                model = "ca\plants2\clutter\c_MushroomPrasivky.p3d";
                affectedByWind = 0;
                scaleMin = 0.85;
                scaleMax = 1.25;
            };
        };

#include "cfgSurfaces.hpp"
class CfgSurfaces 
{
    class Default {};
    class myfirstmap_beach_co_Surface:Default
    {    
         files = "myfirstmap_beach_co*";
         rough = 0.09;
         maxSpeedCoef = 0.9;
         dust = 0.5;
         soundEnviron = "dirt";
         character = "Empty";
         soundHit = "soft_ground";
         lucidity = 1;
         grassCover = 0.03;
    };
    class myfirstmap_grass_green_co2_dry_grass_Surface:Default
    {    
         files = "myfirstmap_grass_green_co2_dry_grass*";
         rough = 0.08;
         maxSpeedCoef = 0.9;
         dust = 0.75;
         soundEnviron = "drygrass";
         character = "Empty";
         soundHit = "soft_ground";
         lucidity = 2;
         grassCover = 0.1;
    };
    class myfirstmap_gravel_co_Surface:Default
    {    
         files = "myfirstmap_gravel_co*";
         rough = 0.12;
         maxSpeedCoef = 0.8;
         dust = 0.4;
         soundEnviron = "drygrass";
         character = "Empty";
         soundHit = "soft_ground";
         lucidity = 3.5;
         grassCover = 0.04;
    };
    class myfirstmap_marsh_co_Surface:Default
    {    
         files = "myfirstmap_marsh_co*";
         rough = 0.08;
         maxSpeedCoef = 0.9;
         dust = 0.15;
         soundEnviron = "grass";
         character = "Empty";
         soundHit = "soft_ground";
         lucidity = 4;
         grassCover = 0.05;
    };
    class myfirstmap_mud_co_Surface:Default
    {    
         files = "myfirstmap_mud_co*";
         rough = 0.09;
         maxSpeedCoef = 0.9;
         dust = 0.5;
         soundEnviron = "dirt";
         character = "Empty";
         soundHit = "hard_ground";
         lucidity = 1;
         grassCover = 0.0;
    };
    class myfirstmap_rock_co_Surface:Default
    {    
         files = "myfirstmap_rock_co*";
         rough = 0.09;
         maxSpeedCoef = 0.9;
         dust = 0.5;
         soundEnviron = "dirt";
         character = "Empty";
         soundHit = "hard_ground";
         lucidity = 1;
         grassCover = 0.0;
    };
    class myfirstmap_seabed_co_Surface : Default
    {    
         files = "myfirstmap_seabed_co*";
         rough = 0.09;
         maxSpeedCoef = 0.9;
         dust = 0.5;
         soundEnviron = "dirt";
         character = "Empty";
         soundHit = "hard_ground";
         lucidity = 1;
         grassCover = 0.0;
    };
    class myfirstmap_strconcrete_co_Surface : Default
    {    
         files = "myfirstmap_strconcrete_co*";
         rough = 0.09;
         maxSpeedCoef = 0.9;
         dust = 0.5;
         soundEnviron = "dirt";
         character = "Empty";
         soundHit = "hard_ground";
         lucidity = 1;
         grassCover = 0.0;
    };
    class myfirstmap_strforest_pine_co_Surface : Default
    {    
         files = "myfirstmap_strforest_pine_co*";
         rough = 0.09;
         maxSpeedCoef = 0.9;
         dust = 0.5;
         soundEnviron = "dirt";
         character = "Empty";
         soundHit = "hard_ground";
         lucidity = 1;
         grassCover = 0.0;
    };
};

class CfgSurfaceCharacters
{
    class myfirstisland_GrassClutter
    {
        probability[] = {0.7,0.1,0.1,0.01};
        names[] = {"c_GrassCrookedGreen","c_GrassCrooked","c_AutumnFlowers","c_WeedDead"};
    };
    class myfirstisland_gardenClutter
    {
        probability[] = {"1"};
        names[] = {"c_GrassCrooked"};
    };
    class myfirstisland_gravelClutter
    {
        probability[] = {0.01,0.03,0.05,0.03,0.02};
        names[] = {"c_AutumnFlowers","c_grassDryLongBunch","c_weed3","c_WeedDead","c_WeedDead2"};
    };
    class myfirstmap_marshClutter
    {
        probability[] = {0.1,0.3,0.05,0.03,0.02};
        names[] = {"c_AutumnFlowers","c_grassDryLongBunch","c_WeedTall","c_WeedDead","c_weed2"};
    };
    class stu_beachClutter
    {
        probability[] = {};
        names[] = {};
    };
    class myfirstisland_forestClutter
    {
        names[] = {"c_GrassCrookedForest","c_GrassCrookedGreen","c_GrassTall","c_fern","c_MushroomPrasivky"};
        probability[] = {0.2,0.1,0.2,0.001,0.003};
    };
};


My cfgClutter.hpp
class Clutter    
{
   class myfirstmap_AutumnFlowers: DefaultClutter
            {
                model = "ca\plants2\clutter\c_autumn_flowers.p3d.p3d";
                affectedByWind = 0.4;
                swLighting = 1;
                scaleMin = 0.7;
                scaleMax = 1.0;
            };
            class myfirstmap_GrassCrooked: DefaultClutter
            {
                model = "ca\plants2\clutter\c_GrassCrookedGreen.p3d";
                affectedByWind = 0.3;
                swLighting = 1;
                scaleMin = 0.7;
                scaleMax = 1.3;
            };
            class myfirstmap_GrassCrookedGreen: DefaultClutter
            {
                model = "ca\plants2\clutter\c_GrassCrookedGreen.p3d";
                affectedByWind = 0.3;
                swLighting = 1;
                scaleMin = 0.9;
                scaleMax = 1.3;
            };
            class myfirstmap_WeedDead: DefaultClutter
            {
                model = "ca\plants2\clutter\c_WeedDead.p3d";
                affectedByWind = 0.3;
                swLighting = 1;
                scaleMin = 0.75;
                scaleMax = 1.1;
            };
            class myfirstmap_GrassDryBunch: DefaultClutter
            {
                model = "ca\plants2\clutter\c_deadGrassBunch.p3d";
                affectedByWind = 0.35;
                swLighting = 1;
                scaleMin = 0.5;
                scaleMax = 1.0;
            };
            class myfirstmap_grassDryLongBunch: DefaultClutter
            {
                model = "ca\plants2\clutter\c_grassDryLongBunch.p3d";
                affectedByWind = 0.35;
                swLighting = 1;
                scaleMin = 0.6;
                scaleMax = 1.1;
            };
            class myfirstmap_HeatherBrush: DefaultClutter
            {
                model = "ca\plants2\clutter\c_caluna.p3d";
                affectedByWind = 0.15;
                swLighting = 1;
                scaleMin = 0.8;
                scaleMax = 1.8;
            };
            class myfirstmap_WeedSedge: DefaultClutter
            {
                model = "ca\plants2\clutter\c_weed3.p3d";
                affectedByWind = 0.2;
                swLighting = 1;
                scaleMin = 0.5;
                scaleMax = 0.85;
            };
            class myfirstmap_WeedTall: DefaultClutter
            {
                model = "ca\plants2\clutter\c_weed2.p3d";
                affectedByWind = 0.3;
                swLighting = 1;
                scaleMin = 0.8;
                scaleMax = 1.1;
            };
            class myfirstmap_WeedDeadSmall: DefaultClutter
            {
                model = "ca\plants2\clutter\c_WeedDead2.p3d";
                affectedByWind = 0.3;
                swLighting = 1;
                scaleMin = 0.75;
                scaleMax = 0.9;
            };
            class myfirstmap_BlueBerry: DefaultClutter
            {
                model = "ca\plants2\clutter\c_blueberry.p3d";
                affectedByWind = 0.05;
                swLighting = 1;
                scaleMin = 0.85;
                scaleMax = 1.3;
            };
            class myfirstmap_FernAutumn: DefaultClutter
            {
                model = "ca\plants2\clutter\c_fern.p3d";
                affectedByWind = 0.1;
                scaleMin = 0.6;
                scaleMax = 1.2;
            };
            class myfirstmap_GrassTall: DefaultClutter
            {
                model = "ca\plants2\clutter\c_GrassTall.p3d";
                affectedByWind = 0.15;
                scaleMin = 0.75;
                scaleMax = 1;
            };
            class myfirstmap_GrassCrookedForest: DefaultClutter
            {
                model = "ca\plants2\clutter\c_GrassCrookedForest.p3d";
                affectedByWind = 0.3;
                swLighting = 1;
                scaleMin = 0.8;
                scaleMax = 1.4;
            };
            class myfirstmap_MushroomsPrasivka: DefaultClutter
            {
                model = "ca\plants2\clutter\c_MushroomPrasivky.p3d";
                affectedByWind = 0;
                scaleMin = 0.85;
                scaleMax = 1.25;
            };
        };


        
        
My cfgSurfaces
class CfgSurfaces 
{
    class Default {};
    class myfirstmap_beach_co_Surface:Default
    {    
         files = "myfirstmap_beach_co*";
         rough = 0.09;
         maxSpeedCoef = 0.9;
         dust = 0.5;
         soundEnviron = "dirt";
         character = "Empty";
         soundHit = "soft_ground";
         lucidity = 1;
         grassCover = 0.03;
    };
    class myfirstmap_grass_green_co2_dry_grass_Surface:Default
    {    
         files = "myfirstmap_grass_green_co2_dry_grass*";
         rough = 0.08;
         maxSpeedCoef = 0.9;
         dust = 0.75;
         soundEnviron = "drygrass";
         character = "Empty";
         soundHit = "soft_ground";
         lucidity = 2;
         grassCover = 0.1;
    };
    class myfirstmap_gravel_co_Surface:Default
    {    
         files = "myfirstmap_gravel_co*";
         rough = 0.12;
         maxSpeedCoef = 0.8;
         dust = 0.4;
         soundEnviron = "drygrass";
         character = "Empty";
         soundHit = "soft_ground";
         lucidity = 3.5;
         grassCover = 0.04;
    };
    class myfirstmap_marsh_co_Surface:Default
    {    
         files = "myfirstmap_marsh_co*";
         rough = 0.08;
         maxSpeedCoef = 0.9;
         dust = 0.15;
         soundEnviron = "grass";
         character = "Empty";
         soundHit = "soft_ground";
         lucidity = 4;
         grassCover = 0.05;
    };
    class myfirstmap_mud_co_Surface:Default
    {    
         files = "myfirstmap_mud_co*";
         rough = 0.09;
         maxSpeedCoef = 0.9;
         dust = 0.5;
         soundEnviron = "dirt";
         character = "Empty";
         soundHit = "hard_ground";
         lucidity = 1;
         grassCover = 0.0;
    };
    class myfirstmap_rock_co_Surface:Default
    {    
         files = "myfirstmap_rock_co*";
         rough = 0.09;
         maxSpeedCoef = 0.9;
         dust = 0.5;
         soundEnviron = "dirt";
         character = "Empty";
         soundHit = "hard_ground";
         lucidity = 1;
         grassCover = 0.0;
    };
    class myfirstmap_seabed_co_Surface : Default
    {    
         files = "myfirstmap_seabed_co*";
         rough = 0.09;
         maxSpeedCoef = 0.9;
         dust = 0.5;
         soundEnviron = "dirt";
         character = "Empty";
         soundHit = "hard_ground";
         lucidity = 1;
         grassCover = 0.0;
    };
    class myfirstmap_strconcrete_co_Surface : Default
    {    
         files = "myfirstmap_strconcrete_co*";
         rough = 0.09;
         maxSpeedCoef = 0.9;
         dust = 0.5;
         soundEnviron = "dirt";
         character = "Empty";
         soundHit = "hard_ground";
         lucidity = 1;
         grassCover = 0.0;
    };
    class myfirstmap_strforest_pine_co_Surface : Default
    {    
         files = "myfirstmap_strforest_pine_co*";
         rough = 0.09;
         maxSpeedCoef = 0.9;
         dust = 0.5;
         soundEnviron = "dirt";
         character = "Empty";
         soundHit = "hard_ground";
         lucidity = 1;
         grassCover = 0.0;
    };
};

class CfgSurfaceCharacters
{
    class myfirstisland_GrassClutter
    {
        probability[] = {0.7,0.1,0.1,0.01};
        names[] = {"c_GrassCrookedGreen","c_GrassCrooked","c_AutumnFlowers","c_WeedDead"};
    };
    class myfirstisland_gardenClutter
    {
        probability[] = {"1"};
        names[] = {"c_GrassCrooked"};
    };
    class myfirstisland_gravelClutter
    {
        probability[] = {0.01,0.03,0.05,0.03,0.02};
        names[] = {"c_AutumnFlowers","c_grassDryLongBunch","c_weed3","c_WeedDead","c_WeedDead2"};
    };
    class myfirstmap_marshClutter
    {
        probability[] = {0.1,0.3,0.05,0.03,0.02};
        names[] = {"c_AutumnFlowers","c_grassDryLongBunch","c_WeedTall","c_WeedDead","c_weed2"};
    };
    class myfirstmap_beachClutter
    {
        probability[] = {};
        names[] = {};
    };
    class myfirstisland_forestClutter
    {
        names[] = {"c_GrassCrookedForest","c_GrassCrookedGreen","c_GrassTall","c_fern","c_MushroomPrasivky"};
        probability[] = {0.2,0.1,0.2,0.001,0.003};
    };
};
        
        
        
        
My layers.cfg        
class layers
{
  class myfirstmap_rock_co
  {
    texture = #(rgb,1,1,1)color(0.5,0.5,0.5,1,cdt);
    material = "myfirstmap\data\myfirstmap_rock.rvmat";
  };    
  class myfirstmap_beach_co
  {
    texture = #(rgb,1,1,1)color(0.5,0.5,0.5,1,cdt);
    material = "myfirstmap\data\myfirstmap_beach.rvmat";
  };
  class myfirstmap_strconcrete_co
  {
    texture = #(rgb,1,1,1)color(0.5,0.5,0.5,1,cdt);
    material = "myfirstmap\data\myfirstmap_strconcrete.rvmat";
  };
  class myfirstmap_grass_green_co2
  {        
    texture = #(rgb,1,1,1)color(0.5,0.5,0.5,1,cdt);
    material = "myfirstmap\data\myfirstmap_grass_green_co2.rvmat";
  };    
  class myfirstmap_marsh_co
  {        
    texture = #(rgb,1,1,1)color(0.5,0.5,0.5,1,cdt);
    material = "myfirstmap\data\myfirstmap_marsh.rvmat";
  };
  class myfirstmap_seabed_co
  {
    texture = #(rgb,1,1,1)color(0.5,0.5,0.5,1,cdt);
    material = "myfirstmap\data\myfirstmap_seabed.rvmat";
  };
  class myfirstmap_gravel_co
  { 
    texture = #(rgb,1,1,1)color(0.5,0.5,0.5,1,cdt);
    material = "myfirstmap\data\myfirstmap_gravel.rvmat";
  };
  class myfirstmap_strforest_pine_co
  {
    texture = #(rgb,1,1,1)color(0.5,0.5,0.5,1,cdt);
    material = "myfirstmap\data\myfirstmap_strforest_pine.rvmat";
  };
  class myfirstmap_mud_co
  {
    texture = #(rgb,1,1,1)color(0.5,0.5,0.5,1,cdt);
    material = "myfirstmap\data\myfirstmap_mud.rvmat";
  };
};    

class legend
{
  picture="myfirstmap\source\maplegend.png";
  class colors
  {
    myfirstmap_rock_co[]={{0,0,255}};
    myfirstmap_gravel_co[]={{0,110,0}};
    myfirstmap_beach_co[]={{255,255,0}};
    myfirstmap_strconcrete_co[]={{0,255,255}};
    myfirstmap_grass_green_co2[]={{0,255,0}};       
    myfirstmap_marsh_co[]={{127,0,0}};
    myfirstmap_seabed_co[]={{0,0,150}};
    myfirstmap_strforest_pine_co[]={{0,100,0}};
    myfirstmap_mud_co[]={{110,0,0}};
  };  
};
        
        

Share this post


Link to post
Share on other sites

Well, as the error-message states: In File myfirstmap\cfgClutter.hpp: Line 3 rap: missing inheritence class(es)

In your Line 3 you are calling the class "DefaultClutter" but didnt define it anywhere before.

 

What you need is a definition of the class first, i.e. something like:

class CfgWorlds
{
    class Stratis;
    class DefaultClutter;

Otherwhise it wouldnt know from where to take this class you are referring to in your clutter configs.

  • Thanks 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

×