Jump to content
Sign in to follow this  
theevancat

No entry config.bin for optics?

Recommended Posts

I am currently having an issue putting optics into the game, and I have not found a way to solve it.

Currently, when I load up the game and try to put the optics on someone using setprimaryweaponitem, I get a message saying that:

http://cloud-4.steamusercontent.com/ugc/536258467642492580/862C0224577BB046582705E1F14B850C3E3AE0C8/

I have no idea what this is, and I followed BIS's config fairly well (I believe.) Here is my config.

class CfgPatches
{
class CSAT_ATR30
{
	units[]={};
	weapons[]=
	{
		"TEC_ACC_Sight_ATR30"
	};
	requiredVersion=0.1;
	requiredAddons[]=
	{
		"A3_Weapons_F",
		"A3_Weapons_F_Acc"
	};
};
};

class ItemCore;    // External class reference
class InventoryItem_Base_F;    // External class reference
class InventoryOpticsItem_Base_F;    // External class reference

class TEC_ACC_Sight_ATR30: ItemCore
{
	descriptionshort = "Advanced Targeting Reticle<br />Color: Red";
	displayname = "ATR-30";
	author = "TheEvanCat";
	model = "CSAT_Weapons\ATR-30\ATR30";
	picture = "\A3\weapons_F\Data\UI\gear_acco_aco_CA.paa";
	scope = 2;
	weaponinfotype = "RscWeaponZeroing";
	class ItemInfo: InventoryOpticsItem_Base_F
	{
		mass = 2;
		modeloptics = "\A3\Weapons_F\empty";
		optics = 1;
		rmbhint = "Advanced Targeting Reticle";
		class OpticsModes
		{
			class ACO
			{
				opticsID=1;
				useModelOptics=0;
				opticsZoomMin=0.375;
				opticsZoomMax=1.1;
				opticsZoomInit=0.75;
				memoryPointCamera="eye";
				opticsFlare=0;
				opticsDisablePeripherialVision=0;
				distanceZoomMin=200;
				distanceZoomMax=200;
				cameraDir="";
				visionMode[]={};
				opticsPPEffects[]=
				{
					""
				};
			};
		};
	};
	inertia=0;
};

Share this post


Link to post
Share on other sites
Are you missing the cfgweapons class ? :)

Welp, I think I need to go to sleep earlier.

EDIT: Fixed that, but still not showing up in game.

Edited by TheEvanCat

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  

×