Home   Help Search Login Register  

Author Topic: Config Help!  (Read 1385 times)

0 Members and 1 Guest are viewing this topic.

Offline Ding

  • Contributing Member
  • **
  • Jurassic Park
Config Help!
« on: 22 Aug 2007, 22:40:57 »
I've just downloaded the new tools and made a crate addon, my only problem is configing it, I just wanted a simple config but I cant seem to get it to work i always get an error every time I start Arma telling me theres a C encountered instead of { on line 21 of CfgVehicles. This is pretty simple stuff can anyone tell me how to get this static object into Arma?


Code: [Select]
class CfgPatches
{
class nikcrate
{
units[] = {nikcrate};
weapons[] = {};
requiredVersion = 0.01;
};
};

class CfgVehicleClasses
{
class NikCrates
{
displayName = "Nik Crates";
};
};

class CfgVehicles
{
class all
class static: all
class building: static
class nonstrategic: building
class nikcrate: nonstrategic
{
model="\cratetest\crate";
vehicleclass="NikCrates";
armor=15000;
scope=2;
displayname="nik crate";
};
};
"If I remain lost and die on a cross, atleast I wasn't born in a manger"

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re: Config Help!
« Reply #1 on: 23 Aug 2007, 00:53:41 »
the way you have it is pretty much the way OFP configs inherited, but there are a few bits missing......try:

Code: [Select]
class CfgVehicles
{
class all {};
class static: all {};
class building: static {};
class nonstrategic: building {};
class nikcrate: nonstrategic
{
model="\cratetest\crate";
vehicleclass="NikCrates";
armor=15000;
scope=2;
displayname="nik crate";
};
};

or the ArmA way....

Code: [Select]
class CfgVehicles
{
class nonstrategic;
class nikcrate: nonstrategic
{
model="\cratetest\crate";
vehicleclass="NikCrates";
armor=15000;
scope=2;
displayname="nik crate";
};
};

At least I hope that works ok for you, try both.   ::)


Planck
I know a little about a lot, and a lot about a little.

Offline Ding

  • Contributing Member
  • **
  • Jurassic Park
Re: Config Help!
« Reply #2 on: 23 Aug 2007, 09:17:07 »
Thanks plant, I used the latter and it worked perfectly. I need to get used to the differences in configs for OFP and Arma addons
"If I remain lost and die on a cross, atleast I wasn't born in a manger"