Pidzej 0 Posted July 28, 2008 Hi, got a config and if i try to run it in arma it displays the "no imput after endoffile" error and the game crashes during startup. If i delete the cfgFaces than it works however i need cfgFaces for the addon. Even if i paste a working cfgFaces form another of my addons it still crashes. Im not a beginner in this, however i cant manage to repair this and dont know the reason this is causing. heres the config: // Pj Civilians #define true 1 #define false 0 #define VSoft 0 #define VArmor 1 #define VAir 2 #define private 0 #define protected 1 #define public 2 #define TEast 0 #define TWest 1 #define TGuerrila 2 #define TCivilian 3 #define TSideUnknown 4 #define TEnemy 5 #define TFriendly 6 #define TLogic 7 #define ReadAndWrite 0 #define ReadAndCreate 1 #define ReadOnly 2 #define ReadOnlyVerified 3 class CfgPatches { class pj_civ { units[]={}; weapons[]={}; }; }; class CfgVehicleClasses { class pj_civ { displayName = "Pj Civilians"; }; }; class CfgVehicles { class CAManBase; class Civilian; class pj_civ_Base:Civilian { scope = 1; // Hidden from editor side = TCivilian; vehicleClass = "pj_civ"; nameSound = "civilian"; moves = "CfgMovesMaleSdr"; model = "\pj_civ\korina"; displayName = "Woman"; woman = true; // Use female voices and names // faceType = "Pj_civF"; weaponSlots = 1 + 4 + 12* 256 + 2* 4096 + 2 + 8* 16; soundEngine[] = {"\ca\characters\Data\sound\breath",0.05,2.5}; hitSound1[] = {"\ca\Characters\Data\Sound\Hit11", db-25, 1.4}; hitSound2[] = {"\ca\Characters\Data\Sound\Hit12", db-25, 1.4}; hitSound3[] = {"\ca\Characters\Data\Sound\Hit13", db-25, 1.4}; hitSound4[] = {"\ca\Characters\Data\Sound\Hit14", db-25, 1.4}; hitSound5[] = {"\ca\Characters\Data\Sound\Hit15", db-25, 1.4}; hitSound6[] = {"\ca\Characters\Data\Sound\Hit16", db-25, 1.4}; hitSound7[] = {"\ca\Characters\Data\Sound\Hit17", db-25, 1.4}; hitSound8[] = {"\ca\Characters\Data\Sound\Hit18", db-25, 1.4}; hitSound9[] = {"\ca\Characters\Data\Sound\Hit19", db-25, 1.4}; hitSound10[] = {"\ca\Characters\Data\Sound\Hit20", db-25, 1.4}; hitSound11[] = {"\ca\Characters\Data\Sound\Hit21", db-25, 1.4}; hitSound12[] = {"\ca\Characters\Data\Sound\Hit22", db-25, 1.4}; hitSound13[] = {"\ca\Characters\Data\Sound\Hit23", db-25, 1.4}; hitSound14[] = {"\ca\Characters\Data\Sound\Hit24", db-25, 1.4}; hitSound15[] = {"\ca\Characters\Data\Sound\Hit25", db-25, 1.4}; hitSound16[] = {"\ca\Characters\Data\Sound\Hit26", db-25, 1.4}; hitSound17[] = {"\ca\Characters\Data\Sound\Hit27", db-25, 1.4}; hitSound18[] = {"\ca\Characters\Data\Sound\Hit28", db-25, 1.4}; hitSound19[] = {"\ca\Characters\Data\Sound\Hit29", db-25, 1.4}; hitSound20[] = {"\ca\Characters\Data\Sound\Hit30", db-25, 1.4}; hitSounds[]={"hitSound1", 0.05, "hitSound2", 0.05, "hitSound3", 0.05, "hitSound4", 0.05, "hitSound5", 0.05, "hitSound6", 0.05, "hitSound7", 0.05, "hitSound8", 0.05, "hitSound9", 0.05, "hitSound10", 0.05, "hitSound11", 0.05, "hitSound12", 0.05, "hitSound13", 0.05, "hitSound14", 0.05, "hitSound15", 0.05, "hitSound16", 0.05, "hitSound17", 0.05, "hitSound18", 0.05, "hitSound19", 0.05, "hitSound20", 0.05}; // class Wounds // { // tex[] = {}; // mat[] = { // "pj_woman\f\xicht.rvmat", // "pj_woman\f\xicht_wound1.rvmat", // "pj_woman\f\xicht_wound2.rvmat", // "pj_woman\t1\mbluzicka.rvmat", // "pj_woman\t1\mbluzicka_wound1.rvmat", // "pj_woman\t1\mbluzicka_wound2.rvmat", // "pj_woman\t1\mjeansy.rvmat", // "pj_woman\t1\mjeansy_wound1.rvmat", // "pj_woman\t1\mjeansy_wound2.rvmat" // }; // }; }; class pj_Civ_Soldier_Base:CAManBase { scope = 1; // Hidden from editor side = TCivilian; vehicleClass = "pj_civF"; nameSound = "soldier"; moves = "CfgMovesMaleSdr"; model = "\pj_civ\korina"; displayName = "Woman"; picture = "\Ca\characters\data\Ico\i_null_CA.paa"; Icon = "\Ca\characters\data\map_ico\i_wojak_CA.paa"; woman = true; // Use female voices and names // faceType = "Pj_civ"; weaponSlots = 1 + 4 + 12* 256 + 2* 4096 + 2 + 8* 16; accuracy = 0.7; // accuracy needed to recognize type of this target cost = 40000; soundEngine[] = {"\ca\characters\Data\sound\breath",0.05,2.5}; hitSound1[] = {"\ca\Characters\Data\Sound\Hit11", db-25, 1.4}; hitSound2[] = {"\ca\Characters\Data\Sound\Hit12", db-25, 1.4}; hitSound3[] = {"\ca\Characters\Data\Sound\Hit13", db-25, 1.4}; hitSound4[] = {"\ca\Characters\Data\Sound\Hit14", db-25, 1.4}; hitSound5[] = {"\ca\Characters\Data\Sound\Hit15", db-25, 1.4}; hitSound6[] = {"\ca\Characters\Data\Sound\Hit16", db-25, 1.4}; hitSound7[] = {"\ca\Characters\Data\Sound\Hit17", db-25, 1.4}; hitSound8[] = {"\ca\Characters\Data\Sound\Hit18", db-25, 1.4}; hitSound9[] = {"\ca\Characters\Data\Sound\Hit19", db-25, 1.4}; hitSound10[] = {"\ca\Characters\Data\Sound\Hit20", db-25, 1.4}; hitSound11[] = {"\ca\Characters\Data\Sound\Hit21", db-25, 1.4}; hitSound12[] = {"\ca\Characters\Data\Sound\Hit22", db-25, 1.4}; hitSound13[] = {"\ca\Characters\Data\Sound\Hit23", db-25, 1.4}; hitSound14[] = {"\ca\Characters\Data\Sound\Hit24", db-25, 1.4}; hitSound15[] = {"\ca\Characters\Data\Sound\Hit25", db-25, 1.4}; hitSound16[] = {"\ca\Characters\Data\Sound\Hit26", db-25, 1.4}; hitSound17[] = {"\ca\Characters\Data\Sound\Hit27", db-25, 1.4}; hitSound18[] = {"\ca\Characters\Data\Sound\Hit28", db-25, 1.4}; hitSound19[] = {"\ca\Characters\Data\Sound\Hit29", db-25, 1.4}; hitSound20[] = {"\ca\Characters\Data\Sound\Hit30", db-25, 1.4}; hitSounds[]={"hitSound1", 0.05, "hitSound2", 0.05, "hitSound3", 0.05, "hitSound4", 0.05, "hitSound5", 0.05, "hitSound6", 0.05, "hitSound7", 0.05, "hitSound8", 0.05, "hitSound9", 0.05, "hitSound10", 0.05, "hitSound11", 0.05, "hitSound12", 0.05, "hitSound13", 0.05, "hitSound14", 0.05, "hitSound15", 0.05, "hitSound16", 0.05, "hitSound17", 0.05, "hitSound18", 0.05, "hitSound19", 0.05, "hitSound20", 0.05}; // class Wounds // { // tex[] = {}; // mat[] = { // "pj_woman\f\xicht.rvmat", // "pj_woman\f\xicht_wound1.rvmat", // "pj_woman\f\xicht_wound2.rvmat", // "pj_woman\t1\mbluzicka.rvmat", // "pj_woman\t1\mbluzicka_wound1.rvmat", // "pj_woman\t1\mbluzicka_wound2.rvmat", // "pj_woman\t1\mjeansy.rvmat", // "pj_woman\t1\mjeansy_wound1.rvmat", // "pj_woman\t1\mjeansy_wound2.rvmat" // }; // }; }; //---------------------------------------------CIVILIAN------------------------------------- ---------------- class pj_civ01:pj_civ_Base { scope = public; // Show in editor displayName = "Woman 01"; model = "\pj_civ\korina"; // hiddenSelections[] = {"bluza", "kalhoty"}; // class EventHandlers // { // init = "[(_this select 0), ""\pj_woman\t1\Bluz_CO.paa"", ""\pj_woman\t1\JeanBlack_CO.paa""] exec ""\pj_woman\tex.sqs"""; // }; accuracy=1000; // Never recognize this exact class in game so the displayName isn't seen, show the previous class displayName. Only the editor should see this displayName. }; // class pj_civ02:pj_Woman01 // { // displayName = "Woman white 02"; // model = "\pj_woman\woman02"; // class EventHandlers // { // init = "[(_this select 0), ""\pj_woman\t1\Bluz_CO.paa"", ""\pj_woman\t1\JeanBlue_CO.paa""] exec ""\pj_woman\tex.sqs"""; // }; // }; //---------------------------------------------------WESTERN-------------------------------- ------------ class pj_civw01:pj_civ_Base { side = TWest; scope = public; displayName = "Woman 01"; model = "\pj_civ\korina"; accuracy=1000; weapons[] = {"MP5A5","Throw","Put"}; magazines[] = {"30Rnd_9x19_MP5", "30Rnd_9x19_MP5", "30Rnd_9x19_MP5", "30Rnd_9x19_MP5", "HandGrenadeTimed", "HandGrenadeTimed"}; respawnWeapons[] = {"MP5A5"}; respawnMagazines[] = {"30Rnd_9x19_MP5", "30Rnd_9x19_MP5", "30Rnd_9x19_MP5", "30Rnd_9x19_MP5", "HandGrenadeTimed", "HandGrenadeTimed"}; fsmFormation = "Formation"; fsmDanger=""; // hiddenSelections[] = {"bluza", "kalhoty"}; // class EventHandlers // { // init = "[(_this select 0), ""\pj_woman\t1\Bluz_CO.paa"", ""\pj_woman\t1\JeanBlack_CO.paa""] exec ""\pj_woman\tex.sqs"""; // // }; }; // class pj_Womanw02:pj_Womanw01 // { // displayName = "Woman white 02"; // model = "\pj_woman\woman02"; // class EventHandlers // { // init = "[(_this select 0), ""\pj_woman\t1\Bluz_CO.paa"", ""\pj_woman\t1\JeanBlue_CO.paa""] exec ""\pj_woman\tex.sqs"""; // }; // }; //-------------------------------------------EASTERN-------------------------------------- class pj_cive01:pj_civ_Base { side = TEast; scope = public; displayName = "Woman 01"; model = "\pj_civ\korina"; accuracy=1000; weapons[] = {"AKS74U","Throw","Put"}; magazines[] = {"30Rnd_545x39_AK", "30Rnd_545x39_AK", "30Rnd_545x39_AK", "30Rnd_545x39_AK", "HandGrenade", "HandGrenade"}; respawnWeapons[] = {"AKS74U"}; respawnMagazines[] = {"30Rnd_545x39_AK", "30Rnd_545x39_AK", "30Rnd_545x39_AK", "30Rnd_545x39_AK", "HandGrenade", "HandGrenade"}; fsmFormation = "Formation"; fsmDanger=""; // hiddenSelections[] = {"bluza", "kalhoty"}; // class EventHandlers // { // init = "[(_this select 0), ""\pj_woman\t1\Bluz_CO.paa"", ""\pj_woman\t1\JeanBlack_CO.paa""] exec ""\pj_woman\tex.sqs"""; // }; }; // class pj_Womane02:pj_Womane01 // { // displayName = "Woman white 02"; // model = "\pj_woman\woman02"; // class EventHandlers // { // init = "[(_this select 0), ""\pj_woman\t1\Bluz_CO.paa"", ""\pj_woman\t1\JeanBlue_CO.paa""] exec ""\pj_woman\tex.sqs"""; // }; }; //---------------------------------------------RESISTANCE----------------------------------- ------ // class pj_civr01:pj_civ_Base // { // side = TGuerrila; // scope = public; // displayName = "Woman 01"; // model = "\pj_civ\korina"; // accuracy=1000; // weapons[] = {"MP5A5","Throw","Put"}; // magazines[] = {"30Rnd_9x19_MP5", "30Rnd_9x19_MP5", "30Rnd_9x19_MP5", "30Rnd_9x19_MP5", "HandGrenadeTimed", "HandGrenadeTimed"}; // respawnWeapons[] = {"MP5A5"}; // respawnMagazines[] = {"30Rnd_9x19_MP5", "30Rnd_9x19_MP5", "30Rnd_9x19_MP5", "30Rnd_9x19_MP5", "HandGrenadeTimed", "HandGrenadeTimed"}; // fsmFormation = "Formation"; // fsmDanger=""; // hiddenSelections[] = {"bluza", "kalhoty"}; // class EventHandlers // { // init = "[(_this select 0), ""\pj_woman\t1\Bluz_CO.paa"", ""\pj_woman\t1\JeanBlack_CO.paa""] exec ""\pj_woman\tex.sqs"""; // }; // }; // class pj_Womanr02:pj_Womanr01 // { // displayName = "Woman white 02"; // model = "\pj_woman\woman02"; // class EventHandlers // { // init = "[(_this select 0), ""\pj_woman\t1\Bluz_CO.paa"", ""\pj_woman\t1\JeanBlue_CO.paa""] exec ""\pj_woman\tex.sqs"""; // }; // }; }; class CfgFaces { class Pj_civ_f{ class Default { name = "korin"; texture = "pj_civ\korintail01C.paa"; east = false; west = false; // racs.. }; class Face1 { name = " korina"; texture = "pj_civ\korintail01C.paa"; east = true; west = true; // racs... }; // … }; }; Share this post Link to post Share on other sites
Messiah 2 Posted July 28, 2008 In the eastern class you open one bracket ({), but close two (};), which in effect closes the cfg. You then have a third close bracket before the start of cfgfaces. try deleting one of these close brackets. Your config is very hard on the eyes to read and work out whats wrong (although due in part to forum formatting I believe), so this is my best guess at this stage. I can't be sure because I kept getting lost while reading it. A very good system to get used to in notepad is to indent entries everytime you open a new bracket: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> class something : class another { Â Â Â Â Â some info; Â Â Â Â Â some info; Â Â Â Â Â some info; Â Â Â Â Â { Â Â Â Â Â Â Â Â Â Â some more info; Â Â Â Â Â Â Â Â Â Â some more info; Â Â Â Â Â Â Â Â Â Â some more info; Â Â Â Â Â }; }; what this allows you to do is keep track of how many times you're opened a bracket, and how many times you've closed a bracket. In that example I can see that my indent is at two tabs, thus I know that I need to close with two brackets. If you get to the end of your config and find you're still one indent too many, you know you've missed a closed bracket somewhere, or if you have two close brackets sharing the same indentation space, one after the other (without opening a new one), then you know you have too many. Share this post Link to post Share on other sites
Pidzej 0 Posted July 28, 2008 Looks like ure right, im of course using that system of spacing to make the config well organized but im no forum skiller, so it looks like that only because i pasted it directly from the ccp, but surely enough there is one more bracket than there should be. I checked it like three times but after configing few addons 6 hours non stop im seeing brackets everywhere Thank you once more Share this post Link to post Share on other sites
Messiah 2 Posted July 28, 2008 yeah, I suspected it was the forum formatting causing the problem, but thought I'd mention it anyway. I had to press space bar 10 times to indent it on the forums, so its not your fault it comes out all garbled. Its very easy to lose track of the brackets. You can download a freeware C++ editor that will keep track of things like that, and highlight your brackets and how many you have open etc. Its not essential, but it helps when your configs start getting very large. Share this post Link to post Share on other sites