PDA

View Full Version : My config.cpp makes my crazy



MemphisBelle
Apr 10 2008, 21:16
Hello all,

I have a problem with my config.cpp. To all guys where I was talking to in another topic, dont wonder why I started a new one. But this is definately another theme then RVMAT Templates.

Back to my Problem.

I used some example configs from this board. I only changed the respective names of the wrp files and the folders.
When I create the pbo file (with Makepbo 1.1 by Amalfi) and run the game then always this error message appears:



http://www.memphisbelle.de/Bilder/fehler1.JPG


Cause I dont want to keep all the needed informations back for you so I added my config.cpp here as well. I hope you can help me locating the mistake I made.

The wrp filename is MB_Nova
the foldername is Testinsel
The description is Nova Island



<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">class CfgPatches{
class MB_Nova{
units&#91;&#93;={&#34;MB_Nova&#34;};
weapons&#91;&#93;={};
requiredVersion=0.1;
requiredAddons&#91;&#93;={&#34;CAData&#34;, &#34;CABuildings&#34;, &#34;CAMisc&#34;, &#34;CAPlants&#34;, &#34;CARoads&#34;, &#34;CARocks&#34;};
};

};

class DefaultLighting; /* extern */
class DefaultLighting_CA&#58;DefaultLighting{};
class CfgWorlds{
class DefaultClutter{
scaleMin=0.9;
scaleMax=1.4;
};

class DefaultWorld; /* extern */
class CAWorld&#58;DefaultWorld{
class Grid{};
};

class MB_Nova&#58;CAWorld{
access=3;
cutscenes&#91;&#93;={&#34;DesertIntro1&#34;};
description=&#34;Nova Island&#34;;
icon=&#34;&#34;;
worldName=&#34;&#92;Testinsel&#92;MB_Nova.wrp&#34;;
pictureMap=&#34;&#34;;
pictureShot=&#34;&#34;;
plateFormat=&#34;MB - &#036;&#036; - ##&#34;;
plateLetters=&#34;ABCDEGHIKLMNOPRSTVXZ&#34;;
longitude=-40;
latitude=-40;
class Grid&#58;Grid{
offsetX=0;
offsetY=-15360;
class Zoom1{
zoomMax=0.5;
format=&#34;XY&#34;;
formatX=&#34;Aa&#34;;
formatY=&#34;00&#34;;
stepX=200;
stepY=200;
};

class Zoom2{
zoomMax=1e+30;
format=&#34;XY&#34;;
formatX=&#34;A&#34;;
formatY=&#34;0&#34;;
stepX=2000;
stepY=2000;
};
};

startTime=&#34;8&#58;30&#34;;
startDate=&#34;07/06/2007&#34;;
startWeather=0.1;
startFog=0;
forecastWeather=0.3;
forecastFog=0;
seagullPos&#91;&#93;={1272.842041, 150.000000, 14034.961914};
centerPosition&#91;&#93;={2500, 2500, 300};
ilsPosition&#91;&#93;={2545, 3000};
ilsDirection&#91;&#93;={0, 0.080000, 1};
ilsTaxiIn&#91;&#93;={2495, 2725, 2495, 2850, 2508, 2860, 2508, 3000, 2520, 3010, 2545, 3000};
ilsTaxiOff&#91;&#93;={2545, 2445, 2520, 2425, 2495, 2445, 2495, 2725};
drawTaxiway=0;
class ReplaceObjects{};
class Sounds{
sounds&#91;&#93;={};
};

class Animation{
vehicles&#91;&#93;={};
};

class Lighting&#58;DefaultLighting{};
clutterGrid=1.11;
clutterDist=55;
noDetailDist=40;
fullDetailDist=5;
minTreesInForestSquare=3;
minRocksInRockSquare=4;
class clutter{
class GrassGeneral&#58;DefaultClutter{
model=&#34;ca&#92;plants&#92;clutter_grass_general.p3d&#34;;
affectedByWind=0.3;
swLighting=1;
scaleMin=0.75;
scaleMax=1;
};

class GrassFlowers&#58;GrassGeneral{
model=&#34;ca&#92;plants&#92;clutter_grass_flowers.p3d&#34;;
};

class GrassLong&#58;GrassGeneral{
model=&#34;ca&#92;plants&#92;clutter_grass_long.p3d&#34;;
affectedByWind=0.6;
scaleMin=0.6;
scaleMax=1.1;
};

class GrassSevenbeauty&#58;GrassGeneral{
model=&#34;ca&#92;plants&#92;clutter_grass_sevenbaeuty.p3d&#34;;
affectedByWind=0.2;
scaleMin=0.7;
scaleMax=1.1;
};

class GrassYellow&#58;GrassGeneral{
model=&#34;ca&#92;plants&#92;clutter_grass_yellow.p3d&#34;;
affectedByWind=0.2;
scaleMin=0.7;
scaleMax=1.1;
};

class GrassDesert&#58;GrassGeneral{
model=&#34;ca&#92;plants&#92;clutter_grass_desert.p3d&#34;;
};

class ForestFern&#58;GrassGeneral{
model=&#34;ca&#92;plants&#92;clutter_forest_fern.p3d&#34;;
affectedByWind=0.1;
scaleMin=0.9;
scaleMax=1.1;
};//ForestFern

class SmallRocks&#58;GrassGeneral{
model=&#34;ca&#92;rocks&#92;clutter_stone_small.p3d&#34;;
affectedByWind=0;
scaleMin=0.9;
scaleMax=1.1;
};

class FlowersColor&#58;GrassGeneral{
model=&#34;ca&#92;plants&#92;clutter_smetanka.p3d&#34;;
};

class FlowersWhite&#58;GrassGeneral{
model=&#34;ca&#92;plants&#92;clutter_white_flower.p3d&#34;;
};

class MushroomsHorcak&#58;GrassGeneral{
model=&#34;ca&#92;plants&#92;clutter_horcak.p3d&#34;;
affectedByWind=0;
scaleMin=0.85;
scaleMax=1.25;
};

class MushroomsPrasivka&#58;MushroomsHorcak{
model=&#34;ca&#92;plants&#92;clutter_prasivky.p3d&#34;;
};

class MushroomsBabka&#58;MushroomsHorcak{
model=&#34;ca&#92;plants&#92;clutter_babka.p3d&#34;;
};

class MushroomsMuchomurka&#58;MushroomsHorcak{
model=&#34;ca&#92;plants&#92;clutter_muchomurka.p3d&#34;;
};

};

class Subdivision{
class Fractal{
rougness=5;
maxRoad=0.02;
maxTrack=0.5;
maxSlopeFactor=0.05;
};//Fractal

class WhiteNoise{
rougness=2;
maxRoad=0.01;
maxTrack=0.05;
maxSlopeFactor=0.00249999;
};

minY=-0;
minSlope=0.02;
};

class Ambient{
class BigBirds{
radius=300;
cost=&#34;&#40;&#40;1 + forest + trees&#41; - &#40;&#40;2 * rain&#41;&#41; - houses&#41; * &#40;1 - night&#41; * &#40;1 - sea&#41;&#34;;
class Species{
class Hawk{
probability=0.2;
cost=1;
};

};

};

class Birds{
radius=170;
cost=&#34;&#40;1 - night&#41; * &#40;&#40;1 + &#40;3 * sea&#41;&#41; - &#40;2 * rain&#41;&#41;&#34;;
class Species{
class Seagull{
probability=0.2;
cost=1;
};

};

};

class BigInsects{
radius=20;
cost=&#34;&#40;5 - &#40;2 * houses&#41;&#41; * &#40;1 - night&#41; * &#40;1 - rain&#41; * &#40;1 - sea&#41; * &#40;1 - windy&#41;&#34;;
class Species{
class DragonFly{
probability=&#34;0.6 - &#40;meadow * 0.5&#41; + &#40;forest * 0.4&#41;&#34;;
cost=1;
};

class ButterFly{
probability=&#34;0.4 + &#40;meadow * 0.5&#41; - &#40;forest * 0.4&#41;&#34;;
cost=1;
};

};

};

class BigInsectsAquatic{
radius=20;
cost=&#34;&#40;3 * sea&#41; * &#40;1 - night&#41; * &#40;1 - rain&#41; * &#40;1 - windy&#41;&#34;;
class Species{
class DragonFly{
probability=1;
cost=1;
};

};

};

class WindClutter{
radius=10;
cost=&#34;&#40;&#40;20 - 5 * rain&#41; * &#40;3 * &#40;windy factor &#91;0.2, 0.5&#93;&#41;&#41;&#41; * &#40;1 - sea&#41;&#34;;
class Species{
class FxWindGrass1{
probability=&#34;0.4 - 0.2 * hills - 0.2 * trees&#34;;
cost=1;
};

class FxWindGrass2{
probability=&#34;0.4 - 0.2 * hills - 0.2 * trees&#34;;
cost=1;
};

class FxWindRock1{
probability=&#34;0.4 * hills&#34;;
cost=1;
};

class FxWindLeaf1{
probability=&#34;0.2 * trees&#34;;
cost=1;
};/

class FxWindLeaf2{
probability=&#34;0.1 * trees + 0.2&#34;;
cost=1;
};

class FxWindLeaf3{
probability=&#34;0.1 * trees&#34;;
cost=1;
};
};
};

class NoWindClutter{
radius=15;
cost=&#34;&#40;20 * &#40;windy factor &#91;0.1, 0.2&#93;&#41;&#41; * meadow * &#40;1 - rain&#41; * &#40;1 - sea&#41; * &#40;1 - forest&#41; * &#40;1 - houses&#41;&#34;;
class Species{
class FxWindPollen1{
probability=1;
cost=1;
};
};
};

class SmallInsects{
radius=3;
cost=&#34;&#40;12 - 8 * hills&#41; * &#40;1 - night&#41; * &#40;1 - rain&#41; * &#40;1 - sea&#41; * &#40;1 - windy&#41;&#34;;
class Species{
class HouseFly{
probability=&#34;deadBody + &#40;1 - deadBody&#41; * &#40;0.5 - forest * 0.1 - meadow * 0.2&#41;&#34;;
cost=1;
};

class HoneyBee{
probability=&#34;&#40;1 - deadBody&#41; * &#40;0.5 - forest * 0.1 + meadow * 0.2&#41;&#34;;
cost=1;
};

class Mosquito{
probability=&#34;&#40;1 - deadBody&#41; * &#40;0.2 * forest&#41;&#34;;
cost=1;
};

};

};

class NightInsects{
radius=3;
cost=&#34;&#40;9 - 8 * hills&#41; * night * &#40;1 - rain&#41; * &#40;1 - sea&#41; * &#40;1 - windy&#41;&#34;;
class Species{
class Mosquito{
probability=1;
cost=1;
};
};
};
};

class Names{
class Veg_1{
name=&#34;&#34;;
position&#91;&#93;={2713.620117, 2140.919922};
type=&#34;VegetationPalm&#34;;
radiusA=50;
radiusB=50;
};

class Veg_2{
name=&#34;&#34;;
position&#91;&#93;={2446.090088, 3038.290039};
type=&#34;VegetationPalm&#34;;
radiusA=50;
radiusB=50;
};

class Veg_3{
name=&#34;&#34;;
position&#91;&#93;={2940.520020, 2923.189941};
type=&#34;VegetationPalm&#34;;
radiusA=50;
radiusB=50;
};
};
};
};

class CfgWorldList{
class MB_Nova{};
};

class CfgMissions{
class Cutscenes{
class NovaIntro1{
directory=&#34;&#92;Testinsel&#92;Data&#92;scenes&#92;intro.MB_Nova&#34;;
};
};

};//CfgMissions[/QUOTE]

W0lle
Apr 10 2008, 21:39
Go to line 268 in that config and then one line up (267) and you find:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">class FxWindLeaf1
{
probability=&#34;0.2 * trees&#34;;
cost=1;
};/[/QUOTE]

Then remove the <span style='color:red'>/</span> from the line. http://forums.bistudio.com/oldsmileys/wink_o.gif

MemphisBelle
Apr 11 2008, 10:31
Thanks...it works....pretty taht such a tiney thing takes such a great effect...