Jump to content
Sign in to follow this  
cool=azroul13

Error in the config

Recommended Posts

Hello,

I have some trouble with my config island, when I create the pbo with pboproject, this message error appears:

Error in config will\Paulines\config.cpp
<world = "will\Paulines\paulines.wrp">
String id 0 is not registered

I can see my island in game but without any clutter :/ .

This is my config:

#define _ARMA_
class CfgPatches
{
class Paulines
{
	units[] = {};
	weapons[] = {};
	requiredVersion = 0.1;
	requiredAddons[] = {"A3_Data_F","A3_Roads_F","A3_Structures_F","A3_Map_Data","A3_Map_Stratis"};
	author[] = {"Azroul13"};
	authorUrl = "http://lestocards.fr/";
	versionDesc = "les Paulines";
	version = "1.00";
	versionStr = 1.0;
	versionAr[] = {1, 0, 0};
};	
};

class CfgWorlds
{
class DefaultWorld {
	class Weather {
		class Overcast;
	};
};

class CAWorld: DefaultWorld {
	class Grid{};
	class DayLightingBrightAlmost;
	class DayLightingRainy;
	class DefaultClutter;
	class Weather: Weather {
		class Lighting;
		class Overcast: Overcast {
			class Weather1;
			class Weather2;
			class Weather3;
			class Weather4;
			class Weather5;
			class Weather6;
		};
	};
};

class DefaultLighting;

class Paulines: CAWorld 
{
	cutscenes[] = {}; // liste des classes definissant les missions affiché sur l ecran d'accueil de ARMA3
	description = "Les Paulines"; // nom de l ile
	icon = "will\Paulines\data\img\paulicon.paa"; // Icone s affichant devant le nom de l île
	worldName = "will\Paulines\paulines.wrp"; // nom du fichier wrp de l' île
	//pictureMap = "\will\Paulines\data\gfx\picturemap.paa"; // image de fond d'ecran au chargement de l'île
	pictureShot = ""; // plus utilisé depuis OFP
	plateFormat = "AS$-####";
	plateLetters = "ABCDEGHIKLMNOPRSTVXZ";
	author = "Azroul13"; // Nom de l auteur s affichant sous le nom de l'île
	mapSize = 14336; // Taille en metre de la carte
	mapZone = 31; // Zone UTM de la carte
	longitude =  -60.90; // Longitude de la carte ; Positif est Est.
	latitude = 12.53; // Latitude de la carte : Positif est Nord
	elevationOffset = 0; // Altitude de base de la carte.
	envTexture = "A3\Data_f\env_land_ca.tga";
	newRoadsShape = ""; // Fichier définissant les routes
	startTime = "10:45"; // Heure de depart par defaut 
	startDate = "5/5/2014"; // Date de départ par défaut
	centerPosition[] = {1040,1000,500}; // position dans l editeur 2D par defaut au chargement de la map
	seagullPos[] = {1040,850,500};
	clutterGrid = 1.2; 
	clutterDist = 180;
	noDetailDist = 65;
	fullDetailDist = 15;
	midDetailTexture = "A3\Map_Data\middle_mco.paa";
	minTreesInForestSquare = 4;
	minRocksInRockSquare = 4;
	satelliteNormalBlendStart = 10;
	satelliteNormalBlendEnd = 100;
	loadingTexts[] = {"Les Paulines sont constituées d'une multitude d'iles.","La plus importante des iles des Paulines est l'ile Nom, partagé entre les Républiques de St Espérance et de Tigueria.","Cet archipel a été l'enjeu de deux guerre impliquant les deux Républiques."}; // Message au chargement de l'île
	ilsPosition[] = {0, 0}; 
	ilsDirection[] = {0, 0, 0};
	ilsTaxiIn[] = {};
	ilsTaxiOff[] = {};
	drawTaxiway = 0;

	class SecondaryAirports {};

	class ReplaceObjects {};

	class Sounds {
		sounds[] = {};
	};

	class Animation {
		vehicles[] = {};
	};
               // La class GRID permet de definir la taille de la grille et l affichage des coordonnées en fonction du zoom.
	class Grid: Grid {
		offsetX = 0;
		offsetY = 14336;
		class Zoom1	{
			zoomMax = 0.2;
			format = "XY";
			formatX = "000";
			formatY = "000";
			stepX = 100;
			stepY = -100;
		};
		class Zoom2 {
			zoomMax = 0.95;
			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;
		};
	};

       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.25;
		SeaWaveXScale = "2.0/50";
		SeaWaveZScale = "1.0/50";
		SeaWaveHScale = 2.0;
		SeaWaveXDuration = 5000;
		SeaWaveZDuration = 10000;
	};
	class Underwater
	{
		noWaterFog = -0.01;
		fullWaterFog = -0.01;
		deepWaterFog = 100;
		waterFogDistanceNear = 5;
		waterFogDistance = 30;
		waterColor[] = {0.12,0.12,0.12};
		deepWaterColor[] = {0.0,0.5,0.8};
		surfaceColor[] = {0,0,0};
		deepSurfaceColor[] = {0,0,0};
	};
	class SeaWaterShaderPars
	{
		refractionMoveCoef = 0.03;
		minWaterOpacity = 0.0;
		waterOpacityDistCoef = 0.4;
		underwaterOpacity = 0.5;
		waterOpacityFadeStart = 60;
		waterOpacityFadeLength = 120;
	};

	class OutsideTerrain
	{
		satellite = "A3\map_Stratis\data\s_satout_co.paa";
		enableTerrainSynth = 0;
		class Layers
		{
			class Layer0
			{
				nopx = "A3\Map_Data\gdt_grass_green_nopx.paa";
				texture = "A3\Map_Data\gdt_grass_green_co.paa";
			};
		};

	};

	// Ajout de l'environnement Generique de STRATIS en incluant le fichier environnement_STRATIS.hpp
	#include "environnement_STRATIS.hpp"

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

		class Paul_StrPlantGreenSmall : DefaultClutter 
		{
			model = "A3\plants_f\Clutter\c_StrPlantGreenSmall.p3d";
			affectedByWind = 0.4;
			swLighting = "true";
			scaleMin = 0.9;
			scaleMax = 1.5;
		};

		class Paul_StrGrassDryGroup : DefaultClutter 
		{
			model = "A3\plants_f\Clutter\c_StrGrassDry_group.p3d";
			affectedByWind = 0.65;
			swLighting = "true";
			scaleMin = 0.65;
			scaleMax = 1.0;
		};

		class Paul_FlowerLowYellow2 : DefaultClutter 
		{
			model = "A3\plants_f\Clutter\c_Flower_Low_Yellow2.p3d";
			affectedByWind = 0.4;
			swLighting = "true";
			scaleMin = 1.0;
			scaleMax = 0.6;
		};

		class Paul_StrThistleSmallYellow : DefaultClutter 
		{
			model = "A3\plants_f\Clutter\c_StrThistleSmallYellow.p3d";
			affectedByWind = 0.2;
			swLighting = "true";
			scaleMin = 0.6;
			scaleMax = 1.4;
		};

		class Paul_StrPlantMullein : DefaultClutter 
		{
			model = "A3\plants_f\Clutter\c_StrPlantMullein.p3d";
			affectedByWind = 0.35;
			swLighting = "true";
			scaleMin = 0.7;
			scaleMax = 1.15;
		};

		class Paul_StrWeedGreenTall : DefaultClutter 
		{
			model = "A3\plants_f\Clutter\c_StrWeedGreenTall.p3d";
			affectedByWind = 0.3;
			swLighting = "true";
			scaleMin = 0.8;
			scaleMax = 1.2;
		};

		class Paul_StrWeedBrownTallGroup : DefaultClutter 
		{
			model = "A3\plants_f\Clutter\c_StrWeedBrownTall_group.p3d";
			affectedByWind = 0.3;
			swLighting = "true";
			scaleMin = 0.9;
			scaleMax = 1.25;
		};

		class Paul_StrThornGreenSmall : DefaultClutter 
		{
			model = "A3\plants_f\Clutter\c_StrThornGreen.p3d";
			affectedByWind = 0.05;
			swLighting = "false";
			scaleMin = 0.3;
			scaleMax = 0.5;
		};

		class Paul_StrThornGreenBig : DefaultClutter 
		{
			model = "A3\plants_f\Clutter\c_StrThornGreen.p3d";
			affectedByWind = 0.05;
			swLighting = "false";
			scaleMin = 0.7;
			scaleMax = 0.9;
		};

		class Paul_SeaWeed1 : DefaultClutter 
		{
			model = "A3\Plants_F\Clutter\c_SeaWeed1.p3d";
			affectedByWind = 0.2;
			swLighting = "false";
			scaleMin = 0.4;
			scaleMax = 1.0;
		};

		class Paul_SeaWeed2 : DefaultClutter 
		{
			model = "A3\Plants_F\Clutter\c_SeaWeed2.p3d";
			affectedByWind = 0.2;
			swLighting = "false";
			scaleMin = 0.3;
			scaleMax = 1.0;
		};

		class Paul_Coral1 : DefaultClutter {
			model = "A3\Plants_F\Clutter\c_Coral1.p3d";
			affectedByWind = 0.0;
			swLighting = "false";
			scaleMin = 0.3;
			scaleMax = 1.0;
		};

		class Paul_Coral2 : DefaultClutter {
			model = "A3\Plants_F\Clutter\c_Coral2.p3d";
			affectedByWind = 0.0;
			swLighting = "false";
			scaleMin = 0.3;
			scaleMax = 1.0;
		};

		class Paul_Coral3 : DefaultClutter {
			model = "A3\Plants_F\Clutter\c_Coral3.p3d";
			affectedByWind = 0.1;
			swLighting = "false";
			scaleMin = 0.3;
			scaleMax = 0.5;
		};

		class Paul_Coral4 : DefaultClutter {
			model = "A3\Plants_F\Clutter\c_Coral4.p3d";
			affectedByWind = 0.1;
			swLighting = "false";
			scaleMin = 0.3;
			scaleMax = 1.0;
		};

		class Paul_Coral5 : DefaultClutter {
			model = "A3\Plants_F\Clutter\c_Coral5.p3d";
			affectedByWind = 0.05;
			swLighting = "false";
			scaleMin = 0.2;
			scaleMax = 0.6;
		};
	};

       // La class name permet d'afficher les informations des villes et point d interet sur la carte.
	class Names
	{
		#include "Paulines.hpp"
	};
	};
};

//SURFACES
class CfgSurfaces 
{
class Default{};
class Paulgrassgreen : Default 
{
	access = ReadOnly;
	files = "Paul_grass_green_*";
	character = "PaulgrassgreenClutter";
	soundEnviron = "drygrass";
	soundHit = "soft_ground";
	rough = 0.12;
	maxSpeedCoef = 0.9;
	dust = 0.16;
	lucidity = 2;
	grassCover = 0.1;
};

class Paulwildgrass : Default 
{
	access = ReadOnly;
	files = "Paul_wild_grass_*";
	character = "PaulwildgrassClutter";
	soundEnviron = "drygrass";
	soundHit = "soft_ground";
	rough = 0.1;
	maxSpeedCoef = 0.9;
	dust = 0.58;
	lucidity = 2.5;
	grassCover = 0.1;
};	

class PaulrockSurface : Default 
{
	access = ReadOnly;
	files = "Paul_rock_*";
	character = "Empty";
	soundEnviron = "gravel";
	soundHit = "hard_ground";
	rough = 0.12;
	maxSpeedCoef = 0.85;
	dust = 0.4;
	lucidity = 1.5;
	grassCover = 0.0;
};

class PaulbeachSurface : Default 
{
	access = ReadOnly;
	files = "Paul_beach_*";
	character = "Empty";
	soundEnviron = "sand";
	soundHit = "soft_ground";
	rough = 0.1;
	maxSpeedCoef = 0.8;
	dust = 0.5;
	lucidity = 1.25;
	grassCover = 0.0;
};

class PaulseabedSurface : Default 
{
	access = ReadOnly;
	files = "Paul_seabed_*";
	character = "PaulseabedClutter";
	soundEnviron = "gravel";
	soundHit = "hard_ground";
	rough = 0.15;
	maxSpeedCoef = 0.85;
	dust = 0.75;
	lucidity = 200;
	grassCover = 0.1;
};
};

class CfgWorldList{
class Paulines{};
};

class CfgMissions
{};

class CfgSurfaceCharacters
{
class PaulgrassgreenClutter
{
	probability[] = {0.1, 0.05, 0.3, 0.3, 0.05, 0.05, 0.05};
	names[] = {"Paul_StrGrassGreenGroup",  "Paul_FlowerLowYellow2", "Paul_StrGrassDryGroup", "Paul_StrWeedBrownTallGroup", "Paul_StrWeedGreenTall", "Paul_StrThistleYellowShrub", "Paul_StrPlantMullein"};
};

class PaulwildgrassClutter
{
	probability[] = {0.1, 0.03, 0.3, 0.3, 0.05, 0.05, 0.05, 0.03};
	names[] = {"Paul_StrGrassGreenGroup", "Paul_StrThistleSmallYellow", "Paul_StrThornGreenSmall", "Paul_StrPlantGreenSmall", "Paul_StrThornGreenBig", "Paul_StrWeedGreenTall", "Paul_StrThistleYellowShrub", "Paul_StrPlantMullein"};
};

class PaulseabedClutter
{
	probability[] = {0.3, 0.1, 0.1, 0.01, 0.05, 0.05, 0.05};
	names[] = {"Paul_SeaWeed1", "Paul_SeaWeed2", "Paul_Coral4", "Paul_Coral1", "Paul_Coral5", "Paul_Coral3", "Paul_Coral2"};
};
};




Any chance that someone know from where comes this error ?

Aze

Share this post


Link to post
Share on other sites

I would say this bit in the cfgpatches section.

Try removing it

   versionDesc = "les Paulines";
        version = "1.00";
       versionStr = 1.0;
       versionAr[] = {1, 0, 0};

Share this post


Link to post
Share on other sites

And you have the latest update of depbo.dll?

Oh and in units= you should have the pbo name there

units[] = {"paulines"};

Also it would remove the readonly parts in ur surface definitions.

Edited by M1lkm8n

Share this post


Link to post
Share on other sites

I have no more the message error but I still see the error in the binlog of pboproject.

I'm still not lucky with the grass cover part :/ .

Share this post


Link to post
Share on other sites

Try doing this. At the bottom of your config

#include "cfgsurfaces.hpp"

Inside that file add your surfaces and surface characters and place the #include at the bottom of your config

Like this thread here.

http://forums.bistudio.com/showthread.php?184979-Clutter-its-driving-me-insane-One-clutter-only-I-surrender&p=2812093#post2812093

Share this post


Link to post
Share on other sites

I have no more luck with that method, still no clutter :/ .

Edited by Cool=Azroul13

Share this post


Link to post
Share on other sites

I still can't see the grass on my island:

I try to desinstall/ reinstall the P drive but it won't work.

The only errors are these:

Cannot delete class B_KickOff, it is referenced somewhere (used as a base class probably).

Cannot update non class from class P:\a3\ui_f\config.cpp/RscCallSupport/Items/

Cannot update non class from class P:\a3\ui_f\config.cpp/RscRadio/Items/

<world = "will\Paulines\paulines.wrp">

Bad version 60 in p3d file 'a3\data_f\horizont_sphere.p3d'

String id 0 is not registered

Error loading control P:\bin\config.cpp/RscDisplayLoadMission/controls/MapBackTop/

Error loading control P:\bin\config.cpp/RscDisplayLoadMission/controls/MapName/

Error loading control P:\bin\config.cpp/RscDisplayLoadMission/controls/MapAuthor/

Error loading control P:\bin\config.cpp/RscDisplayLoadMission/controls/MapBackBottom/

I'm not sure if it's related to the grass cover part ?

Share this post


Link to post
Share on other sites

I don't know about the bad version 60...I would re run arma3p and make sure you have the newest depbo.dll.

As far as the clutter goes. May be an inheritance problem. I would grab the island config out of this thread here and change it to suit ur island. See if that works. Make sure you grab it from my post on page three from the Dropbox link.

http://forums.bistudio.com/showthread.php?185357-Roads-don-t-appear-in-game/page3

Share this post


Link to post
Share on other sites

Thanks, but I can't find from where comes my problem :/ .

I try to pack your island, I have clutter on it in game, but when I try to adapt your config to my island i fail somewhere.

#define _ARMA_

//Class config.bin{
class CfgPatches
{
class Map_Will_Paulines
{
 units[] = {"Will_Paulines"};
 weapons[] = {};
 requiredVersion = 0.1;
 requiredAddons[] = {"A3_Data_F","A3_Roads_F","A3_Structures_F","A3_Map_Stratis"};
};
};

class CfgWorlds
{
class DefaultWorld
{
	class Weather;
};
class CAWorld: DefaultWorld
{
	class Grid;
	class DayLightingBrightAlmost;
	class DayLightingRainy;
	class DefaultClutter;
	class Weather: Weather
	{
		class Overcast;
	};
};
class Stratis: CAWorld
{

	class Weather: Weather
	{
		class Lighting;
		class Overcast: Overcast
		{
			class Weather1;
			class Weather2;
			class Weather3;
			class Weather4;
			class Weather5;
			class Weather6;
		};
	};
};
class DefaultLighting;

class Will_Paulines: Stratis //as said, replace later, just for quick testing
{
 cutscenes[] = {};
 author = "Azroul13"; //Added to Later
 description = "Les Paulines"; //Name of the Islands
 pictureMap = "Will_Paulines\data\img\imgsat.paa"; //Added to Later
 pictureShot = "Will_Paulines\data\img\paulicon.paa"; //Added to Later - Has to be screenshot in-game
 worldName = "Will_Paulines\Will_Paulines.wrp"; //location of .wrp file
 startTime = "12:00";
 startDate = "08/03/2014";
 startWeather = 0.2;
 startFog = 0.0;
 forecastWeather = 0.6;
 forecastFog = 0.0;
 centerPosition[] = {2560,2560,500};
 seagullPos[] = {2560,2560,500};
 longitude =  -60.90; // Longitude de la carte ; Positif est Est.
 latitude = 12.53; // Latitude de la carte : Positif est Nord
 elevationOffset = 2000;
 envTexture = "A3\Data_f\env_land_ca.tga";
 minTreesInForestSquare = 2;
 minRocksInRockSquare = 2;
 //newRoadsShape = "TPS_DiegoGarcia\data\roads\roads.shp";  //<- Roads
 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 Grid: Grid
 {
  offsetX = 0;
  offsetY = 14336;
  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.h"
class Names
	{

	};
};
};

class CfgWorldList
{
class Will_Paulines{};
};
class CfgMissions
{
class Cutscenes
{

};
};


//SURFACES
#include "cfgSurfaces.h"

class CfgSurfaces 
{
class Default {};
class Will_grassgreen_surface : Default
{	
	 files = "Will_grassgreen_*"; 
	 rough = 0.1;
	 dust = 0.05;
	 soundEnviron = "grass";
	 character = "Will_grassgreen_Character";
	 soundHit = "soft_ground";
};
class Will_beach_surface : Default
{	
	 files = "Will_beach_*"; 
	 rough = 0.1;
	 dust = 0.05;
	 soundEnviron = "sand";
	 character = "Empty";
	 soundHit = "soft_ground";
};
class Will_seabed_surface : Default
{	
	 files = "Will_seabed_*"; 
	 rough = 0.1;
	 dust = 0.05;
	 soundEnviron = "sand";
	 character = "Empty";
	 soundHit = "soft_ground";
};
class Will_rock_surface : Default
{	
	 files = "Will_rock_*"; 
	 rough = 0.1;
	 dust = 0.05;
	 soundEnviron = "gravel";
	 character = "Empty";
	 soundHit = "hard_ground";
};
class Will_wildgrass_surface : Default
{	
	 files = "Will_wildgrass_*"; 
	 rough = 0.1;
	 dust = 0.05;
	 soundEnviron = "dirt";
	 character = "Empty";
	 soundHit = "soft_ground";
};


};

class CfgSurfaceCharacters
{
class Will_grassgreen_Character
 	{
		probability[]={0.9};
		names[]={"Will_GrassClutter"};
 	};
};

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

Share this post


Link to post
Share on other sites

There's no error in both, except the one I already wrote. But these errors are present when I pack TPS_Diego so it won't interfer with the grass config.

Share this post


Link to post
Share on other sites

So that is your configs above then correct? Can you post screenshots of your island folder layouts please

Share this post


Link to post
Share on other sites

All the relative stuff concerning surfaces in layers.cfg need to be lower-case (also you'r texture files name).

(Fr : lower-case : en minuscule)

Take a look at this post from Bushlurker : http://forums.bistudio.com/showthread.php?185834-No-clutter-showing-possible-BinMake-error-in-pboProject-binLog&p=2824183&viewfull=1#post2824183

In you'r config.cpp : -> #include "cfgSurfaces.h" need to be #include "cfgSurfaces.hpp". Same with clutter

//newRoadsShape = "TPS_DiegoGarcia\data\roads\roads.shp"; -> newRoadsShape = "";

class Map_Will_Paulines -> class A3_Map_Will_Paulines

Edited by Vcz

Share this post


Link to post
Share on other sites

Everything looks good from what I'm seeing COOL. Any chance you can Dropbox it and send me a link or post here if u wish and I'll take a look. There are a few more surface definitions your missing which u can try to add first. Look at the map_data from altis to see the ones you are missing. Not sure if that will help or not. It's possible the problem lies elsewhere.

Vcz. His config naming looks fine. As far as .hpp vs .h. The reason he is using .h is because once packing into a pbo the .h is included in the main config the same as the .hpp however the .h file is then not included(because it is now not needed) in the pbo. So if u leave the .hpp and don't change it to .h you will be including extra files that are not needed.

Share this post


Link to post
Share on other sites

Can it be a problem of resolution with my terrain ? Or the only problem is the config ?

I will try to upload you the terrain this week.

Thanks,

Aze

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  

×