Jump to content
Sign in to follow this  
GIJOE94

Ch-46 problem

Recommended Posts

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?

Share this post


Link to post
Share on other sites

Moving to the correct forum.

There are atleast 2 errors in that config:

- a closed bracket in the class CfgPatches line

- a missing line called "class CfgModels" above the lines

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">{

class All{};

...

See if it works with this config:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">#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 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;

};

};

You may also use different designations for the addonname, modelname and unitname, not sure if the hyphen not causing problems too.

Share this post


Link to post
Share on other sites

so far you is missing class CfgModels, you have the section but not the class CfgModels part. also a } next to cfg patches.

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">

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

{

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;

};

};

};

this might work, some things you can take out because it is already defined by UH60 class

Share this post


Link to post
Share on other sites

thanks. Could you indicate what might need taking out because I tried it and it said the same message. and also with yourse, w00le.

Share this post


Link to post
Share on other sites

Alright, next attempt:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">#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 CH46

{

units[]={"CH46"};

weapons[]={};

requiredVersion=1.3;

};

};

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 CH46: 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;

};

};

Share this post


Link to post
Share on other sites

might be the typical cargo missing "

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">// 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 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

{

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;

};

};

};

and i mean you can delete these things

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">transportSoldier=1;

accuracy=0.08;

simulation=helicopter;

typicalCargo[]={"Man"};

driverAction = ManActUH60Pilot;

enableSweep=true;

driverIsCommander=true; cause your ch46 will take them off uh60 class unless you redefine them

Share this post


Link to post
Share on other sites

One close bracket too much, try this:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">// 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 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

{

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;

};

};

Share this post


Link to post
Share on other sites

ok w0lle got it working but I press preview in the editor it says error loading Ch-46/ch-46.p3d (magic). Can anyone help?

Share this post


Link to post
Share on other sites

Not at all sure you can use a '-' in classnames or paths, so CH-46 probably gives it heart failure.

Suggest a change to CH_46 instead.

Planck

Share this post


Link to post
Share on other sites
ok w0lle got it working but I press preview in the editor it says error loading Ch-46/ch-46.p3d (magic). Can anyone help?

LOL well... i told you that i changed the folder name and the model name to ch46

So the according line in the config must be:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">model="\CH46\CH46";

And of course you need to rename both the folder and modelname on your HD. smile_o.gif

Share this post


Link to post
Share on other sites

ok it works ingame but it is invisible, explodes and the height at flying is 1400000 and dropping.

Share this post


Link to post
Share on other sites

You might want to check that model again.

Sounds like it's a bit messed up.

Are all your lods in place,and correctly

configured?

smile_o.gif

Share this post


Link to post
Share on other sites

Yes. I did exactly what it said to do in the tutorial. Can anyone have a look at it and try and figure out the problem?

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×