Ranwer135 308 Posted December 10, 2013 (edited) Hello everyone, I'm working on a skin pack (which some of you have probably heard). I got this error when launching the addon for the first time: File rspack_1\comfig.cpp, line11: /CfgPatches/CfgVehicles/: 'O' encountered instead of '{' Here is the link of the config.cpp here: http://pastebin.com/67YZKN26 It would be great If anyone could solve (or help) with this. Ranwer Edited December 10, 2013 by Ranwer Share this post Link to post Share on other sites
[aps]gnat 28 Posted December 10, 2013 (edited) You started another thread? You have placed script commands inside an addon config. The 2 are different animals. I'll provide an adjusted config once I'm off the train. EDIT Per below. Your addon and classes should be using a TAG, three or four letters that can be clearly connected to you. class CfgPatches { class RNWHeliPack1{ units[] = {"RNWHeliPack1"}; weapons[] = {}; requiredAddons[] = {}; }; }; class CfgVehicles { class O_Heli_Light_02_F; class RNWPack_9News : class class O_Heli_Light_02_F; { displayName = "PO-30 Orca (9 News)"; hiddenSelectionsTextures[] = {"\RNWHeliPack1\Skins\nine.paa"}; }; class RNWPack_7News : class class O_Heli_Light_02_F; { displayName = "PO-30 Orca (7 News)"; hiddenSelectionsTextures[] = {"\RNWHeliPack1\Skins\seven.paa"}; }; class RNWPack_Russian : class class O_Heli_Light_02_F; { displayName = "PO-30 Orca (Russian)"; hiddenSelectionsTextures[] = {"\RNWHeliPack1\Skins\russian.paa"}; }; etc etc Edited December 10, 2013 by [APS]Gnat Share this post Link to post Share on other sites
Ranwer135 308 Posted December 11, 2013 Just got an error with your config.cpp example: File rnwhelipack1\config.cpp, line11: /CfgVehicles.RNWPack_9News: Undefined base class 'class' I also edited the edited the example below (like more classes) class CfgPatches { class RNWHeliPack1{ units[] = {"RNWHeliPack1"}; weapons[] = {}; requiredAddons[] = {}; }; }; class CfgVehicles { class O_Heli_Light_02_F; class RNWPack_9News : class class O_Heli_Light_02_F; { displayName = "PO-30 Orca (9 News)"; hiddenSelectionsTextures[] = {"\RNWHeliPack1\Skins\nine.paa"}; }; class RNWPack_7News : class class O_Heli_Light_02_F; { displayName = "PO-30 Orca (7 News)"; hiddenSelectionsTextures[] = {"\RNWHeliPack1\Skins\seven.paa"}; }; class RNWPack_Russian : class class O_Heli_Light_02_F; { displayName = "PO-30 Orca (Russian)"; hiddenSelectionsTextures[] = {"\RNWHeliPack1\Skins\russian.paa"}; }; class RNWPack_Police : class class O_Heli_Light_02_F; { displayName = "PO-30 Orca (Police)"; hiddenSelectionsTextures[] = {"\RNWHeliPack1\Skins\police.paa"}; }; class RNWPack_Westpac : class class O_Heli_Light_02_F; { displayName = "PO-30 Orca (Westpac)"; hiddenSelectionsTextures[] = {"\RNWHeliPack1\Skins\westpac.paa"}; }; class RNWPack_Shield : class class O_Heli_Light_02_F; { displayName = "PO-30 Orca (Shield)"; hiddenSelectionsTextures[] = {"\RNWHeliPack1\Skins\shield.paa"}; }; But I just don't understand why some of these people get this kind of 'class' error? What am I doing wrong :( Share this post Link to post Share on other sites
BadHabitz 235 Posted December 11, 2013 class CfgPatches { class RNWHeliPack1{ units[] = {"RNWHeliPack1"}; weapons[] = {}; requiredAddons[] = {}; }; }; class CfgVehicles { class O_Heli_Light_02_F; class RNWPack_9News : O_Heli_Light_02_F; { displayName = "PO-30 Orca (9 News)"; hiddenSelectionsTextures[] = {"\RNWHeliPack1\Skins\nine.paa"}; }; class RNWPack_7News : O_Heli_Light_02_F; { displayName = "PO-30 Orca (7 News)"; hiddenSelectionsTextures[] = {"\RNWHeliPack1\Skins\seven.paa"}; }; class RNWPack_Russian : O_Heli_Light_02_F; { displayName = "PO-30 Orca (Russian)"; hiddenSelectionsTextures[] = {"\RNWHeliPack1\Skins\russian.paa"}; }; etc etc Share this post Link to post Share on other sites
Ranwer135 308 Posted December 11, 2013 Nope, still the same error. :( Share this post Link to post Share on other sites
[aps]gnat 28 Posted December 11, 2013 The "class class" was a stupid typo on my part ..... Did you close the CFGVEHICLES class? Your last code post didn't. Share this post Link to post Share on other sites
Ranwer135 308 Posted December 11, 2013 What do you mean by closing the CfgVehicles class? :confused: Share this post Link to post Share on other sites
[aps]gnat 28 Posted December 11, 2013 Same as Einstein's law, for ever ... There's an equal and opposite..... For every { there must be a }; Share this post Link to post Share on other sites
Ranwer135 308 Posted December 12, 2013 alright. I'll try and fix up the config.cpp when i get the time after work. Share this post Link to post Share on other sites
BadHabitz 235 Posted December 12, 2013 Because I'm bored at work, and because it's slow... class CfgPatches { class RSPack_1{ units[] = {}; weapons[] = {}; requiredAddons[] = {}; }; }; class CfgVehicles { class O_Heli_Light_02_F; class RSPack_1a : O_Heli_Light_02_F { displayName = "PO-30 Orca (9 News)"; hiddenSelectionsTextures[] = {"\RSPack_1\Skins\nine.paa"}; }; class RSPack_1b : O_Heli_Light_02_F { displayName = "PO-30 Orca (7 News)"; hiddenSelectionsTextures[] = {"\RSPack_1\Skins\seven.paa"}; }; class RSPack_1c : O_Heli_Light_02_F { displayName = "PO-30 Orca (Russian)"; hiddenSelectionsTextures[] = {"\RSPack_1\Skins\russian.paa"}; }; class RSPack_1d : O_Heli_Light_02_F { displayName = "PO-30 Orca (Shield)"; hiddenSelectionsTextures[] = {"\RSPack_1\Skins\shield.paa"}; }; class RSPack_1e : O_Heli_Light_02_F { displayName = "PO-30 Orca (Westpac)"; hiddenSelectionsTextures[] = {"\RSPack_1\Skins\westpac.paa"}; }; class RSPack_1f : O_Heli_Light_02_F { displayName = "PO-30 Orca (Police)"; hiddenSelectionsTextures[] = {"\RSPack_1\Skins\police.paa"}; }; }; What this will do is create 6 different helicopters based on the PO-30 Orca, and will inherit all other attributes from the original PO-30 (O_Heli_Light_02_F). If you need these to be in different factions then you need to add a faction = "BLU_F"; for each that you want to be different. BLU_F is the NATO faction. I can't open the game right now to tell you the names for the other factions. That should work Share this post Link to post Share on other sites