Jump to content
Sign in to follow this  
konyo

Config : Some input at end of file? Cant see where im wrong? Ahh!

Recommended Posts

First of all, sorry for posting yet another topic in this forum :o

Im currently come across this error 'Config : Some input at end of file'? Yes Ive had this error sometimes before and its because it normally has an extra '};'. But i really cant see where im wrong this time? :confused:

The model is from OFP, so sorry if config is all messed up, could be why. I am in the progress of sorthing through it but cant get any further with this error. Anyway heres the config:

class CfgPatches 
{ 
   class P82_Seaking
   { 
       units[] = {"P82_Seaking", "P82_Seaking2"}; 
       weapons[] = {}; 
       requiredVersion = 1.02; 
       requiredAddons[] = {"CAAir","CA_Anims_Char","CAData","CACharacters"};
}; 
}; 
class CfgFactionClasses {
class P82AA {
	displayName = "Project 82 Air";
	priority = 1;
	side = TEast;
};
};
class CfgRadio
{
class alr
{
	name = "";
	sound[] = {\P82_Seaking\Data\Sound\Altitude.wav, db-60, 1.0};
	title = ;
};
class warning
{
	name = "";
	sound[] = {\P82_Seaking\Data\Sound\warning.wav, db-60, 1.0};
	title = ;
};
};
class Turrets;//new 
class MainTurret; 
class CfgVehicles 
{ 
   class Helicopter; 
   class P82_Seaking: Helicopter 
   { 
       displayName = "Westland SeaKing - HAR.Mk 4";
side = 1; 
       scope = 2;
faction = "P82AA";
crew = "BAF_Pilot_MTP";
picture = "\P82_Seaking\Data\ico\Seaking1.paa"; 
       Icon = "\P82_Seakinh\Data\ico\Seaking_ico1.paa"; 
vehicleClass = "Air";		
simulation = "helicopter"; 
model = "\P82_Seaking\MLV_Seaking.p3d";
maxSpeed = 230; 
       accuracy = 0.0800000; 
       armor = 50;
audible = 2;
enableManualFire = 0;
transportSoldier = 13; 
      	hasGunner = 0;
driverAction = "ManActUH60Pilot";
cargoAction[] = {"UH60_Cargo02","UH60_Cargo02"}; 
       typicalCargo[] = {"BAF_Soldier_MTP", "BAF_ASoldier_MTP", "BAF_Soldier_AR_MTP"};
rotorBig = vrtule_uh_v;
rotorBigBlend = vrtule_uh_v_bl;
rotorSmall = vrtule_uh_m;
rotorSmallBlend = vrtule_uh_m_bl;
nameSound = "chopper";
soundEngine[]={"\P82_Seaking\Data\Sound\Seaking_Engine.wav",3.162278,1};

class Turrets: Turrets//new 
       { 
           class MainTurret: MainTurret 
           { 
               gunnerOpticsModel = "\ca\weapons\optika_empty";
       	gunnerName = "Co-Pilot";
       	weapons[] = {"FakeWeapon"};
       	magazines[] = {}; 
           }; 
       }; 
       class Library 
       { 
           libTextDesc = "Project 82s : Falklands MOD SH-3 Seaking Helicopter."; 
       }; 
       dammageHalf[]={	"\P82_Seaking\Data\cglass1.paa", "\P82_Seaking\Data\oh6_window_b.paa",
		"\P82_Seaking\Data\cglass2.paa", "\P82_Seaking\Data\oh6_window_b.paa",
		"\P82_Seaking\Data\tableroc.pac", "\P82_Seaking\Data\tabc_d.pac"};
dammageFull[]={	"\P82_Seaking\Data\cglass1.paa", "\P82_Seaking\Data\oh6_window_c.paa",
		"\P82_Seaking\Data\cglass2.paa", "\P82_Seaking\Data\oh6_window_c.paa",
		"\P82_Seaking\Data\tableroc.pac", "\P82_Seaking\Data\tableroc_c.pac",
		"\P82_Seaking\Data\tablerod.pac", "\P82_Seaking\Data\tabd_d.pac"}; 
       class Reflectors
   {
      class Left
      {
       	 color[]={0.800000,0.800000,1.000000,1.000000};
         ambient[]={0.070000,0.070000,0.070000,1.000000};
       	 position="L svetlo";
         direction="konec L svetla";
         hitpoint="L svetlo";
         selection="L svetlo";
         size=0.500000;
         brightness=1.000000;
      };
      class Right
      {
         color[]={0.800000,0.800000,1.000000,1.000000};
       	 ambient[]={0.070000,0.070000,0.070000,1.000000};
         position="P svetlo";
         direction="konec P svetla";
         hitpoint="P svetlo";
         selection="P svetlo";
         size=0.500000;
         brightness=1.000000;
     	      };
};
class AnimationSources 
       { 
           class Puertanim 
           { 
               source = "user"; 
               animPeriod = 2; 
               initPhase = 0; 
           };  
       }; 
       class UserActions 
       { 
           class Cerrarpuerta 
           { 
               displayName = "Cerrar Puerta"; 
               position = "PArea"; 
               radius = 3.2; 
               condition = "(this animationPhase ""Puertanim"" > 0.5)&& (alive this)"; 
               statement = "this animate [""Puertanim"", 0]"; 
               onlyforplayer = 1; 
               priority = 4; 
               showWindow = 1; 
           }; 
           class Abrirpuerta 
           { 
               displayName = "Abrir puerta"; 
               position = "PArea"; 
               radius = 3.2; 
               condition = "(this animationPhase ""Puertanim"" < 0.5)&& (alive this)"; 
               statement = "this animate [""Puertanim"", 1]"; 
               onlyforplayer = 1; 
               priority = 4; 
               showWindow = 1; 
           };
       };
class CargoLight
{
	color[] = {1, 1, 1, 1};
	ambient[] = {0.1, 0.6, 0.15, 1};
	brightness = 0.7;
        };
      };
   };
};
class P82_Seaking2 : P82_Seaking {
	side = TEast;
               scope = public;
               displayName = "Westland SeaKing - HAS.5 FRS.1";
	vehicleClass = "Malvinas - Vehiculos";
               nameSound = "chopper";	// ???????
               accuracy = 0.0800000;
               model = "\P82_Seaking\MLV_Seaking2.p3d";
	picture = "\P82_Seaking\Data\ico\Seaking2.paa";
	class Library 
       	{ 
           		libTextDesc = "Project 82s : Falklands MOD SH-3 Seaking Helicopter With Radar."; 
       	};
  }; 
    };
};	

Can anyone help with this?

PS: Again sorry to keep posting these threads about stuff, honestly stuck with this now :(

Many thanks,

konyo

Edited by konyo
Added in new config!

Share this post


Link to post
Share on other sites

Small update : Ive updated the config to how i normally do them for ArmA2, but still has the same error:

class CfgPatches 
{ 
   class P82_Seaking
   { 
       units[] = {"P82_Seaking", "P82_Seaking2"}; 
       weapons[] = {}; 
       requiredVersion = 1.02; 
       requiredAddons[] = {"CAAir","CA_Anims_Char","CAData","CACharacters"};
}; 
}; 
class CfgFactionClasses {
class P82AA {
	displayName = "Project 82 Air";
	priority = 1;
	side = TEast;
};
};
class CfgRadio
{
class alr
{
	name = "";
	sound[] = {\P82_Seaking\Data\Sound\Altitude.wav, db-60, 1.0};
	title = ;
};
class warning
{
	name = "";
	sound[] = {\P82_Seaking\Data\Sound\warning.wav, db-60, 1.0};
	title = ;
};
};
class Turrets;//new 
class MainTurret; 
class CfgVehicles 
{ 
   class Helicopter; 
   class P82_Seaking: Helicopter 
   { 
       displayName = "Westland SeaKing - HAR.Mk 4";
side = 1; 
       scope = 2;
faction = "P82AA";
crew = "BAF_Pilot_MTP";
picture = "\P82_Seaking\Data\ico\Seaking1.paa"; 
       Icon = "\P82_Seakinh\Data\ico\Seaking_ico1.paa"; 
vehicleClass = "Air";		
simulation = "helicopter"; 
model = "\P82_Seaking\MLV_Seaking.p3d";
maxSpeed = 230; 
       accuracy = 0.0800000; 
       armor = 50;
audible = 2;
enableManualFire = 0;
transportSoldier = 13; 
      	hasGunner = 0;
driverAction = "ManActUH60Pilot";
cargoAction[] = {"UH60_Cargo02","UH60_Cargo02"}; 
       typicalCargo[] = {"BAF_Soldier_MTP", "BAF_ASoldier_MTP", "BAF_Soldier_AR_MTP"};
rotorBig = vrtule_uh_v;
rotorBigBlend = vrtule_uh_v_bl;
rotorSmall = vrtule_uh_m;
rotorSmallBlend = vrtule_uh_m_bl;
nameSound = "chopper";
soundEngine[]={"\P82_Seaking\Data\Sound\Seaking_Engine.wav",3.162278,1};

class Turrets: Turrets//new 
       { 
           class MainTurret: MainTurret 
           { 
               gunnerOpticsModel = "\ca\weapons\optika_empty";
       	gunnerName = "Co-Pilot";
       	weapons[] = {"FakeWeapon"};
       	magazines[] = {}; 
           }; 
       }; 
       class Library 
       { 
           libTextDesc = "Project 82s : Falklands MOD SH-3 Seaking Helicopter."; 
       }; 
       dammageHalf[]={	"\P82_Seaking\Data\cglass1.paa", "\P82_Seaking\Data\oh6_window_b.paa",
		"\P82_Seaking\Data\cglass2.paa", "\P82_Seaking\Data\oh6_window_b.paa",
		"\P82_Seaking\Data\tableroc.pac", "\P82_Seaking\Data\tabc_d.pac"};
dammageFull[]={	"\P82_Seaking\Data\cglass1.paa", "\P82_Seaking\Data\oh6_window_c.paa",
		"\P82_Seaking\Data\cglass2.paa", "\P82_Seaking\Data\oh6_window_c.paa",
		"\P82_Seaking\Data\tableroc.pac", "\P82_Seaking\Data\tableroc_c.pac",
		"\P82_Seaking\Data\tablerod.pac", "\P82_Seaking\Data\tabd_d.pac"}; 
       class Reflectors
   {
      class Left
      {
       	 color[]={0.800000,0.800000,1.000000,1.000000};
         ambient[]={0.070000,0.070000,0.070000,1.000000};
       	 position="L svetlo";
         direction="konec L svetla";
         hitpoint="L svetlo";
         selection="L svetlo";
         size=0.500000;
         brightness=1.000000;
      };
      class Right
      {
         color[]={0.800000,0.800000,1.000000,1.000000};
       	 ambient[]={0.070000,0.070000,0.070000,1.000000};
         position="P svetlo";
         direction="konec P svetla";
         hitpoint="P svetlo";
         selection="P svetlo";
         size=0.500000;
         brightness=1.000000;
     	      };
};
class AnimationSources 
       { 
           class Puertanim 
           { 
               source = "user"; 
               animPeriod = 2; 
               initPhase = 0; 
           };  
       }; 
       class UserActions 
       { 
           class Cerrarpuerta 
           { 
               displayName = "Cerrar Puerta"; 
               position = "PArea"; 
               radius = 3.2; 
               condition = "(this animationPhase ""Puertanim"" > 0.5)&& (alive this)"; 
               statement = "this animate [""Puertanim"", 0]"; 
               onlyforplayer = 1; 
               priority = 4; 
               showWindow = 1; 
           }; 
           class Abrirpuerta 
           { 
               displayName = "Abrir puerta"; 
               position = "PArea"; 
               radius = 3.2; 
               condition = "(this animationPhase ""Puertanim"" < 0.5)&& (alive this)"; 
               statement = "this animate [""Puertanim"", 1]"; 
               onlyforplayer = 1; 
               priority = 4; 
               showWindow = 1; 
           };
       };
class CargoLight
{
	color[] = {1, 1, 1, 1};
	ambient[] = {0.1, 0.6, 0.15, 1};
	brightness = 0.7;
        };
      };
   };
};
class P82_Seaking2 : P82_Seaking {
	side = TEast;
               scope = public;
               displayName = "Westland SeaKing - HAS.5 FRS.1";
	vehicleClass = "Malvinas - Vehiculos";
               nameSound = "chopper";	// ???????
               accuracy = 0.0800000;
               model = "\P82_Seaking\MLV_Seaking2.p3d";
	picture = "\P82_Seaking\Data\ico\Seaking2.paa";
	class Library 
       	{ 
           		libTextDesc = "Project 82s : Falklands MOD SH-3 Seaking Helicopter With Radar."; 
       	};
  }; 
    };
};	

Share this post


Link to post
Share on other sites

Rapify.exe Version 1.72, Dll 3.91 1.c

Line 155 Expected class, define, or varname

In other words brackets are messed up. Use notepad++ or any other decent text editor from now on.

Share this post


Link to post
Share on other sites
Rapify.exe Version 1.72, Dll 3.91 1.c

Line 155 Expected class, define, or varname

In other words brackets are messed up. Use notepad++ or any other decent text editor from now on.

Only line 155? Thanks will change those brackets later after work, it one too short or one too many?

Share this post


Link to post
Share on other sites

As PvP is saying, use a decent editing program as it shows you matching brackets.

Basic editing 101

Share this post


Link to post
Share on other sites
Gnat;2168921']As PvP is saying' date=' use a decent editing program as it shows you matching brackets.

Basic editing 101[/quote']

Ok thanks, what do you recommend?

Share this post


Link to post
Share on other sites

Ok thanks, will get that.

Do you have a link for the ArmA plugin for it too? :)

Share this post


Link to post
Share on other sites
Gnat;2170253']Up in the top corner' date=' called something like "search" :p[/quote']

:P Hehe thankyou :)

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  

×