Jump to content
Sign in to follow this  
paranoid_giraffe

Retexture Issue - Weapons

Recommended Posts

Weapons don't have a hiddenSelections. How on Earth do I retexture them? I have no idea where to start, but I have poked around in the configs and found the MX Rifle config and texture. I just don't know where to go from there because I have created my own weapon class but adding the hiddenSelections and hiddenSelectionsTextures does absolutely nothing. Thanks in advance for help!:)

Share this post


Link to post
Share on other sites

MX's do not have "camo" selections at the moment, try the MK20 or TRG20 as they do.

Share this post


Link to post
Share on other sites

Be careful with retexturing and releasing weapons. I seem to remember some people being contacted by BIS about this.

Share this post


Link to post
Share on other sites
MX's do not have "camo" selections at the moment, try the MK20 or TRG20 as they do.

It does (trg20)? how do I make it work?

Share this post


Link to post
Share on other sites
It does (trg20)? how do I make it work?

Basic config for weapons that can be retextured.

enum {
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 yourtag_a3_weapons
{
	units[] = {};
	weapons[] = {};
	requiredVersion = 0.1;
	requiredAddons[] = {"A3_Weapons_F"};
};
};

class CfgWeapons
{
class arifle_Mk20_F;
class arifle_TRG20_F;
class launch_Titan_base;
class launch_Titan_short_base;
class ItemInfo;

class yourtag_arifle_Mk20_plain_F: arifle_Mk20_F
{
	displayName = "$STR_A3_CfgWeapons_arifle_Mk200";
	hiddenSelections[] = {"camo"};
	hiddenSelectionsTextures[] = {"#(rgb,8,8,3)color(0,1,0,1)"}; // Replace with "\pboName\data\yourTexture_co.paa"
	picture = "\A3\Weapons_F_beta\Rifles\MK20\Data\UI\gear_Mk20_X_CA.paa";
};
class yourtag_arifle_TRG20_F: arifle_TRG20_F
{
	displayName = "$STR_A3_CfgWeapons_arifle_TRG200";
	hiddenSelections[] = {"camo"};
	hiddenSelectionsTextures[] = {"#(rgb,8,8,3)color(0.93,0,0.55,1)"};
	picture = "\A3\weapons_F\Rifles\Trg20\Data\UI\gear_TRG20_X_CA.paa";
};
class yourtag_launch_Titan_F: launch_Titan_base
{
	scope = 2;
	displayName = "$STR_A3_CfgWeapons_launch_MPRL0";
	picture = "\A3\Weapons_F_Beta\Launchers\Titan\Data\UI\gear_titan_CA.paa";
	//hiddenSelections[] = {"camo_launcher","camo_tube"}; // Inherited from launch_Titan_base
	hiddenSelectionsTextures[] = {"#(rgb,8,8,3)color(0.93,0,0.55,1)","#(rgb,8,8,3)color(0,1,0,1)"};
};
class yourtag_launch_Titan_short_F: launch_Titan_short_base
{
	scope = 2;
	displayName = "$STR_CfgWeapons_launch_MPRL_short_F0";
	picture = "\A3\Weapons_F_Beta\Launchers\Titan\Data\UI\gear_titan_short_CA.paa";
	//hiddenSelections[] = {"camo_launcher","camo_tube"}; // Inherited from launch_Titan_base
	hiddenSelectionsTextures[] = {"#(rgb,8,8,3)color(0.93,0,0.55,1)","#(rgb,8,8,3)color(0,1,0,1)"};
};
};

Share this post


Link to post
Share on other sites
Basic config for weapons that can be retextured.

enum {
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 yourtag_a3_weapons
{
	units[] = {};
	weapons[] = {};
	requiredVersion = 0.1;
	requiredAddons[] = {"A3_Weapons_F"};
};
};

class CfgWeapons
{
class arifle_Mk20_F;
class arifle_TRG20_F;
class launch_Titan_base;
class launch_Titan_short_base;
class ItemInfo;

class yourtag_arifle_Mk20_plain_F: arifle_Mk20_F
{
	displayName = "$STR_A3_CfgWeapons_arifle_Mk200";
	hiddenSelections[] = {"camo"};
	hiddenSelectionsTextures[] = {"#(rgb,8,8,3)color(0,1,0,1)"}; // Replace with "\pboName\data\yourTexture_co.paa"
	picture = "\A3\Weapons_F_beta\Rifles\MK20\Data\UI\gear_Mk20_X_CA.paa";
};
class yourtag_arifle_TRG20_F: arifle_TRG20_F
{
	displayName = "$STR_A3_CfgWeapons_arifle_TRG200";
	hiddenSelections[] = {"camo"};
	hiddenSelectionsTextures[] = {"#(rgb,8,8,3)color(0.93,0,0.55,1)"};
	picture = "\A3\weapons_F\Rifles\Trg20\Data\UI\gear_TRG20_X_CA.paa";
};
class yourtag_launch_Titan_F: launch_Titan_base
{
	scope = 2;
	displayName = "$STR_A3_CfgWeapons_launch_MPRL0";
	picture = "\A3\Weapons_F_Beta\Launchers\Titan\Data\UI\gear_titan_CA.paa";
	//hiddenSelections[] = {"camo_launcher","camo_tube"}; // Inherited from launch_Titan_base
	hiddenSelectionsTextures[] = {"#(rgb,8,8,3)color(0.93,0,0.55,1)","#(rgb,8,8,3)color(0,1,0,1)"};
};
class yourtag_launch_Titan_short_F: launch_Titan_short_base
{
	scope = 2;
	displayName = "$STR_CfgWeapons_launch_MPRL_short_F0";
	picture = "\A3\Weapons_F_Beta\Launchers\Titan\Data\UI\gear_titan_short_CA.paa";
	//hiddenSelections[] = {"camo_launcher","camo_tube"}; // Inherited from launch_Titan_base
	hiddenSelectionsTextures[] = {"#(rgb,8,8,3)color(0.93,0,0.55,1)","#(rgb,8,8,3)color(0,1,0,1)"};
};
};

Thank you very much!.

Share this post


Link to post
Share on other sites

Not sure if much has changed since the code above was written.....but I cannot pack this into a PBO.

Here is my code.

enum {
OrdinalEnum = 2,
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 Zeos_Tac-Ops_weapons 
   { 
       units[] = {}; 
       weapons[] = {}; 
       requiredVersion = 0.1; 
       requiredAddons[] = {"A3_Weapons_F"}; 
   }; 
}; 

class CfgWeapons 
{ 
   class arifle_Mk20_F; 
   class arifle_TRG20_F; 
   class launch_Titan_base; 
   class launch_Titan_short_base; 
   class ItemInfo; 


   class tacops_arifle_Mk20_plain_F: arifle_Mk20_F 
   { 
       displayName = "Tac-Ops MK20"; 
       hiddenSelections[] = {"camo"}; 
       hiddenSelectionsTextures[] = {"#(rgb,8,8,3)color(0,1,0,1)"}; // Replace with "\pboName\data\yourTexture_co.paa" 
       picture = "\A3\Weapons_F_beta\Rifles\MK20\Data\UI\gear_Mk20_X_CA.paa"; 
   };

   class tacops_arifle_TRG20_F: arifle_TRG20_F 
   { 
       displayName = "Tac-Ops_TRG200"; 
       hiddenSelections[] = {"camo"}; 
       hiddenSelectionsTextures[] = {"#(rgb,8,8,3)color(0.93,0,0.55,1)"}; 
       picture = "\A3\weapons_F\Rifles\Trg20\Data\UI\gear_TRG20_X_CA.paa"; 
   }; 

   class tacops_launch_Titan_F: launch_Titan_base 
   { 
       scope = 2; 
       displayName = "Tac-Ops Titan MPRL0"; 
       picture = "\A3\Weapons_F_Beta\Launchers\Titan\Data\UI\gear_titan_CA.paa"; 
       //hiddenSelections[] = {"camo_launcher","camo_tube"}; // Inherited from launch_Titan_base 
       hiddenSelectionsTextures[] = {"#(rgb,8,8,3)color(0.93,0,0.55,1)","#(rgb,8,8,3)color(0,1,0,1)"}; 
   };

   class tacops_launch_Titan_short_F: launch_Titan_short_base 
   { 
       scope = 2; 
       displayName = "Tac-Ops Titan Compact"; 
       picture = "\A3\Weapons_F_Beta\Launchers\Titan\Data\UI\gear_titan_short_CA.paa"; 
       //hiddenSelections[] = {"camo_launcher","camo_tube"}; // Inherited from launch_Titan_base 
       hiddenSelectionsTextures[] = {"#(rgb,8,8,3)color(0.93,0,0.55,1)","#(rgb,8,8,3)color(0,1,0,1)"}; 
   }; 
};  

Here is my error log.

File c:\users\user\desktop\tacops_master_copy\tacops_weapons\config.cpp, line 20: /CfgPatches/: '-' encountered instead of '{'
Config : some input after EndOfFile.
Error reading binary file 'c:\users\user\desktop\tacops_master_copy\tacops_weapons\config.cpp'
W:\C\El\ParamFile\paramFile.cpp(753) : Class destroyed, but still locked
Cannot register unknown string STR_STATE_HEALSOLDIER
Cannot register unknown string STR_STATE_FIRST_AID
Cannot register unknown string STR_UI_RADARRANGE
Cannot register unknown string STR_ACTION_LAUNCHCM
Cannot register unknown string STR_ACTION_NEXTCM
Cannot register unknown string STR_USRACT_ACTION_CONTEXT
Cannot register unknown string STR_USRACT_OPTICS_MODE
Cannot register unknown string STR_USRACT_ZEROING_UP
Cannot register unknown string STR_USRACT_ZEROING_DOWN
Cannot register unknown string STR_USRACT_NETWORK_DS_INTERFACE
Cannot register unknown string STR_USRACT_BULD_TERRAIN_RAISE_10CM
Cannot register unknown string STR_USRACT_BULD_TERRAIN_LOWER_10CM
Cannot register unknown string STR_USRACT_BULD_TERRAIN_RAISE_50CM
Cannot register unknown string STR_USRACT_BULD_TERRAIN_LOWER_50CM
Cannot register unknown string STR_INPUT_DEVICE_FREETRACK_0
Cannot register unknown string STR_INPUT_DEVICE_FREETRACK_1
Cannot register unknown string STR_INPUT_DEVICE_FREETRACK_2
Cannot register unknown string STR_INPUT_DEVICE_FREETRACK_3
Cannot register unknown string STR_INPUT_DEVICE_FREETRACK_4
Cannot register unknown string STR_INPUT_DEVICE_FREETRACK_5
Cannot register unknown string STR_INPUT_DEVICE_FREETRACK_6
Cannot register unknown string STR_INPUT_DEVICE_FREETRACK_7
Cannot register unknown string STR_INPUT_DEVICE_FREETRACK_8
Cannot register unknown string STR_INPUT_DEVICE_FREETRACK_9
Cannot register unknown string STR_INPUT_DEVICE_FREETRACK_10
Cannot register unknown string STR_INPUT_DEVICE_FREETRACK_11
Cannot register unknown string STR_DISP_LEFT
Cannot register unknown string STR_DIFF_CAMERA_SHAKE
Cannot register unknown string STR_FREETRACK
Cannot register unknown string STR_ADDON_ACTIONS_INSTALL_CORE
Cannot register unknown string STR_ADDON_ACTIONS_INSTALL_MOD
Cannot register unknown string STR_ADDON_ACTIONS_PLAY_MISSION
Cannot register unknown string STR_ADDON_ACTIONS_TRY_ENTITY
Cannot register unknown string STR_ADDON_ACTIONS_TRY_WEAPON
Cannot register unknown string STR_MSG_ADDON_NOT_FOUND
Cannot register unknown string STR_MSG_ADDON_CANNOT_OPEN
Cannot register unknown string STR_MSG_ADDON_UNKNOWN_PRODUCT
Cannot register unknown string STR_INCOMPATIBLE_LOAD_GAME_ATTEMPT
Warning: CfgVehicles missing in PreloadConfig - may slow down vehicle creation
Warning: CfgAmmo missing in PreloadConfig - may slow down vehicle creation
Warning: CfgNonAIVehicles missing in PreloadConfig - may slow down vehicle creation
File c:\users\user\desktop\tacops_master_copy\tacops_weapons\config.cpp, line 20: /CfgPatches/: '-' encountered instead of '{'
Config : some input after EndOfFile.
Error 3 while parsing
Error in config c:\users\user\desktop\tacops_master_copy\tacops_weapons\config.cpp
w:\C_branch\Poseidon\Arrowhead\El\ParamFile\paramFile.cpp(753) : Class destroyed, but still locked
File c:\users\user\desktop\tacops_master_copy\tacops_weapons\config.cpp, line 20: /CfgPatches/: '-' encountered instead of '{'
Config : some input after EndOfFile.
Error 3 while parsing
Error in config c:\users\user\desktop\tacops_master_copy\tacops_weapons\config.cpp
w:\C_branch\Poseidon\Arrowhead\El\ParamFile\paramFile.cpp(753) : Class destroyed, but still locked
Cannot load font core\data\fonts\lucidaconsoleb8
Fonts file \core\data\fonts\lucidaConsoleB8 not found
Cannot load font core\data\fonts\lucidaconsoleb11
Fonts file \core\data\fonts\lucidaConsoleB11 not found
Creating texture headers file...
1 texture headers saved to file "C:\Users\User\AppData\Local\Temp\ARMAaddons\tacops_weapons\texHeaders.bin"
w:\C_branch\Poseidon\Arrowhead\El\FileServer\fileServer.cpp(2513) : Assertion failed 'req->RefCounter()==1'

So I see the errors...

Warning: CfgVehicles missing in PreloadConfig - may slow down vehicle creation

Warning: CfgAmmo missing in PreloadConfig - may slow down vehicle creation

Warning: CfgNonAIVehicles missing in PreloadConfig - may slow down vehicle creation

But not sure it's an error or a warning. More concerned with....

File c:\users\user\desktop\tacops_master_copy\tacops_weapons\config.cpp, line 20: /CfgPatches/: '-' encountered instead of '{'

Ideas surpher?

Edited by Zeotrope

Share this post


Link to post
Share on other sites

You cannot use - in names/string. Use _ instead. Also drop the enum block.

Share this post


Link to post
Share on other sites

So this all works ok. A managed to get the four weapons above, in game.

There is however an issue with dropped weapons. They seem to revert to their inherited classes. ie; The assume their original textures and not the re-skins. They are fine when in hand but not on the ground.

Is there a way to have the dropped weapons appear re-textured?

Also, any SCOPE re-skin config examples? Do the scope configs belong in the weapon configs? I cannot see my re-skinned ARCO in game. It's there in the VAS but invisible on the gun. Not a missing texture.....it's just not there!

Zeo

Share this post


Link to post
Share on other sites

dropping enum block - has no effect in your config, aka obsolete

dropped weapons - pretty sure there is a FT issue on this

scopes are separate classes - did you modify these yet?

Share this post


Link to post
Share on other sites

Ok cool.

Scopes: At work so I cannot post my config.....

I did modify the correct texture....found the ARCO classname. Packed the PBO without error. Ran A3 without error. I select a weapon from the VAS and select my Tac-Ops ARCO Scope from the drop down list. I attach it to the gun! POOOF! No scope.

My gut feeling is that it is an 'inventory slot' issue.....but beyond that I have no Idea.

Back to the dropped weapon issue. I have seen a command somewhere on these forums. (Perhaps posted by It's Thomas ?!) where it showed a config example.,.....I recall a command that looked something like "ItemOnGround" or something like that.

Has anyone skinned an A3 weapon that retains it's custom texture when dropped?

PS: What is a FT Issue? FT?

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
Sign in to follow this  

×