Jump to content
Sign in to follow this  
SGT Fuller

Config.bin error

Recommended Posts

im not sure why i keep getting this config.bin error when i fire the weapon

#include "basicdefines.h"
#define weaponName1			"AGM-154A BLU-97/B"
#define weaponName2			"AGM-154A-1 BLU-111"
class CfgPatches {
class USAF_AGM154 {
	units[] = {};
	weapons[] = {"USAF_AGM154A1_Launcher","USAF_AGM154A_Launcher"};
	requiredVersion = 1.54;
	requiredAddons[] = {"USAF_Missilebox"};
};
};
class cfgAmmo {
class USAF_MissileBase_AGM;
class USAF_AGM154A1_LGB : USAF_MissileBase_AGM {
	model = "\USAF_missilebox\USAF_AGM154\USAF_AGM154rel.p3d";
	proxyShape = "\USAF_missilebox\USAF_AGM154\USAF_AGM154.p3d";
	hit = 99999;
	indirectHit = 99999;
	indirectHitRange = 15;
	maxSpeed = 10;	
	airFriction = 0.078;
	sideAirFriction = 0.2;
	maneuvrability = 10;
	simulationStep = 0.002;
	airLock = 1;
	irLock = 1; 
	laserLock = 1;
	nvLock = 0;
	missileLockCone = 150;
	artilleryLock = 0; 
	lockType = 0;
	trackOversteer = 1;
	trackLead = 1;
	cost = 1000;
	timeToLive = 20;
	initTime = 0.9;
	thrustTime = 30.5;
	thrust = 100;
	fuseDistance = 50;
	CraterEffects = "BombCrater";
	explosionEffects = "BombExplosion";
	effectsMissileInit = "";
	effectsMissile = "";
};
class USAF_AGM154A_LGB:USAF_AGM154A1_LGB{
	hit = 100;
	indirecthit = 10;
	indirectHitRange = 5;
};
};
class cfgMagazines {
class USAF_MagazineBase_LGB;
class USAF_1Rnd_AGM154A1 : USAF_MagazineBase_LGB {
	scope = public;
	ammo = "USAF_AGM154A1_LGB";
	displayName = weaponName1;
	count = 1;
};
class USAF_1Rnd_AGM154A: USAF_1Rnd_AGM154A1 {
	ammo = "USAF_AGM154A_LGB";
	displayName = weaponName2;
};
};
class cfgWeapons {
class USAF_BombLauncherBase;
class USAF_AGM154A1_Launcher: USAF_BombLauncherBase {
	scope = public;
	canLock = 2;
	autoFire = 0;
	aiRateOfFire = 5;
	aiRateOfFireDistance = 500;
	displayName = weaponName1;
	minRange = 50;
	minRangeProbab = 0.6;
	midRange = 6000;
	midRangeProbab = 0.9;
	maxRange = 15000;
	maxRangeProbab = 0.1;
	reloadTime = 1;
	magazines[] = {"USAF_1Rnd_AGM154A1"};
	USAF_isGPSguided = true;
};
class USAF_AGM154A_Launcher: USAF_AGM154A1_Launcher{
	displayName = weaponName1;
	magazines[] = {"USAF_1Rnd_AGM154A"};
};
};
class CfgVehicles {
class USAF_editorMissileObjects;
class USAF_AGM154: USAF_editorMissileObjects {
	scope = 2;
	icon = "\USAF_missilebox\USAF_AGM154\icon\AGM154_ico.paa";
	mapSize = 4.1;
	displayName = "AGM-154";
	model = "\USAF_missilebox\USAF_AGM154\USAF_AGM154.p3d";
	doLift = 0.444;
	infoStand = "\USAF_missilebox\infopic\agm154_info.paa";
	class damage {
		tex[] = {};
		mat[] = {
			"USAF_missilebox\USAF_AGM154\rvmat\agm154.rvmat",
			"USAF_missilebox\USAF_AGM154\rvmat\agm154.rvmat",
			"USAF_missilebox\USAF_AGM154\rvmat\agm154destr.rvmat"
		};
	};
};
};
class CfgNonAIVehicles {
class ProxyWeapon;
class ProxyUSAF_AGM154: ProxyWeapon {
	model = "\USAF_missilebox\USAF_AGM154\USAF_AGM154.p3d";
	simulation ="maverickweapon";
};
};

class USAF_JSOW {
class LightJSOW {
	simulation = "light";
	type = "RocketLight";
	position[] = {0, 0, 0};
	intensity = 0;
	interval = 0;
	lifeTime = 0;
};

class USAF_MissileJSOW {
	simulation = "particles";
	type = "USAF_MissileSmall";
	position[] = {0, 0, 0};
	intensity = 0;
	interval = 0;
	lifeTime = 0;
};
class MissileFire {
	simulation = "particles";
	type = "MissileFire";
	position[] = {0, 0, 0};
	intensity = 0;
	interval = 0;
	lifeTime = 0;
};
};


/*class cfgIAWSweapons {
class default;
class USAF_1Rnd_AGM154A1: default {
	scope = 1;
	displayName = weaponName1;
	weaponClass = "USAF_AGM154A1_Launcher";
	type = "AG";
	uipicture = "\USAF_missilebox\iaws_pics\agm154_iaws_ca.paa";
	length = 4.1;
	width = 0.519;
	diameter = 0.406;
	weight = 497;
	allowWingtip = false;
	canLock = 2; 
	reloadTime=0.05;
	weaponLockDelay = 1.0;
	burst=1;
	autofire=0;
	cmImmunity = 1.0;
	cursorSize = 1;
	cursorAim = "EmptyCursor";
	cursor = "EmptyCursor";
	minRange = 100;
	minRangeProbab = 0.025;
	midRange = 2500;
	midRangeProbab = 0.09;
	maxRange = 15000;
	maxRangeProbab = 0.01;
	magazineReloadTime = 0.1;
	//added with 1.24 Bootcamp game patch
	sounds[] = {"StandardSound"};

	class StandardSound 
	{
		begin1[] = {"A3\Sounds_F\weapons\Rockets\missile_2", 1.12202, 1.3, 1000};
		soundBegin[] = {"begin1", 1};
		weaponSoundEffect = "DefaultRifle";
	};
	soundFly[] = {"A3\Sounds_F\weapons\Rockets\rocket_fly_1", db0, 1.5, 700};
	lockingTargetSound[] = {"\A3\Sounds_F\weapons\Rockets\locked_1", 0.316228, 1};
	lockedTargetSound[] = {"\A3\Sounds_F\weapons\Rockets\locked_3", 0.316228, 2.5};
	weaponLockSystem = 1 + 2 + 16 + 4 +8;
	displayNameMagazine = "AGM-154 JSOW";
	shortNameMagazine = "AGM154";
	aiRateOfFire = 5.0;
	aiRateOfFireDistance = 4000;
	textureType = "semi";
	usedBy[] = {australia,canada,greece,finland,poland,singapore,turkey,unitedstates,netherlands};
};
class USAF_1Rnd_AGM154A: USAF_1Rnd_AGM154A1 {
	displayName = weaponName2;
	weaponClass = "USAF_AGM154A_Launcher";
};
};/*

Share this post


Link to post
Share on other sites

On the very last line of the config there is a "/*". You may be missing a brace or two as well, not too sure.

Share this post


Link to post
Share on other sites

And have you tried removing the "/*"?

The only thing you should have at the end of your config file is "};" Anything after that will cause an error

Share this post


Link to post
Share on other sites

Config looks good. remove the "/*" (the slash mark and the astric at the bottom of the config) and your problem should be solved ;)

Share this post


Link to post
Share on other sites

i took the /* off and still get config. bin

21:03:50 No owner

21:03:52 No owner

21:04:30 Warning Message: No entry 'bin\config.bin.'.

21:07:12 No owner

21:07:14 No owner

I dont know where this stuff is coming from..

Edited by fullerpj

Share this post


Link to post
Share on other sites

Have you checked the error log? It tells you which line has the error.

Also if you're not already id recommend using Notepad++ for your config files. Makes it easier to see issues including correct bracketing

Share this post


Link to post
Share on other sites
Have you checked the error log? It tells you which line has the error.

Also if you're not already id recommend using Notepad++ for your config files. Makes it easier to see issues including correct bracketing

Yes sir using notepad+++ and the rpt doesn't tell me the line..what you see above is what I get..all the time when I fire the 154..never before hand or anything

Share this post


Link to post
Share on other sites
Fixed i found the issue thanks guys

Would you be kind enough to share the solution with the community ?

Share this post


Link to post
Share on other sites

Yes please let everyone know in case others come across a similar issue. I didnt get chance to reply sooner but I was going to say that addon builder should be producing an error log. This is the easiest way to locate issues in your config file.

Share this post


Link to post
Share on other sites

effectsMissileInit = "";

effectsMissile = "";

i just // the effectsmissile

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  

×