Jump to content
Sign in to follow this  
USSRsniper

Addon config (teamswitch icon)

Recommended Posts

Trying to config an addon, it is working with no problems except in team switch I get an error "Picture \#(argb,8,8,3)color(1,1,1,1) not found". Also the icon appears as white, but there should be no icon at all just as on BIS FR_AC unit

Pic:

http://img7.imageshack.us/img7/3917/armak.jpg

Config:

#define private		0
#define protected		1
#define public		2

#define true	1
#define false	0

#define TEast		0
#define TWest		1
#define TGuerrila		2
#define TCivilian		3
#define TSideUnknown		4
#define TEnemy		5
#define TFriendly		6
#define TLogic		7

class CfgPatches
{
     class ussr_cheytac
{
	units[] = {		
			"ussr_solcheytac", "ussr_solcheytac_sd"
		   };
	weapons[] = {"ussr_cheytacM200","ussr_cheytacM200_sd"};
	requiredVersion = 0.1;
	requiredAddons[] = {"CAData","CACharacters","CAWeapons","CAWeapons2","CACharacters2"};
};

};
====weapon config skipped==
class CfgVehicleClasses
{	
class ussr_cheytacsol
{
	displayName="USMC M200 Sniper";
 	};

};
class CfgVehicles
{
class Man; 
class CAManBase: Man{};
class SoldierWB: CAManBase {};
class FR_Base;
class FR_AC: FR_Base{}; 
class ussr_solcheytac: FR_AC
{
               scope=2;
	weapons[] = {"ussr_cheytacM200","NVGoggles", "Binocular", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"};
               magazines[] = {"ussr_5Rnd_408","ussr_5Rnd_408","ussr_5Rnd_408","ussr_5Rnd_408","ussr_5Rnd_408","ussr_5Rnd_408","ussr_5Rnd_408","ussr_5Rnd_408"};
	respawnWeapons[] = {"ussr_cheytacM200","NVGoggles", "Binocular", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"};
	respawnMagazines[] = {"ussr_5Rnd_408","ussr_5Rnd_408","ussr_5Rnd_408","ussr_5Rnd_408","ussr_5Rnd_408","ussr_5Rnd_408","ussr_5Rnd_408","ussr_5Rnd_408"};
               displayName="Sniper(CheyTac)";
	vehicleClass = "ussr_cheytacsol";
};
class ussr_solcheytac_sd: FR_AC
{
               scope=2;
	weapons[] = {"ussr_cheytacM200_sd","NVGoggles", "Binocular", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"};
	magazines[] = {"ussr_5Rnd_408","ussr_5Rnd_408","ussr_5Rnd_408","ussr_5Rnd_408","ussr_5Rnd_408","ussr_5Rnd_408","ussr_5Rnd_408","ussr_5Rnd_408"};
	respawnWeapons[] = {"ussr_cheytacM200_sd","NVGoggles", "Binocular", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"};
	respawnMagazines[] = {"ussr_5Rnd_408","ussr_5Rnd_408","ussr_5Rnd_408","ussr_5Rnd_408","ussr_5Rnd_408","ussr_5Rnd_408","ussr_5Rnd_408","ussr_5Rnd_408"};
               displayName="Sniper(CheyTac) SD";
	vehicleClass = "ussr_cheytacsol";

};
};

Share this post


Link to post
Share on other sites

That error message has nothing to do with your addon/configs..

i get that one as well when i go in teamswitch menu,

do you got steam version..?

my steam version is starting to anoy me..

No entry 'bin\config.bin/RscDisplayMultiplayerSetup/controls/CA_B_West.sideToggle

i get when connecting to server..

unbeliveble that bis is working on a standaone expantion pack, before they can sort issues out in this game.. but thats another case

Edited by nuxil

Share this post


Link to post
Share on other sites
That error message has nothing to do with your addon/configs..

i get that one as well when i go in teamswitch menu,

Well i don't get this error when using BIS USMC soldiers, it only appears when team switching to my newly created unit(addon).

Share this post


Link to post
Share on other sites

hm can you please post both the rpt and the full config

i am interested whats wrong as it looks good even after double checking

Share this post


Link to post
Share on other sites

Formatting works, it was error on my part didn't delete the old config completely. :) But still get that weird error with the icon

Share this post


Link to post
Share on other sites

No worries. It is very weird as it looks good.

To me it sounds like some other addon's problem or your addon triggering a problem in BI code.

Did you try to use a different base classes for your units yet?

Share this post


Link to post
Share on other sites

Fixed, the icons depend on the config of the weapon actually, not the soldier.

I added this to the weapon config :)

UiPicture = "\CA\weapons\data\Ico\i_sniper_CA.paa";

Share this post


Link to post
Share on other sites

thanks for sharing

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  

×