Jump to content
Muppet Slapper

Solved - Help with "some input after EndofFile"

Recommended Posts

I know that this a common problem and it usually has to do with bracket placement, but I cannot figure out what I am doing wrong. Any help would be much appreciated. I am getting the error missing: ';' prior to '}' for lines 3, 4, and 6. Here is my config:

 

class CfgPatches
{

    class Many_Faces {

          units[] = {};
          weapons[] = {};
          requiredVersion = 0.100000;
          requiredAddons[] = {"A3_Characters_F"};
     };

};

class CfgFaces {

       class Default {
              /*extern*/ class Custom;
       };

       class Man_A3: Default {

            class zabraham: Default {
                  displayname = "Abraham";
                  texture = "\Many_Faces\Data\zabraham_co.paa";
                  head = "NATOHead_A3";
                  material = "\Many_Faces\Data\zabraham.rvmat";
                 disabled = 0;
                  textureHL = "\A3\Characters_F\Heads\Data\hl_White_hairy_1_co.paa";
                  materialHL = "\A3\Characters_F\Heads\Data\hl_White_hairy_muscular.rvmat";
                  textureHL2 = "\A3\Characters_F\Heads\Data\hl_White_hairy_1_co.paa";
                 materialHL2 = "\A3\Characters_F\Heads\Data\hl_White_hairy_muscular.rvmat";
             };
        };
};

 

 

Share this post


Link to post
Share on other sites

I just pasted that into a blank config.cpp and I had no errors when attempting to pack and binarize it, I'm not quite sure what would be causing your issue.

bbfef4dc11c626bf0a95265f91f14997.png

  • Like 1

Share this post


Link to post
Share on other sites

Thank you for that, it confirms my suspicion that maybe something else is going on.  I will test some more, and see what I can find.

Share this post


Link to post
Share on other sites

I tested a theory that something else might be happening other than a format error. I took a mod that I know works (zir_headpack1)unpacked the pbo and config and made no changes. I repacked them and binarized the config and placed it all into the @many faces file. I loaded it up and it worked fine. I then took the same exact mod and placed one of my textures into the data folder and changed one of the texture paths in the config to point to the texture. I changed nothing but the texture path in the config and I ended up getting the same error. Makes no sense to me.

Share this post


Link to post
Share on other sites

Can you please post the config before the texture path change and after?

Share this post


Link to post
Share on other sites

This one works (from zir_headpack1):

 

class CfgPatches {

class zir_headpack1 {
units = {};
weapons = {};
requiredVersion = 1.000000;
requiredAddons = {"A3_Characters_F_Heads"};
version = "1.00";
author = {"ZiR"};
};
};

class CfgFaces {

class Default {
/*extern*/ class Custom;
};

class Man_A3: Default {

class zir_face_afr_01: Default {
displayname = "Face AFR 01";
texture = "\zir_headpack1\Data\face_afr_01_co.paa";
head = "BlackHead_A3";
material = "\zir_headpack1\data\face_afr_01.rvmat";
disabled = 0;
textureHL = "\A3\Characters_F\Heads\Data\hl_black_bald_co.paa";
materialHL = "\A3\Characters_F\Heads\Data\hl_black_bald_muscular.rvmat";
textureHL2 = "\A3\Characters_F\Heads\Data\hl_black_bald_co.paa";
materialHL2 = "\A3\Characters_F\Heads\Data\hl_black_bald_muscular.rvmat";
};

 

This one with my edit doesn't:

 

class CfgPatches {

class zir_headpack1 {
units = {};
weapons = {};
requiredVersion = 1.000000;
requiredAddons = {"A3_Characters_F_Heads"};
version = "1.00";
author = {"ZiR"};
};
};

class CfgFaces {

class Default {
/*extern*/ class Custom;
};

class Man_A3: Default {

class zir_face_afr_01: Default {
displayname = "Face AFR 01";
texture = "\zir_headpack1\Data\zabraham_co.paa";
head = "BlackHead_A3";
material = "\zir_headpack1\Data\zabraham.rvmat";
disabled = 0;
textureHL = "\A3\Characters_F\Heads\Data\hl_black_bald_co.paa";
materialHL = "\A3\Characters_F\Heads\Data\hl_black_bald_muscular.rvmat";
textureHL2 = "\A3\Characters_F\Heads\Data\hl_black_bald_co.paa";
materialHL2 = "\A3\Characters_F\Heads\Data\hl_black_bald_muscular.rvmat";
};

 

I just changed the two entries from 

 

texture = "\zir_headpack1\Data\face_afr_01_co.paa";

material = "\zir_headpack1\data\face_afr_01.rvmat";

to 

texture = "\zir_headpack1\Data\zabraham_co.paa";

material = "\zir_headpack1\Data\zabraham.rvmat";

 

If I rename my textures to "face_afr_01_co.paa" I can see them in game using the zir_headpack1 config

Share this post


Link to post
Share on other sites

When you re-bin a config make sure to re-add the array types beforehand or you get the famous error you're too having:

 

Example:

class CfgPatches 
{
    class zir_headpack1 
    {
        units[] = {};
        weapons[] = {};
        requiredVersion = 1.000000;
        requiredAddons[] = {"A3_Characters_F_Heads"};
        version = "1.00";
        author[] = {"ZiR"};
    };
};

I don't know what you use to unbin you configs, but it seems that it just removes all the []

  • Like 1

Share this post


Link to post
Share on other sites

I don't know what you use to unbin you configs, but it seems that it just removes all the []

Whatever it is, its a shit tool.

  • Like 2

Share this post


Link to post
Share on other sites

I'm using ArmAunbin tool. But still I was able to repack the unedited config even without the [] and it still loaded and worked but if I change anything else it gives me the

 

"some input after EndofFile" error.

Share this post


Link to post
Share on other sites

Sure you can repack without the [] but not binarize...

 

By the way did you remove some parts of your config.cpp (I guess the answer is yes) because you're missing two closing brackets:

class CfgPatches 
{
    class zir_headpack1 
    {
        units[] = {};
        weapons[] = {};
        requiredVersion = 1.000000;
        requiredAddons[] = {"A3_Characters_F_Heads"};
        version = "1.00";
        author[] = {"ZiR"};
    };
};
 
class CfgFaces 
{
    class Default 
    {
        /*extern*/ class Custom;
    };
 
    class Man_A3: Default 
    {
        class zir_face_afr_01: Default 
        {
            displayname = "Face AFR 01";
            texture = "\zir_headpack1\Data\zabraham_co.paa";
            head = "BlackHead_A3";
            material = "\zir_headpack1\Data\zabraham.rvmat";
            disabled = 0;
            textureHL = "\A3\Characters_F\Heads\Data\hl_black_bald_co.paa";
            materialHL = "\A3\Characters_F\Heads\Data\hl_black_bald_muscular.rvmat";
            textureHL2 = "\A3\Characters_F\Heads\Data\hl_black_bald_co.paa";
            materialHL2 = "\A3\Characters_F\Heads\Data\hl_black_bald_muscular.rvmat";
        };
    };
};

Share this post


Link to post
Share on other sites

First off, thank you for your help.  And yes I did not post the full config, I was just showing where I made the changes. Im going to try it again and I will be sure to include the [].

Share this post


Link to post
Share on other sites

OK, had some success.  I opened another config to a different mod erased everything and replaced it with my original config, binarized it and packed it into a pbo and it worked. . .  Sort of, I did not get any errors but I dont see any of my content in game.  That maybe a different problem.

Share this post


Link to post
Share on other sites

I double checked my config and I had gone and saved the wrong config in my mod folder....sad but true. So now it loads up but none of the textures are showing up obviously a problem with the texture routing.  I will look into this now.

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

×