Jump to content

[Release] 2.1 Plot Management - UPDATED Object Counter


Zupa

Recommended Posts

  • 2 weeks later...

Hey guys. After like a week and a half of trying to get Plot for Life and Plot Management working together without having to redo the whole server, everything works fine.
 
But, I noticed in my RPT that there was a shit load of spam about an undefined variable (_intentory).. now, everything still  works just fine but I'd like to get rid of the RPT spam  if possible and see why it's spamming.
 
Does anyone have any insight?

 

private ["_nul","_result","_pos","_wsDone","_dir","_isOK","_countr","_objWpnTypes","_objWpnQty","_dam","_selection","_totalvehicles","_object","_idKey","_type","_ownerID","_worldspace","_inventory","_hitPoints","_fuel","_damage","_key","_vehLimit","_hiveResponse","_objectCount","_codeCount","_data","_status","_val","_traderid","_retrader","_traderData","_id","_lockable","_debugMarkerPosition","_vehicle_0","_bQty","_vQty","_BuildingQueue","_objectQueue","_superkey","_shutdown","_res","_hiveLoaded","_ownerPUID","_intentory];



dayz_versionNo =         getText(configFile >> "CfgMods" >> "DayZ" >> "version");

dayz_hiveVersionNo =     getNumber(configFile >> "CfgMods" >> "DayZ" >> "hiveVersion");



_hiveLoaded = false;



waitUntil{initialized}; //means all the functions are now defined



diag_log "HIVE: Starting";



waituntil{isNil "sm_done"}; // prevent server_monitor be called twice (bug during login of the first player)

    

// Custom Configs

if(isnil "MaxVehicleLimit") then {

    MaxVehicleLimit = 50;

};



if(isnil "MaxDynamicDebris") then {

    MaxDynamicDebris = 100;

};

if(isnil "MaxAmmoBoxes") then {

    MaxAmmoBoxes = 3;

};

if(isnil "MaxMineVeins") then {

    MaxMineVeins = 50;

};

// Custon Configs End



if (isServer && isNil "sm_done") then {



    serverVehicleCounter = [];

    _hiveResponse = [];



    for "_i" from 1 to 5 do {

        diag_log "HIVE: trying to get objects";

        _key = format["CHILD:302:%1:", dayZ_instance];

        _hiveResponse = _key call server_hiveReadWrite;  

        if ((((isnil "_hiveResponse") || {(typeName _hiveResponse != "ARRAY")}) || {((typeName (_hiveResponse select 1)) != "SCALAR")})) then {

            if ((_hiveResponse select 1) == "Instance already initialized") then {

                _superkey = profileNamespace getVariable "SUPERKEY";

                _shutdown = format["CHILD:400:%1:", _superkey];

                _res = _shutdown call server_hiveReadWrite;

                diag_log ("HIVE: attempt to kill.. HiveExt response:"+str(_res));

            } else {

                diag_log ("HIVE: connection problem... HiveExt response:"+str(_hiveResponse));

            

            };

            _hiveResponse = ["",0];

        }

        else {

            diag_log ("HIVE: found "+str(_hiveResponse select 1)+" objects" );

            _i = 99; // break

        };

    };

    

    _BuildingQueue = [];

    _objectQueue = [];

    

    if ((_hiveResponse select 0) == "ObjectStreamStart") then {

    

        // save superkey

        profileNamespace setVariable ["SUPERKEY",(_hiveResponse select 2)];

        

        _hiveLoaded = true;

    

        diag_log ("HIVE: Commence Object Streaming...");

        _key = format["CHILD:302:%1:", dayZ_instance];

        _objectCount = _hiveResponse select 1;

        _bQty = 0;

        _vQty = 0;

        for "_i" from 1 to _objectCount do {

            _hiveResponse = _key call server_hiveReadWriteLarge;

            //diag_log (format["HIVE dbg %1 %2", typeName _hiveResponse, _hiveResponse]);

            if ((_hiveResponse select 2) isKindOf "ModularItems") then {

                _BuildingQueue set [_bQty,_hiveResponse];

                _bQty = _bQty + 1;

            } else {

                _objectQueue set [_vQty,_hiveResponse];

                _vQty = _vQty + 1;

            };

        };

        diag_log ("HIVE: got " + str(_bQty) + " Epoch Objects and " + str(_vQty) + " Vehicles");

    };

    

    // # NOW SPAWN OBJECTS #

    _totalvehicles = 0;

    {

        _idKey =         _x select 1;

        _type =            _x select 2;

        _ownerID =         _x select 3;



        _worldspace =     _x select 4;

        _inventory =    _x select 5;

        _hitPoints =    _x select 6;

        _fuel =            _x select 7;

        _damage =         _x select 8;

        

        _dir = 0;

        _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;

            }

        };            

        

        if (!_wsDone) then {

            if (count _worldspace >= 1) then { _dir = _worldspace select 0; };

            _pos = [getMarkerPos "center",0,4000,10,0,2000,0] call BIS_fnc_findSafePos;

            if (count _pos < 3) then { _pos = [_pos select 0,_pos select 1,0]; };

            diag_log ("MOVED OBJ: " + str(_idKey) + " of class " + _type + " to pos: " + str(_pos));

        };

        

        // Realign characterID to OwnerPUID - need to force save though.

        

        if (count _worldspace < 3) then

        {

            _worldspace set [count _worldspace, "0"];

        };        

        _ownerPUID = _worldspace select 2;

        

        // diag_log format["Server_monitor: [ObjectID = %1]  [ClassID = %2] [_ownerPUID = %3]", _idKey, _type, _ownerPUID];

        

        if (_damage < 1) then {

            //diag_log format["OBJ: %1 - %2", _idKey,_type];

            

            //Create it

            _object = createVehicle [_type, _pos, [], 0, "CAN_COLLIDE"];

            if (typeOf (_object) in  DZE_DoorsLocked) then {

    _object setVariable ["doorfriends", _intentory, true];

};

            _object setVariable ["lastUpdate",time];

            _object setVariable ["ObjectID", _idKey, true];

            _object setVariable ["OwnerPUID", _ownerPUID, true];

            if (typeOf (_object) == "Plastic_Pole_EP1_DZ") then {

             _object setVariable ["plotfriends", _inventory, true];

              };

            



    

 

            _lockable = 0;

            if(isNumber (configFile >> "CfgVehicles" >> _type >> "lockable")) then {

                _lockable = getNumber(configFile >> "CfgVehicles" >> _type >> "lockable");

            };



            // fix for leading zero issues on safe codes after restart

            if (_lockable == 4) then {

                _codeCount = (count (toArray _ownerID));

                if(_codeCount == 3) then {

                    _ownerID = format["0%1", _ownerID];

                };

                if(_codeCount == 2) then {

                    _ownerID = format["00%1", _ownerID];

                };

                if(_codeCount == 1) then {

                    _ownerID = format["000%1", _ownerID];

                };

            };



            if (_lockable == 3) then {

                _codeCount = (count (toArray _ownerID));

                if(_codeCount == 2) then {

                    _ownerID = format["0%1", _ownerID];

                };

                if(_codeCount == 1) then {

                    _ownerID = format["00%1", _ownerID];

                };

            };



            _object setVariable ["CharacterID", _ownerID, true];

            

            clearWeaponCargoGlobal  _object;

            clearMagazineCargoGlobal  _object;

            // _object setVehicleAmmo DZE_vehicleAmmo;

            

            _object setdir _dir;

            _object setposATL _pos;

            _object setDamage _damage;

            

            if ((typeOf _object) in dayz_allowedObjects) then {

                if (DZE_GodModeBase) then {

                    _object addEventHandler ["HandleDamage", {false}];

                } else {

                    _object addMPEventHandler ["MPKilled",{_this call object_handleServerKilled;}];

                };

                // Test disabling simulation server side on buildables only.

                _object enableSimulation false;

                // used for inplace upgrades && lock/unlock of safe

                _object setVariable ["OEMPos", _pos, true];

                

            };



            if ((count _intentory > 0) && !(typeOf( _object) == "Plastic_Pole_EP1_DZ") && !(typeOf( _object) in  DZE_DoorsLocked)) then {

                if (_type in DZE_LockedStorage) then {

                    // Fill variables with loot

                    _object setVariable ["WeaponCargo", (_inventory select 0),true];

                    _object setVariable ["MagazineCargo", (_inventory select 1),true];

                    _object setVariable ["BackpackCargo", (_inventory select 2),true];

                } else {



                    //Add weapons

                    _objWpnTypes = (_inventory select 0) select 0;

                    _objWpnQty = (_inventory select 0) select 1;

                    _countr = 0;                    

                    {

                        if(_x in (DZE_REPLACE_WEAPONS select 0)) then {

                            _x = (DZE_REPLACE_WEAPONS select 1) select ((DZE_REPLACE_WEAPONS select 0) find _x);

                        };

                        _isOK =     isClass(configFile >> "CfgWeapons" >> _x);

                        if (_isOK) then {

                            _object addWeaponCargoGlobal [_x,(_objWpnQty select _countr)];

                        };

                        _countr = _countr + 1;

                    } count _objWpnTypes;

                

                    //Add Magazines

                    _objWpnTypes = (_inventory select 1) select 0;

                    _objWpnQty = (_inventory select 1) select 1;

                    _countr = 0;

                    {

                        if (_x == "BoltSteel") then { _x = "WoodenArrow" }; // Convert BoltSteel to WoodenArrow

                        if (_x == "ItemTent") then { _x = "ItemTentOld" };

                        _isOK =     isClass(configFile >> "CfgMagazines" >> _x);

                        if (_isOK) then {

                            _object addMagazineCargoGlobal [_x,(_objWpnQty select _countr)];

                        };

                        _countr = _countr + 1;

                    } count _objWpnTypes;



                    //Add Backpacks

                    _objWpnTypes = (_inventory select 2) select 0;

                    _objWpnQty = (_inventory select 2) select 1;

                    _countr = 0;

                    {

                        _isOK =     isClass(configFile >> "CfgVehicles" >> _x);

                        if (_isOK) then {

                            _object addBackpackCargoGlobal [_x,(_objWpnQty select _countr)];

                        };

                        _countr = _countr + 1;

                    } count _objWpnTypes;

                };

            };    

            

            if (_object isKindOf "AllVehicles") then {

                {

                    _selection = _x select 0;

                    _dam = _x select 1;

                    if (_selection in dayZ_explosiveParts && _dam > 0.8) then {_dam = 0.8};

                    [_object,_selection,_dam] call object_setFixServer;

                } count _hitpoints;



                _object setFuel _fuel;



                if (!((typeOf _object) in dayz_allowedObjects)) then {

                    

                    //_object setvelocity [0,0,1];

                    _object call fnc_veh_ResetEH;        

                    

                    if(_ownerID != "0" && !(_object isKindOf "Bicycle")) then {

                        _object setvehiclelock "locked";

                    };

                    

                    _totalvehicles = _totalvehicles + 1;



                    // total each vehicle

                    serverVehicleCounter set [count serverVehicleCounter,_type];

                };

            };



            //Monitor the object

            PVDZE_serverObjectMonitor set [count PVDZE_serverObjectMonitor,_object];

        };

    } forEach (_BuildingQueue + _objectQueue);

    // # END SPAWN OBJECTS #



    // preload server traders menu data into cache

    if !(DZE_ConfigTrader) then {

        {

            // get tids

            _traderData = call compile format["menu_%1;",_x];

            if(!isNil "_traderData") then {

                {

                    _traderid = _x select 1;



                    _retrader = [];



                    _key = format["CHILD:399:%1:",_traderid];

                    _data = "HiveEXT" callExtension _key;



                    //diag_log "HIVE: Request sent";

            

                    //Process result

                    _result = call compile format ["%1",_data];

                    _status = _result select 0;

            

                    if (_status == "ObjectStreamStart") then {

                        _val = _result select 1;

                        //Stream Objects

                        //diag_log ("HIVE: Commence Menu Streaming...");

                        call compile format["ServerTcache_%1 = [];",_traderid];

                        for "_i" from 1 to _val do {

                            _data = "HiveEXT" callExtension _key;

                            _result = call compile format ["%1",_data];

                            call compile format["ServerTcache_%1 set [count ServerTcache_%1,%2]",_traderid,_result];

                            _retrader set [count _retrader,_result];

                        };

                        //diag_log ("HIVE: Streamed " + str(_val) + " objects");

                    };



                } forEach (_traderData select 0);

            };

        } forEach serverTraders;

    };



    if (_hiveLoaded) then {

        //  spawn_vehicles

        _vehLimit = MaxVehicleLimit - _totalvehicles;

        if(_vehLimit > 0) then {

            diag_log ("HIVE: Spawning # of Vehicles: " + str(_vehLimit));

            for "_x" from 1 to _vehLimit do {

                [] spawn spawn_vehicles;

            };

        } else {

            diag_log "HIVE: Vehicle Spawn limit reached!";

        };

    };

    

    //  spawn_roadblocks

    diag_log ("HIVE: Spawning # of Debris: " + str(MaxDynamicDebris));

    for "_x" from 1 to MaxDynamicDebris do {

        [] spawn spawn_roadblocks;

    };

    //  spawn_ammosupply at server start 1% of roadblocks

    diag_log ("HIVE: Spawning # of Ammo Boxes: " + str(MaxAmmoBoxes));

    for "_x" from 1 to MaxAmmoBoxes do {

        [] spawn spawn_ammosupply;

    };

    // call spawning mining veins

    diag_log ("HIVE: Spawning # of Veins: " + str(MaxMineVeins));

    for "_x" from 1 to MaxMineVeins do {

        [] spawn spawn_mineveins;

    };



    if(isnil "dayz_MapArea") then {

        dayz_MapArea = 10000;

    };

    if(isnil "HeliCrashArea") then {

        HeliCrashArea = dayz_MapArea / 2;

    };

    if(isnil "OldHeliCrash") then {

        OldHeliCrash = false;

    };



    // [_guaranteedLoot, _randomizedLoot, _frequency, _variance, _spawnChance, _spawnMarker, _spawnRadius, _spawnFire, _fadeFire]

    if(OldHeliCrash) then {

        _nul = [3, 4, (50 * 60), (15 * 60), 0.75, 'center', HeliCrashArea, true, false] spawn server_spawnCrashSite;

    };

    if (isDedicated) then {

        // Epoch Events

        _id = [] spawn server_spawnEvents;

        // server cleanup

        [] spawn {

            private ["_id"];

            sleep 200; //Sleep Lootcleanup, don't need directly cleanup on startup + fix some performance issues on serverstart

            waitUntil {!isNil "server_spawnCleanAnimals"};

            _id = [] execFSM "\z\addons\dayz_server\system\server_cleanup.fsm";

        };



        // spawn debug box

        _debugMarkerPosition = getMarkerPos "respawn_west";

        _debugMarkerPosition = [(_debugMarkerPosition select 0),(_debugMarkerPosition select 1),1];

        _vehicle_0 = createVehicle ["DebugBox_DZ", _debugMarkerPosition, [], 0, "CAN_COLLIDE"];

        _vehicle_0 setPos _debugMarkerPosition;

        _vehicle_0 setVariable ["ObjectID","1",true];



        // max number of spawn markers

        if(isnil "spawnMarkerCount") then {

            spawnMarkerCount = 10;

        };

        actualSpawnMarkerCount = 0;

        // count valid spawn marker positions

        for "_i" from 0 to spawnMarkerCount do {

            if (!([(getMarkerPos format["spawn%1", _i]), [0,0,0]] call BIS_fnc_areEqual)) then {

                actualSpawnMarkerCount = actualSpawnMarkerCount + 1;

            } else {

                // exit since we did not find any further markers

                _i = spawnMarkerCount + 99;

            };

            

        };

        diag_log format["Total Number of spawn locations %1", actualSpawnMarkerCount];

        

        endLoadingScreen;

    };



    call compile preprocessFileLineNumbers "\z\addons\dayz_server\DZAI\init\dzai_initserver.sqf";

    [] ExecVM "\z\addons\dayz_server\WAI\init.sqf";

    [] ExecVM "\z\addons\dayz_server\DZMS\DZMSInit.sqf";

    allowConnection = true;    

    sm_done = true;

    publicVariable "sm_done";

};



  

Link to comment
Share on other sites

Sorry for the double post but it wouldn't let me edit it - here's my RPT:

 

    

13:56:59 "infiSTAR.de - ADDING PublicVariableEventHandlers"
13:56:59 "infiSTAR.de - AntiHack FULLY LOADED"
13:57:00 "infiSTAR.de - infiSTAR_LoadStatus1: infiSTAR is already loaded!"
13:57:00 Warning Message: No entry 'bin\config.bin/CfgMagazines.Bandit2_DZ'.
13:57:00 Warning Message: No entry '.picture'.
13:57:00 Warning Message: '/' is not a value
13:57:00 Warning Message: No entry '.scope'.
13:57:00 Warning Message: '/' is not a value
 
13:57:00 Warning Message: Error: creating magazine Bandit2_DZ with scope=private
13:57:00 Warning Message: No entry '.displayName'.
13:57:00 Warning Message: '/' is not a value
13:57:00 Warning Message: No entry '.displayNameShort'.
13:57:00 Warning Message: '/' is not a value
13:57:00 Warning Message: No entry '.nameSound'.
13:57:00 Warning Message: '/' is not a value
13:57:00 Warning Message: No entry '.Library'.
13:57:00 Warning Message: No entry '.libTextDesc'.
13:57:00 Warning Message: '/' is not a value
13:57:00 Warning Message: No entry '.type'.
13:57:00 Warning Message: '/' is not a value
13:57:00 Warning Message: No entry '.count'.
13:57:00 Warning Message: '/' is not a value
13:57:00 Warning Message: No entry '.maxLeadSpeed'.
13:57:00 Warning Message: '/' is not a value
13:57:00 Warning Message: No entry '.initSpeed'.
13:57:00 Warning Message: '/' is not a value
13:57:00 Warning Message: No entry '.reloadAction'.
13:57:00 Warning Message: '/' is not a value
13:57:00 Warning Message: No entry '.modelSpecial'.
13:57:00 Warning Message: '/' is not a value
13:57:00 Warning Message: No entry '.ammo'.
13:57:00 Warning Message: '/' is not a value
13:57:01 Warning Message: You cannot play/edit this mission; it is dependent on downloadable content that has been deleted.
mbg_buildings_3
13:57:01 Warning Message: No entry 'bin\config.bin/CfgMagazines.Bandit2_DZ'.
13:57:01 Warning Message: No entry '.picture'.
13:57:01 Warning Message: '/' is not a value
13:57:01 Warning Message: No entry '.scope'.
13:57:01 Warning Message: '/' is not a value
13:57:01 Warning Message: Error: creating magazine Bandit2_DZ with scope=private
13:57:01 Warning Message: No entry '.displayName'.
13:57:01 Warning Message: '/' is not a value
13:57:01 Warning Message: No entry '.displayNameShort'.
13:57:01 Warning Message: '/' is not a value
13:57:01 Warning Message: No entry '.nameSound'.
13:57:01 Warning Message: '/' is not a value
13:57:01 Warning Message: No entry '.Library'.
13:57:01 Warning Message: No entry '.libTextDesc'.
13:57:01 Warning Message: '/' is not a value
13:57:01 Warning Message: No entry '.type'.
13:57:01 Warning Message: '/' is not a value
13:57:01 Warning Message: No entry '.count'.
13:57:01 Warning Message: '/' is not a value
13:57:01 Warning Message: No entry '.maxLeadSpeed'.
13:57:01 Warning Message: '/' is not a value
13:57:01 Warning Message: No entry '.initSpeed'.
13:57:01 Warning Message: '/' is not a value
13:57:01 Warning Message: No entry '.reloadAction'.
13:57:01 Warning Message: '/' is not a value
13:57:01 Warning Message: No entry '.modelSpecial'.
13:57:01 Warning Message: '/' is not a value
13:57:01 Warning Message: No entry '.ammo'.
13:57:01 Warning Message: '/' is not a value
13:57:02 Warning Message: You cannot play/edit this mission; it is dependent on downloadable content that has been deleted.
mbg_buildings_3
13:57:02 "[AGN] Starting Trader City Safezone Commander!"
13:57:02 "Error: Attempting to start AGN products on a server where it should not be!"
13:57:02 "HIVE: Starting"
13:57:02 "HIVE: trying to get objects"
13:57:02 "infiSTAR.de - remExServer modified: {}"
13:57:02 "HIVE: found 108 objects"
13:57:02 "HIVE: Commence Object Streaming..."
13:57:02 "HIVE: got 3 Epoch Objects and 105 Vehicles"
13:57:04 Warning: z\addons\dayz_communityassets\models\compass.p3d:0 Error while trying to generate ST for points: 863, 853, 852
13:57:06 Error in expression <["OEMPos", _pos, true];
 
};
 
if ((count _intentory > 0) && !(typeOf( _object) ==>
13:57:06   Error position: <_intentory > 0) && !(typeOf( _object) ==>
13:57:06   Error Undefined variable in expression: _intentory
13:57:06 File z\addons\dayz_server\system\server_monitor.sqf, line 204
13:57:06 Error in expression <["OEMPos", _pos, true];
 
};
 
if ((count _intentory > 0) && !(typeOf( _object) ==>
13:57:06   Error position: <_intentory > 0) && !(typeOf( _object) ==>
13:57:06   Error Undefined variable in expression: _intentory
13:57:06 File z\addons\dayz_server\system\server_monitor.sqf, line 204
13:57:06 Error in expression <["OEMPos", _pos, true];
 
};
 
if ((count _intentory > 0) && !(typeOf( _object) ==>
13:57:06   Error position: <_intentory > 0) && !(typeOf( _object) ==>
13:57:06   Error Undefined variable in expression: _intentory
13:57:06 File z\addons\dayz_server\system\server_monitor.sqf, line 204
13:57:08 Error in expression <["OEMPos", _pos, true];
 
};
 
if ((count _intentory > 0) && !(typeOf( _object) ==>
13:57:08   Error position: <_intentory > 0) && !(typeOf( _object) ==>
13:57:08   Error Undefined variable in expression: _intentory
13:57:08 File z\addons\dayz_server\system\server_monitor.sqf, line 204
13:57:08 Error in expression <["OEMPos", _pos, true];
 
};
 
if ((count _intentory > 0) && !(typeOf( _object) ==>
13:57:08   Error position: <_intentory > 0) && !(typeOf( _object) ==>
13:57:08   Error Undefined variable in expression: _intentory
13:57:08 File z\addons\dayz_server\system\server_monitor.sqf, line 204
13:57:09 Error in expression <["OEMPos", _pos, true];
 
};
 
if ((count _intentory > 0) && !(typeOf( _object) ==>
13:57:09   Error position: <_intentory > 0) && !(typeOf( _object) ==>
13:57:09   Error Undefined variable in expression: _intentory
13:57:09 File z\addons\dayz_server\system\server_monitor.sqf, line 204
13:57:10 "infiSTAR.de - Player-Log: Porcu-pain(76561198167419400) - 0h 00min | ******ADMIN******"
13:57:10 Error in expression <["OEMPos", _pos, true];
 
};
 
if ((count _intentory > 0) && !(typeOf( _object) ==>
13:57:10   Error position: <_intentory > 0) && !(typeOf( _object) ==>
13:57:10   Error Undefined variable in expression: _intentory
13:57:10 File z\addons\dayz_server\system\server_monitor.sqf, line 204
13:57:11 Error in expression <["OEMPos", _pos, true];
 
};
 
if ((count _intentory > 0) && !(typeOf( _object) ==>
13:57:11   Error position: <_intentory > 0) && !(typeOf( _object) ==>
13:57:11   Error Undefined variable in expression: _intentory
13:57:11 File z\addons\dayz_server\system\server_monitor.sqf, line 204
13:57:12 Error in expression <["OEMPos", _pos, true];
 
};
 
if ((count _intentory > 0) && !(typeOf( _object) ==>
13:57:12   Error position: <_intentory > 0) && !(typeOf( _object) ==>
13:57:12   Error Undefined variable in expression: _intentory
13:57:12 File z\addons\dayz_server\system\server_monitor.sqf, line 204
 
13:57:13 Error in expression <["OEMPos", _pos, true];
 
};
 
if ((count _intentory > 0) && !(typeOf( _object) ==>
13:57:13   Error position: <_intentory > 0) && !(typeOf( _object) ==>
13:57:13   Error Undefined variable in expression: _intentory
13:57:13 File z\addons\dayz_server\system\server_monitor.sqf, line 204
13:57:14 Error in expression <["OEMPos", _pos, true];
 
};
 
if ((count _intentory > 0) && !(typeOf( _object) ==>
13:57:14   Error position: <_intentory > 0) && !(typeOf( _object) ==>
13:57:14   Error Undefined variable in expression: _intentory
13:57:14 File z\addons\dayz_server\system\server_monitor.sqf, line 204
13:57:14 Error in expression <["OEMPos", _pos, true];
 
};
 
if ((count _intentory > 0) && !(typeOf( _object) ==>
13:57:14   Error position: <_intentory > 0) && !(typeOf( _object) ==>
13:57:14   Error Undefined variable in expression: _intentory
13:57:14 File z\addons\dayz_server\system\server_monitor.sqf, line 204
13:57:14 Error in expression <["OEMPos", _pos, true];
 
};
 
if ((count _intentory > 0) && !(typeOf( _object) ==>
13:57:14   Error position: <_intentory > 0) && !(typeOf( _object) ==>
13:57:14   Error Undefined variable in expression: _intentory
13:57:14 File z\addons\dayz_server\system\server_monitor.sqf, line 204
13:57:14 Error in expression <["OEMPos", _pos, true];
 
};
 
if ((count _intentory > 0) && !(typeOf( _object) ==>
13:57:14   Error position: <_intentory > 0) && !(typeOf( _object) ==>
13:57:14   Error Undefined variable in expression: _intentory
13:57:14 File z\addons\dayz_server\system\server_monitor.sqf, line 204
13:57:14 Error in expression <["OEMPos", _pos, true];
 
};
 
if ((count _intentory > 0) && !(typeOf( _object) ==>
13:57:14   Error position: <_intentory > 0) && !(typeOf( _object) ==>
13:57:14   Error Undefined variable in expression: _intentory
13:57:14 File z\addons\dayz_server\system\server_monitor.sqf, line 204
13:57:14 Error in expression <["OEMPos", _pos, true];
 
};
 
if ((count _intentory > 0) && !(typeOf( _object) ==>
13:57:14   Error position: <_intentory > 0) && !(typeOf( _object) ==>
13:57:14   Error Undefined variable in expression: _intentory
13:57:14 File z\addons\dayz_server\system\server_monitor.sqf, line 204
13:57:14 Error in expression <["OEMPos", _pos, true];
 
};
 
if ((count _intentory > 0) && !(typeOf( _object) ==>
13:57:14   Error position: <_intentory > 0) && !(typeOf( _object) ==>
13:57:14   Error Undefined variable in expression: _intentory
13:57:14 File z\addons\dayz_server\system\server_monitor.sqf, line 204
13:57:14 Error in expression <["OEMPos", _pos, true];
 
};
 
if ((count _intentory > 0) && !(typeOf( _object) ==>
13:57:14   Error position: <_intentory > 0) && !(typeOf( _object) ==>
13:57:14   Error Undefined variable in expression: _intentory
13:57:14 File z\addons\dayz_server\system\server_monitor.sqf, line 204
13:57:14 Error in expression <["OEMPos", _pos, true];
 
};
 
if ((count _intentory > 0) && !(typeOf( _object) ==>
13:57:14   Error position: <_intentory > 0) && !(typeOf( _object) ==>
13:57:14   Error Undefined variable in expression: _intentory
13:57:14 File z\addons\dayz_server\system\server_monitor.sqf, line 204
13:57:15 Error in expression <["OEMPos", _pos, true];
 
};
 
if ((count _intentory > 0) && !(typeOf( _object) ==>
13:57:15   Error position: <_intentory > 0) && !(typeOf( _object) ==>
13:57:15   Error Undefined variable in expression: _intentory
13:57:15 File z\addons\dayz_server\system\server_monitor.sqf, line 204
13:57:15 AH6X_DZ: FLIR_turret - unknown animation source FLIR_turret
13:57:15 AH6X_DZ: FLIR_gun - unknown animation source FLIR_gun
13:57:15 Error in expression <["OEMPos", _pos, true];
 
};
 
if ((count _intentory > 0) && !(typeOf( _object) ==>
13:57:15   Error position: <_intentory > 0) && !(typeOf( _object) ==>
13:57:15   Error Undefined variable in expression: _intentory
13:57:15 File z\addons\dayz_server\system\server_monitor.sqf, line 204
13:57:15 Error in expression <["OEMPos", _pos, true];
 
};
 
if ((count _intentory > 0) && !(typeOf( _object) ==>
13:57:15   Error position: <_intentory > 0) && !(typeOf( _object) ==>
13:57:15   Error Undefined variable in expression: _intentory
13:57:15 File z\addons\dayz_server\system\server_monitor.sqf, line 204
13:57:15 Error in expression <["OEMPos", _pos, true];
 
};
 
if ((count _intentory > 0) && !(typeOf( _object) ==>
13:57:15   Error position: <_intentory > 0) && !(typeOf( _object) ==>
13:57:15   Error Undefined variable in expression: _intentory
13:57:15 File z\addons\dayz_server\system\server_monitor.sqf, line 204
13:57:15 Error in expression <["OEMPos", _pos, true];
 
};
 
if ((count _intentory > 0) && !(typeOf( _object) ==>
13:57:15   Error position: <_intentory > 0) && !(typeOf( _object) ==>
13:57:15   Error Undefined variable in expression: _intentory
13:57:15 File z\addons\dayz_server\system\server_monitor.sqf, line 204
13:57:15 Error in expression <["OEMPos", _pos, true];
 
};
 
if ((count _intentory > 0) && !(typeOf( _object) ==>
13:57:15   Error position: <_intentory > 0) && !(typeOf( _object) ==>
13:57:15   Error Undefined variable in expression: _intentory
13:57:15 File z\addons\dayz_server\system\server_monitor.sqf, line 204
13:57:15 Error in expression <["OEMPos", _pos, true];
 
};
 
if ((count _intentory > 0) && !(typeOf( _object) ==>
13:57:15   Error position: <_intentory > 0) && !(typeOf( _object) ==>
13:57:15   Error Undefined variable in expression: _intentory
13:57:15 File z\addons\dayz_server\system\server_monitor.sqf, line 204
13:57:15 Error in expression <["OEMPos", _pos, true];
 
};
 
if ((count _intentory > 0) && !(typeOf( _object) ==>
13:57:15   Error position: <_intentory > 0) && !(typeOf( _object) ==>
13:57:15   Error Undefined variable in expression: _intentory
13:57:15 File z\addons\dayz_server\system\server_monitor.sqf, line 204
13:57:15 Error in expression <["OEMPos", _pos, true];
 
};
 
if ((count _intentory > 0) && !(typeOf( _object) ==>
13:57:15   Error position: <_intentory > 0) && !(typeOf( _object) ==>
13:57:15   Error Undefined variable in expression: _intentory
13:57:15 File z\addons\dayz_server\system\server_monitor.sqf, line 204
13:57:16 Error in expression <["OEMPos", _pos, true];
 
};
 
if ((count _intentory > 0) && !(typeOf( _object) ==>
13:57:16   Error position: <_intentory > 0) && !(typeOf( _object) ==>
13:57:16   Error Undefined variable in expression: _intentory
13:57:16 File z\addons\dayz_server\system\server_monitor.sqf, line 204
13:57:16 Error in expression <["OEMPos", _pos, true];
 
};
 
if ((count _intentory > 0) && !(typeOf( _object) ==>
13:57:16   Error position: <_intentory > 0) && !(typeOf( _object) ==>
13:57:16   Error Undefined variable in expression: _intentory
13:57:16 File z\addons\dayz_server\system\server_monitor.sqf, line 204
13:57:16 Error in expression <["OEMPos", _pos, true];
 
};
 
if ((count _intentory > 0) && !(typeOf( _object) ==>
13:57:16   Error position: <_intentory > 0) && !(typeOf( _object) ==>
13:57:16   Error Undefined variable in expression: _intentory
13:57:16 File z\addons\dayz_server\system\server_monitor.sqf, line 204
13:57:16 Error in expression <["OEMPos", _pos, true];
 
};
 
if ((count _intentory > 0) && !(typeOf( _object) ==>
13:57:16   Error position: <_intentory > 0) && !(typeOf( _object) ==>
13:57:16   Error Undefined variable in expression: _intentory
13:57:16 File z\addons\dayz_server\system\server_monitor.sqf, line 204
13:57:16 Error in expression <["OEMPos", _pos, true];
 
};
 
if ((count _intentory > 0) && !(typeOf( _object) ==>
13:57:16   Error position: <_intentory > 0) && !(typeOf( _object) ==>
13:57:16   Error Undefined variable in expression: _intentory
13:57:16 File z\addons\dayz_server\system\server_monitor.sqf, line 204
13:57:16 Error in expression <["OEMPos", _pos, true];
 
};
 
if ((count _intentory > 0) && !(typeOf( _object) ==>
13:57:16   Error position: <_intentory > 0) && !(typeOf( _object) ==>
13:57:16   Error Undefined variable in expression: _intentory
 
13:57:16 File z\addons\dayz_server\system\server_monitor.sqf, line 204
13:57:16 UH1Y_DZE: ObsTurret - unknown animation source ObsTurret
13:57:16 UH1Y_DZE: ObsGun - unknown animation source ObsGun
13:57:16 Error in expression <["OEMPos", _pos, true];
 
};
 
if ((count _intentory > 0) && !(typeOf( _object) ==>
13:57:16   Error position: <_intentory > 0) && !(typeOf( _object) ==>
13:57:16   Error Undefined variable in expression: _intentory
13:57:16 File z\addons\dayz_server\system\server_monitor.sqf, line 204
13:57:16 Error in expression <["OEMPos", _pos, true];
 
};
 
if ((count _intentory > 0) && !(typeOf( _object) ==>
13:57:16   Error position: <_intentory > 0) && !(typeOf( _object) ==>
13:57:16   Error Undefined variable in expression: _intentory
13:57:16 File z\addons\dayz_server\system\server_monitor.sqf, line 204
13:57:17 Error in expression <["OEMPos", _pos, true];
 
};
 
if ((count _intentory > 0) && !(typeOf( _object) ==>
13:57:17   Error position: <_intentory > 0) && !(typeOf( _object) ==>
13:57:17   Error Undefined variable in expression: _intentory
13:57:17 File z\addons\dayz_server\system\server_monitor.sqf, line 204
13:57:17 Error in expression <["OEMPos", _pos, true];
 
};
 
if ((count _intentory > 0) && !(typeOf( _object) ==>
13:57:17   Error position: <_intentory > 0) && !(typeOf( _object) ==>
13:57:17   Error Undefined variable in expression: _intentory
13:57:17 File z\addons\dayz_server\system\server_monitor.sqf, line 204
13:57:17 Error in expression <["OEMPos", _pos, true];
 
};
 
if ((count _intentory > 0) && !(typeOf( _object) ==>
13:57:17   Error position: <_intentory > 0) && !(typeOf( _object) ==>
13:57:17   Error Undefined variable in expression: _intentory
13:57:17 File z\addons\dayz_server\system\server_monitor.sqf, line 204
13:57:17 Error in expression <["OEMPos", _pos, true];
 
};
 
if ((count _intentory > 0) && !(typeOf( _object) ==>
13:57:17   Error position: <_intentory > 0) && !(typeOf( _object) ==>
13:57:17   Error Undefined variable in expression: _intentory
13:57:17 File z\addons\dayz_server\system\server_monitor.sqf, line 204
13:57:17 Error in expression <["OEMPos", _pos, true];
 
};
 
if ((count _intentory > 0) && !(typeOf( _object) ==>
13:57:17   Error position: <_intentory > 0) && !(typeOf( _object) ==>
13:57:17   Error Undefined variable in expression: _intentory
13:57:17 File z\addons\dayz_server\system\server_monitor.sqf, line 204
13:57:17 Error in expression <["OEMPos", _pos, true];
 
};
 
if ((count _intentory > 0) && !(typeOf( _object) ==>
13:57:17   Error position: <_intentory > 0) && !(typeOf( _object) ==>
13:57:17   Error Undefined variable in expression: _intentory
13:57:17 File z\addons\dayz_server\system\server_monitor.sqf, line 204
13:57:17 Error in expression <["OEMPos", _pos, true];
 
};
 
if ((count _intentory > 0) && !(typeOf( _object) ==>
13:57:17   Error position: <_intentory > 0) && !(typeOf( _object) ==>
13:57:17   Error Undefined variable in expression: _intentory
13:57:17 File z\addons\dayz_server\system\server_monitor.sqf, line 204
13:57:17 Error in expression <["OEMPos", _pos, true];
 
};
 
if ((count _intentory > 0) && !(typeOf( _object) ==>
13:57:17   Error position: <_intentory > 0) && !(typeOf( _object) ==>
13:57:17   Error Undefined variable in expression: _intentory
13:57:17 File z\addons\dayz_server\system\server_monitor.sqf, line 204
13:57:17 Error in expression <["OEMPos", _pos, true];
 
};
 
if ((count _intentory > 0) && !(typeOf( _object) ==>
13:57:17   Error position: <_intentory > 0) && !(typeOf( _object) ==>
13:57:17   Error Undefined variable in expression: _intentory
13:57:17 File z\addons\dayz_server\system\server_monitor.sqf, line 204
13:57:17 Error in expression <["OEMPos", _pos, true];
 
};
 
if ((count _intentory > 0) && !(typeOf( _object) ==>
13:57:17   Error position: <_intentory > 0) && !(typeOf( _object) ==>
13:57:17   Error Undefined variable in expression: _intentory
13:57:17 File z\addons\dayz_server\system\server_monitor.sqf, line 204
13:57:17 Error in expression <["OEMPos", _pos, true];
 
};
 
if ((count _intentory > 0) && !(typeOf( _object) ==>
13:57:17   Error position: <_intentory > 0) && !(typeOf( _object) ==>
13:57:17   Error Undefined variable in expression: _intentory
13:57:17 File z\addons\dayz_server\system\server_monitor.sqf, line 204
13:57:18 Error in expression <["OEMPos", _pos, true];
 
};
 
if ((count _intentory > 0) && !(typeOf( _object) ==>
13:57:18   Error position: <_intentory > 0) && !(typeOf( _object) ==>
13:57:18   Error Undefined variable in expression: _intentory
13:57:18 File z\addons\dayz_server\system\server_monitor.sqf, line 204
13:57:18 Error in expression <["OEMPos", _pos, true];
 
};
 
if ((count _intentory > 0) && !(typeOf( _object) ==>
13:57:18   Error position: <_intentory > 0) && !(typeOf( _object) ==>
13:57:18   Error Undefined variable in expression: _intentory
13:57:18 File z\addons\dayz_server\system\server_monitor.sqf, line 204
13:57:18 Error in expression <["OEMPos", _pos, true];
 
};
 
if ((count _intentory > 0) && !(typeOf( _object) ==>
13:57:18   Error position: <_intentory > 0) && !(typeOf( _object) ==>
13:57:18   Error Undefined variable in expression: _intentory
13:57:18 File z\addons\dayz_server\system\server_monitor.sqf, line 204
13:57:18 Error in expression <["OEMPos", _pos, true];
 
};
 
if ((count _intentory > 0) && !(typeOf( _object) ==>
13:57:18   Error position: <_intentory > 0) && !(typeOf( _object) ==>
13:57:18   Error Undefined variable in expression: _intentory
13:57:18 File z\addons\dayz_server\system\server_monitor.sqf, line 204
13:57:18 Error in expression <["OEMPos", _pos, true];
 
};
 
if ((count _intentory > 0) && !(typeOf( _object) ==>
13:57:18   Error position: <_intentory > 0) && !(typeOf( _object) ==>
13:57:18   Error Undefined variable in expression: _intentory
13:57:18 File z\addons\dayz_server\system\server_monitor.sqf, line 204
13:57:18 Error in expression <["OEMPos", _pos, true];
 
};
 
if ((count _intentory > 0) && !(typeOf( _object) ==>
13:57:18   Error position: <_intentory > 0) && !(typeOf( _object) ==>
13:57:18   Error Undefined variable in expression: _intentory
13:57:18 File z\addons\dayz_server\system\server_monitor.sqf, line 204
13:57:18 Error in expression <["OEMPos", _pos, true];
 
};
 
if ((count _intentory > 0) && !(typeOf( _object) ==>
13:57:18   Error position: <_intentory > 0) && !(typeOf( _object) ==>
13:57:18   Error Undefined variable in expression: _intentory
13:57:18 File z\addons\dayz_server\system\server_monitor.sqf, line 204
13:57:18 Error in expression <["OEMPos", _pos, true];
 
};
 
if ((count _intentory > 0) && !(typeOf( _object) ==>
13:57:18   Error position: <_intentory > 0) && !(typeOf( _object) ==>
13:57:18   Error Undefined variable in expression: _intentory
13:57:18 File z\addons\dayz_server\system\server_monitor.sqf, line 204
13:57:18 Error in expression <["OEMPos", _pos, true];
 
};
 
if ((count _intentory > 0) && !(typeOf( _object) ==>
13:57:18   Error position: <_intentory > 0) && !(typeOf( _object) ==>
13:57:18   Error Undefined variable in expression: _intentory
13:57:18 File z\addons\dayz_server\system\server_monitor.sqf, line 204
13:57:18 Error in expression <["OEMPos", _pos, true];
 
};
 
if ((count _intentory > 0) && !(typeOf( _object) ==>
13:57:18   Error position: <_intentory > 0) && !(typeOf( _object) ==>
13:57:18   Error Undefined variable in expression: _intentory
13:57:18 File z\addons\dayz_server\system\server_monitor.sqf, line 204
13:57:18 Error in expression <["OEMPos", _pos, true];
 
};
 
if ((count _intentory > 0) && !(typeOf( _object) ==>
13:57:18   Error position: <_intentory > 0) && !(typeOf( _object) ==>
13:57:18   Error Undefined variable in expression: _intentory
13:57:18 File z\addons\dayz_server\system\server_monitor.sqf, line 204
13:57:18 Error in expression <["OEMPos", _pos, true];
 
};
 
if ((count _intentory > 0) && !(typeOf( _object) ==>
13:57:18   Error position: <_intentory > 0) && !(typeOf( _object) ==>
 
13:57:18   Error Undefined variable in expression: _intentory
13:57:18 File z\addons\dayz_server\system\server_monitor.sqf, line 204
13:57:18 Error in expression <["OEMPos", _pos, true];
 
};
 
if ((count _intentory > 0) && !(typeOf( _object) ==>
13:57:18   Error position: <_intentory > 0) && !(typeOf( _object) ==>
13:57:18   Error Undefined variable in expression: _intentory
13:57:18 File z\addons\dayz_server\system\server_monitor.sqf, line 204
13:57:18 Error in expression <["OEMPos", _pos, true];
 
};
 
if ((count _intentory > 0) && !(typeOf( _object) ==>
13:57:18   Error position: <_intentory > 0) && !(typeOf( _object) ==>
13:57:18   Error Undefined variable in expression: _intentory
13:57:18 File z\addons\dayz_server\system\server_monitor.sqf, line 204
13:57:18 Error in expression <["OEMPos", _pos, true];
 
};
 
if ((count _intentory > 0) && !(typeOf( _object) ==>
13:57:18   Error position: <_intentory > 0) && !(typeOf( _object) ==>
13:57:18   Error Undefined variable in expression: _intentory
13:57:18 File z\addons\dayz_server\system\server_monitor.sqf, line 204
13:57:18 Error in expression <["OEMPos", _pos, true];
 
};
 
if ((count _intentory > 0) && !(typeOf( _object) ==>
13:57:18   Error position: <_intentory > 0) && !(typeOf( _object) ==>
13:57:18   Error Undefined variable in expression: _intentory
13:57:18 File z\addons\dayz_server\system\server_monitor.sqf, line 204
13:57:18 Error in expression <["OEMPos", _pos, true];
 
};
 
if ((count _intentory > 0) && !(typeOf( _object) ==>
13:57:18   Error position: <_intentory > 0) && !(typeOf( _object) ==>
13:57:18   Error Undefined variable in expression: _intentory
13:57:18 File z\addons\dayz_server\system\server_monitor.sqf, line 204
13:57:18 Error in expression <["OEMPos", _pos, true];
 
};
 
if ((count _intentory > 0) && !(typeOf( _object) ==>
13:57:18   Error position: <_intentory > 0) && !(typeOf( _object) ==>
13:57:18   Error Undefined variable in expression: _intentory
13:57:18 File z\addons\dayz_server\system\server_monitor.sqf, line 204
13:57:18 Error in expression <["OEMPos", _pos, true];
 
};
 
if ((count _intentory > 0) && !(typeOf( _object) ==>
13:57:18   Error position: <_intentory > 0) && !(typeOf( _object) ==>
13:57:18   Error Undefined variable in expression: _intentory
13:57:18 File z\addons\dayz_server\system\server_monitor.sqf, line 204
13:57:18 Error in expression <["OEMPos", _pos, true];
 
};
 
if ((count _intentory > 0) && !(typeOf( _object) ==>
13:57:18   Error position: <_intentory > 0) && !(typeOf( _object) ==>
13:57:18   Error Undefined variable in expression: _intentory
13:57:18 File z\addons\dayz_server\system\server_monitor.sqf, line 204
13:57:19 Error in expression <["OEMPos", _pos, true];
 
};
 
if ((count _intentory > 0) && !(typeOf( _object) ==>
13:57:19   Error position: <_intentory > 0) && !(typeOf( _object) ==>
13:57:19   Error Undefined variable in expression: _intentory
13:57:19 File z\addons\dayz_server\system\server_monitor.sqf, line 204
13:57:19 Error in expression <["OEMPos", _pos, true];
 
};
 
if ((count _intentory > 0) && !(typeOf( _object) ==>
13:57:19   Error position: <_intentory > 0) && !(typeOf( _object) ==>
13:57:19   Error Undefined variable in expression: _intentory
13:57:19 File z\addons\dayz_server\system\server_monitor.sqf, line 204
13:57:19 Error in expression <["OEMPos", _pos, true];
 
};
 
if ((count _intentory > 0) && !(typeOf( _object) ==>
13:57:19   Error position: <_intentory > 0) && !(typeOf( _object) ==>
13:57:19   Error Undefined variable in expression: _intentory
13:57:19 File z\addons\dayz_server\system\server_monitor.sqf, line 204
13:57:19 Error in expression <["OEMPos", _pos, true];
 
};
 
if ((count _intentory > 0) && !(typeOf( _object) ==>
13:57:19   Error position: <_intentory > 0) && !(typeOf( _object) ==>
13:57:19   Error Undefined variable in expression: _intentory
13:57:19 File z\addons\dayz_server\system\server_monitor.sqf, line 204
13:57:19 Error in expression <["OEMPos", _pos, true];
 
};
 
if ((count _intentory > 0) && !(typeOf( _object) ==>
13:57:19   Error position: <_intentory > 0) && !(typeOf( _object) ==>
13:57:19   Error Undefined variable in expression: _intentory
13:57:19 File z\addons\dayz_server\system\server_monitor.sqf, line 204
13:57:19 Error in expression <["OEMPos", _pos, true];
 
};
 
if ((count _intentory > 0) && !(typeOf( _object) ==>
13:57:19   Error position: <_intentory > 0) && !(typeOf( _object) ==>
13:57:19   Error Undefined variable in expression: _intentory
13:57:19 File z\addons\dayz_server\system\server_monitor.sqf, line 204
13:57:19 Error in expression <["OEMPos", _pos, true];
 
};
 
if ((count _intentory > 0) && !(typeOf( _object) ==>
13:57:19   Error position: <_intentory > 0) && !(typeOf( _object) ==>
13:57:19   Error Undefined variable in expression: _intentory
13:57:19 File z\addons\dayz_server\system\server_monitor.sqf, line 204
13:57:19 Error in expression <["OEMPos", _pos, true];
 
};
 
if ((count _intentory > 0) && !(typeOf( _object) ==>
13:57:19   Error position: <_intentory > 0) && !(typeOf( _object) ==>
13:57:19   Error Undefined variable in expression: _intentory
13:57:19 File z\addons\dayz_server\system\server_monitor.sqf, line 204
13:57:19 Error in expression <["OEMPos", _pos, true];
 
};
 
if ((count _intentory > 0) && !(typeOf( _object) ==>
13:57:19   Error position: <_intentory > 0) && !(typeOf( _object) ==>
13:57:19   Error Undefined variable in expression: _intentory
13:57:19 File z\addons\dayz_server\system\server_monitor.sqf, line 204
13:57:19 Error in expression <["OEMPos", _pos, true];
 
};
 
if ((count _intentory > 0) && !(typeOf( _object) ==>
13:57:19   Error position: <_intentory > 0) && !(typeOf( _object) ==>
13:57:19   Error Undefined variable in expression: _intentory
13:57:19 File z\addons\dayz_server\system\server_monitor.sqf, line 204
13:57:19 Error in expression <["OEMPos", _pos, true];
 
};
 
if ((count _intentory > 0) && !(typeOf( _object) ==>
13:57:19   Error position: <_intentory > 0) && !(typeOf( _object) ==>
13:57:19   Error Undefined variable in expression: _intentory
13:57:19 File z\addons\dayz_server\system\server_monitor.sqf, line 204
13:57:19 Error in expression <["OEMPos", _pos, true];
 
};
 
if ((count _intentory > 0) && !(typeOf( _object) ==>
13:57:19   Error position: <_intentory > 0) && !(typeOf( _object) ==>
13:57:19   Error Undefined variable in expression: _intentory
13:57:19 File z\addons\dayz_server\system\server_monitor.sqf, line 204
13:57:19 Error in expression <["OEMPos", _pos, true];
 
};
 
if ((count _intentory > 0) && !(typeOf( _object) ==>
13:57:19   Error position: <_intentory > 0) && !(typeOf( _object) ==>
13:57:19   Error Undefined variable in expression: _intentory
13:57:19 File z\addons\dayz_server\system\server_monitor.sqf, line 204
13:57:19 Error in expression <["OEMPos", _pos, true];
 
};
 
if ((count _intentory > 0) && !(typeOf( _object) ==>
13:57:19   Error position: <_intentory > 0) && !(typeOf( _object) ==>
13:57:19   Error Undefined variable in expression: _intentory
13:57:19 File z\addons\dayz_server\system\server_monitor.sqf, line 204
13:57:19 Error in expression <["OEMPos", _pos, true];
 
};
 
if ((count _intentory > 0) && !(typeOf( _object) ==>
13:57:19   Error position: <_intentory > 0) && !(typeOf( _object) ==>
13:57:19   Error Undefined variable in expression: _intentory
13:57:19 File z\addons\dayz_server\system\server_monitor.sqf, line 204
13:57:19 Error in expression <["OEMPos", _pos, true];
 
};
 
if ((count _intentory > 0) && !(typeOf( _object) ==>
13:57:19   Error position: <_intentory > 0) && !(typeOf( _object) ==>
13:57:19   Error Undefined variable in expression: _intentory
13:57:19 File z\addons\dayz_server\system\server_monitor.sqf, line 204
13:57:19 Error in expression <["OEMPos", _pos, true];
 
};
 
if ((count _intentory > 0) && !(typeOf( _object) ==>
13:57:19   Error position: <_intentory > 0) && !(typeOf( _object) ==>
13:57:19   Error Undefined variable in expression: _intentory
 
13:57:19 File z\addons\dayz_server\system\server_monitor.sqf, line 204
13:57:19 Error in expression <["OEMPos", _pos, true];
 
};
 
if ((count _intentory > 0) && !(typeOf( _object) ==>
13:57:19   Error position: <_intentory > 0) && !(typeOf( _object) ==>
13:57:19   Error Undefined variable in expression: _intentory
13:57:19 File z\addons\dayz_server\system\server_monitor.sqf, line 204
13:57:19 Error in expression <["OEMPos", _pos, true];
 
};
 
if ((count _intentory > 0) && !(typeOf( _object) ==>
13:57:19   Error position: <_intentory > 0) && !(typeOf( _object) ==>
13:57:19   Error Undefined variable in expression: _intentory
13:57:19 File z\addons\dayz_server\system\server_monitor.sqf, line 204
13:57:19 Error in expression <["OEMPos", _pos, true];
 
};
 
if ((count _intentory > 0) && !(typeOf( _object) ==>
13:57:19   Error position: <_intentory > 0) && !(typeOf( _object) ==>
13:57:19   Error Undefined variable in expression: _intentory
13:57:19 File z\addons\dayz_server\system\server_monitor.sqf, line 204
13:57:19 Error in expression <["OEMPos", _pos, true];
 
};
 
if ((count _intentory > 0) && !(typeOf( _object) ==>
13:57:19   Error position: <_intentory > 0) && !(typeOf( _object) ==>
13:57:19   Error Undefined variable in expression: _intentory
13:57:19 File z\addons\dayz_server\system\server_monitor.sqf, line 204
13:57:19 Error in expression <["OEMPos", _pos, true];
 
};
 
if ((count _intentory > 0) && !(typeOf( _object) ==>
13:57:19   Error position: <_intentory > 0) && !(typeOf( _object) ==>
13:57:19   Error Undefined variable in expression: _intentory
13:57:19 File z\addons\dayz_server\system\server_monitor.sqf, line 204
13:57:20 Error in expression <["OEMPos", _pos, true];
 
};
 
if ((count _intentory > 0) && !(typeOf( _object) ==>
13:57:20   Error position: <_intentory > 0) && !(typeOf( _object) ==>
13:57:20   Error Undefined variable in expression: _intentory
13:57:20 File z\addons\dayz_server\system\server_monitor.sqf, line 204
13:57:20 Error in expression <["OEMPos", _pos, true];
 
};
 
if ((count _intentory > 0) && !(typeOf( _object) ==>
13:57:20   Error position: <_intentory > 0) && !(typeOf( _object) ==>
13:57:20   Error Undefined variable in expression: _intentory
13:57:20 File z\addons\dayz_server\system\server_monitor.sqf, line 204
13:57:20 Error in expression <["OEMPos", _pos, true];
 
};
 
if ((count _intentory > 0) && !(typeOf( _object) ==>
13:57:20   Error position: <_intentory > 0) && !(typeOf( _object) ==>
13:57:20   Error Undefined variable in expression: _intentory
13:57:20 File z\addons\dayz_server\system\server_monitor.sqf, line 204
13:57:20 Error in expression <["OEMPos", _pos, true];
 
};
 
if ((count _intentory > 0) && !(typeOf( _object) ==>
13:57:20   Error position: <_intentory > 0) && !(typeOf( _object) ==>
13:57:20   Error Undefined variable in expression: _intentory
13:57:20 File z\addons\dayz_server\system\server_monitor.sqf, line 204
13:57:20 Error in expression <["OEMPos", _pos, true];
 
};
 
if ((count _intentory > 0) && !(typeOf( _object) ==>
13:57:20   Error position: <_intentory > 0) && !(typeOf( _object) ==>
13:57:20   Error Undefined variable in expression: _intentory
13:57:20 File z\addons\dayz_server\system\server_monitor.sqf, line 204
13:57:20 Error in expression <["OEMPos", _pos, true];
 
};
 
if ((count _intentory > 0) && !(typeOf( _object) ==>
13:57:20   Error position: <_intentory > 0) && !(typeOf( _object) ==>
13:57:20   Error Undefined variable in expression: _intentory
13:57:20 File z\addons\dayz_server\system\server_monitor.sqf, line 204
13:57:20 Error in expression <["OEMPos", _pos, true];
 
};
 
if ((count _intentory > 0) && !(typeOf( _object) ==>
13:57:20   Error position: <_intentory > 0) && !(typeOf( _object) ==>
13:57:20   Error Undefined variable in expression: _intentory
13:57:20 File z\addons\dayz_server\system\server_monitor.sqf, line 204
13:57:20 Error in expression <["OEMPos", _pos, true];
 
};
 
if ((count _intentory > 0) && !(typeOf( _object) ==>
13:57:20   Error position: <_intentory > 0) && !(typeOf( _object) ==>
13:57:20   Error Undefined variable in expression: _intentory
13:57:20 File z\addons\dayz_server\system\server_monitor.sqf, line 204
13:57:20 Error in expression <["OEMPos", _pos, true];
 
};
 
if ((count _intentory > 0) && !(typeOf( _object) ==>
13:57:20   Error position: <_intentory > 0) && !(typeOf( _object) ==>
13:57:20   Error Undefined variable in expression: _intentory
13:57:20 File z\addons\dayz_server\system\server_monitor.sqf, line 204
13:57:20 Error in expression <["OEMPos", _pos, true];
 
};
 
if ((count _intentory > 0) && !(typeOf( _object) ==>
13:57:20   Error position: <_intentory > 0) && !(typeOf( _object) ==>
13:57:20   Error Undefined variable in expression: _intentory
13:57:20 File z\addons\dayz_server\system\server_monitor.sqf, line 204
13:57:20 Error in expression <["OEMPos", _pos, true];
 
};
 
if ((count _intentory > 0) && !(typeOf( _object) ==>
13:57:20   Error position: <_intentory > 0) && !(typeOf( _object) ==>
13:57:20   Error Undefined variable in expression: _intentory
13:57:20 File z\addons\dayz_server\system\server_monitor.sqf, line 204
13:57:20 Error in expression <["OEMPos", _pos, true];
 
};
 
if ((count _intentory > 0) && !(typeOf( _object) ==>
13:57:20   Error position: <_intentory > 0) && !(typeOf( _object) ==>
13:57:20   Error Undefined variable in expression: _intentory
13:57:20 File z\addons\dayz_server\system\server_monitor.sqf, line 204
13:57:20 Error in expression <["OEMPos", _pos, true];
 
};
 
if ((count _intentory > 0) && !(typeOf( _object) ==>
13:57:20   Error position: <_intentory > 0) && !(typeOf( _object) ==>
13:57:20   Error Undefined variable in expression: _intentory
13:57:20 File z\addons\dayz_server\system\server_monitor.sqf, line 204
13:57:20 Error in expression <["OEMPos", _pos, true];
 
};
 
if ((count _intentory > 0) && !(typeOf( _object) ==>
13:57:20   Error position: <_intentory > 0) && !(typeOf( _object) ==>
13:57:20   Error Undefined variable in expression: _intentory
13:57:20 File z\addons\dayz_server\system\server_monitor.sqf, line 204
13:57:20 Error in expression <["OEMPos", _pos, true];
 
};
 
if ((count _intentory > 0) && !(typeOf( _object) ==>
13:57:20   Error position: <_intentory > 0) && !(typeOf( _object) ==>
13:57:20   Error Undefined variable in expression: _intentory
13:57:20 File z\addons\dayz_server\system\server_monitor.sqf, line 204
13:57:20 Error in expression <n {
_object setVariable ["doorfriends", _intentory, true];
};
_object setVariabl>
13:57:20   Error position: <_intentory, true];
};
_object setVariabl>
13:57:20   Error Undefined variable in expression: _intentory
13:57:20 File z\addons\dayz_server\system\server_monitor.sqf, line 140
13:57:20 Error in expression <["OEMPos", _pos, true];
 
};
 
if ((count _intentory > 0) && !(typeOf( _object) ==>
13:57:20   Error position: <_intentory > 0) && !(typeOf( _object) ==>
13:57:20   Error Undefined variable in expression: _intentory
13:57:20 File z\addons\dayz_server\system\server_monitor.sqf, line 204
13:57:20 Error in expression <["OEMPos", _pos, true];
 
};
 
if ((count _intentory > 0) && !(typeOf( _object) ==>
13:57:20   Error position: <_intentory > 0) && !(typeOf( _object) ==>
13:57:20   Error Undefined variable in expression: _intentory
13:57:20 File z\addons\dayz_server\system\server_monitor.sqf, line 204
13:57:20 Error in expression <n {
_object setVariable ["doorfriends", _intentory, true];
};
_object setVariabl>
13:57:20   Error position: <_intentory, true];
};
_object setVariabl>
13:57:20   Error Undefined variable in expression: _intentory
13:57:20 File z\addons\dayz_server\system\server_monitor.sqf, line 140
13:57:20 Error in expression <["OEMPos", _pos, true];
 
};
 
if ((count _intentory > 0) && !(typeOf( _object) ==>
13:57:20   Error position: <_intentory > 0) && !(typeOf( _object) ==>
13:57:20   Error Undefined variable in expression: _intentory
13:57:20 File z\addons\dayz_server\system\server_monitor.sqf, line 204
 
13:57:20 "HIVE: Vehicle Spawn limit reached!"
13:57:20 "HIVE: Spawning # of Debris: 50"
13:57:20 "HIVE: Spawning # of Ammo Boxes: 3"
13:57:20 "HIVE: Spawning # of Veins: 50"
13:57:20 "Total Number of spawn locations 5"
13:57:20 "[DZAI] Initializing DZAI version 2.2.1 Release Build 20141208 using base path z\addons\dayz_server\DZAI."
13:57:20 "[DZAI] Reading DZAI configuration file."
13:57:20 "[DZAI] DZAI configuration file loaded."
13:57:20 "[DZAI] Compiling DZAI functions."
13:57:20 "EPOCH EVENTS INIT"
13:57:22 "DEBUG VEIN: on road [9975.22,8472.92]"
13:57:27 "[DZAI] DZAI functions compiled."
13:57:27 "DZAI Debug: Detected mod variant @dayz_epoch."
13:57:27 "[DZAI] Epoch classnames loaded."
13:57:28 "[DZAI] DZAI settings: Debug Level: 1. DebugMarkers: false. WorldName: chernarus. ModName: epoch (Ver: 1.0.5.1). DZAI_dynamicWeaponList: false. VerifyTables: true."
13:57:28 "[DZAI] AI spawn settings: Static: true. Dynamic: false. Random: false. Air: false. Land: true."
13:57:28 "[DZAI] AI settings: DZAI_findKiller: true. DZAI_useHealthSystem: true. DZAI_weaponNoise: false. DZAI_zombieEnemy: true."
13:57:28 "[DZAI] DZAI loading completed in 7.582 seconds."
13:57:28 "DZAI Debug: DZAI Startup is running required script files..."
13:57:29 "[DZAI] DZAI finished building weighted weapongrade tables in 0.470001 seconds."
13:57:29 "DZAI Debug: CfgTownGenerator not found. Aborting serverside object patch. (This is not an error)"
13:57:29 "TIME SYNC: Local Time set to [2013,8,3,14,57]"
13:57:30 "[DZAI] Removing invalid classname: vil_Akaban_P29."
13:57:30 "[DZAI] Contents of DZAI_Rifles0 failed verification. Invalid entries removed."
13:57:31 "[DZAI] Removing invalid classname: RH_ctarglacog."
13:57:31 Warning Message: Script z\addons\dayz_server\WAI\customsettings.sqf not found
13:57:31 "WAI: AI Config File Loaded"
13:57:31 "[DZAI] Contents of DZAI_Rifles1 failed verification. Invalid entries removed."
13:57:31 "WAI: Initialising static missions"
13:57:31 "WAI: AI Monitor Started"
13:57:32 "WAI: Initialising missions"
13:57:33 "[DZAI] Removing invalid classname: CZ_LargeGunBag_EP1."
13:57:33 "[DZAI] Contents of DZAI_Backpacks3 failed verification. Invalid entries removed."
13:57:35 "WAI: Spawned in 5 M2StaticMG"
13:57:35 "[DZAI] Verified 188 unique classnames in 5.341 seconds."
13:57:35 Warning Message: You cannot play/edit this mission; it is dependent on downloadable content that has been deleted.
vilas_wwp_co
13:57:35 "Chernarus spawn areas loaded."
13:57:35 "DZAI Server Monitor will start in 1 minute."
13:57:35 "Chernarus static spawn configuration loaded."
13:57:36 Warning Message: You cannot play/edit this mission; it is dependent on downloadable content that has been deleted.
vilas_wwp_co
13:57:36 Warning Message: You cannot play/edit this mission; it is dependent on downloadable content that has been deleted.
vilas_wwp_co
13:57:36 Warning Message: You cannot play/edit this mission; it is dependent on downloadable content that has been deleted.
vilas_wwp_co
13:57:36 "WAI: Spawned in 5 M2StaticMG"
13:57:36 Warning Message: You cannot play/edit this mission; it is dependent on downloadable content that has been deleted.
vilas_rw_forces_co
13:57:36 Warning Message: You cannot play/edit this mission; it is dependent on downloadable content that has been deleted.
vilas_wwp_co
13:57:36 Warning Message: You cannot play/edit this mission; it is dependent on downloadable content that has been deleted.
vilas_wwp_co
13:57:36 Warning Message: You cannot play/edit this mission; it is dependent on downloadable content that has been deleted.
vilas_wwp_co
13:57:36 Warning Message: You cannot play/edit this mission; it is dependent on downloadable content that has been deleted.
vilas_wwp_co
13:57:36 "WAI: Spawned in 5 M2StaticMG"
13:57:36 Warning Message: You cannot play/edit this mission; it is dependent on downloadable content that has been deleted.
vilas_rw_forces_co

      

Link to comment
Share on other sites

  • 2 weeks later...

Once the plot pole is set wait a minute to get the blue manage plot button on the scroll menu. When the menu opens select yourself under the humans nearby column and hit add button at bottom. It should add you to the plotfriends column.

Link to comment
Share on other sites

Yeah i know that. But i want that the when a player builds a plot hes allready in plotfriends. btw the code:

 

///Allow owners to delete modulars
if(_isModular) then {
        if(_hasToolbox && "ItemCrowbar" in _itemsPlayer) then {
            _findNearestPoles = nearestObjects[player, ["Plastic_Pole_EP1_DZ"], DZE_PlotPole select 0];
            _IsNearPlot = count (_findNearestPoles);
            _fuid  = [];
            _allowed = [];
            if(_IsNearPlot > 0)then{
                _thePlot = _findNearestPoles select 0;
                _owner =  _thePlot getVariable ["ownerPUID","010"];
                _friends = _thePlot getVariable ["plotfriends", []];
                {
                  _friendUID = _x select 0;
                  _fuid  =  _fuid  + [_friendUID];
                } forEach _friends;
                _allowed = [_owner];    
                _allowed = [_owner] +  _fuid;   
                if ( _playerUID in _allowed && _ownerID in _allowed ) then {  // // If u want that the object also belongs to someone on the plotpole.
                    _player_deleteBuild = true;
                };                  
            }else{
                if(_ownerID == _playerUID)then{
                    _player_deleteBuild = true;
                };
            };                                        
        };
};
//Allow owners to delete modular doors without locks
if(_isModularDoor) then {
        if(_hasToolbox && "ItemCrowbar" in _itemsPlayer) then {         
            _findNearestPoles = nearestObjects[player, ["Plastic_Pole_EP1_DZ"], DZE_PlotPole select 0];
            _IsNearPlot = count (_findNearestPoles);
            _fuid  = [];
            _allowed = [];
            if(_IsNearPlot > 0)then{
                _thePlot = _findNearestPoles select 0;
                _owner =  _thePlot getVariable ["ownerPUID","010"];
                _friends = _thePlot getVariable ["plotfriends", []];
                {
                  _friendUID = _x select 0;
                  _fuid  =  _fuid  + [_friendUID];
                } forEach _friends;
                _allowed = [_owner];    
                _allowed = [_owner] +  _fuid;   
                if ( _playerUID in _allowed && _ownerID in _allowed) then { //  // If u want that the object also belongs to someone on the plotpole.
                    _player_deleteBuild = true;
                };                  
            }else{
                if(_ownerID == _playerUID)then{
                    _player_deleteBuild = true;
                };
            };                              
        };      
};

 

dont work for me. i cant delete any modular items after placing them. there is no menu for it. this code works only until i die.

 

//Allow owners to delete modulars
    if(_isModular && (dayz_characterID == _ownerID)) then {
            if(_hasToolbox && "ItemCrowbar" in _itemsPlayer) then {
                    _player_deleteBuild = true;
            };
    };
//Allow owners to delete modular doors without locks
    if(_isModularDoor && (dayz_characterID == _ownerID)) then {
            if(_hasToolbox && "ItemCrowbar" in _itemsPlayer) then {
                    _player_deleteBuild = true;
            };      
    }; 

Link to comment
Share on other sites

Oh well didn't find anything useful for my problem so I have to ask.

I installed the Plot management (maintain version) on my test server but its not working, got wait for host in the RTP I have this error; 

 

ErrorMessage: File mpmissions\__cur_mp.chernarus\plotManagement\plotManagement.hpp, line 5: /PlotManagement/Controls.RscText_7000: Undefined base class 'RscTextT'

 

Planing to add door management too hope wont have any problem.

 

I have Zupa's  scritps;

Coins

Spawn selection

advanced trading

Snap building/Vectors

 

Here is what I did

 

in description.ext;

#include "plotManagement\plotManagement.hpp"
#include "ZSC\config\ZSCdefines.hpp"
#include "ZSC\config\ZSCdialogs.hpp"

//Advanced trading
#include "zupa\advancedTrading\advancedTrading.hpp"

//Spawn Selection
#include "spawn\class.hpp"
#include "spawn\halo.hpp"
#include "spawn\spawn.hpp"


At the end of my compile.sqf;

/*Plot*/
PlotGetFriends = compile preprocessFileLineNumbers "plotManagement\plotGetFriends.sqf";
PlotNearbyHumans = compile preprocessFileLineNumbers "plotManagement\plotNearbyHumans.sqf";
PlotAddFriend = compile preprocessFileLineNumbers "plotManagement\plotAddFriend.sqf";
PlotRemoveFriend = compile preprocessFileLineNumbers "plotManagement\plotRemoveFriend.sqf";
/*Plot End*/

in variable.sqf the end of it looks like that;

s_player_lockUnlock_crtl = -1;
s_givemoney_dialog = -1;
s_bank_dialog = -1;
s_bank_dialog2 = -1;
s_player_plotManagement = -1;
};


selfactions.sqf looks like that;

5A-B

if (s_player_plotManagement < 0) then {
_adminList = ["0152"]; // Add admins here if you admins to able to manage all plotpoles
_owner = _cursorTarget getVariable ["CharacterID","0"];
_friends = _cursorTarget getVariable ["plotfriends", []];
_fuid = [];
{
_friendUID = _x select 0;
_fuid = _fuid + [_friendUID];
} forEach _friends;
_allowed = [_owner];
_allowed = [_owner] + _adminList + _fuid;
if(_owner == dayz_characterID || (getPlayerUID player) in _allowed)then{
s_player_plotManagement = player addAction ["Manage Plot", "plotManagement\initPlotManagement.sqf", [], 5, false];
};
};
if (s_player_maintain_area < 0) then {
s_player_maintain_area = player addAction [format["%1",localize "STR_EPOCH_ACTIONS_MAINTAREA"], "\z\addons\dayz_code\actions\maintain_area.sqf", "maintain", 5, false];
s_player_maintain_area_preview = player addAction [format["%1",localize "STR_EPOCH_ACTIONS_MAINTPREV"], "\z\addons\dayz_code\actions\maintain_area.sqf", "preview", 5, false];
};
} else {
player removeAction s_player_plotManagement;
s_player_plotManagement = -1;
player removeAction s_player_maintain_area;
s_player_maintain_area = -1;
player removeAction s_player_maintain_area_preview;
s_player_maintain_area_preview = -1;
};

5C

///Allow owners to delete modulars
if(_isModular) then {
if(_hasToolbox && "ItemCrowbar" in _itemsPlayer) then {
_findNearestPoles = nearestObjects[player, ["Plastic_Pole_EP1_DZ"], DZE_PlotPole select 0];
_IsNearPlot = count (_findNearestPoles);
_fuid = [];
_allowed = [];
if(_IsNearPlot > 0)then{
_thePlot = _findNearestPoles select 0;
_owner = _thePlot getVariable ["ownerPUID","010"];
_friends = _thePlot getVariable ["plotfriends", []];
{
_friendUID = _x select 0;
_fuid = _fuid + [_friendUID];
} forEach _friends;
_allowed = [_owner];
_allowed = [_owner] + _fuid;
if ( _playerUID in _allowed && _ownerID in _allowed ) then { // // If u want that the object also belongs to someone on the plotpole.
_player_deleteBuild = true;
};
}else{
if(_ownerID == _playerUID)then{
_player_deleteBuild = true;
};
};
};
};
//Allow owners to delete modular doors without locks
if(_isModularDoor) then {
if(_hasToolbox && "ItemCrowbar" in _itemsPlayer) then {
_findNearestPoles = nearestObjects[player, ["Plastic_Pole_EP1_DZ"], DZE_PlotPole select 0];
_IsNearPlot = count (_findNearestPoles);
_fuid = [];
_allowed = [];
if(_IsNearPlot > 0)then{
_thePlot = _findNearestPoles select 0;
_owner = _thePlot getVariable ["ownerPUID","010"];
_friends = _thePlot getVariable ["plotfriends", []];
{
_friendUID = _x select 0;
_fuid = _fuid + [_friendUID];
} forEach _friends;
_allowed = [_owner];
_allowed = [_owner] + _fuid;
if ( _playerUID in _allowed && _ownerID in _allowed) then { // // If u want that the object also belongs to someone on the plotpole.
_player_deleteBuild = true;
};
}else{
if(_ownerID == _playerUID)then{
_player_deleteBuild = true;
};
};
};
};

5D

//Engineering
{dayz_myCursorTarget removeAction _x} count s_player_repairActions;s_player_repairActions = [];
s_player_repair_crtl = -1;

{player removeAction _x} count s_player_combi;s_player_combi = [];

dayz_myCursorTarget = objNull;
s_player_lastTarget = [objNull,objNull,objNull,objNull,objNull];

{player removeAction _x} count s_player_parts;s_player_parts = [];
s_player_parts_crtl = -1;

{player removeAction _x} count s_player_lockunlock;s_player_lockunlock = [];
s_player_lockUnlock_crtl = -1;

player removeAction s_player_checkGear;
s_player_checkGear = -1;

player removeAction s_player_SurrenderedGear;
s_player_SurrenderedGear = -1;

player removeAction s_player_plotManagement;
s_player_plotManagement = -1;


In my buildVectors and snap pro are the player_build.sqf, player_upgrade.sqf, and player_buildingDowngrade.sqf

The line is changed in the 3 files.


server_monitor.sqf;

8A

_object setVariable ["ObjectID", _idKey, true];
if (typeOf (_object) == "Plastic_Pole_EP1_DZ") then {
_object setVariable ["plotfriends", _intentory, true];
};


8B looks like that;

/*ZSC*/
if( count (_intentory) > 3)then{
_object setVariable ["bankMoney", _intentory select 3, true];
}else{
_object setVariable ["bankMoney", 0, true];
};
/*ZSC*/
if ((count _intentory > 0) && !(typeOf( _object) == "Plastic_Pole_EP1_DZ")) then {
if (_type in DZE_LockedStorage) then {
// Fill variables with loot
_object setVariable ["WeaponCargo", (_intentory select 0),true];
_object setVariable ["MagazineCargo", (_intentory select 1),true];
_object setVariable ["BackpackCargo", (_intentory select 2),true];
} else {


9 look like that;

_object_inventory = {
private["_inventory","_previous","_key"];
if (typeOf (_object) == "Plastic_Pole_EP1_DZ") then{
_inventory = _object getVariable ["plotfriends", []]; //We're replacing the inventory with UIDs for this item
} else {
_inventory = [
getWeaponCargo _object,
getMagazineCargo _object,
getBackpackCargo _object
/*ZSC*/
, _object getVariable["bankMoney",0]
/*ZSC*/
];

Link to comment
Share on other sites

server_monitor.sqf;

8A

_object setVariable ["ObjectID", _idKey, true];
if (typeOf (_object) == "Plastic_Pole_EP1_DZ") then {
_object setVariable ["plotfriends", _intentory, true];
};


8B looks like that;

/*ZSC*/
if( count (_intentory) > 3)then{
_object setVariable ["bankMoney", _intentory select 3, true];
}else{
_object setVariable ["bankMoney", 0, true];
};
/*ZSC*/
if ((count _intentory > 0) && !(typeOf( _object) == "Plastic_Pole_EP1_DZ")) then {
if (_type in DZE_LockedStorage) then {
// Fill variables with loot
_object setVariable ["WeaponCargo", (_intentory select 0),true];
_object setVariable ["MagazineCargo", (_intentory select 1),true];
_object setVariable ["BackpackCargo", (_intentory select 2),true];
} else {

Go through and change every instance of inTentory with inVentory for starters. 

 

You are also missing this line in your description.ext : 

 

#include "plotManagement\defines.hpp"
#include "plotManagement\plotManagement.hpp"
#include "ZSC\config\ZSCdefines.hpp"
#include "ZSC\config\ZSCdialogs.hpp"
 
Put your lines in compiles.sqf around here : 
 
	player_unlockDoor =		compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\player_unlockDoor.sqf";
	player_changeCombo =		compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\player_changeCombo.sqf";
	PlotGetFriends = 		compile preprocessFileLineNumbers "plotManagement\plotGetFriends.sqf";
	PlotNearbyHumans = 		compile preprocessFileLineNumbers "plotManagement\plotNearbyHumans.sqf";
	PlotAddFriend = 		compile preprocessFileLineNumbers "plotManagement\plotAddFriend.sqf";
	PlotRemoveFriend = 		compile preprocessFileLineNumbers "plotManagement\plotRemoveFriend.sqf";
	MaintainPlot = 			compile preprocessFileLineNumbers "plotManagement\maintain_area.sqf";
	PlotPreview = 			compile preprocessFileLineNumbers "plotManagement\plotToggleMarkers.sqf";
	PlotObjects = 			compile preprocessFileLineNumbers "plotManagement\plotObjects.sqf";
	player_lockVault =              compile preprocessFileLineNumbers "custom\BuildVectors\compile\player_lockVault.sqf";
	fnc_SetPitchBankYaw =           compile preprocessFileLineNumbers "custom\BuildVectors\fnc_SetPitchBankYaw.sqf";
Link to comment
Share on other sites

server_monitor.sqf;

8A

_object setVariable ["ObjectID", _idKey, true];
if (typeOf (_object) == "Plastic_Pole_EP1_DZ") then {
_object setVariable ["plotfriends", _intentory, true];
};


8B looks like that;

/*ZSC*/
if( count (_intentory) > 3)then{
_object setVariable ["bankMoney", _intentory select 3, true];
}else{
_object setVariable ["bankMoney", 0, true];
};
/*ZSC*/
if ((count _intentory > 0) && !(typeOf( _object) == "Plastic_Pole_EP1_DZ")) then {
if (_type in DZE_LockedStorage) then {
// Fill variables with loot
_object setVariable ["WeaponCargo", (_intentory select 0),true];
_object setVariable ["MagazineCargo", (_intentory select 1),true];
_object setVariable ["BackpackCargo", (_intentory select 2),true];
} else {

Go through and change every instance of inTentory with inVentory for starters. 

 

You are also missing this line in your description.ext : 

 

#include "plotManagement\defines.hpp"
#include "plotManagement\plotManagement.hpp"
#include "ZSC\config\ZSCdefines.hpp"
#include "ZSC\config\ZSCdialogs.hpp"
 
Put your lines in compiles.sqf around here : 
 
	player_unlockDoor =		compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\player_unlockDoor.sqf";
	player_changeCombo =		compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\player_changeCombo.sqf";
	PlotGetFriends = 		compile preprocessFileLineNumbers "plotManagement\plotGetFriends.sqf";
	PlotNearbyHumans = 		compile preprocessFileLineNumbers "plotManagement\plotNearbyHumans.sqf";
	PlotAddFriend = 		compile preprocessFileLineNumbers "plotManagement\plotAddFriend.sqf";
	PlotRemoveFriend = 		compile preprocessFileLineNumbers "plotManagement\plotRemoveFriend.sqf";
	MaintainPlot = 			compile preprocessFileLineNumbers "plotManagement\maintain_area.sqf";
	PlotPreview = 			compile preprocessFileLineNumbers "plotManagement\plotToggleMarkers.sqf";
	PlotObjects = 			compile preprocessFileLineNumbers "plotManagement\plotObjects.sqf";
	player_lockVault =              compile preprocessFileLineNumbers "custom\BuildVectors\compile\player_lockVault.sqf";
	fnc_SetPitchBankYaw =           compile preprocessFileLineNumbers "custom\BuildVectors\fnc_SetPitchBankYaw.sqf";

 

 

Oh damn, intentory, lol they made a mistake then If you look there https://github.com/DevZupa/PlotManagement/blob/master/Modded_Epoch.md 

 

I'll do that thanks

Link to comment
Share on other sites

I've installed the following mods and everything works, except that players added to the plot pole can not build or remove items, and get "This building needs a Plot Pole within 100 meters" when they try to build. Players added are in the Db and can upgrade items. There are no errors in the .RPT. 
 
Plot for Life v2.35 & Snap Pro (by Raymix) v1.4.1
Build Vectors (version 4)
Door management (version 3.0)
Plot management Maintain (version 2.1)
 
I suspect it is because the "custom\A_Plot_for_Life\Action\player_build.sqf" included with Build Vectors v4 is different and does not include the lines you are told to replace in the Plot management Maintain (version 2.1) instructions. (See Spoiler)  Has anyone gotten this to work, or would anyone out there with the expertise to make the required changes be willing to help? I've been wrestling with this for 4 days now.  
 

From Plot Management Maintain (version 2.1) instructions

STEP 7 (Modifying player_build.sqf, player_upgrade.sqf, and player_buildingDowngrade.sqf)

ALL THREE OF THESE FILES NEED THE SAME EDIT, MAKE SURE YOU DO ALL FILES!!!!
Find
 
_friendlies     = player getVariable ["friendlyTo",[]];
// check if friendly to owner
if(_ownerID in _friendlies) then {
    _canBuildOnPlot = true;
};
Replace that with
 
_friendlies = _nearestPole getVariable ["plotfriends",[]];
_fuid  = [];
{
      _friendUID = _x select 0;
      _fuid  =  _fuid  + [_friendUID];
} forEach _friendlies;
_builder  = getPlayerUID player;
// check if friendly to owner
if(_builder in _fuid) then {
    _canBuildOnPlot = true;
};  

 

player_build.sqf from Build Vectors (version 4)

/*
DayZ Base Building
Made for DayZ Epoch please ask permission to use/edit/distrubute email [email protected]<script cf-hash='f9e31' type="text/javascript"> /* */</script>
*/
private ["_location","_dir","_classname","_item","_hasrequireditem","_missing","_hastoolweapon","_cancel","_reason","_started","_finished","_animState","_isMedic","_dis","_sfx","_hasbuilditem","_tmpbuilt","_onLadder","_isWater","_require","_text","_offset","_IsNearPlot","_isOk","_location1","_location2","_counter","_limit","_proceed","_num_removed","_position","_object","_canBuildOnPlot","_friendlies","_nearestPole","_ownerID","_findNearestPoles","_findNearestPole","_distance","_classnametmp","_ghost","_isPole","_needText","_lockable","_zheightchanged","_rotate","_combination_1","_combination_2","_combination_3","_combination_4","_combination","_combination_1_Display","_combinationDisplay","_zheightdirection","_abort","_isNear","_need","_needNear","_vehicle","_inVehicle","_requireplot","_objHDiff","_isLandFireDZ","_isTankTrap","_playerID", "_playerUID","_ownerID","_buildcheck","_isowner","_isfriendly","_maxBuildDistance","_vector","_buildOffset","_vUp"];
 
if(DZE_ActionInProgress) exitWith { cutText [(localize "str_epoch_player_40") , "PLAIN DOWN"]; };
DZE_ActionInProgress = true;
 
// disallow building if too many objects are found within 30m
if((count (([player] call FNC_GetPos) nearObjects ["All",30])) >= DZE_BuildingLimit) exitWith {DZE_ActionInProgress = false; cutText [(localize "str_epoch_player_41"), "PLAIN DOWN"];};
 
_onLadder = (getNumber (configFile >> "CfgMovesMaleSdr" >> "States" >> (animationState player) >> "onLadder")) == 1;
_isWater = dayz_isSwimming;
_cancel = false;
_reason = "";
_canBuildOnPlot = false;
 
_vehicle = vehicle player;
_inVehicle = (_vehicle != player);
 
_playerUID = [player] call FNC_GetPlayerUID;
 
if (DZE_APlotforLife) then {
_playerID = [player] call FNC_GetPlayerUID;
}else{
_playerID = dayz_characterID;
};
 
DZE_Q = false;
DZE_Z = false;
 
DZE_Q_alt = false;
DZE_Z_alt = false;
 
DZE_Q_ctrl = false;
DZE_Z_ctrl = false;
 
DZE_5 = false;
DZE_4 = false;
DZE_6 = false;
 
DZE_cancelBuilding = false;
 
DZE_updateVec = false;
DZE_memDir = 0;
DZE_memForBack = 0;
DZE_memLeftRight = 0;
 
call gear_ui_init;
closeDialog 1;
 
if (_isWater) exitWith {DZE_ActionInProgress = false; cutText [localize "str_player_26", "PLAIN DOWN"];};
if (_inVehicle) exitWith {DZE_ActionInProgress = false; cutText [(localize "str_epoch_player_42"), "PLAIN DOWN"];};
if (_onLadder) exitWith {DZE_ActionInProgress = false; cutText [localize "str_player_21", "PLAIN DOWN"];};
if (player getVariable["combattimeout", 0] >= time) exitWith {DZE_ActionInProgress = false; cutText [(localize "str_epoch_player_43"), "PLAIN DOWN"];};
 
_item = _this;
 
// Need Near Requirements
_abort = false;
_reason = "";
 
_needNear = getArray (configFile >> "CfgMagazines" >> _item >> "ItemActions" >> "Build" >> "neednearby");
 
{
switch(_x) do{
case "fire":
{
_distance = 3;
_isNear = {inflamed _x} count (([player] call FNC_GetPos) nearObjects _distance);
if(_isNear == 0) then {
_abort = true;
_reason = "fire";
};
};
case "workshop":
{
_distance = 3;
_isNear = count (nearestObjects [player, ["Wooden_shed_DZ","WoodShack_DZ","WorkBench_DZ"], _distance]);
if(_isNear == 0) then {
_abort = true;
_reason = "workshop";
};
};
case "fueltank":
{
_distance = 30;
_isNear = count (nearestObjects [player, dayz_fuelsources, _distance]);
if(_isNear == 0) then {
_abort = true;
_reason = "fuel tank";
};
};
};
} forEach _needNear;
 
 
if(_abort) exitWith {
cutText [format[(localize "str_epoch_player_135"),_reason,_distance], "PLAIN DOWN"];
DZE_ActionInProgress = false;
};
 
_classname = getText (configFile >> "CfgMagazines" >> _item >> "ItemActions" >> "Build" >> "create");
_classnametmp = _classname;
_require =  getArray (configFile >> "cfgMagazines" >> _this >> "ItemActions" >> "Build" >> "require");
_text = getText (configFile >> "CfgVehicles" >> _classname >> "displayName");
_ghost = getText (configFile >> "CfgVehicles" >> _classname >> "ghostpreview");
 
_lockable = 0;
if(isNumber (configFile >> "CfgVehicles" >> _classname >> "lockable")) then {
_lockable = getNumber(configFile >> "CfgVehicles" >> _classname >> "lockable");
};
 
_requireplot = DZE_requireplot;
if(isNumber (configFile >> "CfgVehicles" >> _classname >> "requireplot")) then {
_requireplot = getNumber(configFile >> "CfgVehicles" >> _classname >> "requireplot");
};
 
if (_requireplot == 0) then{_requireplot = false}else{_requireplot = true};
 
_isAllowedUnderGround = 1;
if(isNumber (configFile >> "CfgVehicles" >> _classname >> "nounderground")) then {
_isAllowedUnderGround = getNumber(configFile >> "CfgVehicles" >> _classname >> "nounderground");
};
 
_offset = getArray (configFile >> "CfgVehicles" >> _classname >> "offset");
if((count _offset) <= 0) then {
_offset = [0,1.5,0];
};
 
_isPole = (_classname == "Plastic_Pole_EP1_DZ");
_isLandFireDZ = (_classname == "Land_Fire_DZ");
 
_distance = DZE_PlotPole select 0;
_needText = localize "str_epoch_player_246";
 
if(_isPole) then {
_distance = DZE_PlotPole select 1;
};
 
// check for near plot
_findNearestPoles = nearestObjects [(vehicle player), ["Plastic_Pole_EP1_DZ"], _distance];
_findNearestPole = [];
 
{
if (alive _x) then {
_findNearestPole set [(count _findNearestPole),_x];
};
} count _findNearestPoles;
 
_IsNearPlot = count (_findNearestPole);
 
// If item is plot pole && another one exists within 45m
if(_isPole && _IsNearPlot > 0) exitWith {  DZE_ActionInProgress = false; cutText [(format [localize "str_epoch_player_44", DZE_PlotPole select 1]) , "PLAIN DOWN"]; };
 
if(_IsNearPlot == 0) then {
 
// Allow building of plotpole or items not requiring a plot pole
if(!(_requireplot) || _isLandFireDZ) then {
_canBuildOnPlot = true;
};
 
} else {
// Since there are plot poles nearby we need to check ownership && friend status
 
// check nearest pole only
_nearestPole = _findNearestPole select 0;
 
_buildcheck = [player, _nearestPole] call FNC_check_owner;
_isowner = _buildcheck select 0;
_isfriendly = _buildcheck select 1;
if ((_isowner) || (_isfriendly)) then {
_canBuildOnPlot = true;
};
};
 
// _message
if(!_canBuildOnPlot) exitWith {  DZE_ActionInProgress = false; cutText [format[(localize "STR_EPOCH_PLAYER_135"),_needText,_distance] , "PLAIN DOWN"]; };
 
_missing = "";
_hasrequireditem = true;
{
_hastoolweapon = _x in weapons player;
if(!_hastoolweapon) exitWith { _hasrequireditem = false; _missing = getText (configFile >> "cfgWeapons" >> _x >> "displayName"); };
} count _require;
 
_hasbuilditem = _this in magazines player;
if (!_hasbuilditem) exitWith {DZE_ActionInProgress = false; cutText [format[(localize "str_player_31"),_text,"build"] , "PLAIN DOWN"]; };
 
if (!_hasrequireditem) exitWith {DZE_ActionInProgress = false; cutText [format[(localize "str_epoch_player_137"),_missing] , "PLAIN DOWN"]; };
if (_hasrequireditem) then {
 
_location = [0,0,0];
_isOk = true;
 
// get initial players position & set max build range origin.
if ((DZE_BuildInPlotRadius) && (_requireplot)) then{
_location1 = [_nearestPole] call FNC_GetPos;
_maxBuildDistance = _Distance / 2;
diag_log text "Pole initial location.";
}else{
_location1 = [player] call FNC_GetPos;
_maxBuildDistance = 5;
diag_log text "Player initial location.";
};
 
diag_log format["[Player_Build] _location1 = %1, _maxBuildDistance = %2, DZE_BuildInPlotRadius = %3, _requireplot = %4",_location1, _maxBuildDistance, DZE_BuildInPlotRadius, _requireplot];
 
_dir = getDir player;
 
// if ghost preview available use that instead
if (_ghost != "") then {
_classname = _ghost;
};
 
_object = createVehicle [_classname, _location, [], 0, "CAN_COLLIDE"];
 
_object attachTo [player,_offset];
 
_position = [_object] call FNC_GetPos;
 
cutText [(localize "str_epoch_player_45"), "PLAIN DOWN"];
 
_objHDiff = 0;
 
if !(_item in DZE_noRotate) then{
["","","",["Init","Init",0]] spawn build_vectors;
};
 
while {_isOk} do {
 
_zheightchanged = false;
_zheightdirection = "";
_rotate = false;
 
if (DZE_Q) then {
DZE_Q = false;
_zheightdirection = "up";
_zheightchanged = true;
};
if (DZE_Z) then {
DZE_Z = false;
_zheightdirection = "down";
_zheightchanged = true;
};
if (DZE_Q_alt) then {
DZE_Q_alt = false;
_zheightdirection = "up_alt";
_zheightchanged = true;
};
if (DZE_Z_alt) then {
DZE_Z_alt = false;
_zheightdirection = "down_alt";
_zheightchanged = true;
};
if (DZE_Q_ctrl) then {
DZE_Q_ctrl = false;
_zheightdirection = "up_ctrl";
_zheightchanged = true;
};
if (DZE_Z_ctrl) then {
DZE_Z_ctrl = false;
_zheightdirection = "down_ctrl";
_zheightchanged = true;
};
if (DZE_4) then {
_rotate = true;
DZE_4 = false;
if(DZE_dirWithDegrees) then{
DZE_memDir = DZE_memDir - DZE_curDegree;
}else{
DZE_memDir = DZE_memDir - 45;
};
};
if (DZE_6) then {
_rotate = true;
DZE_6 = false;
if(DZE_dirWithDegrees) then{
DZE_memDir = DZE_memDir + DZE_curDegree;
}else{
DZE_memDir = DZE_memDir + 45;
};
};
 
if(DZE_updateVec) then{
[_object,[DZE_memForBack,DZE_memLeftRight,DZE_memDir]] call fnc_SetPitchBankYaw;
DZE_updateVec = false;
};
 
if(_rotate) then {
[_object,[DZE_memForBack,DZE_memLeftRight,DZE_memDir]] call fnc_SetPitchBankYaw;
};
 
if(_zheightchanged) then {
detach _object;
 
_position = getPosATL _object;
 
if(_zheightdirection == "up") then {
_position set [2,((_position select 2)+0.1)];
_objHDiff = _objHDiff + 0.1;
};
if(_zheightdirection == "down") then {
_position set [2,((_position select 2)-0.1)];
_objHDiff = _objHDiff - 0.1;
};
 
if(_zheightdirection == "up_alt") then {
_position set [2,((_position select 2)+1)];
_objHDiff = _objHDiff + 1;
};
if(_zheightdirection == "down_alt") then {
_position set [2,((_position select 2)-1)];
_objHDiff = _objHDiff - 1;
};
 
if(_zheightdirection == "up_ctrl") then {
_position set [2,((_position select 2)+0.01)];
_objHDiff = _objHDiff + 0.01;
};
if(_zheightdirection == "down_ctrl") then {
_position set [2,((_position select 2)-0.01)];
_objHDiff = _objHDiff - 0.01;
};
 
_object setDir (getDir _object);
 
if((_isAllowedUnderGround == 0) && ((_position select 2) < 0)) then {
_position set [2,0];
};
 
_object setPosATL _position;
 
//diag_log format["DEBUG Change BUILDING POS: %1", _position];
 
_object attachTo [player];
 
[_object,[DZE_memForBack,DZE_memLeftRight,DZE_memDir]] call fnc_SetPitchBankYaw;
 
};
 
sleep 0.5;
 
_location2 = getPosATL player;
 
if(DZE_5) exitWith {
_isOk = false;
detach _object;
_dir = getDir _object;
_vector = [(vectorDir _object),(vectorUp _object)];
_position = getPosATL _object;
//diag_log format["DEBUG BUILDING POS: %1", _position];
deleteVehicle _object;
};
 
if(_location1 distance _location2 > 5) exitWith {
_isOk = false;
_cancel = true;
_reason = "You've moved to far away from where you started building (within 5 meters)";
detach _object;
deleteVehicle _object;
};
 
if(abs(_objHDiff) > 5) exitWith {
_isOk = false;
_cancel = true;
_reason = "Cannot move up or down more than 5 meters";
detach _object;
deleteVehicle _object;
};
 
if (player getVariable["combattimeout", 0] >= time) exitWith {
_isOk = false;
_cancel = true;
_reason = (localize "str_epoch_player_43");
detach _object;
deleteVehicle _object;
};
 
if (DZE_cancelBuilding) exitWith {
_isOk = false;
_cancel = true;
_reason = "Cancelled building.";
detach _object;
deleteVehicle _object;
};
};
 
//No building on roads unless toggled
if (!DZE_BuildOnRoads) then {
if (isOnRoad _position) then { _cancel = true; _reason = "Cannot build on a road."; };
};
 
// No building in trader zones
if(!canbuild) then { _cancel = true; _reason = "Cannot build in a city."; };
 
if ((DZE_BuildOnGround) && !(_requireplot)) then{
_toohigh = false;
if (_ispole) then{
if ((_position select 2) > DZE_MaxPlotHeight) then{_toohigh = true};
}else{
if ((_position select 2) > DZE_MaxNoPlotNeededHeight) then{_toohigh = true};
};
if (_toohigh) exitWith {
_isOk = false;
_cancel = true;
_reason = "This item must be built at ground level.";
detach _object;
deleteVehicle _object;
};
};
 
if(!_cancel) then {
 
_classname = _classnametmp;
 
// Start Build
_tmpbuilt = createVehicle [_classname, _location, [], 0, "CAN_COLLIDE"];
 
_tmpbuilt setdir _dir;
 
// Get position based on object
_location = _position;
 
if((_isAllowedUnderGround == 0) && ((_location select 2) < 0)) then {
_location set [2,0];
};
 
_tmpbuilt setVectorDirAndUp _vector;
 
_buildOffset = [0,0,0];
_vUp = _vector select 1;
switch (_classname) do {
case "MetalFloor_DZ": { _buildOffset = [(_vUp select 0) * .148, (_vUp select 1) * .148,0]; };
};
 
_location = [
(_location select 0) - (_buildOffset select 0),
(_location select 1) - (_buildOffset select 1),
(_location select 2) - (_buildOffset select 2)
];
 
if (surfaceIsWater _location) then {
_tmpbuilt setPosASL _location;
_location = ASLtoATL _location; //Database uses ATL
} else {
_tmpbuilt setPosATL _location;
};
 
cutText [format[(localize "str_epoch_player_138"),_text], "PLAIN DOWN"];
 
_limit = 3;
 
if (DZE_StaticConstructionCount > 0) then {
_limit = DZE_StaticConstructionCount;
}
else {
if (isNumber (configFile >> "CfgVehicles" >> _classname >> "constructioncount")) then {
_limit = getNumber(configFile >> "CfgVehicles" >> _classname >> "constructioncount");
};
};
 
_isOk = true;
_proceed = false;
_counter = 0;
 
while {_isOk} do {
 
[10,10] call dayz_HungerThirst;
player playActionNow "Medic";
 
_dis=20;
_sfx = "repair";
[player,_sfx,0,false,_dis] call dayz_zombieSpeak;
[player,_dis,true,([player] call FNC_GetPos)] spawn player_alertZombies;
 
r_interrupt = false;
r_doLoop = true;
_started = false;
_finished = false;
 
while {r_doLoop} do {
_animState = animationState player;
_isMedic = ["medic",_animState] call fnc_inString;
if (_isMedic) then {
_started = true;
};
if (_started && !_isMedic) then {
r_doLoop = false;
_finished = true;
};
if (r_interrupt || (player getVariable["combattimeout", 0] >= time)) then {
r_doLoop = false;
};
if (DZE_cancelBuilding) exitWith {
r_doLoop = false;
};
sleep 0.1;
};
r_doLoop = false;
 
 
if(!_finished) exitWith {
_isOk = false;
_proceed = false;
};
 
if(_finished) then {
_counter = _counter + 1;
};
 
cutText [format[(localize "str_epoch_player_139"),_text, _counter,_limit], "PLAIN DOWN"];
 
if(_counter == _limit) exitWith {
_isOk = false;
_proceed = true;
};
 
};
 
if (_proceed) then {
 
_num_removed = ([player,_item] call BIS_fnc_invRemove);
if(_num_removed == 1) then {
 
cutText [format[localize "str_build_01",_text], "PLAIN DOWN"];
 
if (_isPole) then {
[] spawn player_plotPreview;
};
 
_tmpbuilt setVariable ["OEMPos",_location,true];
 
if(_lockable > 1) then {
 
_combinationDisplay = "";
 
switch (_lockable) do {
 
case 2: { // 2 lockbox
_combination_1 = (floor(random 3)) + 100; // 100=red,101=green,102=blue
_combination_2 = floor(random 10);
_combination_3 = floor(random 10);
_combination = format["%1%2%3",_combination_1,_combination_2,_combination_3];
dayz_combination = _combination;
if (_combination_1 == 100) then {
_combination_1_Display = "Red";
};
if (_combination_1 == 101) then {
_combination_1_Display = "Green";
};
if (_combination_1 == 102) then {
_combination_1_Display = "Blue";
};
_combinationDisplay = format["%1%2%3",_combination_1_Display,_combination_2,_combination_3];
};
 
case 3: { // 3 combolock
_combination_1 = floor(random 10);
_combination_2 = floor(random 10);
_combination_3 = floor(random 10);
_combination = format["%1%2%3",_combination_1,_combination_2,_combination_3];
dayz_combination = _combination;
_combinationDisplay = _combination;
};
 
case 4: { // 4 safe
_combination_1 = floor(random 10);
_combination_2 = floor(random 10);
_combination_3 = floor(random 10);
_combination_4 = floor(random 10);
_combination = format["%1%2%3%4",_combination_1,_combination_2,_combination_3,_combination_4];
dayz_combination = _combination;
_combinationDisplay = _combination;
};
};
 
_tmpbuilt setVariable ["CharacterID",_combination,true];
_tmpbuilt setVariable ["ownerPUID",_playerID,true];
 
PVDZE_obj_Publish = [_combination,_tmpbuilt,[_dir,_location,_playerUID,_vector],_classname];
publicVariableServer "PVDZE_obj_Publish";
 
cutText [format[(localize "str_epoch_player_140"),_combinationDisplay,_text], "PLAIN DOWN", 5];
                    systemChat format [(localize "str_epoch_player_140"),_combinationDisplay,_text];
 
} else {
_tmpbuilt setVariable ["CharacterID",dayz_characterID,true];
_tmpbuilt setVariable ["ownerPUID",_playerID,true];
 
// fire?
if(_tmpbuilt isKindOf "Land_Fire_DZ") then {
_tmpbuilt spawn player_fireMonitor;
} else {
PVDZE_obj_Publish = [dayz_characterID,_tmpbuilt,[_dir,_location,_playerUID,_vector],_classname];
publicVariableServer "PVDZE_obj_Publish";
};
};
} else {
deleteVehicle _tmpbuilt;
cutText [(localize "str_epoch_player_46") , "PLAIN DOWN"];
};
 
} else {
r_interrupt = false;
if (vehicle player == player) then {
[objNull, player, rSwitchMove,""] call RE;
player playActionNow "stop";
};
 
deleteVehicle _tmpbuilt;
 
cutText [(localize "str_epoch_player_46") , "PLAIN DOWN"];
};
 
} else {
cutText [format[(localize "str_epoch_player_47"),_text,_reason], "PLAIN DOWN"];
};
};
 
DZE_ActionInProgress = false;

Link to comment
Share on other sites

I've installed the following mods and everything works, except that players added to the plot pole can not build or remove items, and get "This building needs a Plot Pole within 100 meters" when they try to build. Players added are in the Db and can upgrade items. There are no errors in the .RPT. 

 

Plot for Life v2.35 & Snap Pro (by Raymix) v1.4.1

Build Vectors (version 4)

Door management (version 3.0)

Plot management Maintain (version 2.1)

 

I suspect it is because the "custom\A_Plot_for_Life\Action\player_build.sqf" included with Build Vectors v4 is different and does not include the lines you are told to replace in the Plot management Maintain (version 2.1) instructions. (See Spoiler)  Has anyone gotten this to work, or would anyone out there with the expertise to make the required changes be willing to help? I've been wrestling with this for 4 days now.  

 

Found the fix.  You do the change in the player_build_plotCheck.sqf instead of the player_build.sqf.  Everything looks to be working now.

Link to comment
Share on other sites

Your scripts are really nice... but dont tell me i have to check all classes in defines.hpp if they exist anywhere.... why are you using same classes in different scripts?

 

Because they are default arma classes... i don't make them up myself. And i keep upgrading stuf. So sometimes it's outdated on older scripts.

 

CTRL + F ( paste the name) -> Search all files. ( 10sec work) ^^

Link to comment
Share on other sites

Because they are default arma classes... i don't make them up myself. And i keep upgrading stuf. So sometimes it's outdated on older scripts.

 

CTRL + F ( paste the name) -> Search all files. ( 10sec work) ^^

 

I Just Diffmerge, the old against the new, then keep the new xD

Works like a charm.

Link to comment
Share on other sites

Because they are default arma classes... i don't make them up myself. And i keep upgrading stuf. So sometimes it's outdated on older scripts.

 

CTRL + F ( paste the name) -> Search all files. ( 10sec work) ^^

 

Yeah but for every Classname!? If i compare the files (with notepad ++) there is no overview...

Link to comment
Share on other sites

  • 2 weeks later...

Is there a video on how to install this? Having some issues getting it working, I get it installed and no errors how in the RPT but when I scroll on the plot pole nothing shows up as far as managing the plot goes. I do still get the options to preview area and what not.

Link to comment
Share on other sites

hey zupa, great mod, but theres a few things i was concerned about ...

 

i installed this without plot for life and when i build a plotpole it does not come with the builders uid and name pre entered in it, so i modified player_build and added this:

if(_tmpbuilt isKindOf "Plastic_Pole_EP1_DZ") then {
	_tmpbuilt setVariable ["plotfriends",[[(getPlayerUID player),(name player)]],true];
	PVDZE_veh_Update = [_tmpbuilt,"gear"];
	publicVariableServer "PVDZE_veh_Update";
};

right below this:

if(_tmpbuilt isKindOf "Land_Fire_DZ") then {
	_tmpbuilt spawn player_fireMonitor;
} else {
	PVDZE_obj_Publish = [dayz_characterID,_tmpbuilt,[_dir,_location],_classname];
	publicVariableServer "PVDZE_obj_Publish";

and this seems to work fine ...

 

also in the edits for fn_selfactions.sqf you have an undefined variable in _playerUID, my guess is you forgot to add this somewhere?:

_playerUID = getPlayerUID player;

i added it right below this line myself so it wont have to check player uid each time it calls fn_selfactions, but only when conditions are met:

if(_hasToolbox && "ItemCrowbar" in _itemsPlayer) then {

other than that, i think its really cool mod, thanks for sharing this.

 

edit:

oh and i forgot to mention, you could make it way easier for users by adding an sql string to run on the database and fetch all pre mod poles and add owners (names and uid's) to inventory field ("plotfriends") on all pre mod poles, just saying its possible.

 

I have the top edit by you, but am not sure where to place the bottom one in fn_selfactions. I have three instances of if(_hasToolbox && "ItemCrowbar" in _itemsPlayer) then { : 

	if(_isAlive) then {
		
		//Allow player to delete objects
		//if(_isDestructable || _isWreck || _isRemovable || _isWreckBuilding) then {
		if((_isDestructable && _ownerID == dayz_characterID) or _isWreck or _isRemovable or _isWreckBuilding) then {
			if(_hasToolbox && "ItemCrowbar" in _itemsPlayer) then {
				_player_deleteBuild = true;
			};
		};
		
///Allow owners to delete modulars
if(_isModular) then {
        if(_hasToolbox && "ItemCrowbar" in _itemsPlayer) then {
            _findNearestPoles = nearestObjects[player, ["Plastic_Pole_EP1_DZ"], DZE_PlotPole select 0];
            _IsNearPlot = count (_findNearestPoles);
            _fuid  = [];
            _allowed = [];
            if(_IsNearPlot > 0)then{
                _thePlot = _findNearestPoles select 0;
                _owner =  _thePlot getVariable ["CharacterID","010"];
                _friends = _thePlot getVariable ["plotfriends", []];
                {
                  _friendUID = _x select 0;
                  _fuid  =  _fuid  + [_friendUID];
                } forEach _friends;
                _allowed = [_owner];    
                _allowed = [_owner] +  _fuid;   
                if (_owner == dayz_characterID || (getPlayerUID player) in _allowed) then {  // // If u want that the object also belongs to someone on the plotpole.
                    _player_deleteBuild = true;
                };                  
            }else{
                if(_owner == dayz_characterID)then{
                    _player_deleteBuild = true;
                };
            };                                        
        };
};
//Allow owners to delete modular doors without locks
if(_isModularDoor) then {
        if(_hasToolbox && "ItemCrowbar" in _itemsPlayer) then {         
            _findNearestPoles = nearestObjects[player, ["Plastic_Pole_EP1_DZ"], DZE_PlotPole select 0];
            _IsNearPlot = count (_findNearestPoles);
            _fuid  = [];
            _allowed = [];
            if(_IsNearPlot > 0)then{
                _thePlot = _findNearestPoles select 0;
                _owner =  _thePlot getVariable ["CharacterID","010"];
                _friends = _thePlot getVariable ["plotfriends", []];
                {
                  _friendUID = _x select 0;
                  _fuid  =  _fuid  + [_friendUID];
                } forEach _friends;
                _allowed = [_owner];    
                _allowed = [_owner] +  _fuid;   
                if (_owner == dayz_characterID || (getPlayerUID player) in _allowed) then { //  // If u want that the object also belongs to someone on the plotpole.
                    _player_deleteBuild = true;
                };                  
            }else{
                if(_owner == dayz_characterID)then{
                    _player_deleteBuild = true;
                };
            };                              
        };      
};
Link to comment
Share on other sites

 

I have the top edit by you, but am not sure where to place the bottom one in fn_selfactions. I have three instances of if(_hasToolbox && "ItemCrowbar" in _itemsPlayer) then { : 

	if(_isAlive) then {
		
		//Allow player to delete objects
		//if(_isDestructable || _isWreck || _isRemovable || _isWreckBuilding) then {
		if((_isDestructable && _ownerID == dayz_characterID) or _isWreck or _isRemovable or _isWreckBuilding) then {
			if(_hasToolbox && "ItemCrowbar" in _itemsPlayer) then {
				_player_deleteBuild = true;
			};
		};
		
///Allow owners to delete modulars
if(_isModular) then {
        if(_hasToolbox && "ItemCrowbar" in _itemsPlayer) then {
            _findNearestPoles = nearestObjects[player, ["Plastic_Pole_EP1_DZ"], DZE_PlotPole select 0];
            _IsNearPlot = count (_findNearestPoles);
            _fuid  = [];
            _allowed = [];
            if(_IsNearPlot > 0)then{
                _thePlot = _findNearestPoles select 0;
                _owner =  _thePlot getVariable ["CharacterID","010"];
                _friends = _thePlot getVariable ["plotfriends", []];
                {
                  _friendUID = _x select 0;
                  _fuid  =  _fuid  + [_friendUID];
                } forEach _friends;
                _allowed = [_owner];    
                _allowed = [_owner] +  _fuid;   
                if (_owner == dayz_characterID || (getPlayerUID player) in _allowed) then {  // // If u want that the object also belongs to someone on the plotpole.
                    _player_deleteBuild = true;
                };                  
            }else{
                if(_owner == dayz_characterID)then{
                    _player_deleteBuild = true;
                };
            };                                        
        };
};
//Allow owners to delete modular doors without locks
if(_isModularDoor) then {
        if(_hasToolbox && "ItemCrowbar" in _itemsPlayer) then {         
            _findNearestPoles = nearestObjects[player, ["Plastic_Pole_EP1_DZ"], DZE_PlotPole select 0];
            _IsNearPlot = count (_findNearestPoles);
            _fuid  = [];
            _allowed = [];
            if(_IsNearPlot > 0)then{
                _thePlot = _findNearestPoles select 0;
                _owner =  _thePlot getVariable ["CharacterID","010"];
                _friends = _thePlot getVariable ["plotfriends", []];
                {
                  _friendUID = _x select 0;
                  _fuid  =  _fuid  + [_friendUID];
                } forEach _friends;
                _allowed = [_owner];    
                _allowed = [_owner] +  _fuid;   
                if (_owner == dayz_characterID || (getPlayerUID player) in _allowed) then { //  // If u want that the object also belongs to someone on the plotpole.
                    _player_deleteBuild = true;
                };                  
            }else{
                if(_owner == dayz_characterID)then{
                    _player_deleteBuild = true;
                };
            };                              
        };      
};

 

its been quite a while since using this, so im sorry to say i really dont remeber.

however it seems to me its not needed in the part you posted here ...

Link to comment
Share on other sites

Oh, okay. Just that people are reporting not being able to remove sandbags, fuel pumps, etc after a death. 

 

im pretty sure i custimized that part of code to fix that and posted it here.

 

i remeber something about making sure the plotpole could only be removed by the owners or others could dismantle an entire base if they could just get to the plotpole

Link to comment
Share on other sites

So, I've tried 6 times to install this mod onto the server I have.

 

Every, single, time it has NOT worked.

 

I'm close to tearing my hair out.

 

Can someone go on skype/teamspeak and speak to me instead of typing words at me because words do NOT help sometimes.

 

Thank you to anyone that is able to help and to the people that read this and expect someone else to answer when you know the how to, get off your ass and help someone.

Link to comment
Share on other sites

So, I've tried 6 times to install this mod onto the server I have.

 

Every, single, time it has NOT worked.

 

I'm close to tearing my hair out.

 

Can someone go on skype/teamspeak and speak to me instead of typing words at me because words do NOT help sometimes.

 

Thank you to anyone that is able to help and to the people that read this and expect someone else to answer when you know the how to, get off your ass and help someone.

You know i hate to be "that guy" that is going to be perfectly honest but here goes.

You are not asking for help in a very respectful way at all with that last sentence, makes you sound like a douche. "Literally"

Link to comment
Share on other sites

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
×
×
  • Create New...