Jump to content

Recommended Posts

Hi all

I am getting a missing bracket error but I'm not seeing my error. Can I get a second look please?

 

value="[[[[""arifle_MX_SW_Black_F"",""arifle_MX_SW_Black_Hamr_pointer_F""],[1,1]],[[""30Rnd_65x39_caseless_mag_Tracer"",""APERSMine_Range_Mag"",""APERSTripMine_Wire_Mag"",[12,1,4,1]],[[""optic_DMS"",""Laserdesignator_01_khk_F"",""optic_LRPS""],[1,1,1,1]],[[],[]]],false]";

 

Thanks a lot.

Share this post


Link to post
Share on other sites

Looks like there's an extra bracket at the beginning - should be three, not four?

Share this post


Link to post
Share on other sites

@Harzach is right.  Tip:  Drop that line of code into NotePad++, and put your cursor next to a bracket.  The bracket is highlighted and its other bracket in the pair of open/close brackets is also highlighted.  Keep doing that until you find a bracke that is not highlighted, and then you have found the bracket that is not part of a pair.

 

 

  • Like 1
  • Thanks 1

Share this post


Link to post
Share on other sites

Yup, N++ makes it easy to break down those bracket-filled lines for error-checking. There are also a few SQF plugins/language XMLs you can install that will do syntax highlighting/autocomplete/etc. Very handy stuff.

Share this post


Link to post
Share on other sites
1 hour ago, Harzach said:

Yup, N++ makes it easy to break down those bracket-filled lines for error-checking. There are also a few SQF plugins/language XMLs you can install that will do syntax highlighting/autocomplete/etc. Very handy stuff.

If you really want to step up your game take a look into poseidon.

The features are nuts.

Can't beat it for arma specific scripting.

 

Cheers

  • Like 1
  • Thanks 1

Share this post


Link to post
Share on other sites

For some reason, I thought Poseidon was payware. Thanks, @Grumpy Old Man!

 

*edit* - Ah, it is payware. Still, probably worth it.

Share this post


Link to post
Share on other sites
59 minutes ago, Harzach said:

For some reason, I thought Poseidon was payware. Thanks, @Grumpy Old Man!

 

*edit* - Ah, it is payware. Still, probably worth it.

It's actually sublime text, which is free for use.

You just get a reminder if you want to purchase it upon continued use, once in a while at a very low frequency. Barely notice it.

 

Cheers

  • Like 2

Share this post


Link to post
Share on other sites

Don't ever answer that requester saying you will pay for it. It is quite expensive!

Share this post


Link to post
Share on other sites

What is this?

 

 8:31:28 Reading cached action map data
 8:31:33 Extreme texture size (32767x65535)
 8:31:33 Texture init failed.

 

found it buried in the .rpt

Share this post


Link to post
Share on other sites
29 minutes ago, pvt. partz said:

What is this?

 

 8:31:28 Reading cached action map data
 8:31:33 Extreme texture size (32767x65535)
 8:31:33 Texture init failed.

 

found it buried in the .rpt

Are you trying to put some adult HD textures on a billboard?

:yay:

 

Cheers

  • Haha 1

Share this post


Link to post
Share on other sites
On 2/22/2018 at 8:40 PM, johnnyboy said:

@Harzach is right.  Tip:  Drop that line of code into NotePad++, and put your cursor next to a bracket.  The bracket is highlighted and its other bracket in the pair of open/close brackets is also highlighted.  Keep doing that until you find a bracke that is not highlighted, and then you have found the bracket that is not part of a pair.

 

 

 

How (after 5+ years) did I never pick up on this??

Share this post


Link to post
Share on other sites
Quote

Are you trying to put some adult HD textures on a billboard?

Who me?!? but no. I have been adding a lot of tracks/halodrops/some fastropes etc but all from Arma default. The only mod I am using is GMT's Cessna planes. (oversized texture maybe?)

 

and back to my OP:

 

I did find that I had too many brackets as per the solutions given BUT, after removing it, I am getting other errors now which makes me think that since I didn't get a match when I tried johnnyboys method, I am questioning whether I might NEED another bracket. Here are the errors:

 

 9:38:22 Error in expression <],[["FirstAidKit",[1,1]],[[],[]]],false]>
 9:38:22   Error position: <>
 9:38:22   Error Missing ]
 9:38:22 Error in expression <],[["FirstAidKit",[1,1]],[[],[]]],false]>
 9:38:22   Error position: <>
 9:38:22   Error Missing ]
 9:38:22 Error in expression <"optic_LRPS"],[1,1,1,1]],[[],[]]],false]>
 9:38:22   Error position: <>
 9:38:22   Error Missing ]
 9:38:22 Error in expression <"optic_LRPS"],[1,1,1,1]],[[],[]]],false]>
 9:38:22   Error position: <>
 9:38:22   Error Missing ]

 

Here is the mission.sqm and I really appreciate the help

 

https://www.dropbox.com/s/li06re20gd6j8w3/mission.sqm?dl=0

 

 

Share this post


Link to post
Share on other sites
1 hour ago, pvt. partz said:

I did find that I had too many brackets as per the solutions given BUT, after removing it, I am getting other errors now which makes me think that since I didn't get a match when I tried johnnyboys method, I am questioning whether I might NEED another bracket. Here are the errors:

Just because every bracket has a mate, doesn't mean you have formatted a call properly.  You could try removing items, triggers, units, one-by-one until the error goes away.  You will then know which object or trigger or whatever is causing it.   Process of elimination.  Good luck.

Share this post


Link to post
Share on other sites

Sometimes, context is everything. You want to add a specific cargo loadout to a vehicle. I'm not sure where you got the process you are using, but try simply pasting this into the init field of the vehicle:

[this, [[ 
[[],[]], 
[["30Rnd_45ACP_Mag_SMG_01","30Rnd_9x21_Mag"],[6,6]], 
[["FirstAidKit","optic_Aco","optic_ACO_grn","O_NVGoggles_hex_F"],[6,3,3,3]], 
[[],[]] 
],false]] call bis_fnc_initAmmoBox;

 

Share this post


Link to post
Share on other sites
2 hours ago, froggyluv said:

How (after 5+ years) did I never pick up on this??

That's what separates amphibians from higher life forms bro.  :grinning:

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

×