Home   Help Search Login Register  

Author Topic: Help with config (M49 Binocular)  (Read 5521 times)

0 Members and 2 Guests are viewing this topic.

Teryan

  • Guest
Help with config (M49 Binocular)
« on: 08 Apr 2004, 22:26:54 »
Hi, thanks for looking.
I'm really new at this, and haveing a hard time geting this to work.  Here is the config file.

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

//true or lie
#define true 1
#define false 0

//visibility
#define private 0
#define protected 1
#define public 1

class CfgPatches
{
 class M49 Observational Scope
 {
    units[]={};
    weapons[]={M49 Observation};
    worlds[]={};
    requiredVersion=1.96;
  };
};

class CfgWeapons
{

  class Default {};
  class Binocular: Default {};

  class M49 Observation: Binocular
  {
     scopeWeapon=2;
     scopeMagazine=1;
     modle = "\M49\m49telecope.p3d";
     optics = true;
     opticsZoomMin = 20;
     opticsZoomMax = 20;
     distanceZoomMin = 20;
     distanceZoomMax = 20;
  };
};


Also, any tips on texturing I would apprecate.  One problem I am having is with my m40a3, my stock looks like crap, I tried making bigger textures, and tried more polyes, but in game it still looks faded and like crap. Any help their would be apprecated greatly.

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:Help with config (M49 Binocular)
« Reply #1 on: 08 Apr 2004, 23:38:14 »
Haven't looked at this in detail yet, but:

modle = "\M49\m49telecope.p3d";

One spelling error.........modle......should be model.


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

Offline oyman

  • Members
  • *
  • king of pings
Re:Help with config (M49 Binocular)
« Reply #2 on: 09 Apr 2004, 02:33:10 »
you can try adding sharp and smooth edges by pressing "u" for sharp and "i" for smooth

Teryan

  • Guest
Re:Help with config (M49 Binocular)
« Reply #3 on: 10 Apr 2004, 04:02:46 »
Thanks for your help guys.  I guess I should be a little more exact in the problem.  After I compress pbo tool it and start flashpoint resitance, I get this:

m49\config.cpp/cfgPatchs/:'O' encountered insted of '{'

I dont see the problem still.  Thanks for the help.

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:Help with config (M49 Binocular)
« Reply #4 on: 10 Apr 2004, 04:40:37 »
Yes.......that could be your naming.

 class M49 Observational Scope
{
    units[]={};
    weapons[]={M49 Observation};
    worlds[]={};
    requiredVersion=1.96;
  };
};


I think you are not allowed spaces in the names, so.....

class M49 Observational Scope

could be changed to:

class M49_Observational_Scope

Go through the whole config and change the relevant names so they no longer have spaces in them.


Planck





« Last Edit: 10 Apr 2004, 04:41:57 by Planck »
I know a little about a lot, and a lot about a little.

Teryan

  • Guest
Re:Help with config (M49 Binocular)
« Reply #5 on: 10 Apr 2004, 05:01:31 »
Thanks, but I still have the same problem, here is the updated config file:
Quote
//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

//true or lie
#define true 1
#define false 0

//visibility
#define private 0
#define protected 1
#define public 1

class CfgPatches
{
  class M49_Observational_Scope
  {
     units[]={};
     weapons[]={M49_Observation};
     worlds[]={};
     requiredVersion=1.85;
   };
};

class CfgWeapons
{

   class Default {};
   class Binocular:Default {};

   class M49_Observation:Binocular
   {
      scopeWeapon=2;
      scopeMagazine=1;
      model = "\M49\m49telecope.p3d";
      optics = true;
      opticsZoomMin = 20;
      opticsZoomMax = 20;
      distanceZoomMin = 20;
      distanceZoomMax = 20;
   };
};


Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:Help with config (M49 Binocular)
« Reply #6 on: 10 Apr 2004, 05:05:43 »
This one needs changing also:

 class M49_Observation:Binocular

try:

 class M49_Observation_Binocular


EDIT:  Also I think, weapons[]={M49_Observation}; should be weapons[]={M49_Observation_Binocular};

Planck
« Last Edit: 10 Apr 2004, 05:10:30 by Planck »
I know a little about a lot, and a lot about a little.

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:Help with config (M49 Binocular)
« Reply #7 on: 10 Apr 2004, 05:12:26 »
Actually I should go to bed.......I misread that bit.

Ignore me



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

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:Help with config (M49 Binocular)
« Reply #8 on: 10 Apr 2004, 05:20:23 »
OK......a couple of questions and I will go to bed.

I will read the answers tomorrow.

Is your PBO called M49_Observation_Scope.pbo?

Do you think you might need a cfgModels section in this config.?

Do you still get the same error message?

OK....I lied it was 3 questions



Planck
« Last Edit: 10 Apr 2004, 05:22:24 by Planck »
I know a little about a lot, and a lot about a little.

Teryan

  • Guest
Re:Help with config (M49 Binocular)
« Reply #9 on: 10 Apr 2004, 05:25:37 »
Quote
Is your PBO called M49_Observation_Scope.pbo?

No.  Should it be?

Quote
Do you think you might need a cfgModels section in this config.?

I have no idea.  What does it do?

Quote
Do you still get the same error message?

Err, I thought you said to ignor you....  I'll give it a try.  Back in a few.
*Err, new error.  Check out the pic.

Good night :)

Ok, here is how it looks now:
Quote
//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

//true or lie
#define true 1
#define false 0

//visibility
#define private 0
#define protected 1
#define public 1

class CfgPatches
{
  class M49_Observational_Scope:Binocular   // did not have :Binocular
  {
     units[]={};
     weapons[]={M49_Observation_Binocular};   // was weapons[]={M49_Observation};
     worlds[]={};
     requiredVersion=1.85;
   };
};

class CfgWeapons
{

   class Default {};
   class Binocular:Default {};

   class M49_Observation:Binocular
   {
      scopeWeapon=2;
      scopeMagazine=1;
      model = "\M49\m49telecope.p3d";
      optics = true;
      opticsZoomMin = 20;
      opticsZoomMax = 20;
      distanceZoomMin = 20;
      distanceZoomMax = 20;
   };
};

« Last Edit: 10 Apr 2004, 05:32:52 by Teryan »

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:Help with config (M49 Binocular)
« Reply #10 on: 10 Apr 2004, 13:57:35 »
I don't think you need that ....:Binocular in cfgPatches.

Anyway.....try the one below.....no guarantees but it might give you an entirely new error message..........which is nice.

I added a cfgModels section........it may not be needed, but it won't do any harm to be there.

As it appears from this line:

model = "\M49\m49telecope.p3d";

that your PBO is called M49.pbo, I have changed the class names accordingly.
Code: [Select]
#define TCivilian 3
#define TSideUnknown 4
#define TEnemy 5
#define TFriendly 6
#define TLogic 7

//true or lie
#define true 1
#define false 0

//visibility
#define private 0
#define protected 1
#define public 1

class CfgModels
{
   class Default { };
   class M49: Default
   {
      sections[]={""};
      sectionsInherit="";
   };
};

class CfgPatches
{
class M49
{
    units[]={};
    weapons[]={M49_Observation};
    worlds[]={};
    requiredVersion=1.96;
  };
};

class CfgWeapons
{

  class Default {};
  class Binocular: Default {};

  class M49_Observation: Binocular
  {
    scopeWeapon=2;
    scopeMagazine=1;
    model = "\M49\m49telecope.p3d";
    optics = true;
    opticsZoomMin = 20;
    opticsZoomMax = 20;
    distanceZoomMin = 20;
    distanceZoomMax = 20;
  };
};



Planck
« Last Edit: 10 Apr 2004, 13:58:39 by Planck »
I know a little about a lot, and a lot about a little.

Teryan

  • Guest
Re:Help with config (M49 Binocular)
« Reply #11 on: 10 Apr 2004, 15:58:15 »
Ok, thanks.
Got past the start up with no error messages their (thow I had to change the version to 1.85).  Got to mission editor and put down a regular grunt, went to int and put 'this addweapon "M49";'  went to stat the mission and I got this:

Well, getting closer!  :)

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:Help with config (M49 Binocular)
« Reply #12 on: 10 Apr 2004, 16:07:38 »
Hmmmm............try:

this addweapon "M49_Observation"



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

Teryan

  • Guest
Re:Help with config (M49 Binocular)
« Reply #13 on: 10 Apr 2004, 16:17:51 »
 :) Closer still.


Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:Help with config (M49 Binocular)
« Reply #14 on: 10 Apr 2004, 16:33:26 »
What is w_m49_observation.paa ?

Is it one of your models texture files?

If so, it is looking for it in an equip\w  folder.

Is this texture included in the PBO, if so, make sure the path is correct in Oxygen.


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