tonnie 17 Posted June 23, 2013 Hey guys, So im having trouble getting my sights in game. at first i had both the acog and the optical sight working fine however as soon as I added the elcan sight into the cpp it errors on binpbo and then none of the sights doesnt show ingame. Im guessing somethings wrong todo with the elcan config. Any help would be awsum. Heres my config (Alwarren give me permission to edit his to work on mine) #define private 0 #define protected 1 #define public 2 #define true 1 #define false 0 class CfgPatches { class ADF_Accessories { units[]={}; weapons[]={ "ADF_optic_ACOG6x46", "ADF_optic_F88Optical", "ADF_optic_elcan" }; requiredVersion=0.1; requiredAddons[]={}; version="2012-12-28"; }; }; class cfgWeapons { class ItemCore; class InventoryItem_Base_F; class InventoryMuzzleItem_Base_F; class InventoryOpticsItem_Base_F; class InventoryFlashLightItem_Base_F; class ADF_optic_ACOG6x46: ItemCore { scope = 2; displayName = "ACOG 6x46"; picture = "\A3\weapons_F\Data\UI\gear_acco_ACOG_CA.paa"; model = "\adf_sights\acog\acog9x.p3d"; descriptionShort = "Marksmen Combat Optic (RCO)<br/>ACOG 6x46"; weaponInfoType = "RscWeaponZeroing"; class ItemInfo: InventoryOpticsItem_Base_F { opticType = 1; mass = 4; RMBhint = "Marksmen Combat Optic"; optics = 1; modelOptics = "\A3\Weapons_f\acc\reticle_arco_F"; class OpticsModes { class ACOG { opticsID = 1; useModelOptics = 1; opticsPPEffects[] = {"OpticsCHAbera1","OpticsBlur1"}; opticsZoomMin = 0.0723; opticsZoomMax = 0.0723; opticsZoomInit = 0.0723; memoryPointCamera = "opticView"; visionMode[] = {"Normal"}; opticsFlare = 1; opticsDisablePeripherialVision = 1; distanceZoomMin = 300; distanceZoomMax = 300; cameraDir = ""; }; class Kolimator: ACOG { opticsID = 2; useModelOptics = 0; opticsPPEffects[] = {""}; opticsFlare = 0; opticsDisablePeripherialVision = 0; opticsZoomMin = 0.375; opticsZoomMax = 1.1; opticsZoomInit = 0.75; memoryPointCamera = "eye"; visionMode[] = {}; distanceZoomMin = 100; distanceZoomMax = 100; }; }; }; }; class ADF_optic_F88Optical: ItemCore { scope = 2; displayName = "F88A2 Optical Sight 1.5x"; picture = "\A3\weapons_F\Data\UI\gear_acco_ACOG_CA.paa"; model = "\adf_sights\A2Optical\f88a2optic.p3d"; descriptionShort = "1.5x Infantry Optic"; weaponInfoType = "RscWeaponZeroing"; class ItemInfo: InventoryOpticsItem_Base_F { opticType = 1; mass = 4; RMBhint = "1.5x Infantry Optic"; optics = 1; modelOptics = "\A3\Weapons_f\acc\reticle_arco_F"; class OpticsModes { class ACO { opticsID = 1; useModelOptics = 1; opticsZoomMin = 0.375; opticsZoomMax = 1.1; opticsZoomInit = 0.75; memoryPointCamera = "opticView"; visionMode[] = {"Normal"}; opticsFlare = 1; opticsDisablePeripherialVision = 1; distanceZoomMin = 150; distanceZoomMax = 150; cameraDir = ""; visionMode[] = {}; opticsPPEffects[] = {""}; }; }; }; }; class ADF_optic_elcan: ItemCore { scope = 2; displayName = "ELCAN 4x"; picture = "\A3\weapons_F\Data\UI\gear_acco_ACOG_CA.paa"; model = "\adf_sights\acog\adf_elcan.p3d"; descriptionShort = "Heavy Duty Infantry Sight (HDIS)<br/>ELCAN"; weaponInfoType = "RscWeaponZeroing"; class ItemInfo: InventoryOpticsItem_Base_F { opticType = 1; mass = 4; RMBhint = "Heavy Duty Infantry Sight"; optics = 1; modelOptics = "\A3\Weapons_f\acc\reticle_arco_F"; class OpticsModes { class ACOG { opticsID = 1; useModelOptics = 1; opticsPPEffects[] = {"OpticsCHAbera1","OpticsBlur1"}; opticsZoomMin = 0.0723; opticsZoomMax = 0.0723; opticsZoomInit = 0.0723; memoryPointCamera = "opticView"; visionMode[] = {"Normal"}; opticsFlare = 1; opticsDisablePeripherialVision = 1; distanceZoomMin = 300; distanceZoomMax = 300; cameraDir = ""; }; class Kolimator: Iron Sight { opticsID = 2; useModelOptics = 0; opticsPPEffects[] = {""}; opticsFlare = 0; opticsDisablePeripherialVision = 0; opticsZoomMin = 0.375; opticsZoomMax = 1.1; opticsZoomInit = 0.75; memoryPointCamera = "eye"; visionMode[] = {}; distanceZoomMin = 100; distanceZoomMax = 100; }; }; }; }; class FHQ_optic_HWS_G33: ItemCore { scope = 2; displayName = "Eotech G33"; picture = "\FHQ_Accessories\HOLO\gear_acco_g33_ca.paa"; model = "\FHQ_Accessories\HOLO\HWS_G33.p3d"; descriptionShort = "Eotech Holo Sight with G33 scope"; weaponInfoType = "RscWeaponZeroing"; class ItemInfo: InventoryOpticsItem_Base_F { opticType = 1; mass = 4; RMBhint = "Advanced Rifle Combat Optics"; optics = 1; modelOptics = "\FHQ_Accessories\HOLO\hws_scope.p3d"; class OpticsModes { class G33 { opticsID = 2; useModelOptics = 1; opticsPPEffects[] = { "OpticsCHAbera1", "OpticsBlur1" }; opticsZoomMin = 0.0623; opticsZoomMax = 0.0623; opticsZoomInit = 0.0623; memoryPointCamera = "opticView"; visionMode[] = { "Normal" }; opticsFlare = 1; opticsDisablePeripherialVision = 1; distanceZoomMin = 300; distanceZoomMax = 300; cameraDir = ""; }; class Kolimator : G33 { opticsID = 1; useModelOptics = 0; opticsFlare = 0; opticsDisablePeripherialVision = 0; opticsZoomMin = 0.25; opticsZoomMax = 1.1; opticsZoomInit = 0.5; memoryPointCamera = "eye"; visionMode[] = { }; }; }; }; }; class FHQ_acc_ANPEQ15: ItemCore { scope = 2; displayName = "AN/PEQ-15 Laser"; descriptionUse = "AN/PEQ-15 Infrared Laser Pointer"; picture = "\FHQ_Accessories\ANPEQ-15\gear_accv_anpeq15_ca.paa"; model = "\FHQ_Accessories\ANPEQ-15\anpeq15.p3d"; descriptionShort = "AN/PEQ-15 IR Laser"; class ItemInfo: InventoryFlashLightItem_Base_F { mass = 8; class Pointer { RMBhint = "Laser Pointer"; irLaserPos = "laser pos"; irLaserEnd = "laser dir"; irDistance = 5; }; class FlashLight{}; }; }; class FHQ_acc_LLM01L: ItemCore { scope = 2; displayName = "LLM-01"; descriptionUse = "Rheinmetall Laser-Licht-Modul 01<br/>IR Laser"; picture = "\FHQ_Accessories\LLM-01\gear_accv_llm01_ca.paa"; model = "\FHQ_Accessories\LLM-01\llm01.p3d"; descriptionShort = "LLM-01 IR Laser"; class ItemInfo: InventoryFlashLightItem_Base_F { mass = 8; class Pointer { RMBhint = "Laser Pointer"; irLaserPos = "laser pos"; irLaserEnd = "laser dir"; irDistance = 5; }; class FlashLight{}; }; }; class FHQ_acc_LLM01F: ItemCore { scope = 2; displayName = "LLM-01"; descriptionUse = "Rheinmetall Laser-Licht-Modul 01<br/>Flashlight"; picture = "\FHQ_Accessories\LLM-01\gear_accv_llm01_ca.paa"; model = "\FHQ_Accessories\LLM-01\llm01.p3d"; descriptionShort = "LLM-01 Flashlight"; class ItemInfo: InventoryFlashLightItem_Base_F { RMBhint = "Flashlight"; class FlashLight { color[] = {1,0.9,0.8}; ambient[] = {0.001,0.001,0.001}; position = "flash dir"; direction = "flash"; size = 1; innerAngle = 50; outerAngle = 120; coneFadeCoef = 10; intensity = 100; useFlare = 1; dayLight = 1; FlareSize = 0.35; onlyInNvg = 0; class Attenuation { start = 0; constant = 2; linear = 1; quadratic = 75; }; scale[] = {0}; }; }; }; }; Share this post Link to post Share on other sites
[aps]gnat 28 Posted June 23, 2013 Whats the BinPBO log file say ? Share this post Link to post Share on other sites
tonnie 17 Posted June 23, 2013 Just says there's an error in the config.cpp Share this post Link to post Share on other sites
brad7 4 Posted June 23, 2013 I always get these errors when trying to pack its normally just a missing }; Just a question aswell from looking at your config - do you have a aug[f88] working in game? Share this post Link to post Share on other sites
da12thMonkey 1943 Posted June 23, 2013 (edited) Just says there's an error in the config.cpp If you open up the .log file that is created in the file location where you are telling BinPBO to compile the .pbo using notepad, it should give you more details of what the errors in your config are. The .log file will have the same name as the .pbo you're making, e.g if you're making an addon MyScope.pbo BinPbo should generate a MyScope.log file next to where the compiled .pbo is created. I'd suggest that the problem with your Elcan could be that one of the Optics modes is inheriting from a class called Iron Sight which is not previously defined in the config. Should be something like this instead: class OpticsModes { class Elcan { opticsID = 1; useModelOptics = 1; opticsPPEffects[] = {"OpticsCHAbera1","OpticsBlur1"}; opticsZoomMin = 0.0723; opticsZoomMax = 0.0723; opticsZoomInit = 0.0723; memoryPointCamera = "opticView"; visionMode[] = {"Normal"}; opticsFlare = 1; opticsDisablePeripherialVision = 1; distanceZoomMin = 300; distanceZoomMax = 300; cameraDir = ""; }; class Kollimator: Elcan { opticsID = 2; useModelOptics = 0; opticsPPEffects[] = {""}; opticsFlare = 0; opticsDisablePeripherialVision = 0; opticsZoomMin = 0.375; opticsZoomMax = 1.1; opticsZoomInit = 0.75; memoryPointCamera = "eye"; visionMode[] = {}; distanceZoomMin = 100; distanceZoomMax = 100; }; }; Edited June 23, 2013 by da12thMonkey Share this post Link to post Share on other sites
tonnie 17 Posted June 24, 2013 do you have a aug[f88] working in game? Yeah mate I have the F88a2, F88a1, F88Sa2 and the new F90 aug rifles Dathmonkey- thanks mate ill take a look tonight and see if it helps Share this post Link to post Share on other sites
brad7 4 Posted June 24, 2013 Yeah mate I have the F88a2, F88a1, F88Sa2 and the new F90 aug riflesDathmonkey- thanks mate ill take a look tonight and see if it helps Awesome do you plan to release them? Share this post Link to post Share on other sites