Home   Help Search Login Register  

Author Topic: Config problem  (Read 841 times)

0 Members and 1 Guest are viewing this topic.

Offline KTottE

  • Former Staff
  • ****
Config problem
« on: 13 Jul 2003, 09:27:47 »
Okay, since I, with some help from Tomby, discovered that you can up the amount of inventory slots to 14 without any problem, I figured I'd make an addon out of it. So now I have the config done, and everything worked fine last night, but now it freezes the game whenever I try and pick something up from an ammo crate.

Right now I'm borrowing the models from INQ's soldiers and BAS delta/rangers, so no comments on that. Also, everything worked fine last night, so don't comment on me having more than 10 inventory slots.
Have I missed anything in here, and if so, what?


Code: [Select]
#define WeaponNoSlot            0// dummy weapons
#define WeaponSlotPrimary      1// primary weapons
#define WeaponSlotSidearm      2
#define WeaponSlotSecondary   16// secondary weapons
#define WeaponSlotSideMags   32
#define WeaponSlotItem         256// items
#define WeaponSlotBinocular   4096// binocular
#define WeaponHardMounted      65536

// 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

#define true 1
#define false 0

// type scope
#define private 0
#define protected 1
#define public 2

#define DefaultManWeapons Throw,Put

class CfgPatches
{
   class KTE_SpecialForces
      {
         units[] = {KTE_OperatorU,KTE_OperatorF};
         requiredVersion = 1.91;
         requiredAddons[]={"BIS_Resistance","BIS_WeaponPack","INQ_WeaponPack","BAS_deraw"};
      };
};

class CfgModels
{
   class default{};
   class Man: default {};
   class KTE_OperatorU: Man {};
};

class CfgVehicles
{
   class All{};
   class AllVehicles:All{};
   class Land:AllVehicles{};
   class Man:Land{};
   class Soldier:Man{};
   class SoldierWB:Soldier{};
   class KTE_OperatorU: SoldierWB
   {
      model="\inq_soldiers\SolW\INQ_SoldierW";
      vehicleClass="KTE - Special Forces";
      displayName = "Operator (Urban gear)";
      cost=100000;
      sensitivity=1.25;
      accuracy=2.500000;
      nightVision=1;
      camouflage=0.750000;
      armor=5;
      armorStructural=2.0;
      armorHead=0.7;
      armorBody=5.5;
      armorHands=0.5;
      armorLegs=0.5;
      weapons[]={};
      magazines[]={};
      weaponSlots = WeaponSlotPrimary + WeaponSlotSecondary + 14 * WeaponSlotItem + 2 * WeaponSlotBinocular + WeaponSlotSidearm + 4 * WeaponSlotSideMags;
   };
  class KTE_OperatorF: KTE_OperatorU
      {
         model="\BAS_deraw\BAS_RangerFloppy.p3d";
         displayName="Operator (Field gear)";
         scope=2;
         weapons[]={};
         magazines[]={};
      };
   };
};

edit

May actually have found the problem. I think it's related to having too many inventory slots. When you pick up a weapon from a crate, it will automatically nab as many mags as you have room for in your inventory, this will fill the four extra slots I have, and crash the game. I tried starting it with addMagazine and addWeapon in his init, and everything worked fine until I went over the standard inventory limit.
I will shit a brick if this is the problem, since like I told you: Everything worked 100% last night and I really really want extra inventory slots.

edit2

BRICK IS OUT!
Fark.
So, can anyone tell me why this worked last night and not today?
I didn't do any config changes at all,  it was the same PBO.
Last night it worked, today it doesn't.
Any takers on why?
« Last Edit: 13 Jul 2003, 09:42:47 by KTottE »
"Life is not a journey to the grave with the intention of arriving safely in a pretty and well preserved body, but rather to skid in broadside, thoroughly used up, totally worn out, and loudly proclaiming 'WOW What a Ride!'"

asmodeus

  • Guest
Re:Config problem
« Reply #1 on: 17 Jul 2003, 23:09:40 »
How weird man!

I'd say the only explanation is that the first time you worked on it and it worked correctly, you were in the bermuda triangle!   :o   ;)

Then of course, when you left it, everything went back to normal.   ::)

But seriously, don't have any idea why it would work 1 day and not the next....

Asmo

Offline KTottE

  • Former Staff
  • ****
Re:Config problem
« Reply #2 on: 17 Jul 2003, 23:32:15 »
OFP works in mysterious ways ;D
"Life is not a journey to the grave with the intention of arriving safely in a pretty and well preserved body, but rather to skid in broadside, thoroughly used up, totally worn out, and loudly proclaiming 'WOW What a Ride!'"