Jump to content
Sign in to follow this  
Chosenone487

BinPBO "Error in Config.cpp"

Recommended Posts

Hello everyone

I just got to a point with my terrain where I think it is ready for a play test of sorts. The terrain itself doesn't have any vegetation (I did this to make the creation process a bit faster) but it does have plenty of artificial objects. I've been following a number of different tutorials and I suspect my error lies in a combination of my own lack of knowledge here and the many different sources of information. Anyways I was hoping someone might be able to take a look at my config.cpp and see what I did wrong. I'm certain I have made a mistake somewhere, if not many, I just don't know what it is.

Thanks for reading!

Here's the whole config:

//Class config.bin{

class CfgPatches

{

class Downtown_Amrika

{

units[] = {"Downtown_Amrika"};

weapons[] = {};

requiredVersion = 1.02;

requiredAddons[] = {"Utes","CAData","CARoads","CARoads2","CATKS_Town","CAUsec_rig_a","CAStructures","CAMisc","CAMBG_Generic_African_buildings","CABuildings","CABuildings2_Ind_cementworks","CAchn_urbanpack","CAMBG_Buildings","CABuildings2",CAMisc2","CAMisc3","CAAplion_buildings","CABuildings2"};

version = "0.1";

fileName = "Downtown_Amrika.pbo";

author = "Chosenone487";

mail = "Chosenone487x@gmail.com";

};

};

class CfgWorlds

{

class CAWorld;

Class Utes: CAWorld

{

Class Grid;

ClassDefaultClutter;

};

class Downtown_Amrika: Utes

{

cutscenes[]= {};

description = "Downtown Amrika";

worldname = city\Source\Terrain\city.wrp;

startTime = "09:00";

startDate = "08/03/1773";

startWeather = 0.2;

startFog = 0.0;

forcastWeather = 0.6;

forcastFog = 0.0;

centerPosition[] = {2048,2048,0};

seagullPos[] = {2048,2048,0};

longitude = 73;

latitude = 40;

elevationOffset = 2000

midDetailTexture = "";

minTreesInForestSquare = 2;

MinRocksInRockSquare = 2;

ilsPosition[] = {1024,1024};

ilsDirection[] = {0.5075,0.08,-0.8616};

ilsTaxiIn[] = {};

ilsTaxiOff[] = {};

drawTaxiway = 0;

class SecondaryAirports {};

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.0;

format = "XY";

formatX = "0";

formatY = "0";

stepX = 10000;

stepY = -10000;

};

};

class Names

{

#include "City.hpp"

};

class CfgWorldList

{

class Downtown_Amrika{};

};

//SURFACES

//#include "cfgSurfaces.hpp"

Share this post


Link to post
Share on other sites

Several missing brackets

Edit: updated with Bushlurker finds

class CfgPatches
{
class Downtown_Amrika
{
	units[] = {"Downtown_Amrika"};
	weapons[] = {};
	requiredVersion = 0.1;
	requiredAddons[] =
	{
		"Aplion_buildings",
		"CABuildings",
		"CABuildings2",
		"CABuildings2_Ind_cementworks",
		"CAMisc",
		"CAMisc2",
		"CAMisc3",
		"CAStructures",
		"chn_urbanpack",
		"MBG_Buildings",
		"MBG_Generic_African_buildings",
		"TKS_Town",
		"Usec_rig_a",
		"Utes"
	};
	version = "0.1";
	fileName = "Downtown_Amrika.pbo";
	author = "Chosenone487";
	mail = "Chosenone487x@gmail.com";
};
};
class CfgWorlds
{
class CAWorld;
Class Utes: CAWorld
{
	class Grid;
	class DefaultClutter;
};
class Downtown_Amrika: Utes
{
	cutscenes[]= {};
	description = "Downtown Amrika";
//wrp name must be like class name => Downtown_Amrika.wrp
	worldname = "\city\Downtown_Amrika.wrp";
//		worldname = "city\Source\Terrain\city.wrp";
	startTime = "09:00";
	startDate = "08/03/1773";
	startWeather = 0.2;
	startFog = 0.0;
	forcastWeather = 0.6;
	forcastFog = 0.0;
	centerPosition[] = {2048,2048,0};
	seagullPos[] = {2048,2048,0};
	longitude = 73;
	latitude = 40;
	elevationOffset = 2000
	midDetailTexture = "";
	minTreesInForestSquare = 2;
	MinRocksInRockSquare = 2;
	ilsPosition[] = {1024,1024};
	ilsDirection[] = {0.5075,0.08,-0.8616};
	ilsTaxiIn[] = {};
	ilsTaxiOff[] = {};
	drawTaxiway = 0;
	class SecondaryAirports {};
	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.0;
			format = "XY";
			formatX = "0";
			formatY = "0";
			stepX = 10000;
			stepY = -10000;
		};
	};
	class Names
	{
		#include "City.hpp"
	};
};
};

class CfgWorldList
{
class Downtown_Amrika{};
};

//SURFACES
//#include "cfgSurfaces.hpp"

Edited by .kju [PvPscene]

Share this post


Link to post
Share on other sites

worldname = "city\Source\Terrain\city.wrp";

Assuming your project folder is "city" directly on your P:\ drive, then you should be saving your .wrp to the "Main Project Root Directory"...

worldname = "city\city.wrp";

... alongside your main config.cpp, cfgSurfaces.hpp, etc.

Kju, as always, seems to have spotted all the other dodginesses... ;)

*edit*

Well...

I'm not entirely sure about these required addons....

"CAUsec_rig_a"

"CAMBG_Generic_African_buildings"

"CAchn_urbanpack"

"CAMBG_Buildings"

"CAAplion_buildings"

...you don't need the "CA" bit added to these addon names - it might cause a "Required Addon CAMBG_Buildings Not Found" for example, since the addon actually thinks of itself as plain old "MBG_Buildings"

The "CA" prefix really only applies to addon folders within BI's own P:\CA "Modfolder"

Also - you've listed "CABuildings2" twice

...think that's all this time... ;)

B

Share this post


Link to post
Share on other sites

Thank you guys for the quick responses! Very helpful so far!

I've gone back and made a number of changes to the .cpp and added in the satout and middle_mco files. I'm still getting the same error from binpbo when I start packing the files. "Error in config.cpp"

I'm sure I've just made another obvious mistake in this but I can't spot it. Does this look any better than before?

Thanks again!

class CfgPatches

{

class Downtown_Amrika

{

units[] = {"Downtown_Amrika"};

weapons[] = {};

requiredVersion = 0.1;

requiredAddons[] =

{

"Aplion_buildings",

"CABuildings",

"CABuildings2",

"CABuildings2_Ind_cementworks",

"CAMisc",

"CAMisc2",

"CAMisc3",

"CAStructures",

"chn_urbanpack",

"MBG_Buildings",

"MBG_Generic_African_buildings",

"TKS_Town",

"Usec_rig_a",

"Utes"

};

version = "0.1";

fileName = "Downtown_Amrika.pbo";

author = "Chosenone487";

mail = "Chosenone487x@gmail.com";

};

};

class CfgWorlds

{

class CAWorld;

Class Utes: CAWorld

{

Class Grid;

ClassDefaultClutter;

};

class Downtown_Amrika: Utes

{

cutscenes[] = {};

description = "Downtown Amrika";

worldname = city\Downtown_Amrika.wrp;

startTime = "09:00";

startDate = "08/03/2005";

startWeather = 0.2;

startFog = 0.0;

forcastWeather = 0.6;

forcastFog = 0.0;

centerPosition[] = {2048,2048,0};

seagullPos[] = {2048,2048,0};

longitude = 73;

latitude = -40;

elevationOffset = 2000

midDetailTexture = "City\Data\middle_mco";

minTreesInForestSquare = 2;

MinRocksInRockSquare = 2;

ilsPosition[] = {1024,1024};

ilsDirection[] = {0.5075,0.08,-0.8616};

ilsTaxiIn[] = {};

ilsTaxiOff[] = {};

drawTaxiway = 0;

class SecondaryAirports {};

class OutsideTerrain

{

satellite = "city\Data\satout_co.paa";

enableTerrainSynth = 0;

class Layers

{

class Layer0

{

nopx = "City\Data\grass_nopx.paa";

texture = "City\Data\grass2_co.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.0;

format = "XY";

formatX = "0";

formatY = "0";

stepX = 10000;

stepY = -10000;

};

};

class Names

{

#include "Downtown_Amrika.hpp"

};

};

};

};

};

class CfgWorldList

{

class Downtown_Amrika{};

};

//SURFACES

//#include "cfgSurfaces.hpp"

Share this post


Link to post
Share on other sites

If you check the destination folder where your PBO is saved, you can find a log file where binpbo lists, amongst other things, all the errors it finds while reading your config.cpp.

It helped me solve a few errors too, try checking that out.

Share this post


Link to post
Share on other sites

use rapify/eliteness to get meaningful error checking

Share this post


Link to post
Share on other sites

You are missing a few brackets, try:

class CfgPatches
{
 class Downtown_Amrika
 {
   units[] = {"Downtown_Amrika"};
   weapons[] = {};
   requiredVersion = 1.02;
   requiredAddons[] = {"Utes","CAData","CARoads","CARoads2","CATKS_Town" ,"CAUsec_rig_a","CAStructures","CAMisc","CAMBG_Gen eric_African_buildings","CABuildings","CABuildings 2_Ind_cementworks","CAchn_urbanpack","CAMBG_Buildi ngs","CABuildings2",CAMisc2","CAMisc3","CAAplion_b uildings","CABuildings2"};
   version = "0.1";
   fileName = "Downtown_Amrika.pbo";
   author = "Chosenone487";
   mail = "Chosenone487x@gmail.com";
 };
};

class CfgWorlds
{
 class CAWorld;
 Class Utes: CAWorld
 {
   Class Grid;
   ClassDefaultClutter;
 };

 class Downtown_Amrika: Utes
 {
   cutscenes[]= {};
   description = "Downtown Amrika";
   worldname = city\Source\Terrain\city.wrp;
   startTime = "09:00";
   startDate = "08/03/1773";
   startWeather = 0.2;
   startFog = 0.0;
   forcastWeather = 0.6;
   forcastFog = 0.0;
   centerPosition[] = {2048,2048,0};
   seagullPos[] = {2048,2048,0};
   longitude = 73;
   latitude = 40;
   elevationOffset = 2000
   midDetailTexture = "";
   minTreesInForestSquare = 2;
   MinRocksInRockSquare = 2;
   ilsPosition[] = {1024,1024};
   ilsDirection[] = {0.5075,0.08,-0.8616};
   ilsTaxiIn[] = {};
   ilsTaxiOff[] = {};
   drawTaxiway = 0;

   class SecondaryAirports {};

   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.0;
       format = "XY";
       formatX = "0";
       formatY = "0";
       stepX = 10000;
       stepY = -10000;
     };
   };
 };
};

class Names
{
 #include "City.hpp"
};

class CfgWorldList
{
 class Downtown_Amrika {};
};

//SURFACES
//#include "cfgSurfaces.hpp" 

Share this post


Link to post
Share on other sites

Right, I had it set to send the pbo into my arma folder but it wouldn't actually complete it. I changed it to send it to the desktop and now I can see that file. Thanks.

Edit: I've done a few small things to fix some of the errors that I could find with the eliteness program. I'm still getting the same error though.

This is what it says: File p:\city\config.cpp, line 18: '/CfgWorlds.Class': 'U' encountered instead of '='

Config : some input after EndOfFile.

Error reading binary file 'p:\city\config.cpp'

W:\C\El\ParamFile\paramFile.cpp(753) : Class destroyed, but still locked

Cannot register unknown string STR_STATE_HEALSOLDIER

Cannot register unknown string STR_STATE_FIRST_AID

Cannot register unknown string STR_UI_RADARRANGE

Cannot register unknown string STR_ACTION_LAUNCHCM

Cannot register unknown string STR_ACTION_NEXTCM

Cannot register unknown string STR_USRACT_ACTION_CONTEXT

Cannot register unknown string STR_USRACT_OPTICS_MODE

Cannot register unknown string STR_USRACT_ZEROING_UP

Cannot register unknown string STR_USRACT_ZEROING_DOWN

Cannot register unknown string STR_USRACT_NETWORK_DS_INTERFACE

Cannot register unknown string STR_USRACT_BULD_TERRAIN_RAISE_10CM

Cannot register unknown string STR_USRACT_BULD_TERRAIN_LOWER_10CM

Cannot register unknown string STR_USRACT_BULD_TERRAIN_RAISE_50CM

Cannot register unknown string STR_USRACT_BULD_TERRAIN_LOWER_50CM

Cannot register unknown string STR_INPUT_DEVICE_FREETRACK_0

Cannot register unknown string STR_INPUT_DEVICE_FREETRACK_1

Cannot register unknown string STR_INPUT_DEVICE_FREETRACK_2

Cannot register unknown string STR_INPUT_DEVICE_FREETRACK_3

Cannot register unknown string STR_INPUT_DEVICE_FREETRACK_4

Cannot register unknown string STR_INPUT_DEVICE_FREETRACK_5

Cannot register unknown string STR_INPUT_DEVICE_FREETRACK_6

Cannot register unknown string STR_INPUT_DEVICE_FREETRACK_7

Cannot register unknown string STR_INPUT_DEVICE_FREETRACK_8

Cannot register unknown string STR_INPUT_DEVICE_FREETRACK_9

Cannot register unknown string STR_INPUT_DEVICE_FREETRACK_10

Cannot register unknown string STR_INPUT_DEVICE_FREETRACK_11

Cannot register unknown string STR_DISP_LEFT

Cannot register unknown string STR_DIFF_CAMERA_SHAKE

Cannot register unknown string STR_FREETRACK

Cannot register unknown string STR_ADDON_ACTIONS_INSTALL_CORE

Cannot register unknown string STR_ADDON_ACTIONS_INSTALL_MOD

Cannot register unknown string STR_ADDON_ACTIONS_PLAY_MISSION

Cannot register unknown string STR_ADDON_ACTIONS_TRY_ENTITY

Cannot register unknown string STR_ADDON_ACTIONS_TRY_WEAPON

Cannot register unknown string STR_MSG_ADDON_NOT_FOUND

Cannot register unknown string STR_MSG_ADDON_CANNOT_OPEN

Cannot register unknown string STR_MSG_ADDON_UNKNOWN_PRODUCT

Cannot register unknown string STR_INCOMPATIBLE_LOAD_GAME_ATTEMPT

Warning: CfgVehicles missing in PreloadConfig - may slow down vehicle creation

Warning: CfgAmmo missing in PreloadConfig - may slow down vehicle creation

Warning: CfgNonAIVehicles missing in PreloadConfig - may slow down vehicle creation

Updating base class ->NonStrategic, by p:\city\CA\fallujah_hou1_2\config.cpp/cfgvehicles/HouseBase/

Updating base class ->DestructionEffects, by p:\city\CA\fallujah_hou1_2\config.cpp/cfgvehicles/House/DestructionEffects/

Updating base class ->StaticMGWeapon, by p:\city\CA\misc3\WF\config.bin/CfgVehicles/WarfareBMGNest_M240_base/

Error context tes: CAWorld

File p:\city\config.cpp, line 18: '/CfgWorlds.Class': 'U' encountered instead of '='

Config : some input after EndOfFile.

Error 3 while parsing

Error in config p:\city\config.cpp

w:\C_branch\Poseidon\Arrowhead\El\ParamFile\paramFile.cpp(753) : Class destroyed, but still locked

Error context tes: CAWorld

File p:\city\config.cpp, line 18: '/CfgWorlds.Class': 'U' encountered instead of '='

Config : some input after EndOfFile.

Error 3 while parsing

Error in config p:\city\config.cpp

w:\C_branch\Poseidon\Arrowhead\El\ParamFile\paramFile.cpp(753) : Class destroyed, but still locked

<model = "p:\city\CA\aplion_buildings\Build1\ruins\build2_ruin.p3d">

Like before I'm probably missing something obvious.

Edited by Chosenone487

Share this post


Link to post
Share on other sites

Another error, i guess ClassDefaultClutter; should be Class DefaultClutter;

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  

×