• 0
BetterDeadThanZed

Help me find the error in this file

Question

I've looked over this file over and over again. There's a missing , or }; or something else wrong with this code but I just can't find it. Perhaps a fresh pair of eyes can look this over and tell me if they see something missing, or maybe too many commas or SOMETHING?!

http://pastebin.com/JK4djDnQ

Share this post


Link to post
Share on other sites

7 answers to this question

  • 1

Hello Zed,

I pulled the text into NotePad++, using the 'count' feature:

{ = 118

} = 117

You do have an 'even' number of quotes, so, generally speaking, those should be right (odd = 1 missing as all items must have 2 quotes).

 

So at a minimum, it appears you are short 1 '}' brackets.  Where?

 

I THINK there is an editor that I have seen on ARMAholic which checks/looks for such errors.  It is not 'ATOM' (99% sure).  Sorry, I cannot think of its name!

I remember it saying it checks for SQS and SQF syntax of files.  It 'might' do the trick for ya!

:)

 

Share this post


Link to post
Share on other sites
  • 0

Hello there.

How this error sounds like?

Found only 1 place, looks wrong for me.

	class Community2
	{
		name = "Pistol Ammo";
		icon = "a3\ui_f\data\gui\Rsc\RscDisplayArsenal\uniform_ca.paa";

Should looks like.

	class Community2
	{
		name = "Pistol Ammo";
		icon = "a3\ui_f\data\gui\Rsc\RscDisplayArsenal\CargoMag_ca.paa";

 

Good luck.

Edited by exilerist

Share this post


Link to post
Share on other sites
Advertisement
  • 0

Yep.

This class.

Spoiler

	class SniperRifles
	{
		name = "Sniper Rifles";
		icon = "a3\ui_f\data\gui\Rsc\RscDisplayArsenal\itemacc_ca.paa";
		items[] = 
		{
			"arifle_MXM_Black_F",
			"arifle_MXM_F",
			"srifle_DMR_01_F",
			"srifle_DMR_02_camo_F",
			"srifle_DMR_02_F",
			"srifle_DMR_02_sniper_F",
			"srifle_DMR_03_F",
			"srifle_DMR_03_khaki_F",
			"srifle_DMR_03_multicam_F",
			"srifle_DMR_03_tan_F",
			"srifle_DMR_03_woodland_F",
			"srifle_DMR_04_F",
			"srifle_DMR_04_Tan_F",
			"srifle_DMR_05_blk_F",
			"srifle_DMR_05_hex_F",
			"srifle_DMR_05_tan_f",
			"srifle_DMR_06_camo_F",
			"srifle_DMR_06_olive_F",
			"srifle_EBR_F",
			"srifle_GM6_camo_F",
			"srifle_GM6_F",
			"srifle_LRR_camo_F",
			"srifle_LRR_F"
			//"Exile_Weapon_CZ550",
			//"Exile_Weapon_SVD",
			//"Exile_Weapon_SVDCamo",
			//"Exile_Weapon_VSSVintorez",
			//"Exile_Weapon_DMR",
			//"Exile_Weapon_LeeEnfield",
	};

 

 

Should looks like.

Spoiler

	class SniperRifles
	{
		name = "Sniper Rifles";
		icon = "a3\ui_f\data\gui\Rsc\RscDisplayArsenal\itemacc_ca.paa";
		items[] = 
		{
			"arifle_MXM_Black_F",
			"arifle_MXM_F",
			"srifle_DMR_01_F",
			"srifle_DMR_02_camo_F",
			"srifle_DMR_02_F",
			"srifle_DMR_02_sniper_F",
			"srifle_DMR_03_F",
			"srifle_DMR_03_khaki_F",
			"srifle_DMR_03_multicam_F",
			"srifle_DMR_03_tan_F",
			"srifle_DMR_03_woodland_F",
			"srifle_DMR_04_F",
			"srifle_DMR_04_Tan_F",
			"srifle_DMR_05_blk_F",
			"srifle_DMR_05_hex_F",
			"srifle_DMR_05_tan_f",
			"srifle_DMR_06_camo_F",
			"srifle_DMR_06_olive_F",
			"srifle_EBR_F",
			"srifle_GM6_camo_F",
			"srifle_GM6_F",
			"srifle_LRR_camo_F",
			"srifle_LRR_F"
			//"Exile_Weapon_CZ550",
			//"Exile_Weapon_SVD",
			//"Exile_Weapon_SVDCamo",
			//"Exile_Weapon_VSSVintorez",
			//"Exile_Weapon_DMR",
			//"Exile_Weapon_LeeEnfield",
		};
	};

 

 

Share this post


Link to post
Share on other sites
  • 0
36 minutes ago, exilerist said:

Hello there.

How this error sounds like?

Found only 1 place, looks wrong for me.


	class Community2
	{
		name = "Pistol Ammo";
		icon = "a3\ui_f\data\gui\Rsc\RscDisplayArsenal\uniform_ca.paa";

Should looks like.


	class Community2
	{
		name = "Pistol Ammo";
		icon = "a3\ui_f\data\gui\Rsc\RscDisplayArsenal\CargoMag_ca.paa";

 

Good luck.

That doesn't make a difference but thanks for looking.

15 minutes ago, Z80CPU said:

Hey Zed,

I used a NotePad++ plugin and it found it!  Woo hoo!

http://www.armaholic.com/page.php?id=8680

The problem is in the 'class SniperRifles'

You have 2 { but only 1 }!  You just need to add the 'closing }' and you'll be set!

And that's why sometimes I need a second pair of eyes. :) Thank you!

Share this post


Link to post
Share on other sites
  • 0

Ok so I have another problem related to this issue.

The new categories I've added aren't showing up in the traders. There's a blank line and no items when I click on it. For example, I have this:

	class ApexTools
	{
		name = "Apex Tools";
		icon = "a3\ui_f\data\gui\Rsc\RscDisplayArsenal\itemacc_ca.paa";
		items[] = 
		{
			"O_NVGoggles_hex_F",
			"O_NVGoggles_urb_F",
			"O_NVGoggles_ghex_F",
			"NVGoggles_tna_F"
		};
	};

In CfgTraders, I have this:

	class Exile_Trader_Hardware
	{
		name = "HARDWARE";
		showWeaponFilter = 0;
		categories[] = 
		{
			"Hardware",
			"Tools",
			"ApexTools"
		};
	};

Of course Hardware and Tools show up just fine, but where the ApexTools should be, it's blank. I've added CUP items in their own categories with success in the past, but this isn't working now. 

Share this post


Link to post
Share on other sites
Advertisement

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.