Jump to content

semak

Member
  • Posts

    8
  • Joined

  • Last visited

Posts posted by semak

  1. Hello!!

    I may have a problem with both grenade and c4(pipebomb).. Dunno why but when ppl want to throw grenade(smoke, frag doesnt matter) first they get white screen and then they can´t do anything.. Battleye is on but they dont get any kicks from server by it.. As admins we dont have this problem.. we use also infistar.. maybe someone could really help.. Because i dont know how to fix it..

     

    We using 1.041 patch and newest filters too

    Pls help

  2. Hi im using admin tool Infistar on my villayer and its working really nice..

    i have on HFB servers a test server.. but looks like even on clean dayz_server and chernarus doesnt work(only infistar installed..(yes i followed instructions..etc)

    u know what is the problem? can do anything new.. and im not going to test new scripts etc without infistar...

    Looks like server_funtions dont want to load.. shows liek functions and rest arent loades/found..


    And always kick me back to lobby..

  3. hi guys i actually contacted infistar for this problem.. my problem was with istead of agents there was trader unit group or what they were called.. and infistar thought it was cheat.. so just change to traders to agent and all should work great

  4. Hi everyone i really need your help..

    What is my problem: 

    After new battyle files regex (or what are they are called)we got new update from infistar and everytime ppl want to buy something from market place they loose money i get message that they are "made item" and theirs items are deleted asap..

    yes we have new infistar filters and we have mostly the same options like we had before this regex shit...

    i really need your help guys

  5. Hello everyone..I hope someone can help me with  Indestructible Bases. 

    What is our problem and what we could really use help with is that our Doors/Garage can be only destroyed but with one c4.. is there any chance to make or give more armor to them?

    lets say 3-4 c4 istead of 1..

    Really need help with it its a bit bad when 1 c4 can demolish whole base.


    Reallly need your help..

    private ["_nul","_result","_pos","_wsDone","_dir","_block","_isOK","_countr","_objWpnTypes","_objWpnQty","_dam","_selection","_totalvehicles","_object","_idKey","_type","_ownerID","_worldspace","_intentory","_hitPoints","_fuel","_damage","_date","_key","_outcome","_vehLimit","_hiveResponse","_objectCount","_codeCount","_objectArray","_hour","_minute","_data","_status","_val","_traderid","_retrader","_traderData","_id","_lockable","_debugMarkerPosition","_vehicle_0"];
    
    dayz_versionNo = 		getText(configFile >> "CfgMods" >> "DayZ" >> "version");
    dayz_hiveVersionNo = 	getNumber(configFile >> "CfgMods" >> "DayZ" >> "hiveVersion");
        // ### [CPC] Indestructible Buildables Fix
        _cpcimmune =[
        "WoodFloor_DZ",
        "WoodFloorHalf_DZ",
        "WoodFloorQuarter_DZ",
        "WoodLargeWallWin_DZ",
        "WoodLargeWall_DZ",
        "WoodSmallWallWin_DZ",
        "WoodLadder_DZ",
        "WoodStairsSans_DZ",
        "WoodStairs_DZ",
        "WoodSmallWall_DZ",
        "WoodSmallWallThird_DZ",
        "CinderWallHalf_DZ",
        "CinderWall_DZ",
        "MetalFloor_DZ"
        ];
        // ### [CPC] Indestructible Buildables Fix
    if ((count playableUnits == 0) and !isDedicated) then {
    	isSinglePlayer = true;
    };
    
    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 = 500;
    };
    if(isnil "MaxHeliCrashes") then {
    	MaxHeliCrashes = 5;
    };
    if(isnil "MaxDynamicDebris") then {
    	MaxDynamicDebris = 100;
    };
    if(isnil "MaxAmmoBoxes") then {
    	MaxAmmoBoxes = 3;
    };
    if(isnil "MaxMineVeins") then {
    	MaxMineVeins = 50;
    };
    // Custon Configs End
    
    if (isServer and 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 {
    			diag_log ("HIVE: connection problem... HiveExt response:"+str(_hiveResponse));
    			_hiveResponse = ["",0];
    		} 
    		else {
    			diag_log ("HIVE: found "+str(_hiveResponse select 1)+" objects" );
    			_i = 99; // break
    		};
    	};
    
    	_objectArray = [];
    	if ((_hiveResponse select 0) == "ObjectStreamStart") then {
    		_objectCount = _hiveResponse select 1;
    		diag_log ("HIVE: Commence Object Streaming...");
    		for "_i" from 1 to _objectCount do { 
    			_hiveResponse = _key call server_hiveReadWriteLarge;
    			_objectArray set [_i - 1, _hiveResponse];
    			//diag_log (format["HIVE dbg %1 %2", typeName _hiveResponse, _hiveResponse]);
    		};
    		diag_log ("HIVE: got " + str(count _objectArray) + " objects");
    	};
    
    	// # START OF STREAMING #
    	_countr = 0;	
    	_totalvehicles = 0;
    	{
    		//Parse Array
    		_countr = _countr + 1;
    
    		_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
    		{
    			_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));
    		};
    
    		if (_damage < 1) then {
    			//diag_log format["OBJ: %1 - %2", _idKey,_type];
    			
    			//Create it
    			_object = createVehicle [_type, _pos, [], 0, "CAN_COLLIDE"];
    			_object setVariable ["lastUpdate",time];
    			_object setVariable ["ObjectID", _idKey, 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;
    			
    			if ((typeOf _object) in dayz_allowedObjects) then {
    				_object addMPEventHandler ["MPKilled",{_this call object_handleServerKilled;}];
    				// Test disabling simulation server side on buildables only.
    				_object enableSimulation false;
    				// used for inplace upgrades and lock/unlock of safe
    				_object setVariable ["OEMPos", _pos, true];
    			};
    			
    			_object setdir _dir;
    			_object setposATL _pos;
    			_object setDamage _damage;
     // ### [CPC] Indestructible Buildables Fix
        if (typeOf(_object) in _cpcimmune) then {
        _object addEventHandler ["HandleDamage", {false}];
        _object enableSimulation false;
        };
        // ### [CPC] Indestructible Buildables Fix	
    			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 {
    							_block = 	getNumber(configFile >> "CfgWeapons" >> _x >> "stopThis") == 1;
    							if (!_block) then {
    								_object addWeaponCargoGlobal [_x,(_objWpnQty select _countr)];
    							};
    						};
    						_countr = _countr + 1;
    					} forEach _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 {
    							_block = 	getNumber(configFile >> "CfgMagazines" >> _x >> "stopThis") == 1;
    							if (!_block) then {
    								_object addMagazineCargoGlobal [_x,(_objWpnQty select _countr)];
    							};
    						};
    						_countr = _countr + 1;
    					} forEach _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 {
    							_block = 	getNumber(configFile >> "CfgVehicles" >> _x >> "stopThis") == 1;
    							if (!_block) then {
    								_object addBackpackCargoGlobal [_x,(_objWpnQty select _countr)];
    							};
    						};
    						_countr = _countr + 1;
    					} forEach _objWpnTypes;
    				};
    			};	
    			
    			if (_object isKindOf "AllVehicles") then {
    				{
    					_selection = _x select 0;
    					_dam = _x select 1;
    					if (_selection in dayZ_explosiveParts and _dam > 0.8) then {_dam = 0.8};
    					[_object,_selection,_dam] call object_setFixServer;
    				} forEach _hitpoints;
    
    				_object setFuel _fuel;
    
    				if (!((typeOf _object) in dayz_allowedObjects)) then {
    					
    					//_object setvelocity [0,0,1];
    					_object call fnc_veh_ResetEH;		
    					
    					if(_ownerID != "0" and !(_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 _objectArray;
    	// # END OF STREAMING #
    
    
    	// preload server traders menu data into cache
    	{
    		// 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);
    
  6. Hello everyone..I hope someone can help me with  Indestructible Bases. 

    What is our problem and what we could really use help with is that our Doors/Garage can be only destroyed but with one c4.. is there any chance to make or give more armor to them?

    lets say 3-4 c4 istead of 1..

    Really need help with it its a bit bad when 1 c4 can demolish whole base.


    Reallly need your help..


     

×
×
  • Create New...