Jump to content
shadowhunter123

Issue with Gryphon retexture?

Recommended Posts

Making a reskin to the A-149 Gryphon after my sucessful launch of the Livonian CH-49 Mohawk. I finally got all the textures done and am awaiting release but have hit a major roadblock.
3AE621309DD885FFEB93025D6E952A2463A370B5

43559EFCC58073D09FA2E64B01AFD4996E831815

 

When I spawn the LDF Gryphon, it gives me AAF textures instead of the texture you see above, and oddly no errors. Can't figure out why this is happening for the life of me. All paths are correct and my config should be fine.
Anyone know where I may have gone wrong?

Inside my .PBO is just my config file and my  "Data/____ .PAA (files).

Here is a photo of my script:
1D1F2258E81A9803CB2BD5C058920C5A983E89E9Ubsude

 

Share this post


Link to post
Share on other sites

Sounds like your hiddenselections are being overwritten by texture selection system.

 

Try:

 

        class TextureSources
        {
            class LDF
            {
                displayName="LDF";
                author="My name goes here";
                textures[]=
                {
                    "Livonia_Gryphon_Retex\data\OD_Body.paa",

                    "Livonia_Gryphon_Retex\data\Underside_OD.paa"
                };
                factions[]=
                {
                    "IND_E_F"
                };
            };
        };
        textureList[]=
        {
            "LDF",
            1
        };

 

Also, you should fix your texture names, aside from being a mess, that format isn't ideal for the engine - I'd use "OD_Body_co.paa" and "OD_Underside_co.paa". AFAIK missing out the _co doesn't matter for basic textures, but it's good practice to have in regardless. Here's the biki page on how your should name your textures.

Share this post


Link to post
Share on other sites
35 minutes ago, biggerdave said:

 

Awesome I greatly apperciate the help. I am new to all this so I am still learning, will definitely rename, I just kept them like they were for simplicity sake.

Outta curosity, where would this part go in my script?

Share this post


Link to post
Share on other sites

Anywhere within class Gryphon_OD - you'll need to do it for the other two, as well.

 

You could save some time by only having the texturesources in the first vehicle class, then inheriting for the other two. So, like:

class Gryphon_OD: I_Plane_Fighter_04_F
{
    //stuff
    class texturesources
    {
        class LDF_OD
        {
        //tuff
        };
        class LDF_Camo
        {
        ///stuff
        };
        class LDF_Grey
        {
        //stuff
        };
    };
    textureList[]=
    {
        "LDF_OD",1
    };
};

Then just have:

class Gryphon_Camo: Gryphon_OD
{
    displayname = "Gryphon Camo"
    textureList[]=
    {
        "LDF_Camo",1
    };
};
class Gryphon_Grey: Gryphon_OD
{
    displayname = "Gryphon Grey"
    textureList[]=
    {
        "LDF_Grey",1
    };
};

For the other skins, which would tidy things up quite a bit.

 

Something else to consider, Gryphon_OD isn't a very good classname - if anyone else is using the same, it can cause a lot of problems - I'd use something like "SH123_LDF_Gryphon_OD" instead.

 

(also, configs are code, not script, everyone knows coders are way cooler than scripters!)

Share this post


Link to post
Share on other sites

What supposed to go in all the stuff you have written as ///stuff.

I know /// is usually made to make a comment, but what type of "Stuff" is supposed to go in there, would this be.

To be honest, this is my first time actually making code. I understand a small bit of it.

all the unit stuff such as:
 

author = "Shadowhunter388";
		_generalMacro = "Gryphon_Camo";
		scope = 2;
		scopeCurator = 2;
		side = 2;
		faction = "IND_E_F";
		displayName = "A-149 Gryphon Camo";
		crew = "I_E_Helicrew_F";

 

Share this post


Link to post
Share on other sites

Yeah, I didn't want to copy out everything else... let's pretend, instead of being lazy, I didn't want to write out a full config that you could just copy and paste, so you'd need to do stuff yourself, so like, it's a learning experience? As if I'm some kind of wizened mountain monk.

Share this post


Link to post
Share on other sites
8 hours ago, biggerdave said:

Yeah, I didn't want to copy out everything else... let's pretend, instead of being lazy, I didn't want to write out a full config that you could just copy and paste, so you'd need to do stuff yourself, so like, it's a learning experience? As if I'm some kind of wizened mountain monk.

 

I am being lazy. I literally don't know the coding language and am asking for some guidance to ensure I am doing things correctly.  I'm glad you understand this and I thank you for the help. This is my first time trying to figure all this out. I'm not trying to have you do this for me, i'm trying to learn so i'm not spending endless hours going in circles achieving nothing. 


This is what I did so far:

 

class cfgPatches
{
	class Livonia_Gryphon_Retex
	{
		author = "Shadowhunter388";
		units[] = {"LDF_Gryphon_Grey","LDF_Gryphon_Camo","LDF_Gryphon_OD"};
		weapons[] = {};
		requiredVersion = 0.1;
		requiredAddons[] = {};
	};
};
class cfgVehicles
{
	class I_Plane_Fighter_04_F;
	class LDF_Gryphon_Grey: I_Plane_Fighter_04_F
	{
		author = "Shadowhunter388";
		_generalMacro = "LDF_Gryphon_Grey";
		scope = 2;
		scopeCurator = 2;
		side = 2;
		faction = "IND_E_F";
		displayName = "A-149 Gryphon";
		crew = "I_E_Helicrew_F";
		hiddenSelections[] = {"camo1","camo2"};
		hiddenSelectionsTextures[] = {"Livonia_Gryphon_Retex\data\Grey_Fighter_04_fuselage_01_co.paa", "Livonia_Gryphon_Retex\Livonia_Gryphon_Retex\data\Grey_Fighter_04_fuselage_02_co.paa"};
		typicalCargo[] = {"I_E_Helicrew_F"};
        textures[] = {"Livonia_Gryphon_Retex\data\Grey_Fighter_04_fuselage_01_co.paa", "Livonia_Gryphon_Retex\Livonia_Gryphon_Retex\data\Grey_Fighter_04_fuselage_02_co.paa"};
		textureList[] = {"LDF_Gryphon_Grey", 1, "LDF_Gryphon_Camo", 1, "LDF_Gryphon_OD", 1};
	};
	class LDF_Gryphon_Camo: I_Plane_Fighter_04_F
	{
		author = "Shadowhunter388";
		_generalMacro = "LDF_Gryphon_Camo";
		scope = 2;
		scopeCurator = 2;
		side = 2;
		faction = "IND_E_F";
		displayName = "A-149 Gryphon";
		crew = "I_E_Helicrew_F";
		hiddenSelections[] = {"camo1","camo2"};
		hiddenSelectionsTextures[] = {"Livonia_Gryphon_Retex\Livonia_Gryphon_Retex\data\Camo_Fighter_04_fuselage_01_co.paa", "Livonia_Gryphon_Retex\Livonia_Gryphon_Retex\data\Camo_Fighter_04_fuselage_02_co.paa"};
		typicalCargo[] = {"I_E_Helicrew_F"};
		textures[] = {"Livonia_Gryphon_Retex\Livonia_Gryphon_Retex\data\Camo_Fighter_04_fuselage_01_co.paa", "Livonia_Gryphon_Retex\Livonia_Gryphon_Retex\data\Camo_Fighter_04_fuselage_02_co.paa"};
		textureList[] = {"LDF_Gryphon_Grey", 1, "LDF_Gryphon_Camo", 1, "LDF_Gryphon_OD", 1};
	};
	class LDF_Gryphon_OD: I_Plane_Fighter_04_F
	{
		author = "Shadowhunter388";
		_generalMacro = "LDF_Gryphon_OD";
		scope = 2;
		scopeCurator = 2;
		side = 2;
		faction = "IND_E_F";
		displayName = "A-149 Gryphon";
		crew = "I_E_Helicrew_F";
		hiddenSelections[] = {"camo1","camo2"};
		hiddenSelectionsTextures[] = {"Livonia_Gryphon_Retex\Livonia_Gryphon_Retex\data\OD_Fighter_04_fuselage_01_co.paa", "Livonia_Gryphon_Retex\Livonia_Gryphon_Retex\data\OD_Fighter_04_fuselage_02_co"};
		typicalCargo[] = {"I_E_Helicrew_F"};
		textures[] = {"Livonia_Gryphon_Retex\Livonia_Gryphon_Retex\data\OD_Fighter_04_fuselage_01_co.paa", "Livonia_Gryphon_Retex\Livonia_Gryphon_Retex\data\OD_Fighter_04_fuselage_02_co"};
		textureList[] = {"LDF_Gryphon_Grey", 1, "LDF_Gryphon_Camo", 1, "LDF_Gryphon_OD", 1};
	};

}; 

 

Share this post


Link to post
Share on other sites

I'm at the point of giving up. I re-did this script 30 times and it has taken my whole entire day.

Here is what I have. I get no error either. Just a standard AAF skin.

 

class cfgPatches
{
	class Livonia_Gryphon_Retex
	{
		author = "Shadowhunter388";
		units[] = {"LDF_Gryphon_OD"};
		weapons[] = {};
		requiredVersion = 0.1;
		requiredAddons[] = {};
	};
};
class cfgVehicles
{
	class I_Plane_Fighter_04_F;
	class LDF_Gryphon: I_Plane_Fighter_04_F
	{
		author = "Shadowhunter388";
		_generalMacro = "LDF_Gryphon";
		scope = 2;
		scopeCurator = 2;
		side = 2;
		faction = "IND_E_F";
		displayName = "A-149 Gryphon";
		crew = "I_E_Helicrew_F";
		typicalCargo[] = {"I_E_Helicrew_F"};
	};
};
class TextureSources
{
	class LDF_Gryphon_OD
    {
        displayName = "A-149 Gryphon";
		author = {"shadowhunter388"};
		factions = "IND_E_F"
        textures[] = {"Livonia_Gryphon_Retex\data\OD_Fighter_04_fuselage_01_co.paa", "Livonia_Gryphon_Retex\data\OD_Fighter_04_fuselage_02_co.paa"};
        textureList[]= {"LDF_Gryphon_OD", 1};
	};
};

 

Share this post


Link to post
Share on other sites

Ok, you've nearly got it - texturesources is a class within your vehicle class (just like how your vehicle is class within cfgvehicles). Then each of the texture sets are defined as classes within that class, like this:

    class LDF_Gryphon_Grey: I_Plane_Fighter_04_F
    {
        author = "Shadowhunter388";
        scope = 2;
        scopeCurator = 2;
        side = 2;
        faction = "IND_E_F";
        displayName = "A-149 Gryphon";
        crew = "I_E_Helicrew_F";
        hiddenSelections[] = {"camo1","camo2"};
        hiddenSelectionsTextures[] = {"Livonia_Gryphon_Retex\data\Grey_Fighter_04_fuselage_01_co.paa", "Livonia_Gryphon_Retex\Livonia_Gryphon_Retex\data\Grey_Fighter_04_fuselage_02_co.paa"};
        typicalCargo[] = {"I_E_Helicrew_F"};
        class TextureSources
        {
            class LDF_Gryphon_Grey
            {
                displayName = "Grey";
                author = "Shadowhunter388";
                textures[] = {"Livonia_Gryphon_Retex\data\Grey_Fighter_04_fuselage_01_co.paa","Livonia_Gryphon_Retex\data\Grey_Fighter_04_fuselage_02_co.paa"};
                factions[] = {"IND_E_F"};
            };
        };
        textureList[] = {"LDF_Gryphon_Grey", 1};
    };

 

I've formatted this so only the classes are indented, that should make it a bit easier to understand what I'm getting at here.

  • Like 1
  • Thanks 1

Share this post


Link to post
Share on other sites
1 hour ago, biggerdave said:

Ok, you've nearly got it - texturesources is a class within your vehicle class (just like how your vehicle is class within cfgvehicles). Then each of the texture sets are defined as classes within that class, like this:

 


    class LDF_Gryphon_Grey: I_Plane_Fighter_04_F
    {
        author = "Shadowhunter388";
        scope = 2;
        scopeCurator = 2;
        side = 2;
        faction = "IND_E_F";
        displayName = "A-149 Gryphon";
        crew = "I_E_Helicrew_F";
        hiddenSelections[] = {"camo1","camo2"};
        hiddenSelectionsTextures[] = {"Livonia_Gryphon_Retex\data\Grey_Fighter_04_fuselage_01_co.paa", "Livonia_Gryphon_Retex\Livonia_Gryphon_Retex\data\Grey_Fighter_04_fuselage_02_co.paa"};
        typicalCargo[] = {"I_E_Helicrew_F"};
        class TextureSources
        {
            class LDF_Gryphon_Grey
            {
                displayName = "Grey";
                author = "Shadowhunter388";
                textures[] = {"Livonia_Gryphon_Retex\data\Grey_Fighter_04_fuselage_01_co.paa","Livonia_Gryphon_Retex\data\Grey_Fighter_04_fuselage_02_co.paa"};
                factions[] = {"IND_E_F"};
            };
        };
        textureList[] = {"LDF_Gryphon_Grey", 1};
    };

 

 

I've formatted this so only the classes are indented, that should make it a bit easier to understand what I'm getting at here.

Eureka! Got it! Now its starting to read like English haha. Thank you for all your help. Can't wait to have her up and runnin!

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

×