Jump to content

Tanita-Corp

Member
  • Posts

    93
  • Joined

  • Last visited

Posts posted by Tanita-Corp

  1. did everything exactly according to the instructions:

    Install Arma 2 and Arma 2 OA

    1.thumb.jpg.0c648b12734726daad27e127f0d55ce2.jpg

    copy @DayZ_Epoch_Server MPmissions keys and dll in directory Arma 2 OA

    2.thumb.jpg.7f44344af9fa76cf90928fef39eb48eb.jpg

    put DZE_Server_Config in disk C:

    4.thumb.jpg.29ff5200eab2a05eaedf8f588d7626be.jpg

    start 11_chernarus.bat in arma 2 oa directory

    6.jpg.6bbbda6a34f78d8cd3017aec5eedefcc.jpg

     

    why he does not see @DayZ_Epoch and mpmission?

    errrors:

    Mission DayZ Epoch Chernarus read from directory.

    Mission DayZ Epoch Chernarus read from directory.

    Mission DayZ Epoch Chernarus read from directory.

    any idea???

  2. 1 hour ago, icomrade said:

    Do not copy the addons folder from A2 into OA!! This is how you end up with config incompatibility between server and client as well as the init file error in your rpt and video. The server install package readme.txt tells you how to properly launch the server with a link to the A2 addons directory.

    thx.  So I will do it.

  3. im install server old metod. replace pbo and dll.

    need install dze_config etc?

     

    Error in expression <;
    _recompile = (count _this) > 0;
    
    
    if (BIS_fnc_init && !_recompile) exitwith {t>
    20:48:09   Error position: <BIS_fnc_init && !_recompile) exitwith {t>
    20:48:09   Error Undefined variable in expression: bis_fnc_init
    20:48:09 File ca\Modules\Functions\init.sqf, line 28

    error at all server

  4.  

    Safes reset to 0000 after 14 days on mine so it will catch those, but that's server-specific.

     

    FireDaemon runs anything you want as a service. Lots of benefits, one of which is being able to run pre-service operations.

     

    An example is on my servers every time a service starts (a dayz server for example) it runs through a few pre-service operations before the server starts.

     

    One of which is a set of .SQL queries:

    /* =================== DELETES =================== */
    
    /* Delete destroyed objects */
    DELETE FROM `object_data`
    WHERE Damage = 1;
    
    /* Delete old login data */
    DELETE FROM `player_login`;
    
    /* Delete untouched server spawned vehicles */
    DELETE FROM `object_data`
    WHERE `LastUpdated` < DATE_SUB(CURRENT_TIMESTAMP, INTERVAL 3 DAY)
    AND `CharacterID` = '0'
    AND `Classname`
    NOT REGEXP 'barrier|storage|shed|bench|wall|floor|fence|pump|wood|hrescue|stick|pole|generator|panel|house|rack|bag|stand|barrel|canvas|wire|hedgehog|net|trap|ramp|fort|sand|scaffold|nest';
    
    /* Delete all vehicles not touched in 7 days */
    DELETE FROM `object_data`
    WHERE `LastUpdated` < DATE_SUB(CURRENT_TIMESTAMP, INTERVAL 7 DAY)
    AND `Classname`
    NOT REGEXP 'barrier|storage|shed|bench|wall|floor|fence|pump|wood|hrescue|stick|pole|generator|panel|house|rack|bag|stand|barrel|canvas|wire|hedgehog|net|trap|ramp|fort|sand|scaffold|nest';
    
    /* Delete empty storage objects */
    DELETE FROM `object_data` 
    WHERE `LastUpdated` < DATE_SUB(CURRENT_TIMESTAMP, INTERVAL 3 DAY) 
    AND ( (`Inventory` IS NULL) OR (`Inventory` = '[]') OR (`Inventory` = '[[[],[]],[[],[]],[[],[]]]') )
    AND `Classname` IN ('Wooden_shed_DZ','WoodShack_DZ', 'TentStorage', 'TentStorageDomed', 'TentStorageDomed2', 'WoodCrate_DZ', 'GunRack_DZ', 'OutHouse_DZ', 'StorageShed_DZ');
    
    /* Delete unused storage objects */
    DELETE FROM `object_data` 
    WHERE `LastUpdated` < DATE_SUB(CURRENT_TIMESTAMP, INTERVAL 10 DAY) 
    AND `Classname` IN ('Wooden_shed_DZ','WoodShack_DZ', 'TentStorage', 'TentStorageDomed', 'TentStorageDomed2', 'WoodCrate_DZ', 'GunRack_DZ', 'OutHouse_DZ', 'StorageShed_DZ');
    
    /* Delete damaged bikes/motorcycles */
    DELETE FROM object_data WHERE (classname = "Old_bike_TK_INS_EP1" OR classname = "MMT_CIV")
    AND (hitpoints LIKE "%[\"wheel_1_damper\",1]%"
    AND hitpoints LIKE "%[\"wheel_2_damper\",1]%");
    
    /* =================== UPDATES =================== */
    
    /* Unlock Purchased Untouched Vehicles */
    UPDATE `object_data`
    SET `CharacterID` = 0
    WHERE `LastUpdated` < DATE_SUB(CURRENT_TIMESTAMP, INTERVAL 5 DAY)
    AND `CharacterID` > 0
    AND `Classname`
    NOT REGEXP 'barrier|storage|shed|bench|wall|floor|fence|pump|wood|hrescue|stick|pole|generator|panel|house|rack|bag|stand|barrel|canvas|wire|hedgehog|net|trap|ramp|fort|sand|scaffold|nest';
    /* Set Damage On Objects via Age */
    UPDATE `Object_DATA` SET `Damage`= 0.2
    WHERE `ObjectUID` <> 0
    AND `CharacterID` <> 0
    AND `Datestamp` < DATE_SUB(CURRENT_TIMESTAMP, INTERVAL 3 DAY)
    AND ( (`Inventory` IS NULL) OR (`Inventory` = '[]') );
    
    /* Set Safe Combo to 0000 */
    UPDATE `object_data` 
    SET `CharacterID` = 0 
    WHERE `LastUpdated` < DATE_SUB(CURRENT_TIMESTAMP, INTERVAL 14 DAY) 
    AND `CharacterID` > 0 
    AND `Classname` = "VaultStorageLocked"  
    AND `Inventory` <> '[]'
    AND `Inventory` IS NOT NULL;
    
    /* Set Lock Box to RED 00 */
    UPDATE `object_data` 
    SET `CharacterID` = 10000 
    WHERE `LastUpdated` < DATE_SUB(CURRENT_TIMESTAMP, INTERVAL 14 DAY) 
    AND `CharacterID` > 0 
    AND `Classname` = "LockboxStorageLocked"  
    AND `Inventory` <> '[]' 
    AND `Inventory` IS NOT NULL;
    

    y used is our servers?

  5. ohhh ok

     

    i confused again)

     

    this right line? 

     

    //Create it

    _object = createVehicle [_type, _pos, [], 0, "CAN_COLLIDE"];
    if ((count _intentory > 0) && !(typeOf( _object) == "Plastic_Pole_EP1_DZ") && !(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];

     

    PL4LIFE 

    DOORMANAGER

    PLOTMANAGER

  6. Ohhh god

    my friend not save after restart

    in DB ["VSS_vintorez","aidlpercmstpsraswrfldnon_idlesteady02",37,["765611780443623500"]]

     

    my server_updateObject.sqf

    private ["_object","_type","_objectID","_uid","_lastUpdate","_needUpdate","_object_position","_object_inventory","_object_damage","_isNotOk","_parachuteWest","_firstTime","_object_killed","_object_repair","_isbuildable"];
    
    _object = 	_this select 0;
    
    if(isNull(_object)) exitWith {
    	diag_log format["Skipping Null Object: %1", _object];
    };
    
    _type = _this select 1;
    _parachuteWest = ((typeOf _object == "ParachuteWest") || (typeOf _object == "ParachuteC"));
    _isbuildable = (typeOf _object) in dayz_allowedObjects;
    _isNotOk = false;
    _firstTime = false;
    _objectID = _object getVariable ["ObjectID","0"];
    _uid = _object getVariable ["ObjectUID","0"];
    
    if ((typeName _objectID != "string") || (typeName _uid != "string")) then
    { 
        diag_log(format["Non-string Object: ID %1 UID %2", _objectID, _uid]);
        _objectID = "0";
        _uid = "0";
    };
    
    if (!_parachuteWest && !(locked _object)) then {
    	if (_objectID == "0" && _uid == "0") then
    	{
    		_object_position = getPosATL _object;
        	_isNotOk = true;
    	};
    };
    
    if (_isNotOk && _isbuildable) exitWith {  };
    
    if (_isNotOk) exitWith { deleteVehicle _object; diag_log(format["Deleting object %1 with invalid ID at pos [%2,%3,%4]",typeOf _object,_object_position select 0,_object_position select 1, _object_position select 2]); };
    
    _lastUpdate = _object getVariable ["lastUpdate",time];
    _needUpdate = _object in needUpdate_objects;
    
    _object_position = {
    	private["_position","_worldspace","_fuel","_key"];
    		_position = getPosATL _object;
    		_worldspace = [
    			round(direction _object),
    			_position
    		];
    		_fuel = 0;
    		if (_object isKindOf "AllVehicles") then {
    			_fuel = fuel _object;
    		};
    		_key = format["CHILD:305:%1:%2:%3:",_objectID,_worldspace,_fuel];
    		_key call server_hiveWrite;
    };
    
    _object_inventory = {
    	private["_inventory","_previous","_key"];
    	
    	_isNormal = true;
    if (typeOf (_object) == "Plastic_Pole_EP1_DZ") then{
        _isNormal = false;
        _inventory = _object getVariable ["plotfriends", []]; //We're replacing the inventory with UIDs for this item
    }; 
    if (typeOf (_object)in DZE_DoorsLocked) then{
        _isNormal = false;
    	_inventory = _object getVariable ["doorfriends", []]; //We're replacing the inventory with UIDs for this item
    };
    
    if(_isNormal)then {
    	
    		_inventory = [
    			getWeaponCargo _object,
    			getMagazineCargo _object,
    			getBackpackCargo _object
    		];
    		_previous = str(_object getVariable["lastInventory",[]]);
    		if (str(_inventory) != _previous) then {
    			_object setVariable["lastInventory",_inventory];
    			if (_objectID == "0") then {
    				_key = format["CHILD:309:%1:%2:",_uid,_inventory];
    			} else {
    				_key = format["CHILD:303:%1:%2:",_objectID,_inventory];
    			};
    			_key call server_hiveWrite;
    		};
    };
    
    _object_damage = {
    	private["_hitpoints","_array","_hit","_selection","_key","_damage"];
    		_hitpoints = _object call vehicle_getHitpoints;
    		_damage = damage _object;
    		_array = [];
    		{
    			_hit = [_object,_x] call object_getHit;
    			_selection = getText (configFile >> "CfgVehicles" >> (typeOf _object) >> "HitPoints" >> _x >> "name");
    			if (_hit > 0) then {_array set [count _array,[_selection,_hit]]};
    			_object setHit ["_selection", _hit];
    		} count _hitpoints;
    		_key = format["CHILD:306:%1:%2:%3:",_objectID,_array,_damage];
    		_key call server_hiveWrite;
    	_object setVariable ["needUpdate",false,true];
    	};
    
    _object_killed = {
    	private["_hitpoints","_array","_hit","_selection","_key","_damage"];
    	_hitpoints = _object call vehicle_getHitpoints;
    	_damage = 1;
    	_array = [];
    	{
    		_hit = [_object,_x] call object_getHit;
    		_selection = getText (configFile >> "CfgVehicles" >> (typeOf _object) >> "HitPoints" >> _x >> "name");
    		if (_hit > 0) then {_array set [count _array,[_selection,_hit]]};
    		_hit = 1;
    		_object setHit ["_selection", _hit];
    	} count _hitpoints;
    	if (_objectID == "0") then {
    		_key = format["CHILD:306:%1:%2:%3:",_uid,_array,_damage];
    	} else {
    		_key = format["CHILD:306:%1:%2:%3:",_objectID,_array,_damage];
    	};
    	_key call server_hiveWrite;
    	_object setVariable ["needUpdate",false,true];
    	if ((count _this) > 2) then {
    		_killer = _this select 2;
    		_charID = _object getVariable ['CharacterID','0'];
    		_objID = _object getVariable['ObjectID','0'];
    		_objUID = _object getVariable['ObjectUID','0'];
    		_worldSpace = getPosATL _object;
    		if (getPlayerUID _killer != "") then {
    			_name = if (alive _killer) then { name _killer; } else { format["OBJECT %1", _killer]; };
    			diag_log format["Vehicle killed: Vehicle %1 (TYPE: %2), CharacterID: %3, ObjectID: %4, ObjectUID: %5, Position: %6, Killer: %7 (UID: %8)", _object, (typeOf _object), _charID, _objID, _objUID, _worldSpace, _name, (getPlayerUID _killer)];
    		} else {
    			diag_log format["Vehicle killed: Vehicle %1 (TYPE: %2), CharacterID: %3, ObjectID: %4, ObjectUID: %5, Position: %6", _object, (typeOf _object), _charID, _objID, _objUID, _worldSpace];
    		};
    	};
    };
    
    _object_repair = {
    	private["_hitpoints","_array","_hit","_selection","_key","_damage"];
    	_hitpoints = _object call vehicle_getHitpoints;
    	_damage = damage _object;
    	_array = [];
    	{
    		_hit = [_object,_x] call object_getHit;
    		_selection = getText (configFile >> "CfgVehicles" >> (typeOf _object) >> "HitPoints" >> _x >> "name");
    		if (_hit > 0) then {_array set [count _array,[_selection,_hit]]};
    		_object setHit ["_selection", _hit];
    	} count _hitpoints;
    	
    	_key = format["CHILD:306:%1:%2:%3:",_objectID,_array,_damage];
    	_key call server_hiveWrite;
    	_object setVariable ["needUpdate",false,true];
    };
    
    _object setVariable ["lastUpdate",time,true];
    
    switch (_type) do {
    	case "all": {
    		call _object_position;
    		call _object_inventory;
    		call _object_damage;
    		};
    	case "position": {
    		if (!(_object in needUpdate_objects)) then {
    			needUpdate_objects set [count needUpdate_objects, _object];
    		};
    	};
    	case "gear": {
    		call _object_inventory;
    			};
    	case "damage": {
    		if ( (time - _lastUpdate) > 5) then {
    			call _object_damage;
    		} else {
    			if (!(_object in needUpdate_objects)) then {
    				needUpdate_objects set [count needUpdate_objects, _object];
    			};
    		};
    	};
    	case "killed": {
    		call _object_killed;
    	};
    	case "repair": {
    		call _object_damage;
    	};
    };
    

    Server monitor

    private ["_nul","_result","_pos","_wsDone","_dir","_isOK","_countr","_objWpnTypes","_objWpnQty","_dam","_selection","_totalvehicles","_object","_idKey","_type","_ownerID","_worldspace","_intentory","_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"];
    
    dayz_versionNo = 		getText(configFile >> "CfgMods" >> "DayZ" >> "version");
    dayz_hiveVersionNo = 	getNumber(configFile >> "CfgMods" >> "DayZ" >> "hiveVersion");
    
    _hiveLoaded = false;
    
    waitUntil{initialized};
    
    diag_log "HIVE: Starting";
    
    waituntil{isNil "sm_done"};
    	
    if(isnil "MaxVehicleLimit") then {
    	MaxVehicleLimit = 50;
    };
    
    if(isnil "MaxDynamicDebris") then {
    	MaxDynamicDebris = 100;
    };
    
    if(isnil "MaxAmmoBoxes") then {
    	MaxAmmoBoxes = 3;
    };
    
    if(isnil "MaxMineVeins") then {
    	MaxMineVeins = 50;
    };
    
    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;
    		};
    	};
    
    	_BuildingQueue = [];
    	_objectQueue = [];
    
    	if ((_hiveResponse select 0) == "ObjectStreamStart") then {
    
    		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;
    
    			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;
    		_intentory =	_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));
    		};
    		
    		_vector = [[0,0,0],[0,0,0]];
    		_vecExists = false;
    		_ownerPUID = "0";
    		if (count _worldspace >= 3) then{
    			if(count _worldspace == 3) then{
    					if(typename (_worldspace select 2) == "STRING")then{
    						_ownerPUID = _worldspace select 2;
    					}else{
    						 if(typename (_worldspace select 2) == "ARRAY")then{
    							_vector = _worldspace select 2;
    							if(count _vector == 2)then{
    								if(((count (_vector select 0)) == 3) && ((count (_vector select 1)) == 3))then{
    									_vecExists = true;
    								};
    							};
    						};					
    					};
    					
    			}else{
    				//Was not 3 elements, so check if 4 or more
    				if(count _worldspace == 4) then{
    					if(typename (_worldspace select 3) == "STRING")then{
    						_ownerPUID = _worldspace select 3;
    					}else{
    						if(typename (_worldspace select 2) == "STRING")then{
    							_ownerPUID = _worldspace select 2;
    						};
    					};
    			
    			
    					if(typename (_worldspace select 2) == "ARRAY")then{
    						_vector = _worldspace select 2;
    						if(count _vector == 2)then{
    							if(((count (_vector select 0)) == 3) && ((count (_vector select 1)) == 3))then{
    								_vecExists = true;
    							};
    						};
    					}else{
    						if(typename (_worldspace select 3) == "ARRAY")then{
    							_vector = _worldspace select 3;
    							if(count _vector == 2)then{
    								if(((count (_vector select 0)) == 3) && ((count (_vector select 1)) == 3))then{
    									_vecExists = true;
    								};
    							};
    						};
    					};
    					
    				}else{
    					//More than 3 or 4 elements found
    					//Might add a search for the vector, ownerPUID will equal 0
    				};
    			};
    		};
    		   	   
    		// 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 ((count _intentory > 0) && !(typeOf( _object) == "Plastic_Pole_EP1_DZ") && !(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];
    			
    			_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;
    			
    			if(_vecExists)then{
    				_object setVectorDirAndUp _vector;
    			};
    			
    			_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) 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 {
    
    					//Add weapons
    					_objWpnTypes = (_intentory select 0) select 0;
    					_objWpnQty = (_intentory 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 = (_intentory select 1) select 0;
    					_objWpnQty = (_intentory 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 = (_intentory select 2) select 0;
    					_objWpnQty = (_intentory 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];
    		};
    	} count (_BuildingQueue + _objectQueue);
    	// # END SPAWN OBJECTS # 
    	
    	if !(DZE_ConfigTrader) then {
    		{
    			_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;
    					_result = call compile format ["%1",_data];
    					_status = _result select 0;
    
    					if (_status == "ObjectStreamStart") then {
    						_val = _result select 1;
    						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];
    						};
    					};
    
    				} forEach (_traderData select 0);
    			};
    		} forEach serverTraders;
    	};
    
    	if (_hiveLoaded) then {
    		_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!";
    		};
    	};
    	
    	diag_log ("HIVE: Spawning # of Debris: " + str(MaxDynamicDebris));
    
    	for "_x" from 1 to MaxDynamicDebris do {
    		[] spawn spawn_roadblocks;
    	};
    
    	diag_log ("HIVE: Spawning # of Ammo Boxes: " + str(MaxAmmoBoxes));
    
    	for "_x" from 1 to MaxAmmoBoxes do {
    		[] spawn spawn_ammosupply;
    	};
    
    	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;
    	};
    
    	if(OldHeliCrash) then {
    		_nul = [3, 4, (50 * 60), (15 * 60), 0.75, 'center', HeliCrashArea, true, false] spawn server_spawnCrashSite;
    	};
    
    	if (isDedicated) then {
    		_id = [] spawn server_spawnEvents;
    		[] spawn {
    			private ["_id"];
    			sleep 200;
    			waitUntil {!isNil "server_spawnCleanAnimals"};
    			_id = [] execFSM "\z\addons\dayz_server\system\server_cleanup.fsm";
    		};
    
    		_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];
    
    		if(isnil "spawnMarkerCount") then {
    			spawnMarkerCount = 10;
    		};
    		
    		actualSpawnMarkerCount = 0;
    
    		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 {
    				_i = spawnMarkerCount + 99;
    			};
    		};
    		diag_log format["Total Number of spawn locations %1", actualSpawnMarkerCount];
    		endLoadingScreen;
    	};
    	allowConnection = true;	
    	sm_done = true;
    	publicVariable "sm_done";
    };
    
    

    where wrong?

    please help me boys))))

  7.  

    2014/11/22,  5:22:44 Strange convex component278 in warehouse\models\warehouse.p3d:geometryView

    2014/11/22,  5:22:46 Warning: looped for animation: ca\anims\characters\data\anim\sdr\mov\erc\wlk\non\non\amovpercmwlksnonwnondf.rtm differs (looped now 0)! MoveName: amovpercmstpsnonwnondnon_amovpercmstpsraswpstdnon
    2014/11/22,  5:22:46 Warning: looped for animation: ca\anims\characters\data\anim\sdr\mov\erc\wlk\non\non\amovpercmwlksnonwnondf.rtm differs (looped now 1)! MoveName: amovpercmrunsnonwbindf_rfl
    2014/11/22,  5:22:47 "DayZ Epoch: PRELOAD Functions\init [[<No group>:0 (FunctionsManager)],any]"
    2014/11/22,  5:22:47 "DayZ Epoch: MPframework inited"
    2014/11/22,  5:22:47 Warning Message: Script z\addons\dayz_server\init\server_functions.sqf not found
    2014/11/22,  5:22:47 Warning Message: Script z\addons\dayz_server\missions\DayZ_Epoch_11.Chernarus\dynamic_vehicle.sqf not found
    2014/11/22,  5:22:47 Warning Message: Script z\addons\dayz_server\missions\DayZ_Epoch_11.Chernarus\mission.sqf not found
    2014/11/22,  5:22:47 "Res3tting B!S effects..."
    2014/11/22,  5:22:47 Warning Message: Script z\addons\dayz_server\system\server_monitor.sqf not found

     

    Hey mdc

    I used yor fix server not started

    any idea why?

×
×
  • Create New...