Jump to content

mole

Member
  • Posts

    8
  • Joined

  • Last visited

Posts posted by mole

  1. @EIDubya.  First of all thanks for responding.  I fixed this error based off of your input.  

     

    For the record I did search the forums trying to figure this out.  It should have been plain for me to see, and I feel stupid for not seeing it myself.  I don't post on these forums unless I am at a point of spending more than several days being stuck on something.    

     

  2. Ever since I installed Plot4life and Vectors I get this error below.  Basically it causes the inventory in the server safes to get wiped on restart.

     

    Error in expression <{
     
    _object setVariable ["WeaponCargo", (_intentory select 0),true];
    _object setV>
    Error position: <_intentory select 0),true];
    _object setV>
    Error Undefined variable in expression: _intentory
    File Custom\system\server_monitor.sqf, line 259
     
    If anyone has any ideas on what would be causing this, I would greatly appreciate it.
     
     
     
  3. I finally figured it out and will write it here so others like me might avoid long hours of pulling hair.  The problem was in the server_monitor.sqf.  When installing vectors after installing A Plot for Life 2.5 the directions in vectors states:

    "Start by opening your **server_monitor.sqf**(Remove anything done from P4L installation) which is located in the system folder and find the following code block"

     

    The problem with this statement is there is code that was put in by A Plot for Life that is needed: 


     

    if ((typeName (_worldspace select 0)) == "STRING") then {

        _worldspace set [0, call compile (_worldspace select 0)];
        _worldspace set [1, call compile (_worldspace select 1)];};
     
    It should look like this: 
    _pos = [0,0,0];
    _wsDone = false;
    if (count _worldspace >= 2) then
    {
         if ((typeName (_worldspace select 0)) == "STRING") then {
             _worldspace set [0, call compile (_worldspace select 0)];
             _worldspace set [1, call compile (_worldspace select 1)];
         };
         _dir = _worldspace select 0;
         if (count (_worldspace select 1) == 3) then {
              _pos = _worldspace select 1;
              _wsDone = true;
         }
    };
    So it should not be said to disregard everything done by A Plot for Life, because if you do that part of the code will be left out and you will get the error I described above.  If you use the server_monitor.sqf file provided by A Plot for Life then be careful when you see the instructions: 
     
    Once that is complete, find this next line:
    ```
    _object setVariable ["ObjectID", _idKey, true];
    ```
    And place the following after it:
    ```
    _object setVariable ["ownerPUID", _ownerPUID, true];
    ```
     
    That line is already in the script so if you are not paying attention you will apply the same line twice.

  4. I finally figured it out and will write it here so others like me might avoid long hours of pulling hair.  The problem was in the server_monitor.sqf.  When installing vectors after installing A Plot for Life 2.5 the directions in vectors states:

    "Start by opening your **server_monitor.sqf**(Remove anything done from P4L installation) which is located in the system folder and find the following code block"

     

    The problem with this statement is there is code that was put in by A Plot for Life that is needed: 

    if ((typeName (_worldspace select 0)) == "STRING") then {

        _worldspace set [0, call compile (_worldspace select 0)];
        _worldspace set [1, call compile (_worldspace select 1)];};
     
    It should look like this: 
    _pos = [0,0,0];
    _wsDone = false;
    if (count _worldspace >= 2) then
    {
         if ((typeName (_worldspace select 0)) == "STRING") then {
             _worldspace set [0, call compile (_worldspace select 0)];
             _worldspace set [1, call compile (_worldspace select 1)];
         };
         _dir = _worldspace select 0;
         if (count (_worldspace select 1) == 3) then {
              _pos = _worldspace select 1;
              _wsDone = true;
         }
    };
    So it should not be said to disregard everything done by A Plot for Life, because if you do that part of the code will be left out and you will get the error I described above.  If you use the server_monitor.sqf file provided by A Plot for Life then be careful when you see the instructions: 
     
    Once that is complete, find this next line:
    ```
    _object setVariable ["ObjectID", _idKey, true];
    ```
    And place the following after it:
    ```
    _object setVariable ["ownerPUID", _ownerPUID, true];
    ```
     
    That line is already in the script so if you are not paying attention you will apply the same line twice.

  5. In an effort to insure there could be no conflicts with my above problem. I stripped my server down to no mods except for the ones listed above, and after the redo I get the same error and problem!  The server runs fine with just A Plot for Life, but breaks after I add Vectors and build something then restart the server.  The only things in the object_data table are the items I build for testing.  I am sure I am not the only person that has run into this problem!

  6. In an effort to insure there could be no conflicts with my above problem. I stripped my server down to no mods except for the ones listed above, and after the redo I get the same error and problem!  The server runs fine with just A Plot for Life, but breaks after I add Vectors and build something then restart the server.  The only things in the object_data table are the items I build for testing.  I am sure I am not the only person that has run into this problem!

  7. I have this error: Error in expression <then

    {
    _dir = _worldspace select 0;
    if (count (_worldspace select 1) == 3) then >
     2:33:36   Error position: <count (_worldspace select 1) == 3) then >
     2:33:36   Error count: Type String, expected Array,Config entry
     2:33:36 File custom\system\server_monitor.sqf, line 105
     
    This is a test server so I am not adding anything new. If I wipe the object_data table the server will restart fine, but as soon as I build anything and restart the server I get the above error.  I am not importing anything from an old server, just simply building something new.  
     
    My installed scripts are A Plot for Life 2.5 which includes Precise Base Building and Snap-Pro.  I also have Vectors installed.   
    This is an example of what an object in world space looks like:
    ["355.169647","10999.567383,17277.123047,1.0469246]","76561197960443125",[[-0.084,0.996,0],[0,0,1]]]
     
    I really need help with this as I have been digging for an answer and can't find one.
  8. I have the same error: Error in expression <then

    {
    _dir = _worldspace select 0;
    if (count (_worldspace select 1) == 3) then >
     2:33:36   Error position: <count (_worldspace select 1) == 3) then >
     2:33:36   Error count: Type String, expected Array,Config entry
     2:33:36 File custom\system\server_monitor.sqf, line 105
     
    This is a test server so I am not adding anything new. Like above if I wipe the object_data table the server will restart fine, but as soon as I build anything and restart the server I get the above error.  I am not importing anything from an old server, just simply building something new.  
     
    My installed scripts are A Plot for Life 2.5 which includes Precise Base Building and Snap-Pro.  I also have Vectors installed.   
    This is an example of what an object in world space looks like:
    ["355.169647","10999.567383,17277.123047,1.0469246]","76561197960443125",[[-0.084,0.996,0],[0,0,1]]]
     
    As said above the this object has the the vectors and snap attributed to it.  
     
    I really need help with this as I have dug around a lot trying to get an answer to this.
×
×
  • Create New...