Jump to content

Recommended Posts

Hello! Im try to create uniform. I use a tepmlate and create model, after i try to build my addon and it give me errors like:
File C:\.....config.cpp,line 4:/cfgWeapons.U_B_soldier_new:Undefined base class `Uniform_Base`
Config: some input after EndOfFile
Error reading config file `C:/...config.cpp`
Class destroyed with lock count 1
My config:
 

/// Uniform config ///
 
class cfgWeapons
{
    class UniformItem;
 
    class U_B_soldier_new: Uniform_Base
    {
        author = "Splendid Modder";
        scope = 2;
        displayName = "New Uniform";
        picture = "\A3\characters_f\data\ui\icon_u_b_soldier_new_ca.paa";
        model = "\uniform\uni.p3d";
        hiddenSelections[] = {"camo"};
        hiddenSelectionsTextures[] = {"\A3\Characters_F_New\BLUFOR\Data\b_soldier_new.paa"};
 
        class ItemInfo: UniformItem
        {
            uniformModel = "-";
            uniformClass = B_soldier_new;
            containerClass = Supply40;
            mass = 40;
        };
    };
};

Share this post


Link to post
Share on other sites
/// Uniform config ///
 
class cfgWeapons
{
    class UniformItem;
 
    class U_B_soldier_new: Uniform_Base
    {
        author = "Splendid Modder";
        scope = 2;
        displayName = "New Uniform";
        picture = "\A3\characters_f\data\ui\icon_u_b_soldier_new_ca.paa";
        model = "\uniform\uni.p3d";
        hiddenSelections[] = {"camo"};
        hiddenSelectionsTextures[] = {"\A3\Characters_F_New\BLUFOR\Data\b_soldier_new.paa"};
 
        class ItemInfo: UniformItem
        {
            uniformModel = "-";
            uniformClass = B_soldier_new;
            containerClass = Supply40;
            mass = 40;
        };
    };
};

add "class Uniform_Base;" under "class UniformItem;" , the error tells you that a class you are using:

class U_B_soldier_new: Uniform_Base  <--------------

is not defined, so just add it above as "class ...;"

It should look like this:

/// Uniform config ///
 
class cfgWeapons
{
    class UniformItem;
    class Uniform_Base;
 
    class U_B_soldier_new: Uniform_Base
    {
        author = "Splendid Modder";
        scope = 2;
        displayName = "New Uniform";
        picture = "\A3\characters_f\data\ui\icon_u_b_soldier_new_ca.paa";
        model = "\uniform\uni.p3d";
        hiddenSelections[] = {"camo"};
        hiddenSelectionsTextures[] = {"\A3\Characters_F_New\BLUFOR\Data\b_soldier_new.paa"};
 
        class ItemInfo: UniformItem
        {
            uniformModel = "-";
            uniformClass = B_soldier_new;
            containerClass = Supply40;
            mass = 40;
        };
    };
};
  • Like 2

Share this post


Link to post
Share on other sites

Thanks! But this dont work in-game. I make model,textures and config and use addon builder. But this dont show in game.

Share this post


Link to post
Share on other sites

Thanks! But this dont work in-game. I make model,textures and config and use addon builder. But this dont show in game.

Because you're model and uniform texture path is wrong, both model and uniform should be in the same working project directory

 

also you've not got the same class name in the uniform class as the main in the weapons config

  • Like 1

Share this post


Link to post
Share on other sites

Road Runner already said the answer while i was typing, so just do that what he said

Edited by KokaKolaA3
  • Like 1

Share this post


Link to post
Share on other sites

Feel free to use this template, that I use for my addons

 

 

    class CfgPatches
{
    class CRYEGEN3_MOHW_Uniform
    {
        version = "1.1.3";
        units[] = {};
        weapons[] = {};
        requiredVersion = "1.1.3";
        requiredAddons[] = {};
    };
};
class CfgVehicles
{

        class B_Soldier_base_F;
        class CRYEGEN3_MOHW_01_F: B_Soldier_base_F
    {
        scope = 2;
        author = "Road Runner";
        dlc = "DEVGRU";
        model = "\A3\characters_F\BLUFOR\b_soldier_03.p3d";
        hiddenSelections[] = {"camo","insignia"};
        hiddenSelectionsTextures[] = {"\CRYEGEN3_MOHW\CRYEGEN3_MOHW\tex\CRYEG3_MOHW_1_co.paa"};
        hiddenSelectionsMaterials[] = {"\CRYEGEN3_MOHW\CRYEGEN3_MOHW\data\CRYEG3_1.rvmat"};

};
};

class cfgWeapons
{
  class UniformItem;
    class Uniform_Base;

    class CRYEGEN3_MOHW_1: Uniform_Base
    {
        scope = 2;
        author = "Road Runner";
        dlc = "DEVGRU";
        displayName = "NSWDG CRYEGEN3 MOHW 1";
        picture = "\CRYEGEN3_MOHW\CRYEGEN3_MOHW\ui\MOHW_ui.paa";
        model = "\A3\Characters_F\Common\Suitpacks\suitpack_blufor_diver";
        class ItemInfo: UniformItem
        {
            uniformModel = "-";
            uniformClass = "CRYEGEN3_MOHW_01_F";
            containerClass = "Supply40";
            mass = 1;
            allowedSlots[] = {"701","801","901"};
            armor = 0;
        };
    };
};

  • Like 2

Share this post


Link to post
Share on other sites

Low res screenshot is low res.

Did you sort the model.cfg out/Do you even have a model.cfg?

Share this post


Link to post
Share on other sites

I dont have model.cfg. How i can create this?

Share this post


Link to post
Share on other sites

is it even weighted?

No

Share this post


Link to post
Share on other sites

I newbie in creating uniform. I try to find help in internet but i dont find nothing intresting.

Share this post


Link to post
Share on other sites

I newbie in creating uniform. I try to find help in internet but i dont find nothing intresting.

Okay, there's a difference between re-texturing which is easy, as opposed to actually importing a model into the game.

 

First of all the model has to be assigned selections, so that it actually uses the selections from the BIS skeleton, without this all you will do is create a static object. 

After you've created your selections, you have to "weight" them, so that they move in accordance to the default skeleton.

 

All of which needs a model.cfg to make it work.

 

Once you've created your model, and it works in game without vertices improperly weighted, then work on the textures. The model must be assigned these textures from within the O2 application, and the paths must be mapped correctly, or they will simply not work.

 

With zero experience you've leaped right in there without knowing the basics of modding, which is hard to help you with, it's not a config problem you have, it's a whole project problem ;)

 

Unfortunately there's no short cuts to what you're trying to achieve, you need to download the A3 samples and see how the character is set up, that's you're first aim. 

Then you need to decide which 3d software program you will use to do basic things like UV mapping, some of these programs also have "weighting" in them, like 3dsmax and blender that I know of. It's commendable you want to learn how to make addons, especially if it involves creating new models to import into the game....but you need to take a very deep breath and step back a bit, as this isn't a simple config issue mate. 

 

Here you, this is a MUST to watch.

 

 

These pages are also what you need to n\know and learn

 

https://community.bistudio.com/wiki/Arma_3_Modding_Characters

  • Like 1

Share this post


Link to post
Share on other sites

For move my model from underground i need model.cfg ?

Share this post


Link to post
Share on other sites

It needs the correctly named (and weighted) selections AND a model.cfg. Its not a 5 minute process....

  • Like 1

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

×