PDA

View Full Version : What's wrong here?



Frugo_PL
Nov 12 2002, 01:20
Here's my config for my SAM. OFP loads up to the Codemasters splash screen and then crashes. What's wrong here?

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">#define TEast 0
#define true 1
#define false 0

#define private 0
#define protected 1
#define public 2

class CfgPatches
{
class SAM
{
units&#91;&#93; = {SAM};
weapons&#91;&#93; = {};
requiredVersion = 1.30;
};
};
class CfgAmmo
{
class default {};
class AT3&#58; default {};
class LAW&#58; AT3 {};
class SAM&#58; LAW
{
hit=250; indirectHit=100; indirectHitRange=2;
minRange=30;minRangeProbab=0.50;
midRange=500;midRangeProbab=0.95;
maxRange=2000;maxRangeProbab=0.10;
model = &#34;&#92;sam&#92;sam2.p3d&#34;;
maxSpeed=500;
manualControl=true;
maxControlRange=400
cost=7000;
};
};
class CfgWeapons
{
class default {};
class LAWLauncher &#58; default {};
class RPGLauncher&#58; LAWLauncher {};
class SAM &#58; RPGLauncher
{

displayName = &#34;SAM&#34;;
displayNameMagazine=&#34;SAM&#34;;
shortNameMagazine=&#34;SAM&#34;;
ammo = &#34;SAM&#34;;
count=8;
canLock=1;
reloadTime=0.000001;
};
};
class CfgVehicles
{
class All{};
class AllVehicles&#58; All {};
class Land&#58;AllVehicles{};
class Tank&#58;Land{};
class APC &#58; Tank {};
class M113 &#58; APC {};
class M2StaticMG &#58; M113 {};
class SAM &#58; M2StaticMG
{
side = 1;
threat&#91;&#93;={0,0,1};
displayName=&#34;SAM&#34;;
model = &#34;&#92;sam&#92;sam.p3d&#34;
crew=&#34;SoldierWB&#34;;
getInRadius = 5;
weapons&#91;&#93;={&#34;SAM&#34;};
magazines&#91;&#93;={&#34;SAM&#34;};
class Turret
{
gunAxis = &#34;OsaHlavne&#34;;
turretAxis = &#34;OsaVeze&#34;;

gunBeg = &#34;usti hlavne&#34;;
gunEnd = &#34;konec hlavne&#34;;

body = &#34;OtocVez&#34;;
gun = &#34;OtocHlaven&#34;;
soundServo&#91;&#93;={};
minElev=0;
maxElev=60;
minTurn=-360;
maxTurn=360;
};
};
};[/QUOTE]<span id='postcolor'>

I copied and pasted from the DKM Tow, chnged some stuff. Everything should be fine (at least that&#39;s wut I think) with the model.

MikkoFin
Nov 12 2002, 06:43
I don&#39;t know how to solve this, but I know how to get rid of the codemaster- splashscreens:

Make shortcut of ofp to your desktop, edit the paths so that you add -nosplash after operationflashpoint.exe or what it is.

Then you start the game, and you don&#39;t have to watch those splashscreens.