jimutt 1 Posted March 17, 2013 I've done some retextures and now I'm trying to create a functional addon. It all worked well when using the code provided in Stiltman's guide to retexturing existing Uniforms and Vests (can't post a link as I'm not allowed to because I haven't been a member for more than one day). But you find it in the thread " Arma3 Characters Modding Tutorial". But now I want to create a "base class" for my soldiers as I will create different soldier classes (riflemen, machine gunners etc) and a lot of the parameters will remain the same. So I had a look at the configuration used in the USMC desert mod which is released here on the forums. And there this class setup is used: class cfgVehicles { /*extern*/ class Man; class CAManBase: Man { /*extern*/ class AnimationSources; class HitPoints { /*extern*/ class HitHead; /*extern*/ class HitBody; /*extern*/ class HitHands; /*extern*/ class HitLegs; }; }; class SoldierGB: CAManBase { threat = {1, 0.100000, 0.100000}; }; class USMC_DESERT_Soldier_Base: SoldierGB { ......... I then tried to adapt my config based on the above one. This is what I have come up with: enum { // = 2, // Error parsing: Empty enum name DESTRUCTENGINE = 2, DESTRUCTDEFAULT = 6, DESTRUCTWRECK = 7, DESTRUCTTREE = 3, DESTRUCTTENT = 4, STABILIZEDINAXISX = 1, STABILIZEDINAXESXYZ = 4, STABILIZEDINAXISY = 2, STABILIZEDINAXESBOTH = 3, DESTRUCTNO = 0, STABILIZEDINAXESNONE = 0, DESTRUCTMAN = 5, DESTRUCTBUILDING = 1, }; class CfgPatches { class example_uniform_config { units[] = {}; weapons[] = {}; requiredVersion = 0.100000; requiredAddons[] = {"A3_Characters_F_BLUFOR"}; }; }; class cfgFactionClasses { class Russia { displayName = "Russia"; priority = 3; side = 2; }; }; class CfgVehicles { /*extern*/ class Man; class CAManBase: Man { /*extern*/ class AnimationSources; class HitPoints { /*extern*/ class HitHead; /*extern*/ class HitBody; /*extern*/ class HitHands; /*extern*/ class HitLegs; }; }; class SoldierGB: CAManBase { threat = {1, 0.100000, 0.100000}; }; class Russian_Soldier_Base: SoldierGB { _generalMacro = "B_Soldier_F"; //unsure what this does faction = "Russia"; nakedUniform = "U_BasicBody"; //class for "naked" body uniformClass = "Example_CombatUniform_mcam"; //the uniform item hiddenSelections[] = {"Camo"}; hiddenSelectionsTextures[] = {"pathtoyouraddonretexturefile.paa"}; }; class Russian_Soldier_F : Russian_Soldier_Base { scope = 2; displayName = "Rifleman"; }; }; class cfgWeapons { class Uniform_Base; class UniformItem; class Example_CombatUniform_mcam : Uniform_Base { scope = 2; displayName = "Example Mcam uniform"; picture = "\A3\characters_f\data\ui\icon_U_B_CombatUniform_mcam_ca.paa"; model = "\A3\Characters_F\Common\Suitpacks\suitpack_blufor_diver"; class ItemInfo : UniformItem { uniformModel = "-"; uniformClass = "Russian_Soldier_F"; //would be same as our made soldier class containerClass = "Supply20"; //how much it can carry mass = 80; //how much it weights }; }; }; Though this config gives me the error message " Undefined base class "SoldierGB"" when starting the game. Why this? Because as far as I can see the SoldierGB class is defined. Thanks in advance! Share this post Link to post Share on other sites
johncage 30 Posted March 17, 2013 there is no soldiergb. that config is outdated Share this post Link to post Share on other sites
jimutt 1 Posted March 17, 2013 Hmm, okay. Well thank you for the reply! :) But how should I then best do if I want to create a base class for all soldier classes as shown in the code I embedded? Share this post Link to post Share on other sites
Messiah 2 Posted March 17, 2013 if you browse this: http://forums.bistudio.com/showthread.php?150548-AllInOne-config-from-A3 you'll be able to see the unit classes that are defined and choose one that suits your purposes. Share this post Link to post Share on other sites
viper[cww] 14 Posted March 19, 2013 (edited) there is no soldiergb. that config is outdated Strange, as many of the released units so far use that as a base class. Edited March 19, 2013 by VIPER[CWW] Share this post Link to post Share on other sites
ProfTournesol 956 Posted March 19, 2013 It still does exist (in the vanilla Alpha though), i can read : class SoldierGB: CAManBase Share this post Link to post Share on other sites
pushbak 2 Posted March 21, 2013 http://browser.six-projects.net/cfg_vehicles/tree?utf8=%E2%9C%93&version=67&commit=Change this has a nice class tree that might help you. Also I'm sorta new at this too but I've succeeded in getting my units in-game. The thing that seems different to me looking at your config is that you are not pointing to a player model (.p3d) in your class.. and maybe SoldierGB doesn't have any subclasses yet? (look at the class tree in my above link to see what i mean). Share this post Link to post Share on other sites