Home   Help Search Login Register  

Author Topic: No entry config.bin  (Read 1152 times)

0 Members and 1 Guest are viewing this topic.

BUNTRO

  • Guest
No entry config.bin
« on: 01 Sep 2003, 14:22:54 »
//Nejake zakladni definice / some basic defines
#define TEast 0
#define TWest 1
#define TGuerrila 2
#define TCivilian 3
#define TSideUnknown 4
#define TEnemy 5
#define TFriendly 6
#define TLogic 7

//pravda nebo lez / true or lie
#define true 1
#define false 0

//viditelnost / visibility
#define private 0
#define protected 1
#define public 1

class CfgPatches
{
   class BUN_AGM84SLAML
     {
      units[]={};
      weapons[]={BUN_AGM84SLAML};
      worlds[]={};
      requiredVersion=1.30;
   };
};

class CfgModels
{
   class default {};
   class Weapon: default {};
   class SLAM: Weapon {};
};

class CfgAmmo
{
   class Default {};
   class AT3: Default {};
   class Hellfire: AT3 {};
   class BUN_AGM84SLAM: Hellfire
   {
      hit=2000;
      indirectHit=1000;
      indirectHitRange=15;
      minRange=200;
      minRangeProbab=0.30;
      midRange=3000;
      midRangeProbab=0.85;
      maxRange=6000;
      maxRangeProbab=0.75;
      thrustTime=10;
      initTime=3;
      thrust=840;
      airlock=false;
      laserLock=true;
      irLock=true;
      maxSpeed=230;
      maneuvrability=100;
      model="\BUN_AGM84SLAM\SLAM.p3d";
      proxyshape="\BUN_AGM84SLAM\SLAM.p3d";
      manualControl=0;
      maxControlRange=6000;
   };
};

class CfgWeapons
{
   class Default {};
   class LawLauncher: Default {};
   class CarlGustavLauncher: LawLauncher {};
   class AT3Launcher: CarlGustavLauncher {};
   class HellfireLauncher: AT3Launcher {};
   class BUN_AGM84SLAML:  HellfireLauncher
   {
      ammo="BUN_AGM84SLAM";
      displayName="AGM84 SLAM";
      displayNameMagazine="AGM84";
      shortNameMagazine="SLAM";
      count=4;
      magazine="BUN_AGM84SLAM";
      initspeed=15;
      reloadTime=1.00000;
      sound[]={"\BUN_AGM84SLAM\missfly.wav",db-75,1};
      reloadSound[]={"",0,1};
      canLock=LockYes;
      maxleadspeed=2000;
      aiRateOfFireDistance=6000;
   };
};



Can someone look at this coding I did and tell me if you can help find the error?
Thx
BUNTRO   ???

BUNTRO

  • Guest
Re:No entry config.bin
« Reply #1 on: 03 Sep 2003, 13:37:56 »
No Help???   :-\

Schlicki

  • Guest
Re:No entry config.bin
« Reply #2 on: 03 Sep 2003, 17:10:07 »

   class Default {};
   class LawLauncher: Default {};
   class CarlGustavLauncher: LawLauncher {};
   class AT3Launcher: CarlGustavLauncher {};
   class HellfireLauncher: AT3Launcher {};
   class BUN_AGM84SLAML:  HellfireLauncher


Don't you miss a ; after the last class?
Otherwise you could maybe tell us what error message you get!

BUNTRO

  • Guest
Re:No entry config.bin
« Reply #3 on: 04 Sep 2003, 17:42:50 »
Here is what I have done.  In the mission editor, I added the RAD F18.  From here, I removed it's MK83 bombs and all it's ammo for that weapon.  Next, I added my addon, which was seen in the weapons inventory.  Finally, I tried to add some ammo, but for some reason, I kept getting a message saying that the ammo was unavailable.  I simply put the line "this addMagazine BUN_AGM84SLAM", and not matter what I put there, it would say error config.bin with it pointing to whatever I put in for the ammo.
Any ideas?

BUNTRO

  • Guest
Re:No entry config.bin
« Reply #4 on: 07 Sep 2003, 17:39:57 »
Here is the new code that works.  I got the addon in the game, but I'm having a couple of problems.  First, the missile will not lock onto any ground/sea targets like a hellfire.  What do I need to change in the coding for this to work?  Second, the weapons will not show up on anything that I add them to.  In a sample mission I've created, I removed the hellfires off of an apache.  I tried putting these in their place, hoping that it would work, but have been unsuccessful as of yet.  So is this even possible?  Here is the code:

//Nejake zakladni definice / some basic defines
#define TEast 0
#define TWest 1
#define TGuerrila 2
#define TCivilian 3
#define TSideUnknown 4
#define TEnemy 5
#define TFriendly 6
#define TLogic 7

//pravda nebo lez / true or lie
#define true 1
#define false 0

//viditelnost / visibility
#define private 0
#define protected 1
#define public 1

class CfgPatches
{
   class BUN_AGM84SLAML
     {
      units[]={};
      weapons[]={BUN_AGM84SLAML};
      worlds[]={};
      requiredVersion=1.30;
   };
};

class CfgAmmo
{
   class Default {};
   class AT3: Default {};
   class Hellfire: AT3 {};
   class BUN_AGM84SLAM: Hellfire
   {
      hit=2000;
      indirectHit=1000;
      indirectHitRange=15;
      minRange=200;
      minRangeProbab=0.30;
      midRange=3000;
      midRangeProbab=0.85;
      maxRange=6000;
      maxRangeProbab=0.75;
      thrustTime=10;
      initTime=0.15;
      thrust=800;
      laserLock=true;
      irLock=false;
      airlock=false;
      maxSpeed=1000;
      maneuvrability=120;
      model="\BUN_AGM84SLAM\SLAM.p3d";
      proxyshape="\BUN_AGM84SLAM\SLAM.p3d";
      manualControl=0;
      maxControlRange=6000;
   };
};

class CfgWeapons
{
   class Default {};
   class LawLauncher: Default {};
   class CarlGustavLauncher: LawLauncher {};
   class AT3Launcher: CarlGustavLauncher {};
   class HellfireLauncher: AT3Launcher {};
   class BUN_AGM84SLAML: HellfireLauncher
   {
      ammo="BUN_AGM84SLAM";
      displayName="AGM84 SLAM";
      displayNameMagazine="AGM84";
      shortNameMagazine="SLAM";
      count=4;
      initspeed=40;
      reloadTime=1.00000;
      sound[]={"\BUN_AGM84SLAM\missfly.wav",db-75,1};
      reloadSound[]={"",0,1};
      canLock=LockYes;
      maxleadspeed=2000;
      aiRateOfFireDistance=6000;
      proxyShape="\BUN_AGM84SLAM\SLAM.p3d";
   };
};

class CfgModels
{
   class default {};
   class Weapon: default {};
   class SLAM: Weapon {};
};

class CfgNonAIVehicles
{
   class ProxyWeapon {};
   class ProxySLAM: ProxyWeapon
   {
      model = "\BUN_AGM84SLAM\SLAM.p3d";
      simulation = "hellfireweapon";
   };
};

Schlicki

  • Guest
Re:No entry config.bin
« Reply #5 on: 08 Sep 2003, 17:38:49 »
turn irLock on, that should make you able to aim at boats and ships. like above you always need a lasertarget to aim at.

i got no idea what to do to make it show up on a plane, sry

BUNTRO

  • Guest
Re:No entry config.bin
« Reply #6 on: 10 Sep 2003, 04:40:13 »
I still can't get the square and diamond reticle on the weapon?  What gives??