PDA

View Full Version : Config Prob... Units do not appear in editor



Flat!!!
Jul 7 2007, 21:19
Well as the topic states they don't show up in the editor... It worked until I pushed the pilot in... here it is
<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">
class CfgPatches {

class BOS_RESKIN {
units&#91;&#93; = {
&#34;UH60_RESKIN1&#34;, &#34;UH60_RESKIN2&#34;
};
class BOS_RESKI2 {
units&#91;&#93; = {
&#34;Navypilot&#34;
};
};


class CfgVehicleClasses {
class BOS_RESKIN {
displayName = &#34;Air &#40;Navy&#41;&#34;;
};
class BOS_RESKI2 {
displayName = &#34;Men &#40;Navy&#41;&#34;;
};
};


class CfgVehicles
{
/*extern*/ class UH60;
class UH60_RESKIN1&#58; UH60
{
vehicleclass = &#34;BOS_RESKIN&#34;;
model = &#34;&#92;uh60navy&#92;uh_60&#34;;
displayname = &#34;UH60 FFAR &#40;Navy&#41;&#34;;
};

/*extern*/ class UH60mg;
class UH60_RESKIN2&#58; UH60MG
{
vehicleclass = &#34;BOS_RESKIN&#34;;
model = &#34;&#92;uh60navy&#92;uh_60mg&#34;;
displayName = &#34;UH60 MG &#40;Navy&#41;&#34;;
};

/*extern*/ class us_soldier_pilot;
class navypilot&#58; us_soldier_pilot
{
vehicleclass = &#34;BOS_RESKI2&#34;;
model = &#34;&#92;uh60navy&#92;us_soldier_pilot&#34;;
displayName = &#34;Pilot &#40;Navy&#41;&#34;;

};[/QUOTE]

Plz help me... and tell me what I am doing wrong... Is it possible to have both vehicles and man units in the same config?

RN Malboeuf
Jul 7 2007, 21:32
add
<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">scope=public[/QUOTE]

Flat!!!
Jul 7 2007, 21:54
Should I add that to every single one or just the man?

RN Malboeuf
Jul 7 2007, 21:57
you have to search and try to understand what i wrote http://forums.bistudio.com/oldsmileys/wink_o.gif

Flat!!!
Jul 7 2007, 22:30
Ok I have searched... and found maybe 5 topics one said if you add scope=protected it wont show ingame bla bla bla so I guess scope=public will make it appear... So I added it to all and No luck... one= no luck 3 =no luck I tried all combinations even and still no luck... BTW when I did not have the pilot it worked...

This is what I used first and it works:
<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">
class CfgPatches {

class BOS_RESKIN {
units&#91;&#93; = {
&#34;UH60_RESKIN1&#34;, &#34;UH60_RESKIN2&#34;
};
};
};

class CfgVehicleClasses {
class BOS_RESKIN {
displayName = &#34;Air &#40;Navy&#41;&#34;;
};
};

class CfgVehicles
{
/*extern*/ class UH60;
class UH60_RESKIN1&#58; UH60
{
vehicleclass = &#34;BOS_RESKIN&#34;;
model = &#34;&#92;uh60navy&#92;uh_60&#34;;
displayname = &#34;UH60 FFAR &#40;Navy&#41;&#34;;
};

/*extern*/ class UH60mg;
class UH60_RESKIN2&#58; UH60MG
{
vehicleclass = &#34;BOS_RESKIN&#34;;
model = &#34;&#92;uh60navy&#92;uh_60mg&#34;;
displayName = &#34;UH60 MG &#40;Navy&#41;&#34;;
};

};[/QUOTE]

[APS]Gnat
Jul 8 2007, 02:18
You might be over-writing this config with another.

Have you got this at the top of the config?

Quote[/b] ]
// type scope
#define private 0
#define protected 1
#define public 2


This should be enough to make your addon appear in the list;

Quote[/b] ]
class CfgVehicles
{
.......
class MyGreyCar : Car
{
scope = 2;
vehicleClass="My Mod";
displayName = "My Car";
.......


And yes, if done correctly you can definite any number of different addons in the same config/PBO

Flat!!!
Jul 8 2007, 08:00
Ok I tried this and it still does not work... I get no errors nothing... and before I added the pilot to the Config it worked... Any ways this is what I tried just now:
<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">// type scope
#define private 0
#define protected 1
#define public 2
class CfgPatches {

class BOS_RESKIN {
units&#91;&#93; = {
&#34;UH60_RESKIN1&#34;, &#34;UH60_RESKIN2&#34;
};
class BOS_RESKI2 {
units&#91;&#93; = {
&#34;Navypilot&#34;
};
};


class CfgVehicleClasses {
class BOS_RESKIN {
displayName = &#34;Air &#40;Navy&#41;&#34;;
};
class BOS_RESKI2 {
displayName = &#34;Men &#40;Navy&#41;&#34;;
};
};


class CfgVehicles
{
/*extern*/ class UH60;
class UH60_RESKIN1&#58; UH60
{
scope = 2;
vehicleclass = &#34;BOS_RESKIN&#34;;
model = &#34;&#92;uh60navy&#92;uh_60&#34;;
displayname = &#34;UH60 FFAR &#40;Navy&#41;&#34;;
};

/*extern*/ class UH60mg;
class UH60_RESKIN2&#58; UH60MG
{
scope = 2;
vehicleclass = &#34;BOS_RESKIN&#34;;
model = &#34;&#92;uh60navy&#92;uh_60mg&#34;;
displayName = &#34;UH60 MG &#40;Navy&#41;&#34;;
};

/*extern*/ class us_soldier_pilot;
class navypilot&#58; us_soldier_pilot
{
scope = 2;
vehicleclass = &#34;BOS_RESKI2&#34;;
model = &#34;&#92;uh60navy&#92;us_soldier_pilot&#34;;
displayName = &#34;Pilot &#40;Navy&#41;&#34;;

};[/QUOTE]
Hope somebody comes up with a solution...

RN Malboeuf
Jul 8 2007, 11:55
}; mising at the very end http://forums.bistudio.com/oldsmileys/wink_o.gif

Flat!!!
Jul 8 2007, 12:04
Ok can you tell me where I should add them? cuz I don&#39;t get it... If you mean at the end then I added it there too and no luck... But If you please can specify that more I would be very thankfull...

Ok I found a couple of missing }; and now it looks like this:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">// type scope
#define private 0
#define protected 1
#define public 2
class CfgPatches {

class BOS_RESKIN {
units&#91;&#93; = {
&#34;UH60_RESKIN1&#34;, &#34;UH60_RESKIN2&#34;
};
};
class BOS_RESKI2 {
units&#91;&#93; = {
&#34;Navypilot&#34;
};
};
};

class CfgVehicleClasses {
class BOS_RESKIN {
displayName = &#34;Air &#40;Navy&#41;&#34;;
};
class BOS_RESKI2 {
displayName = &#34;Men &#40;Navy&#41;&#34;;
};
};


class CfgVehicles
{
/*extern*/ class UH60;
class UH60_RESKIN1&#58; UH60
{
scope = 2;
vehicleclass = &#34;BOS_RESKIN&#34;;
model = &#34;&#92;uh60navy&#92;uh_60&#34;;
displayname = &#34;UH60 FFAR &#40;Navy&#41;&#34;;
};

/*extern*/ class UH60mg;
class UH60_RESKIN2&#58; UH60MG
{
scope = 2;
vehicleclass = &#34;BOS_RESKIN&#34;;
model = &#34;&#92;uh60navy&#92;uh_60mg&#34;;
displayName = &#34;UH60 MG &#40;Navy&#41;&#34;;
};

/*extern*/ class us_soldier_pilot;
class navypilot&#58; us_soldier_pilot
{
scope = 2;
vehicleclass = &#34;BOS_RESKI2&#34;;
model = &#34;&#92;uh60navy&#92;us_soldier_pilot&#34;;
displayName = &#34;Pilot &#40;Navy&#41;&#34;;
};
};[/QUOTE]
Now the Air (Navy) work. THX dude... But I now I got another problem... I get an error message when I come to the menu and when I open the window placing units. The error is as follows:

Quote[/b] ]No entry &#39;bin&#92;config.bin/CfgVehicles/us_soldier_pilot.scope&#39;.

Any ideas on how to remove this?
Ohh yeah and the Pilot does not show up neither does Men (Navy) class

Planck
Jul 8 2007, 13:06
As far as I know Arma does not have a soldier class:

class us_soldier_pilot;

Must be a third party thing from somewhere, it certainly has nothing to do with default Arma.

Wherever it comes from, and presuming the game can find its entry somewhere, it has the scope parameter, and possibly other parameters, missing.

However ArmA does have:

class SoldierWPilot

Which uses the P3D model file called:

us_soldier_pilot.p3d

This might be a case then of the class name and model files name getting confused.


Planck

Flat!!!
Jul 8 2007, 13:16
Planck why am I stupid http://forums.bistudio.com/oldsmileys/confused_o.gif ?
THX DUDE&#33;&#33;&#33; http://forums.bistudio.com/oldsmileys/notworthy.gif and thanks to all that posted in this thread... you have been of big help... http://forums.bistudio.com/oldsmileys/notworthy.gif