Jump to content

DangerRuss

Member
  • Posts

    963
  • Joined

  • Last visited

  • Days Won

    3

Posts posted by DangerRuss

  1. I've moved my server to a dedicated box and found that my database events aren't running as scheduled. I even dropped the old events and created new ones and they're not running. I have no problem running them manually but they aren't running on their own at their scheduled times. I imagine I need to enable event running somehow but Im not sure how. Any help would be great, thanks!

  2. 9 hours ago, Akku14 said:

    Are you sure it has taken damage so that it can be maintained otherwise it will show as 0 parts in range (normally shows after 3 days )

    are you able to see and use other feature like add friends to plot (If not check infistar and white list IDD)

    Try to maintain without plot management just to see the cuz of it 

     

    Yes it seems that my database events aren't running.. they're scheduled to run but just aren't. Any ideas? I can run them manually as queries but they scheduled events aren't running.

  3. So I've recently moved my server over to a dedicated box and we're just noticing a bit of a problem For some reason, the plot management is not showing that objects need to be maintained. However, the bases are still decaying and being removed.

    Here is the database query I use
    UPDATE `Object_DATA` SET `Damage`=0.11 WHERE `ObjectUID` <> 0 AND `CharacterID` <> 0 AND `Datestamp` < DATE_SUB(CURRENT_TIMESTAMP, INTERVAL 3 DAY) AND ( (`Inventory` IS NULL) OR (`Inventory` = '[]') )

    UPDATE `Object_DATA` SET `Damage`=0.11 WHERE `ObjectUID` <> 0 AND `CharacterID` <> 0 AND `Datestamp` < DATE_SUB(CURRENT_TIMESTAMP, INTERVAL 3 DAY) AND ( (`Inventory` IS NULL) OR (`Inventory` = '[]') )

    I noticed my HiveExt.ini had to cleanup commented out.

    ;CleanupPlacedAfterDays = 14

    I also have

    
    DZE_DamageBeforeMaint = 0.11;

    in my init.sqf but still no option to maintain. I checked the objects in the database and they definitely should have a maintenance option.

    I haven't made any changes to plot management that Im aware of and I never had this issues on my old server.

    Any help would be huge thanks!

  4. So I've recently moved my server over to a dedicated box and we're just noticing a bit of a problem For some reason, the plot management is not showing that objects need to be maintained. However, the bases are still decaying and being removed.

    Here is the database query I use
    UPDATE `Object_DATA` SET `Damage`=0.11 WHERE `ObjectUID` <> 0 AND `CharacterID` <> 0 AND `Datestamp` < DATE_SUB(CURRENT_TIMESTAMP, INTERVAL 3 DAY) AND ( (`Inventory` IS NULL) OR (`Inventory` = '[]') )

    UPDATE `Object_DATA` SET `Damage`=0.11 WHERE `ObjectUID` <> 0 AND `CharacterID` <> 0 AND `Datestamp` < DATE_SUB(CURRENT_TIMESTAMP, INTERVAL 3 DAY) AND ( (`Inventory` IS NULL) OR (`Inventory` = '[]') )

    I noticed my HiveExt.ini had to cleanup commented out.

    ;CleanupPlacedAfterDays = 14

    Would that have caused this? I did end up putting it back in but still no option to maintain. I checked the objects in the database and they're definitely older than 3 days.

    I haven't made any changes to plot management that Im aware of and I never had this issues on my old server.

  5. 17 minutes ago, Shawn said:

    I don't recommend preventing people from banking if there is another players nearby. Just asking for griefing. 

     

    Im with you on this point, but no one has suggested or offered a better alternative to prevent this type of duping. I posted it in this thread hoping someone would have something or come up with something because this is beyond my ability to fix. But so far its basically the easiest, nastiest dupe method I've seen, just doubling your coins every 5 seconds, max money in no time for really any number of players doing it.

  6.  I've searched GetOut and the only instance I can find is near the beginning. I can't tell exactly what it's doing but it's removing the GetOut event handler and logging something.

    The only "eject" things I can find are involving the admin eject function.

    There are only 2 instances of  

    action ["eject"

    in the entire file. They are in the admin eject and the admin unconscious functions.  I dont see anything that is blocking those actions.  I also searched to see if infistar is recompiling the airdestruction.sqf somewhere, but it is not. Im stumped.

     

  7. So I was digging through the epoch github and looking at all of the commits and I saw one that was exactly what Ive been looing for. In the newest version of epoch, players who's vehicle is destroyed will be ejected from their vehicles, so they can't hide inside the shell effectively being invincible until it disappears.

    https://github.com/EpochModTeam/DayZ-Epoch/commit/ec7351dbbc5b4c7c5046468b96972ef48f605663

     So I implemented this and voila it worked! I was pretty happy until I realized that it does not happen to non admins. That means infistar is blocking this, but what exactly is it blocking and how do I unblock it? thanks!

  8. Ive been having a real issue with players ducking in and out of safe zones while in combat. I'd like to prevent players who are in combat from entering the safe zone and I'd also like to extend god mode for a short time (~30 seconds) after the player leaves the safe zone. This way they can't just duck in and out as they please. The problem is, I can't find any info on this. Im using infiSTAR's safe zone. Any help would be much appreciated

    /*
    	   by: http://infiSTAR.de || http://DayzAntiHack.com
    	   *updated on 30.11.2014
    	    
    	    Instructions:
    	    1. Copy paste this pastebin code into a file called SafeZone.sqf - save the file.
    	    2. Now extract your mpmission pbo and put the SafeZone.sqf into the extracted folder.
    	    3. Open the init.sqf of the mpmission.
    	    4. At the bottom of the file add
    	    [] execVM 'SafeZone.sqf';
    	    5. Save the init.sqf, repack your mpmission, upload it to your gameserver and restart your server
    	*/
    	USE_CANBUILD = true;        // if you don't want to define your own positions
    	USE_TraderCity = true;    //    if you don't want to define your own positions (Epoch 1.0.5)
    	USE_POSITIONS = true;    // to use own positions and radius
    	USE_AI_REMOVER = true;    // use this to remove Missionbots (AI) within 100m of a player if the player is in a SafeZone
    	USE_AntiSteal = true;    // use this to block opening gear if another player is within 3m!
    	USE_SPEEDLIMIT = true;    // very secret function, nobody is supposed to find out what it does.
    	    SPEEDLIMIT = 15;        // Only used if USE_SPEEDLIMIT is true.
    	USE_SIGNS = true;        // use this to build signs around the SafeZone
    	LOG_EnterLeave = true;    // This will log to your .rpt when a player enters or leaves a SafeZone! (only works with infiSTAR.de Admintools / AntiHack)
    	/* You can use USE_CANBUILD or/and (works together) the custom positions below (USE_POSITIONS) [position or zone,radius] */
    	_infiSZ =
    	[
    	    [[6352.01,7780.22,0],150,true], //Stary
    	    [[4070.5,11667.1,0],150,true], //Bash
    	    [[11467.8,11388.9,0],100,true], //Klen
    	    [[1612.89,7767.72,0],100,true], //Bandit
    	    [[12944.227,12766.889,0],100,true], //Hero
    	    [[5056.37,9736.72,0],100,true], //NWA
    	    [[12046,12679.8,0],100,true], //NEA
    	    [[2303.8218,9635.6641,0],100,true], //Lopatino
    	    [[8696.0078,13347.706,0],50,true], //Banker Pobeda
    	    [[6220.48,4626.29,0],50,true], //Banker Nadezhdino 
    	    [[10717.4,5676.18,0],50,true], //Banker Msta
    	    [[3348.04,5300.36,0],50,true] //Banker Zelenogorsk
    	];
    	if (isServer) exitWith
    	{
    	    if (USE_SIGNS) then
    	    {
    	        {
    	            _center = _x select 0;
    	            _radius = _x select 1;
    	            _lSign = _x select 2;
    	            if (_lSign) then
    	            {
    	                for '_i' from 0 to 360 step (270 / _radius)*2 do
    	                {
    	                    _location = [(_center select 0) + ((cos _i) * _radius), (_center select 1) + ((sin _i) * _radius),0];
    	                    _dir = ((_center select 0) - (_location select 0)) atan2 ((_center select 1) - (_location select 1));
    	                    _object = createVehicle ['Sign_sphere100cm_EP1', _location, [], 0, 'CAN_COLLIDE'];
    	                    //    _object = createVehicle ['SignM_FARP_Winchester_EP1', _location, [], 0, 'CAN_COLLIDE'];
    	                    //    _object setVehicleInit 'this setObjectTexture [0,''Addons\SafeZones\sign.paa''];';
    	                    _object setDir _dir;
    	                };
    	            };
    	        } forEach _infiSZ;
    	    };
    	};
    	waitUntil {((!isNil 'dayz_animalCheck') || (!isNil 'dayz_medicalH') || (!isNil 'dayz_slowCheck') || (!isNil 'dayz_gui'))};
    	if (isNil 'inSafeZone') then { inSafeZone = false; } else { if (typename inSafeZone != 'BOOL') then { inSafeZone = false; }; };
    	[_infiSZ] spawn {
    	    _infiSZ = _this select 0;
    	    _startSafeZone =
    	    {
    	        if (isNil 'outNow') then
    	        {
    	            _msg = 'Now Entering a Safe Zone! Beware of Bandits! Stay Vigilant!';
    	            hint _msg;
    	            taskHint [_msg, [0,1,0,1], 'taskDone'];
    	            inNow = nil;
    	            outNow = true;
    	            
    	            if (LOG_EnterLeave) then
    	            {
    	                PVDZE_send = [player,'SafeZoneState',[1]];
    	                publicVariableServer 'PVDZE_send';
    	            };
    	        };
    	        player_fired = {
    	            deleteVehicle (nearestObject [_this select 0,_this select 4]);
    	            cutText ['You can not fire in a SafeZone!','WHITE IN'];
    	        };
    	        wild_spawnZombies = {};
    	        zombie_generate = {};
    	        
    	        fnc_usec_damageHandler = {};
    	        player removeAllEventHandlers 'handleDamage';
    	        player addEventHandler ['handleDamage', {false}];
    	        player allowDamage false;
    	        _veh = vehicle player;
    	        if (player != _veh) then
    	        {
    	            _szs = _veh getVariable ['inSafeZone',0];
    	            if (_szs == 0) then
    	            {
    	                _veh removeAllEventHandlers 'Fired';
    	                _veh addEventHandler ['Fired', {_this call player_fired;}];
    	                {
    	                    _x removeAllEventHandlers 'Fired';
    	                    _x addEventHandler ['Fired', {_this call player_fired;}];
    	                } forEach (crew _veh);
    	                _veh setVariable ['inSafeZone',1];
    	                vehicle_handleDamage = {false};
    	                _veh removeAllEventHandlers 'HandleDamage';
    	                _veh addeventhandler ['HandleDamage',{ _this call vehicle_handleDamage } ];
    	                _veh allowDamage false;
    	            };
    	        };
    	        _notInSafeZone =
    	        [
    	            'MAAWS','RPG7V','M136','RPG18','Stinger','BAF_NLAW_Launcher','Igla','Javelin','M47Launcher_EP1',
    	            'MetisLauncher','SMAW','Strela','Vil_RPG16','Vil_RPG7V_PGO','Vil_RPG7d_PGO','Vil_RPG29','Vil_RPO_A',
    	            'vilas_rpg22','vilas_rpg26','vil_CG84T','vil_Panzerfaust3',
    	            'MeleeHatchet_DZE','MeleeHatchet','MeleeCrowbar','MeleeMachete','MeleeFishingPole','MeleeSledge',
    	            'MeleeBaseBallBatNails','MeleeBaseBallBatBarbed','MeleeBaseBallBat'
    	        ];
    	        _cwep = currentWeapon player;
    	        if (_cwep in _notInSafeZone) then
    	        {
    	            _swep = '';
    	            {
    	                if ((getNumber (configFile &gt;&gt; 'CfgWeapons' &gt;&gt; _x &gt;&gt; 'Type')) == 2) exitWith
    	                {
    	                    _swep = _x;
    	                };
    	            } forEach (weapons player);
    	            if (_swep == '') then
    	            {
    	                player playActionNow 'PutDown';
    	                _iPos = getPosATL player;
    	                _radius = 1;
    	                _removed = ([player,_cwep,1] call BIS_fnc_invRemove);
    	                if (_removed == 1) then
    	                {
    	                    _item = createVehicle ['WeaponHolder', _iPos, [], _radius, 'CAN_COLLIDE'];
    	                    _item addWeaponCargoGlobal [_cwep,1];
    	                };
    	            }
    	            else
    	            {
    	                player selectweapon _swep;
    	            };
    	        };
    	    };
    	    _endSafeZone =
    	    {
    	        if (isNil 'inNow') then
    	        {
    	            if (str fnc_usec_damageHandler == '{}') then
    	            {
    	                _msg = 'You are now leaving the Safe Zone! Beware of Bandits! Stay Vigilant!';
    	                hint _msg;
    	                taskHint [_msg, [1,0,0.1,1], 'taskFailed'];
    	            };
    	            inNow = true;
    	            outNow = nil;
    	            
    	            if (LOG_EnterLeave) then
    	            {
    	                PVDZE_send = [player,'SafeZoneState',[0]];
    	                publicVariableServer 'PVDZE_send';
    	            };
    	        };
    	        wild_spawnZombies = compile preprocessFileLineNumbers '\z\addons\dayz_code\compile\wild_spawnZombies.sqf';
    	        zombie_generate = compile preprocessFileLineNumbers '\z\addons\dayz_code\compile\zombie_generate.sqf';
    	        
    	        player_fired = compile preprocessFileLineNumbers '\z\addons\dayz_code\compile\player_fired.sqf';
    	        fnc_usec_unconscious = compile preprocessFileLineNumbers '\z\addons\dayz_code\compile\fn_unconscious.sqf';
    	        object_monitorGear = compile preprocessFileLineNumbers '\z\addons\dayz_code\compile\object_monitorGear.sqf';
    	        //vehicle_handleDamage = compile preprocessFileLineNumbers '\z\addons\dayz_code\compile\vehicle_handleDamage.sqf';
    	        vehicle_handleDamage = compile preprocessFileLineNumbers 'zupa\vehicle_handleDamage.sqf';
    	        
    	        _veh = vehicle player;
    	        if (player != _veh) then
    	        {
    	            _szs = _veh getVariable ['inSafeZone',0];
    	            if (_szs == 1) then
    	            {
    	                _veh setVariable ['inSafeZone',0];
    	                _veh removeAllEventHandlers 'HandleDamage';
    	                _veh addeventhandler ['HandleDamage',{ _this call vehicle_handleDamage } ];
    	                _veh allowDamage true;
    	            };
    	        };
    	        
    	        _end = false;
    	        if (isNil 'gmadmin') then
    	        {
    	            _end = true;
    	        }
    	        else
    	        {
    	            if (gmadmin == 0) then
    	            {
    	                _end = true;
    	            };
    	        };
    	        if (_end) then
    	        {
    	            player allowDamage true;
    	            fnc_usec_damageHandler = compile preprocessFileLineNumbers '\z\addons\dayz_code\compile\fn_damageHandler.sqf';
    	            player removeAllEventHandlers 'HandleDamage';
    	            player addeventhandler ['HandleDamage',{_this call fnc_usec_damageHandler;} ];
    	        };
    	    };
    	    while {1 == 1} do
    	    {
    	        if (isNil 'inSafeZone') then { inSafeZone = false; } else { if (typename inSafeZone != 'BOOL') then { inSafeZone = false; }; };
    	        _state = false;
    	        if (isNil 'USE_POSITIONS') then { USE_POSITIONS = false; } else { if (typename USE_POSITIONS != 'BOOL') then { USE_POSITIONS = false; }; };
    	        if (USE_POSITIONS) then
    	        {
    	            {
    	                _z = _x select 0;
    	                _r = _x select 1;
    	                if ((vehicle player) distance _z &lt; _r) then {_state = true;};
    	            } forEach _infiSZ;
    	        };
    	        if (isNil 'USE_CANBUILD') then { USE_CANBUILD = true; } else { if (typename USE_CANBUILD != 'BOOL') then { USE_CANBUILD = true; }; };
    	        if (USE_CANBUILD) then
    	        {
    	            if (isNil 'canbuild') then { canbuild = true; } else { if (typename canbuild != 'BOOL') then { canbuild = true; }; };
    	            if (!canbuild) then {_state = true;};
    	        };
    	        if (isNil 'USE_TraderCity') then { USE_TraderCity = true; } else { if (typename USE_TraderCity != 'BOOL') then { USE_TraderCity = true; }; };
    	        if (USE_TraderCity) then
    	        {
    	            if (isNil 'isInTraderCity') then { isInTraderCity = false; } else { if (typename isInTraderCity != 'BOOL') then { isInTraderCity = false; }; };
    	            if (isInTraderCity) then {_state = true;};
    	        };
    	        if (_state) then
    	        {
    	            inSafeZone = true;
    	            call _startSafeZone;
    	            {
    	                if (!isNull _x) then
    	                {
    	                    if !(isPlayer _x) then
    	                    {
    	                        deletevehicle _x;
    	                    };
    	                };
    	            } forEach ((vehicle player) nearEntities ['zZombie_Base',50]);
    	            
    	            if (isNil 'USE_AI_REMOVER') then { USE_AI_REMOVER = false; } else { if (typename USE_AI_REMOVER != 'BOOL') then { USE_AI_REMOVER = false; }; };
    	            if (USE_AI_REMOVER) then
    	            {
    	                {
    	                    if ((!isNull group _x) &amp;&amp; (getPlayerUID _x == '')) then
    	                    {
    	                        deleteVehicle _x;
    	                    };
    	                } forEach (player nearEntities ['Man',100]);
    	            };
    	        }
    	        else
    	        {
    	            inSafeZone = false;
    	        };
    	        uiSleep 2;
    	        if (!inSafeZone) then
    	        {
    	            call _endSafeZone;
    	        };
    	    };
    	};
    	if ((USE_AntiSteal) || (USE_SPEEDLIMIT)) then
    	{
    	    [] spawn {
    	        _USE_AntiSteal = USE_AntiSteal;
    	        _USE_SPEEDLIMIT = USE_SPEEDLIMIT;
    	        _speedlimit = SPEEDLIMIT;
    	        while {1 == 1} do
    	        {
    	            if (inSafezone) then
    	            {
    	                if (_USE_AntiSteal) then
    	                {
    	                    _cnt = {isPlayer _x &amp;&amp; _x != player} count (player nearEntities [['CAManBase'], 3]);
    	                    if ((_cnt &gt; 0) &amp;&amp; (!isNull (findDisplay 106))) then
    	                    {
    	                        (findDisplay 106) closedisplay 0;
    	                        closeDialog 0;
    	                        _log = format['%1 You are not allowed to open Gear while near another player!',name player];
    	                        cutText [_log,'PLAIN'];
    	                        hint _log;
    	                    };
    	                };
    	                if (_USE_SPEEDLIMIT) then
    	                {
    	                    _obj = vehicle player;
    	                    if !(_obj isKindOf 'Air') then
    	                    {
    	                        _speed = abs speed _obj;
    	                        if ((_obj != player) &amp;&amp; (_speed &gt; _speedlimit)) then
    	                        {
    	                            _vel = velocity _obj;
    	                            _x = 0.8;
    	                            if (_speed &gt; 50) then {_x = 0.1;};
    	                            _velNew = [(_vel select 0) * _x, (_vel select 1) * _x,(_vel select 2) * _x];
    	                            _obj SetVelocity _velNew;
    	                        };
    	                    };
    	                };
    	            }
    	            else
    	            {
    	                uiSleep 2;
    	            };
    	            uiSleep 0.1;
    	        };
    	    };
    	};

  9. If I want to remove a box I do so by removing it in the rules_init and the rules.hpp? For example

    
    //(_finddialog displayCtrl 1103) ctrlSetText format["%1",_rule4text];
    
    //class slk_rules4: slkRscStructuredText
    //{
    //	idc = 1103;
    //	text = ""; //--- ToDo: Localize;
    //	x = 0.226719 * safezoneW + safezoneX;
    //	y = 0.6078 * safezoneH + safezoneY;
    //	w = 0.546562 * safezoneW;
    //	h = 0.066 * safezoneH;
    //};

    ?

  10. Awesome that definitely helps... what about the bodies of text? For example under Rules. He estimates that you can fit about 300 characters but Im not getting that many before it gets cut off. How would I make that body of text smaller? There is no sizeEx for bodies of text, only the buttons.

×
×
  • Create New...