Home   Help Search Login Register  

Author Topic: The Dreaded Error: Some Input After EndOfFile [SOLVED]  (Read 5552 times)

0 Members and 1 Guest are viewing this topic.

Offline JohnBart

  • Members
  • *
Greetings everyone!

Sorry for launching a separate topic for my problem, but even though my search gave several related results to the issue discussed here, none of it really helped me solving my problem.

As you can guess from the title, I receive a "Some input after EndofFile" error when launching ArmA2 with my addon copied to a loaded modfolder. The addon itself is (or must be, I guess) really simple: it contains two skins, one for the Miliciya Lada, the other for the Ikarus bus from ArmA2.

I examined the GLT Taksi reskin addon before started working on my addon, and tried to stick to the practices used there (config-wise, I mean) - still, no matter how much I simplify and proofread my config, I still get this error. I really do think that there must be a TINY little oversight somewhere there - anyway, I hope you can help me out getting rid of this frustrating error. :)

I attached two cpps to my post - the first one is the currently used, simplified version while the second one (_longer.cpp) is the original cpp, strongly based on the routine of the GLT Taksi addon. I would really appreciate if you could tell me how can I get one of them working.

Thanks to everyone who take their time to help me! :)
« Last Edit: 08 Apr 2011, 20:00:35 by JohnBart »

Offline mr_book.PXS.Pvt

  • Members
  • *
Re: The Dreaded Error: Some Input After EndOfFile
« Reply #1 on: 07 Apr 2011, 07:39:40 »
Good morning man,
yep, seems like you forgot something there. Check this out:

units[]={};
requiredVersion = 0.1;
requiredAddons[] = {"Extended_EventHandlers"};

Copied straight from a well working addon. You see the difference? It's really just a ["tiny", "little"] thing. *nudge*
I hope this will help.

Offline haroon1992

  • Members
  • *
  • My life is hopeless...
Re: The Dreaded Error: Some Input After EndOfFile
« Reply #2 on: 07 Apr 2011, 08:42:41 »
I don't have any ideas with addon editing but I'll just post because yesterday I received the same error from my description.ext.
(Sorry if I was interrupting.)

It was caused by a missing bracket "}".

Regards,
Haroon1992
Very busy with life, business, and other stuff. Away from OFP for months. Not sure if I could get back onto it. :(

Offline h-

  • OFPEC Site
  • Administrator
  • *****
  • Formerly HateR_Kint
    • OFPEC
Re: The Dreaded Error: Some Input After EndOfFile
« Reply #3 on: 07 Apr 2011, 10:03:08 »
Quote
It's really just a ["tiny", "little"] thing. *nudge*
I don't think that has anything to do with the problem..

The problem most likely layeth herein:
Code: [Select]
hiddenSelections = {"Camo1"};
hiddenSelectionsTextures = {"\CC_Vehicles\Volan_Feher.paa"};

Those should be arrays, as in:
Code: [Select]
hiddenSelections[] = {"Camo1"};
hiddenSelectionsTextures[] = {"\CC_Vehicles\Volan_Feher.paa"};


Also, moved this to the proper board.. :)
« Last Edit: 07 Apr 2011, 10:06:41 by h- »
Project MCAR   ---   Northern Fronts   ---   Emitter 3Ditor
INFORMATIVE THREAD TITLES PLEASE. "PLEASE HELP" IS NOT ONE..
Chuck Norris can divide by zero.

Offline JohnBart

  • Members
  • *
Re: The Dreaded Error: Some Input After EndOfFile
« Reply #4 on: 07 Apr 2011, 21:17:13 »
Uh, I am sorry for launching it in the wrong section h-! I will be more careful next time. :)

Anyway, neither suggestions solved my problem, I even added array brackets to the damage texture and material definitions (to the tex and mat arrays within the Damage class of each vehicle) when I checked the third time. :(

I also started to check whether I left double whitespaces somewhere accidentally, as one of my modder buddies told me it can easily wreck any config.cpp. This, however, also did not help.

Any other ideas?

Offline h-

  • OFPEC Site
  • Administrator
  • *****
  • Formerly HateR_Kint
    • OFPEC
Re: The Dreaded Error: Some Input After EndOfFile
« Reply #5 on: 08 Apr 2011, 06:59:41 »
I must be blind, mr_book.PXS.Pvt did point out one thing I didn't notice and it is that this is wrong:
Code: [Select]
class CfgPatches {

class CC_Vehicles {
units = {"LadaPolg", "Volan"};
weapons = {};
requiredVersion = 0.100000;
requiredAddons = {"CAWheeled2", "CACharacters2", "CAWeapons"};
};
};

units, weapons and requiredaddons should be arrays
Code: [Select]
class CfgPatches {

class CC_Vehicles {
units[] = {"LadaPolg", "Volan"};
weapons[] = {};
requiredVersion = 0.100000;
requiredAddons[] = {"CAWheeled2", "CACharacters2", "CAWeapons"};
};
};
Project MCAR   ---   Northern Fronts   ---   Emitter 3Ditor
INFORMATIVE THREAD TITLES PLEASE. "PLEASE HELP" IS NOT ONE..
Chuck Norris can divide by zero.

Offline haroon1992

  • Members
  • *
  • My life is hopeless...
Re: The Dreaded Error: Some Input After EndOfFile
« Reply #6 on: 08 Apr 2011, 08:15:51 »
Isn't it that anything whose value is in {} are arrays?

I mean,
wrong :
something = {"helo"};
right :
something[] = {"hello"};


regards,
Haroon1992
Very busy with life, business, and other stuff. Away from OFP for months. Not sure if I could get back onto it. :(

Offline h-

  • OFPEC Site
  • Administrator
  • *****
  • Formerly HateR_Kint
    • OFPEC
Re: The Dreaded Error: Some Input After EndOfFile
« Reply #7 on: 08 Apr 2011, 09:27:30 »
Yup, in configs (for example description.ext is mission config file).
Project MCAR   ---   Northern Fronts   ---   Emitter 3Ditor
INFORMATIVE THREAD TITLES PLEASE. "PLEASE HELP" IS NOT ONE..
Chuck Norris can divide by zero.

Offline JohnBart

  • Members
  • *
Re: The Dreaded Error: Some Input After EndOfFile
« Reply #8 on: 08 Apr 2011, 20:00:14 »
Guys, you are FANTASTIC. The lack of array brackets caused the problem. Let me paste the whole cpp, so others can examine it in case they run into a trouble similar to mine!

Code: [Select]

class CfgPatches {

class CC_Vehicles {
units[] = {"LadaPolg", "Volan"};
weapons[] = {};
requiredVersion = 0.100000;
requiredAddons[] = {"CAWheeled2", "CACharacters2", "CAWeapons"};
};
};

class CfgVehicles {
/*extern*/ class Lada_base;
/*extern*/ class Ikarus;

class LadaPolg: Lada_base {
scope = 2;
maxSpeed = 100;
faction = "CIV";
crew = "Citizen1";
side = 3;
model = "\CA\wheeled2\Lada\Lada.p3d";
picture = "\Ca\wheeled2\data\UI\Picture_lada_ca.paa";
Icon = "\Ca\wheeled\data\map_ico\icomap_skoda_CA.paa";
displayname = "Polgarorseg";
DriverAction = "Golf_Driver";

class Library {
libTextDesc = "$STR_LIB_LADA";
};
turnCoef = 2;
hiddenSelections[] = {};
hiddenSelectionsTextures[] = {"\CC_Vehicles\Polgors.paa"};

class Damage {
tex[] = {};
mat[] = {"ca\wheeled2\Lada\Data\Lada_chrome.rvmat", "ca\wheeled2\Lada\Data\Lada_chrome_damage.rvmat", "ca\wheeled2\Lada\Data\Lada_chrome_destruct.rvmat", "ca\wheeled2\Lada\Data\Lada_glass.rvmat", "ca\wheeled2\Lada\Data\Lada_glass_damage.rvmat", "ca\wheeled2\Lada\Data\Lada_glass_damage.rvmat", "ca\wheeled2\Lada\Data\Lada_glass_in.rvmat", "ca\wheeled2\Lada\Data\Lada_glass_in_damage.rvmat", "ca\wheeled2\Lada\Data\Lada_glass_in_damage.rvmat", "ca\wheeled2\Lada\Data\Lada_mat.rvmat", "ca\wheeled2\Lada\Data\Lada_mat_damage.rvmat", "ca\wheeled2\Lada\Data\Lada_mat_destruct.rvmat"};
};
};

class Volan: Ikarus {
scope = 2;
maxSpeed = 80;
faction = "CIV";
side = 3;
model = "\ca\Wheeled2\ikarus\ikarus";
picture = "\Ca\wheeled\data\ico\bus_city_CA.paa";
Icon = "\Ca\wheeled\data\map_ico\icomap_Bus_CA.paa";
displayname = "Volanbusz";
DriverAction = "Ikarus_Driver";
weapons[] = {"TruckHorn2"};

class Library {
libTextDesc = "$STR_LIB_BUS_CITY";
};
turnCoef = 3.700000;
hiddenSelections[] = {"Camo1"};
hiddenSelectionsTextures[] = {"\CC_Vehicles\Volan_Feher.paa"};

class Damage {
tex[] = {};
mat[] = {"ca\wheeled2\Ikarus\Data\Bus_exterior.rvmat", "ca\wheeled2\Ikarus\Data\Bus_exterior_damage.rvmat", "ca\wheeled2\Ikarus\Data\Bus_exterior_destruct.rvmat", "ca\wheeled2\Ikarus\Data\Bus_interior.rvmat", "ca\wheeled2\Ikarus\Data\Bus_interior_damage.rvmat", "ca\wheeled2\Ikarus\Data\Bus_interior_destruct.rvmat", "ca\wheeled2\Ikarus\Data\Bus_windows.rvmat", "ca\wheeled2\Ikarus\Data\Bus_windows_damage.rvmat", "ca\wheeled2\Ikarus\Data\Bus_windows_damage.rvmat", "ca\wheeled2\Ikarus\Data\Bus_windows_in.rvmat", "ca\wheeled2\Ikarus\Data\Bus_windows_in_damage.rvmat", "ca\wheeled2\Ikarus\Data\Bus_windows_in_damage.rvmat"};
};
};
};

Thanks again for your help, everyone! :)