oyman 0 Posted December 24, 2003 ok got this helicopter i want to get ingame.i give it a config and run the game go into the editor and it works fine i fly around a bit and quit.then i add CFG models to the config and the heli doesnt show up in the editor anymore any suggestions.o and here is the config<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">//Config file written by OFPCW ofps.cncguild.net/configw #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 #define private 0 #define protected 1 #define public 2 class CfgModels { class Default {}; class Vehicle: Default {}; class oyman_ah1w: { sectionsInherit="Vehicle"; sections[]={"sklo predni p","sklo predni l","velka vrtule staticka","velka vrtule blur","mala vrtule staticka","mala vrtule blur"}; }; class CfgPatches {     class oyman_ah1w     {         units[] = {oyman_ah1w};         weapons[] = {};         requiredVersion = 1.75;     }; }; class CfgVehicles {     class All {};     class AllVehicles: All {};     class Air: AllVehicles {};     class Helicopter: Air {};     class Cobra: Helicopter {};     class oyman_ah1w: Cobra     {         scope=public;         crew=SoldierWPilot;         maxSpeed=312;         side=TWest; nameSound="cobra";         displayName=AH1W;         armor=90;         accuracy=0.80;         fuelCapacity=100;         model="\oyman_ah1w\oyman_ah1w";         cost=9000000;         weapons[]={};         magazines[]={}; type=VAir; //threat[] VSoft, VArmor, VAir threat[]={0.3, 1, 1};     }; }; };  Share this post Link to post Share on other sites
colonel_klink 0 Posted December 24, 2003 hey buddy your broblem does indeed lie in the cfg models section e.g. Quote[/b] ]class oyman_ah1w:{ sectionsInherit="Vehicle"; sections[]={"sklo predni p","sklo predni l","velka vrtule staticka","velka vrtule blur","mala vrtule staticka","mala vrtule blur"}; }; which should read Quote[/b] ] class Air: default {}; class Helicopter: Air { sectionsInherit="Vehicle"; sections[]= { "sklo predni p", "sklo predni l", "velka vrtule staticka", "velka vrtule blur", "mala vrtule staticka", "mala vrtule blur" }; class oyman_ah1w:helicopter{}; Hope this is helpful cheers Share this post Link to post Share on other sites
oyman 0 Posted December 24, 2003 when i put that as my new CFG models ans started the game it gave me a different error "\oyman_ah1w\config.cpp\undefinded base class "helicopter" something along those lines Share this post Link to post Share on other sites
BraTTy 0 Posted December 25, 2003 <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">//Config file written by OFPCW ofps.cncguild.net/configw#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 #define private 0 #define protected 1 #define public 2 class CfgModels { class Default {}; class Vehicle: Default {}; class oyman_ah1w: { sectionsInherit="Vehicle"; sections[]={"sklo predni p","sklo predni l","velka vrtule staticka","velka vrtule blur","mala vrtule staticka","mala vrtule blur"}; }; };     <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<insert here class CfgPatches {     class oyman_ah1w     {         units[] = {oyman_ah1w};         weapons[] = {};         requiredVersion = 1.75;     }; }; class CfgVehicles {     class All {};     class AllVehicles: All {};     class Air: AllVehicles {};     class Helicopter: Air {};     class Cobra: Helicopter {};     class oyman_ah1w: Cobra     {         scope=public;         crew=SoldierWPilot;         maxSpeed=312;         side=TWest; nameSound="cobra";         displayName=AH1W;         armor=90;         accuracy=0.80;         fuelCapacity=100;         model="\oyman_ah1w\oyman_ah1w";         cost=9000000;         weapons[]={};         magazines[]={}; type=VAir; //threat[] VSoft, VArmor, VAir threat[]={0.3, 1, 1};     }; }; }; Share this post Link to post Share on other sites
colonel_klink 0 Posted December 25, 2003 Sorry in my rush to do this I forgot a "};" Â without the quotes. It should read: Quote[/b] ]Class cfgmodels { class Air: default {}; class Helicopter: Air { sectionsInherit="Vehicle"; sections[]= {"sklo predni p","sklo predni l","velka vrtulestaticka","velka vrtule blur","mala vrtule staticka","mala vrtule blur"}; }; // <<<<<< this one! class oyman_ah1w:helicopter{}; }; Share this post Link to post Share on other sites
oyman 0 Posted December 25, 2003 ok i tried the 2nd one and got an error, then i just deleted the cfg models part.then i added some weapons to it,started up game and it worked ingame then i quit and try Klinks way and it doesnt show up ingame .the only  i can think of is that i did something wrong. here is the current status of the helicopters config.<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">// 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 WeaponNoSlot 0// dummy weapons #define WeaponSlotPrimary 1// primary weapons #define WeaponSlotSecondary 16// secondary weapons #define WeaponSlotItem 256// items #define WeaponSlotBinocular 4096// binocular #define WeaponHardMounted 65536 class CfgModels { class Default {}; class Air: default {}; class Helicopter: Air { sectionsInherit="Vehicle"; sections[]= { "sklo predni p" ,"sklo predni l" ,"velka vrtulestaticka" ,"velka vrtule blur" ,"mala vrtule staticka" ,"mala vrtule blur"}; }; class oyman_ah1w: Helicopter{}; }; class CfgPatches { class oyman_ah1w { units[]={oyman_ah1w}; weapons[]={oymanAim9l}; requiredVersion=1.30; }; class CfgAmmo { class Default {}; class AT3: Default {}; class CarlGustav: AT3 {}; class AA : CarlGustav {}; class oymanaim9 : AA { minRange=100;    minRangeProbab=0.8;     midRange=500;     midRangeProbab=1.5;     maxRange=2000;     maxRangeProbab=1.5;     proxyShape="\Apac\hellfire_proxy"; maneuvrability=60.7; airLock=true; irLock=true; laserLock=true; initTime=0.01; maxleadspeed=4000; ThrustTime=2000; maxControlRange=2000; thrust=2000; maxSpeed=4000; hit=400;indirectHit=200;indirectHitRange=50; model="\Apac\hellfire"; }; class Hellfire: AT3{}; class Zuni: Hellfire{}; class Rocket57: Zuni{}; class oymanHydra: Rocket57 { soundHit[]={"\oyman_ah1w\FFARhit.ogg",75,1}; hit=700;indirectHit=450;indirectHitRange=10; }; class CfgWeapons { class Default {}; class LAWLauncher: Default {}; class CarlGustavLauncher : LAWLauncher {}; class AT3Launcher: CarlGustavLauncher {}; class HellfireLauncher: AT3Launcher {}; class MaverickLauncher: HellfireLauncher {}; class oymanAim9l: MaverickLauncher { ammo=OYMANAim9; displayName="AIM"; displayNameMagazine="AIM"; shortNameMagazine="AIM"; count=2; initspeed=15; model="\Apac\hellfire"; canLock=2; sound[]={Weapons\Missile,db+18,1}; aiRateOfFire=12.000000; aiRateOfFireDistance=2500; }; class ZuniLauncher38: AT3Launcher{}; class Rocket57x64: ZuniLauncher38{}; class oymanHydraLauncher: Rocket57x64 { //-- ammo=oymanHydra; displayName="Hydra 70mm FFAR"; displayNameMagazine="Hydra 70mm FFAR"; shortNameMagazine="Hydra 70mm FFAR"; count=66; sound[]={"\oyman_ah1w\Hydra70.ogg",5,1}; }; class MGun: Default {}; class MachineGun7_6: MGun {}; class MachineGun30: MachineGun7_6 {}; class oymanM197: MachineGun30 { displayName="M197_20mm"; displayNameMagazine="M197_20mm"; shortNameMagazine="M197_20mm"; ammo=Bullet30; count=750; reloadTime=0.08; initSpeed=2000; sound[]={"\bmp2\bmp2_cannon",3.162278,1}; soundContinuous=0; flashSize=2.000000; maxLeadSpeed=950; optics=1; }; class CfgVehicles {     class All {}; class AllVehicles: All {}; class Air: AllVehicles {}; class Helicopter: Air {}; class Cobra: Helicopter {}; class oyman_AH1W: Cobra { //-- picture=icobra; crew = SoldierGPilot; scope=public; side=TGuerrila;   vehicleClass = "Air";   displayName = "AH-1W Supercobra";   model="\oyman_ah1w\oyman_ah1w.p3d"; nameSound="cobra"; accuracy=0.30; driverAction = ManActAH1Pilot; gunnerAction = ManActAH1Gunner; maxSpeed = 312; //soundEngine[]={Vehicles\ah1cobra,db+10,1}; armor=80; cost=10000000; weapons[]={oymanM197,oymanHydraLauncher,oymanAim9l};   magazines[]={oymanM197,oymanHydraLauncher,oymanAim9l}; type=VAir; //threat[] VSoft, VArmor, VAir threat[]={0.3, 1, 1}; class Turret { gunAxis="OsaHlavne"; turretAxis="OsaVeze"; gunBeg="usti hlavne"; gunEnd="konec hlavne"; soundServo[]={}; minElev=-60; maxElev=10; minTurn=-95; maxTurn=95; body="OtocVez"; gun="OtocHlaven"; }; class ReloadAnimations { class oymanM197 { weapon="oymanM197"; angle0=0; angle1="-2 * 3.141592654"; multiplier=500; type="rotation"; animPeriod=1; selection="gatling"; begin="usti hlavne"; end="konec hlavne"; };   Share this post Link to post Share on other sites
colonel_klink 0 Posted December 26, 2003 Hi Oyman From what I can see the problem you're having I think is caused by some of the cfg sections not having pairs of  brackets: e.g. for each { you use there must be a crrresponding }; Have a look at this section for example <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">class CfgPatches { class oyman_ah1w { units[]={oyman_ah1w}; weapons[]={oymanAim9l}; requiredVersion=1.30; }; It doesn't close the section with a }; New code for this section now reads <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">class CfgPatches { class oyman_ah1w { units[]={oyman_ah1w}; weapons[]={oymanAim9l}; requiredVersion=1.30; }; }; Check each section such as class cfgAmmo and class cfgWeapons and even class cfgVehicles you'll see what I mean. As a rule every class <OBJECT> starts with a { and finishes with };. I know it can be confusing but more often than not the problems in the config lie with a missing bracket. Cheers Share this post Link to post Share on other sites
oyman 0 Posted December 26, 2003 well thanks for replys Colonel_Klink and BraTTy i will eventaully get it working until then there will be alot of bashing my head on the computer monitor Share this post Link to post Share on other sites
oyman 0 Posted December 26, 2003 ha the computer abuse has stoped  i found ouuut why it was screwing up.i for got to name the propeller things 1 more thing mala vrtule textura and velka vrtule textura.and in the cfg modles part i just rewrote like this <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">class CfgModels { class default {}; class Air: default {}; class Helicopter: Air {}; class Cobra: Helicopter{}; class oyman_AH1W: Cobra {}; }; and it worked Share this post Link to post Share on other sites