Home   Help Search Login Register  

Author Topic: Glasses in description.ext  (Read 2421 times)

0 Members and 1 Guest are viewing this topic.

Offline nominesine

  • Former Staff
  • ****
  • I'm NOT back!
    • The IKB Forum
Glasses in description.ext
« on: 14 Jul 2009, 00:04:36 »
Doesanyone know the names of the glasses/sunglasses/etc to be used in ArmA2. The game looks for them in a file named cfgGlasses. The only working entry I have managed to put together so far is:

Code: [Select]
class CfgIdentities
{
class p11
{
name = "Sarge";
face = "Face33";
glasses = "spectacles";
speaker = "male1";
pitch = 1.00;
};

Edit: typo
« Last Edit: 14 Jul 2009, 00:08:31 by nominesine »
OFPEC | Intel Depot
RETARDED Ooops... Retired!

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re: Glasses in description.ext
« Reply #1 on: 14 Jul 2009, 00:36:24 »
Code: [Select]
class CfgGlasses
{
 class None
 {
  scope = 2;
  name = "$STR_CFG_GLASSES_NONE";
  model = "";
  identityTypes[] = {"NoGlasses",1,"Civ_Glasses",882,"USMC_Glasses",825,"FR_Glasses",9,"RU_Glasses",939,"CDF_Glasses",930,"INS_Glasses",955,"Gue_Glasses",930,"pilot_sunglasses",8};
 };
 class Spectacles: None
 {
  name = "$STR_CFG_GLASSES_SPECTACLES";
  model = "\Ca\characters\glasses\Spectacles";
  identityTypes[] = {"Civ_Glasses",50,"USMC_Glasses",20,"CDF_Glasses",40,"Gue_Glasses",40,"INS_Glasses",20,"RU_Glasses",1,"Spectacles_Glasses",1};
 };
 class RoundGlasses: None
 {
  name = "$STR_CFG_GLASSES_READING";
  model = "\Ca\characters\glasses\RoundGlasses";
  identityTypes[] = {"Civ_Glasses",50,"CDF_Glasses",5,"Gue_Glasses",10,"INS_Glasses",5,"Reading_Glasses",1};
 };
 class Sunglasses: None
 {
  name = "$STR_CFG_GLASSES_AVIATOR_SUNGLASSES";
  model = "\Ca\characters\glasses\sunGlasses";
  identityTypes[] = {"Civ_SunGlasses",10,"USMC_Glasses",30,"CDF_Glasses",20,"Gue_Glasses",20,"INS_Glasses",20,"RU_Glasses",40,"aviator_sunglases",1,"pilot_sunglasses",2};
 };
 class Tactical: None
 {
  name = "$STR_CFG_GLASSES_TACTICAL";
  model = "\Ca\characters\glasses\TacticalGlasses";
  identityTypes[] = {"USMC_Glasses",100,"CDF_Glasses",5,"RU_Glasses",20,"Tactical_Glasses",1,"FR_Glasses",1};
 };
 class BlackSun: None
 {
  name = "$STR_CFG_GLASSES_SHADES_BLACK";
  model = "\Ca\characters\glasses\BlackSun";
  identityTypes[] = {"Civ_SunGlasses",10,"USMC_Glasses",5,"Black_sunglasses",1};
 };
 class BlueSun: None
 {
  name = "$STR_CFG_GLASSES_SHADES_BLUE";
  model = "\Ca\characters\glasses\BlueSun";
  identityTypes[] = {"USMC_Glasses",5,"Civ_SunGlasses",1,"Shade_sunglasses",1};
 };
 class RedSun: BlueSun
 {
  name = "$STR_CFG_GLASSES_SHADES_RED";
  model = "\Ca\characters\glasses\RedSun";
 };
 class GreenSun: BlueSun
 {
  name = "$STR_CFG_GLASSES_SHADES_YELLOW";
  model = "\Ca\characters\glasses\GreenSun";
 };
 class LHD_glasses: None
 {
  scope = 1;
  name = "LHD glasses";
  model = "\Ca\characters\glasses\LHDGlasses";
  identityTypes[] = {"LHD_glasses",1};
 };
};


 :cool2:

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

Offline nominesine

  • Former Staff
  • ****
  • I'm NOT back!
    • The IKB Forum
Re: Glasses in description.ext
« Reply #2 on: 14 Jul 2009, 04:25:20 »
To sleepy to test right now, but if Iäm reading it correctly it's

None
Spectacles
RoundGlasses
sunGlasses
TacticalGlasses
BlueSun
BlackSun... etc

Thanks

 :cool2:
OFPEC | Intel Depot
RETARDED Ooops... Retired!

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re: Glasses in description.ext
« Reply #3 on: 14 Jul 2009, 12:51:40 »
Well....... Sorry, I should have just listed the classnames.

None
Spectacles
RoundGlasses
SunGlasses
Tactical
BlackSun
BlueSun
RedSun
GreenSun
LHD_glasses


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

Offline nominesine

  • Former Staff
  • ****
  • I'm NOT back!
    • The IKB Forum
Re: Glasses in description.ext
« Reply #4 on: 14 Jul 2009, 15:53:30 »
Next question. Whats the proper structure for an identity entry in the description.ext these days? The following version works, but gives an error message regarding glasses (no entry cfgGlasses). It's possible to click OK and continue, and the spectables show up alright in game.

class CfgIdentities
{
   class p11
   {
      name = "Sarge";
      face = "Face33";
      glasses = "spectacles";
      speaker = "male1";
      pitch = 1.00;
   };

Ignorethe bold face typing. Those are my entries and they are working. It's the template that causes an error. I suspect that ArmA2 would prefer something else than glasses = "spectacles"; in the third paragraph. But what?
OFPEC | Intel Depot
RETARDED Ooops... Retired!

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re: Glasses in description.ext
« Reply #5 on: 14 Jul 2009, 16:18:00 »
cfgIdentities looks right according to the games entries....for example:

 class Miles
 {
  name = "Miles";
  face = "Default";
  glasses = "BlackSun";
  speaker = "Male02EN";
  pitch = 1;
 };

Maybe the glasses text (sunglasses) is case sensitive and needs to start with a capital 'S'...though I doubt it, but stranger things are possible.


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

Offline Worldeater

  • Former Staff
  • ****
  • Suum cuique
Re: Glasses in description.ext
« Reply #6 on: 14 Jul 2009, 16:28:12 »
No, it's not case-sensitive. The example works fine here (but only if you add the missing curly bracket at the end...)

Code: [Select]
class CfgIdentities
{
   class p11
   {
      name = "Sarge";
      face = "Face33";
      glasses = "spectacles";
      speaker = "male1";
      pitch = 1.00;
   };
};

BTW: "male1" will give an error in the RPT. Use "Male01EN" instead.
try { return true; } finally { return false; }

Offline nominesine

  • Former Staff
  • ****
  • I'm NOT back!
    • The IKB Forum
Re: Glasses in description.ext
« Reply #7 on: 14 Jul 2009, 18:45:22 »
The curly bracket is there in the full entry. I just didn't paste into the forum. Maybe it was the voice who caused a problem?

About this fabled rpt-report. Where and how do I find it?
OFPEC | Intel Depot
RETARDED Ooops... Retired!

Offline Worldeater

  • Former Staff
  • ****
  • Suum cuique
Re: Glasses in description.ext
« Reply #8 on: 14 Jul 2009, 18:53:19 »
try { return true; } finally { return false; }

Offline nominesine

  • Former Staff
  • ****
  • I'm NOT back!
    • The IKB Forum
Re: Glasses in description.ext
« Reply #9 on: 15 Jul 2009, 10:08:15 »
Thank you worldeater. I've been wondering about that for quite some time now.
OFPEC | Intel Depot
RETARDED Ooops... Retired!