Home   Help Search Login Register  

Author Topic: 'this set be]#]'Error Set:Type Object,expected Array  (Read 1770 times)

0 Members and 1 Guest are viewing this topic.

Offline Chammy

  • Members
  • *
  • I'm a llama!
What does this mean?I was trying to add music into the intro of my mission and I get this.  Help?

Offline Mud_Spike

  • Contributing Member
  • **
Re:'this set be]#]'Error Set:Type Object,expected Array
« Reply #1 on: 29 Aug 2004, 12:44:19 »
There is a script/trigger/initfield somewhere with that text in it.
Could you paste the complete offending code?

It looks as if you have a syntax error; 'this set be]', the closing-bracket should either go away or be accompanied with an open-bracket (which will then require a second argument).


Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:'this set be]#]'Error Set:Type Object,expected Array
« Reply #2 on: 29 Aug 2004, 13:32:03 »
The # in an error message usually indicates where in the code the error has occurred.

Read error messages carefully:  they usually tell you what's gone wrong, though as you say they are not always easy to understand.   The first job is always to figure out which line of code is causing the problem.
Plenty of reviewed ArmA missions for you to play

DBR_ONIX

  • Guest
Re:'this set be]#]'Error Set:Type Object,expected Array
« Reply #3 on: 29 Aug 2004, 13:42:54 »
Yeah, somewhere there is the line "this set be"
Either it's in a init.sqs file, or somewhere in the mission.sqm file
If you post the mission.sqm file I could check though it and tell you where it is
- Ben

Offline Platoon Patton

  • Members
  • *
  • "Barbecue" CreateVehicle getpos LLama
Re:'this set be]#]'Error Set:Type Object,expected Array
« Reply #4 on: 29 Aug 2004, 14:18:26 »
 this set be]#]:Type object,expected string

I would think that be is an object,where set needs a string?
this set "be" ?

Or,

the ] is accidently written in the script:this setbehaviour ..... ? instead of this set be]haviour?
« Last Edit: 29 Aug 2004, 14:20:27 by Platoon Patton »
http://www.platoon-clan.com/ We always wellcome dedicated OFP players :)

http://www.european-combat-league.com/index.php To play with us in the best OFP league ;)

Offline Chammy

  • Members
  • *
  • I'm a llama!
Re:'this set be]#]'Error Set:Type Object,expected Array
« Reply #5 on: 29 Aug 2004, 21:49:10 »
OOoookayee, here it is, the mission file, heh heh.Gosh, I dont know how you guys figure out these, I would need a class on this.I'd hate to have to try and take out objects just to weed out the problem, I already took out the scripts I put in to make music and that they might not be right,all thats left is the missions sequence file.


version=11;
class Mission
{
   addOns[]=
   {
      "sebnam_vha",
      "sebnam_vh",
      "sebnam_wp",
      "sebnam_us",
      "sebnam_obj",
      "sebnam_a",
      "sebnam_nv",
      "sebnam_vc"
   };
   addOnsAuto[]=
   {
      "sebnam_vha",
      "sebnam_a",
      "sebnam_us",
      "sebnam_vc",
      "sebnam_nv",
      "sebnam_wp",
      "sebnam_obj"
   };
   randomSeed=1548803;
   class Intel
   {
   };
   class Groups
   {
      items=9;
      class Item0
      {
         side="WEST";
         class Vehicles
         {
            items=5;
            class Item0
            {
               position[]={6290.506836,29.319096,5800.126953};
               special="FLY";
               id=2;
               side="WEST";
               vehicle="sebuh_1a";
               leader=1;
               lock="UNLOCKED";
               rank="LIEUTNANT";
               skill=0.600000;
               health=0.812366;
               fuel=0.437098;
               ammo=0.400000;
               text="unitheli";
            };
            class Item1
            {
               position[]={6282.449219,29.060995,5804.365723};
               special="CARGO";
               id=22;
               side="WEST";
               vehicle="sebnam_acsoldier";
               lock="UNLOCKED";
               rank="LIEUTNANT";
               skill=0.600000;
            };
            class Item2
            {
               position[]={6287.686523,28.951834,5805.347656};
               special="CARGO";
               id=23;
               side="WEST";
               vehicle="sebnam_acsoldier";
               lock="UNLOCKED";
               rank="LIEUTNANT";
               skill=0.600000;
            };
            class Item3
            {
               position[]={6284.085938,28.879848,5806.656738};
               special="CARGO";
               id=24;
               side="WEST";
               vehicle="sebnam_acsoldiermg";
               lock="UNLOCKED";
               rank="LIEUTNANT";
               skill=0.600000;
            };
            class Item4
            {
               position[]={6283.099121,29.402451,5799.814941};
               azimut=180.000000;
               special="CARGO";
               id=32;
               side="WEST";
               vehicle="sebnamlrrpmg";
               player="PLAYER COMMANDER";
               skill=0.600000;
            };
         };
         class Waypoints
         {
            items=2;
            class Item0
            {
               position[]={6318.209961,21.200001,6082.353516};
               type="GETOUT";
               combat="SAFE";
               description="Hueylanding";
               class Effects
               {
               };
               showWP="NEVER";
            };
            class Item1
            {
               position[]={6341.488770,21.200001,6088.829590};
               class Effects
               {
               };
               showWP="NEVER";
            };
         };
      };
      class Item1
      {
         side="WEST";
         class Vehicles
         {
            items=1;
            class Item0
            {
               position[]={5772.208984,87.854271,5695.246582};
               azimut=185.000000;
               special="FLY";
               id=3;
               side="WEST";
               vehicle="sebah_1a";
               leader=1;
               rank="CORPORAL";
               skill=0.600000;
            };
         };
         class Waypoints
         {
            items=3;
            class Item0
            {
               position[]={6557.064941,21.132423,5881.298828};
               combatMode="GREEN";
               speed="NORMAL";
               combat="SAFE";
               class Effects
               {
               };
               showWP="NEVER";
            };
            class Item1
            {
               position[]={6565.697754,19.894802,6302.307129};
               class Effects
               {
               };
               showWP="NEVER";
            };
            class Item2
            {
               position[]={5840.074707,29.306873,6307.669434};
               type="CYCLE";
               class Effects
               {
               };
               showWP="NEVER";
            };
         };
      };
      class Item2
      {
         side="WEST";
         class Vehicles
         {
            items=3;
            class Item0
            {
               position[]={6291.991211,21.512470,6072.864258};
               azimut=105.000000;
               id=4;
               side="WEST";
               vehicle="sebnamsoldierwgl";
               leader=1;
               rank="SERGEANT";
               skill=0.466667;
            };
            class Item1
            {
               position[]={6289.577637,21.609501,6071.304199};
               azimut=105.000000;
               id=5;
               side="WEST";
               vehicle="sebnamsoldierwmg";
               rank="CORPORAL";
               skill=0.333333;
            };
            class Item2
            {
               position[]={6289.458008,21.612627,6072.298340};
               azimut=105.000000;
               id=6;
               side="WEST";
               vehicle="sebnamsoldierwm14";
               skill=0.200000;
            };
         };
         class Waypoints
         {
            items=2;
            class Item0
            {
               position[]={6388.570801,21.200001,6072.031250};
               combatMode="GREEN";
               speed="NORMAL";
               combat="CARELESS";
               class Effects
               {
               };
               showWP="NEVER";
            };
            class Item1
            {
               position[]={6277.594727,22.266460,6126.828613};
               class Effects
               {
               };
               showWP="NEVER";
            };
         };
      };
      class Item3
      {
         side="WEST";
         class Vehicles
         {
            items=2;
            class Item0
            {
               position[]={6320.727539,21.200001,6098.153809};
               azimut=95.000000;
               special="NONE";
               id=9;
               side="WEST";
               vehicle="sebnamsoldierwmortar";
               skill=0.700000;
            };
            class Item1
            {
               position[]={6321.197266,21.200001,6097.151367};
               azimut=270.000000;
               special="NONE";
               id=14;
               side="WEST";
               vehicle="sebnamsoldierwmortar";
               leader=1;
               rank="CORPORAL";
               skill=0.600000;
            };
         };
         class Waypoints
         {
            items=1;
            class Item0
            {
               position[]={6319.514160,21.200001,6097.275879};
               type="TALK";
               combatMode="GREEN";
               combat="SAFE";
               class Effects
               {
               };
               showWP="NEVER";
            };
         };
      };
      class Item4
      {
         side="WEST";
         class Vehicles
         {
            items=2;
            class Item0
            {
               position[]={6354.503418,21.200001,6095.827148};
               azimut=230.000000;
               special="NONE";
               id=11;
               side="WEST";
               vehicle="sebnamsoldierwmortar";
               leader=1;
               rank="CORPORAL";
               skill=0.600000;
            };
            class Item1
            {
               position[]={6353.097656,21.200001,6095.127930};
               azimut=45.000000;
               special="NONE";
               id=13;
               side="WEST";
               vehicle="sebnamsoldierwmortar";
               rank="CORPORAL";
               skill=0.600000;
            };
         };
         class Waypoints
         {
            items=2;
            class Item0
            {
               position[]={6353.877441,21.200001,6094.949219};
               type="TALK";
               combat="SAFE";
               class Effects
               {
               };
               showWP="NEVER";
            };
            class Item1
            {
               position[]={6353.557129,21.200001,6095.173828};
               class Effects
               {
               };
               showWP="NEVER";
            };
         };
      };
      class Item5
      {
         side="WEST";
         class Vehicles
         {
            items=1;
            class Item0
            {
               position[]={6316.954102,21.200001,6095.583496};
               azimut=270.000000;
               special="NONE";
               id=10;
               side="WEST";
               vehicle="sebnamsoldierwmortar";
               leader=1;
               skill=0.700000;
               init="this set be";
            };
         };
         class Waypoints
         {
            items=1;
            class Item0
            {
               position[]={6317.224121,21.200001,6094.798340};
               expActiv="this setbehaviour ""SAFE""; this switchmove""EffectStandSitDown""";
               class Effects
               {
               };
               showWP="NEVER";
            };
         };
      };
      class Item6
      {
         side="WEST";
         class Vehicles
         {
            items=1;
            class Item0
            {
               position[]={6352.805176,21.200001,6097.436523};
               azimut=200.000000;
               special="NONE";
               id=12;
               side="WEST";
               vehicle="sebnamsoldierwmortar";
               leader=1;
               rank="CORPORAL";
               skill=0.600000;
            };
         };
         class Waypoints
         {
            items=1;
            class Item0
            {
               position[]={6352.437500,21.200001,6097.381348};
               expActiv="this setbehaviour ""SAFE""; this switchmove""effectstandsitdown""";
               class Effects
               {
               };
               showWP="NEVER";
            };
         };
      };
      class Item7
      {
         side="EAST";
         class Vehicles
         {
            items=4;
            class Item0
            {
               position[]={7121.835449,21.305969,6080.068359};
               azimut=270.000000;
               id=58;
               side="EAST";
               vehicle="sebnam_vcrecon";
               leader=1;
               rank="SERGEANT";
               skill=0.466667;
            };
            class Item1
            {
               position[]={7124.835449,21.382870,6074.068359};
               azimut=270.000000;
               id=59;
               side="EAST";
               vehicle="sebnam_vcrecon";
               rank="CORPORAL";
               skill=0.333333;
            };
            class Item2
            {
               position[]={7124.835449,21.326677,6077.068359};
               azimut=270.000000;
               id=60;
               side="EAST";
               vehicle="sebnam_vcrecon";
               skill=0.200000;
            };
            class Item3
            {
               position[]={7124.835449,21.200851,6083.068359};
               azimut=270.000000;
               id=61;
               side="EAST";
               vehicle="sebnam_vcrecon";
               skill=0.200000;
            };
         };
      };
      class Item8
      {
         side="EAST";
         class Vehicles
         {
            items=9;
            class Item0
            {
               position[]={7154.615723,20.748447,6086.109863};
               azimut=230.000000;
               id=62;
               side="EAST";
               vehicle="sebnam_vcofficer";
               leader=1;
               rank="SERGEANT";
               skill=0.466667;
            };
            class Item1
            {
               position[]={7164.627441,20.825542,6078.845703};
               azimut=230.000000;
               id=63;
               side="EAST";
               vehicle="sebnam_vcsoldier4";
               rank="CORPORAL";
               skill=0.333333;
            };
            class Item2
            {
               position[]={7162.698730,20.803539,6081.144043};
               azimut=230.000000;
               id=64;
               side="EAST";
               vehicle="sebnam_vcmg";
               rank="CORPORAL";
               skill=0.333333;
            };
            class Item3
            {
               position[]={7160.770508,20.768660,6083.441895};
               azimut=230.000000;
               id=65;
               side="EAST";
               vehicle="sebnam_vcrpg";
               rank="CORPORAL";
               skill=0.333333;
            };
            class Item4
            {
               position[]={7158.842285,20.732292,6085.740234};
               azimut=230.000000;
               id=66;
               side="EAST";
               vehicle="sebnam_vcmedic";
               rank="CORPORAL";
               skill=0.333333;
            };
            class Item5
            {
               position[]={7154.985352,20.657509,6090.336426};
               azimut=230.000000;
               id=67;
               side="EAST";
               vehicle="sebnam_vcsoldier3";
               skill=0.200000;
            };
            class Item6
            {
               position[]={7153.057129,20.619469,6092.634277};
               azimut=230.000000;
               id=68;
               side="EAST";
               vehicle="sebnam_vcsoldier";
               skill=0.200000;
            };
            class Item7
            {
               position[]={7151.128906,20.581425,6094.932617};
               azimut=230.000000;
               id=69;
               side="EAST";
               vehicle="sebnam_vcsoldier2";
               skill=0.200000;
            };
            class Item8
            {
               position[]={7149.200195,20.548559,6097.230957};
               azimut=230.000000;
               id=70;
               side="EAST";
               vehicle="sebnam_vcsoldier3";
               skill=0.200000;
            };
         };
      };
   };
   class Vehicles
   {
      items=43;
      class Item0
      {
         position[]={6337.694336,21.225367,6102.251953};
         id=0;
         side="EMPTY";
         vehicle="Camp";
         skill=0.600000;
      };
      class Item1
      {
         position[]={6361.470215,21.200001,6077.238281};
         id=1;
         side="EMPTY";
         vehicle="sebuh_1gs";
         skill=0.600000;
      };
      class Item2
      {
         position[]={6316.839355,21.200001,6096.970703};
         azimut=275.000000;
         special="NONE";
         id=7;
         side="EMPTY";
         vehicle="seb60mortarnva";
         leader=1;
         skill=0.600000;
      };
      class Item3
      {
         position[]={6355.542969,21.200001,6096.094727};
         azimut=95.000000;
         special="NONE";
         id=8;
         side="EMPTY";
         vehicle="seb60mortarusmc";
         leader=1;
         skill=0.600000;
      };
      class Item4
      {
         position[]={6352.188477,21.200001,6098.616211};
         azimut=270.000000;
         special="NONE";
         id=15;
         side="EMPTY";
         vehicle="sebAmmoBoxW";
         leader=1;
         skill=0.600000;
      };
      class Item5
      {
         position[]={6333.474121,21.266329,6101.177246};
         azimut=270.000000;
         special="NONE";
         id=16;
         side="EMPTY";
         vehicle="sebammocrateW";
         leader=1;
         skill=0.600000;
      };
      class Item6
      {
         position[]={6319.870117,21.200001,6094.266113};
         azimut=270.000000;
         special="NONE";
         id=17;
         side="EMPTY";
         vehicle="sebAmmoBoxW";
         leader=1;
         skill=0.600000;
      };
      class Item7
      {
         position[]={6342.032715,21.200001,6096.805176};
         azimut=270.000000;
         special="NONE";
         id=18;
         side="EMPTY";
         vehicle="sebvtrailpath25";
         leader=1;
         skill=0.600000;
      };
      class Item8
      {
         position[]={6351.809082,21.200001,6096.863281};
         azimut=270.000000;
         special="NONE";
         id=19;
         side="EMPTY";
         vehicle="sebvtrailpath12";
         leader=1;
         skill=0.600000;
      };
      class Item9
      {
         position[]={6352.795410,21.200001,6096.431641};
         azimut=25.000000;
         id=20;
         side="EMPTY";
         vehicle="Fire";
         leader=1;
         skill=0.600000;
      };
      class Item10
      {
         position[]={6318.688477,21.200001,6081.160645};
         special="FLY";
         id=21;
         side="EMPTY";
         vehicle="HeliHEmpty";
         leader=1;
         lock="UNLOCKED";
         skill=0.600000;
      };
      class Item11
      {
         position[]={6329.703613,21.385523,6102.332031};
         azimut=180.000000;
         id=25;
         side="EMPTY";
         vehicle="CampEmpty";
         leader=1;
         skill=0.600000;
      };
      class Item12
      {
         position[]={6333.531738,21.417038,6103.852051};
         azimut=270.000000;
         special="NONE";
         id=26;
         side="EMPTY";
         vehicle="sebammocrateW";
         leader=1;
         skill=0.600000;
      };
      class Item13
      {
         position[]={6337.496094,21.200001,6067.275879};
         azimut=180.000000;
         special="NONE";
         id=27;
         side="EMPTY";
         vehicle="WireFence";
         leader=1;
         skill=0.600000;
      };
      class Item14
      {
         position[]={6324.072266,21.200001,6096.354980};
         special="NONE";
         id=28;
         side="EMPTY";
         vehicle="FenceWood";
         leader=1;
         skill=0.600000;
      };
      class Item15
      {
         position[]={6348.384766,21.200001,6096.128418};
         azimut=5.000000;
         special="NONE";
         id=29;
         side="EMPTY";
         vehicle="FenceWood";
         leader=1;
         skill=0.600000;
      };
      class Item16
      {
         position[]={6345.517090,21.200001,6067.134277};
         azimut=180.000000;
         special="NONE";
         id=30;
         side="EMPTY";
        

Offline Chammy

  • Members
  • *
  • I'm a llama!
Re:'this set be]#]'Error Set:Type Object,expected Array
« Reply #6 on: 29 Aug 2004, 21:52:15 »
Well the brackets, I'm not sure if they are brackets, I tried looking for the type on the keyboard and couldnt find striaght brackets so i used these.]]

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:'this set be]#]'Error Set:Type Object,expected Array
« Reply #7 on: 29 Aug 2004, 21:59:08 »
Your mission.sqm is incomplete........are you sure that is all of it?

Use '[' for arrays

EDIT:  the words 'this', 'set' and 'be' do not appear in the mission.sqm that you posted.

EDIT2:  That was strange..........after seeing ACF's post I searched again and this time Notepad found it.  The first time I asked it to look it reported no instances of the words 'this set be'



Planck
« Last Edit: 29 Aug 2004, 22:08:03 by Planck »
I know a little about a lot, and a lot about a little.

Offline ACF

  • Members
  • *
  • Llama?? Ain't that French for tanks?
Re:'this set be]#]'Error Set:Type Object,expected Array
« Reply #8 on: 29 Aug 2004, 22:01:02 »
It was enough!

It's a truncated init command here:

      class Item5
      {
         side="WEST";
         class Vehicles
         {
            items=1;
            class Item0
            {
               position[]={6316.954102,21.200001,6095.583496};
               azimut=270.000000;
               special="NONE";
               id=10;
               side="WEST";
               vehicle="sebnamsoldierwmortar";
               leader=1;
               skill=0.700000;
               init="this set be";
            };
         };
         class Waypoints
         {
            items=1;
            class Item0
            {
               position[]={6317.224121,21.200001,6094.798340};
               expActiv="this setbehaviour ""SAFE""; this switchmove""EffectStandSitDown""";
               class Effects
               {
               };
               showWP="NEVER";
            };
         };
      };

Just did an Edit > Find on:

this set be

 . . . had no intention of picking through it!  To fix, in your text editor just delete the line or change it to:

init = ""

and that should do it.
« Last Edit: 29 Aug 2004, 22:02:46 by ACF »

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:'this set be]#]'Error Set:Type Object,expected Array
« Reply #9 on: 29 Aug 2004, 22:04:33 »
In OFP scripting language square brackets [], curly brackets {}, pointy brackets <> and ordinary brackets () all have different meanings.   If you use the wrong kind your code won't work.  

The error has nothing to do with you trying to add music.   What were you trying to do when you wrote the now-famous "this set be["?      Or was it the cat exploring the keyboard?

If you're having trouble with sound read Bloodmixer's tutorial.
« Last Edit: 29 Aug 2004, 22:07:01 by macguba »
Plenty of reviewed ArmA missions for you to play

Offline Chammy

  • Members
  • *
  • I'm a llama!
Re:'this set be]#]'Error Set:Type Object,expected Array
« Reply #10 on: 30 Aug 2004, 01:39:48 »
AAAahhhh, now I remember.I was trying to get that soldier to sit down and do something , and some other soldiers to appear talking to each other.  That soldier is sitting on top of a sand bag fence on the mortar pit.

Bloodmixer? Hmmm, I'm going to take a look at that. Thanks guys.I will report later.

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:'this set be]#]'Error Set:Type Object,expected Array
« Reply #11 on: 30 Aug 2004, 10:16:38 »
Ah, you were probably starting to try and write

this setBehaviour "safe"; this playMove "effectStandSitDown"

or something
Plenty of reviewed ArmA missions for you to play

DBR_ONIX

  • Guest
Re:'this set be]#]'Error Set:Type Object,expected Array
« Reply #12 on: 30 Aug 2004, 18:21:04 »
Yeah, thers a SEBNam Mortar Soldier somewhere with that in his INIT
Thats your prob..
It's weird how it let you press okay (I'm sure if you typed something wrong it will point it out, and won't let you press okay till you sort it
Anyway, thats your problem
- Ben

Offline Chammy

  • Members
  • *
  • I'm a llama!
Re:'this set be]#]'Error Set:Type Object,expected Array
« Reply #13 on: 01 Sep 2004, 08:22:57 »
Yup, that was the problem.That little booger,i straightened him good.

Yup, I did put a command but I didnt finnish it.You guys are good.Thnx