CH-46 helicopter, config problem |
CH-46 helicopter, config problem |
Jan 6 2008, 17:54
Post
#1
|
|
Senior Member Group: Members Posts: 312 Joined: 18-April 07 From: Birmingham, England Member No.: 767 |
Hi all, I made a ch-46 for ofp following brsseb'z helicopter tutorial. I made the model and evrything and made it pbo, but when I go to play it in ofp an error message comes up saying ch-46\config.cpp/: '}' encounterred instead of '{'. Here's what I put in the config.cpp:
// Basic def. #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 class CfgPatches} { class CH-46 { units[] = {CH-46}; weapons[] = {}; requiredVersion = 1.3; }; }; { class default {}; class Air: default {}; class Helicopter: Air {}; class UH60: Helicopter{}; class CH-46: UH60 {}; }; class CfgVehicles { class All{}; class AllVehicles:All{}; class Air: AllVehicles{}; class Helicopter: Air{}; class UH60: Helicopter{}; class CH-46: UH60 { side=TWEST; scope=public; displayName="CH-46"; model="\CH-46\CH-46"; nameSound="chopper"; hasGunner=0; crew="SoldierWPilot"; maxSpeed=130; armor=60; transportSoldier=1; accuracy=0.08; simulation=helicopter; typicalCargo[]={Man}; driverAction = ManActUH60Pilot; enableSweep=true; driverIsCommander=true; }; }; Can anyone help? -------------------- "Our business in the field of fight, is not to question, but to prove our might." Alexander Pope
|
|
|
Jan 6 2008, 22:43
Post
#2
|
|
ArmA.info Sarcasm Society's Slightly Mad Scotsman Group: Former .info Serviceman Posts: 718 Joined: 28-September 07 From: Glasgow, UK Member No.: 1,331 |
uhm....will unpack and then try and help!
-------------------- Never before in the history of man, was so much buggered up by so few.
|
|
|
Jan 6 2008, 22:51
Post
#3
|
|
Hipster addonmaker Group: Former .info Serviceman Posts: 2,090 Joined: 1-November 06 From: Kingdom of the Netherlands Member No.: 10 |
QUOTE ch-46\config.cpp/: '}' encounterred instead of '{' You open defines by using "{" and close them with " };" I noticed you have "class CfgPatches}", that "}" is not supposed to be there. You had closed a define even before you started it -------------------- |
|
|
Jan 6 2008, 23:26
Post
#4
|
|
ArmA.info Sarcasm Society's Slightly Mad Scotsman Group: Former .info Serviceman Posts: 718 Joined: 28-September 07 From: Glasgow, UK Member No.: 1,331 |
the, incredibly helpful, sod beat me to it
-------------------- Never before in the history of man, was so much buggered up by so few.
|
|
|
Jan 7 2008, 18:32
Post
#5
|
|
Senior Member Group: Members Posts: 312 Joined: 18-April 07 From: Birmingham, England Member No.: 767 |
ok it works in game but its invisible, explodes and when set to flying is at 140000 and dropping. can anyone help
-------------------- "Our business in the field of fight, is not to question, but to prove our might." Alexander Pope
|
|
|
Jan 7 2008, 22:03
Post
#6
|
|
Member Group: Members Posts: 45 Joined: 13-July 07 Member No.: 981 |
model="\CH-46\CH-46.p3d";
Maybe the invisible thing is caused by a path error? I don't know if you need to but I always add the file extention on the end. |
|
|
Jan 7 2008, 22:11
Post
#7
|
|
Senior Member Group: Members Posts: 312 Joined: 18-April 07 From: Birmingham, England Member No.: 767 |
I dunno. This is my first addon and I did exactly what it said in the tutorial. Can someone take a look at it and try and figure out the problem?
-------------------- "Our business in the field of fight, is not to question, but to prove our might." Alexander Pope
|
|
|
Jan 7 2008, 22:43
Post
#8
|
|
Hipster addonmaker Group: Former .info Serviceman Posts: 2,090 Joined: 1-November 06 From: Kingdom of the Netherlands Member No.: 10 |
QUOTE class CfgModels
{ class default {}; class Air: default {}; class Helicopter: Air {}; class UH60: Helicopter{}; class CH-46: UH60 }; class CfgVehicles { class All{}; class AllVehicles:All{}; class Air: AllVehicles{}; class Helicopter: Air{}; class UH60: Helicopter{}; class CH-46: UH60 { side=TWEST; scope=public; displayName="CH-46"; model="\CH-46\CH-46"; nameSound="chopper"; hasGunner=0; crew="SoldierWPilot"; maxSpeed=130; armor=60; transportSoldier=1; accuracy=0.08; simulation=helicopter; typicalCargo[]={Man}; driverAction = ManActUH60Pilot; enableSweep=true; driverIsCommander=true; -------------------- |
|
|
Lo-Fi Version | Time is now: 26th April 2024 - 15:03 |