DayZ Dual Admin Debug Monitor

I try to add my admins to it they get the Tool Menu option and nothing pops up after they click it, then they can't shoot or scroll again until they spam click their mouse? What's wrong?


Im using Epoch and I seem to get the same problem only I havent been able to get it to work past the tool menu for anyone including myself. has anyone worked out how to fix this or will I have to just give up since im using Epoch?
 
@UrbanSkaters - thanks for this brilliant Debug Monitor :)

Confirming it works on DayZ Lingor 1.3 with following scripts -
  • SAR_AI 1.5.0
  • Dayzforum.net / Grafzahl Animated-Heli-Crash-script


:)
 
Hola, can someone post *only* the (small bit of) code that needs to be sunk into compiles.sqf? I already have a custom compile and can't just copy it over. I've found two references to debug/playerstats in your compile, but I wouldn't want to miss anything. Thanks.
 
Don't have the time as I'm busy working on my epoch server. PM me over the details for the hero 6th sense and i'll see what i can do between projects.
 
Sup guys, im farely new to scripting, at first i tryed to use a Repack for my server, but ended up with problems. and decided to start a new fresh epoch, and add all the stuff in myself.
my question is the pack i was using was using a older epoch im guessing, and i loved the debug for admins,

but with my new 1.0.4.2 server im kindof stuck at editing the Compiles in im guessing you meant editing the custom compiles part? (please correct me if im wrong) but when looking for this file.

if (_dikCode in actionKeys "User20" and (diag_tickTime - dayz_lastCheckBit > 5)) then {
dayz_lastCheckBit = diag_tickTime;
_nill = execvm "\z\addons\dayz_code\actions\playerstats.sqf";
};

i dont find a file like it at all, but i do find this file which looks similar

if (_dikCode in actionKeys "User20" or _dikCode in actionKeys "NetworkStats") then {
if (!dayz_isSwimming and !dialog) then {
[player,4,true,(getPosATL player)] call player_alertZombies;
createDialog "horde_journal_front_cover";
};

and i also cant find the other files in the compile, can someone help? am i looking just making a noob mistake and looking in the wrong place... or is it you guys havnt updated for 1.0.4.2 yet?
 
Sup guys, im farely new to scripting, at first i tryed to use a Repack for my server, but ended up with problems. and decided to start a new fresh epoch, and add all the stuff in myself.
my question is the pack i was using was using a older epoch im guessing, and i loved the debug for admins,

but with my new 1.0.4.2 server im kindof stuck at editing the Compiles in im guessing you meant editing the custom compiles part? (please correct me if im wrong) but when looking for this file.

if (_dikCode in actionKeys "User20" and (diag_tickTime - dayz_lastCheckBit > 5)) then {
dayz_lastCheckBit = diag_tickTime;
_nill = execvm "\z\addons\dayz_code\actions\playerstats.sqf";
};

i dont find a file like it at all, but i do find this file which looks similar

if (_dikCode in actionKeys "User20" or _dikCode in actionKeys "NetworkStats") then {
if (!dayz_isSwimming and !dialog) then {
[player,4,true,(getPosATL player)] call player_alertZombies;
createDialog "horde_journal_front_cover";
};

and i also cant find the other files in the compile, can someone help? am i looking just making a noob mistake and looking in the wrong place... or is it you guys havnt updated for 1.0.4.2 yet?


You'll find it in a File called "dayz_spaceinterrupt.sqf", which is not part of Epoch, it's part of DayZ. You could add it to your compiles.sqf manually:

PHP:
dayz_spaceInterrupt =            compile preprocessFileLineNumbers "custom\dayz_spaceInterrupt.sqf";

And then place the File inside your Folder (might have to edit path!!!)
PHP:
private ["_dikCode","_handled","_primaryWeapon","_secondaryWeapon","_nearbyObjects","_nill","_shift","_ctrl","_alt","_dropPrimary","_dropSecondary","_iItem","_removed","_iPos","_radius","_item"];
_dikCode =     _this select 1;

_handled = false;

if (_dikCode in[0x02,0x03,0x04,0x58,0x57,0x44,0x43,0x42,0x41,0x40,0x3F,0x3E,0x3D,0x3C,0x3B,0x0B,0x0A,0x09,0x08,0x07,0x06,0x05]) then {
    _handled = true;
};

if ((_dikCode == 0x3E or _dikCode == 0x0F or _dikCode == 0xD3)) then {
    if(diag_tickTime - dayz_lastCheckBit > 10) then {
        dayz_lastCheckBit = diag_tickTime;
        call dayz_forceSave;
    };
    call dayz_EjectPlayer;
};

// esc
if (_dikCode == 0x01) then {
    DZE_cancelBuilding = true;
    call dayz_EjectPlayer;
};

if (_dikCode == 0x23) then {
        createdialog "help_dialog";
    };

// surrender 
if (_dikCode in actionKeys "Surrender") then {
   
    _vehicle = vehicle player;
    _inVehicle = (_vehicle != player);
    _onLadder =    (getNumber (configFile >> "CfgMovesMaleSdr" >> "States" >> (animationState player) >> "onLadder")) == 1;
    _canDo = (!r_drag_sqf and !r_player_unconscious and !_onLadder and !_inVehicle);
   
    if (_canDo and !DZE_Surrender and !(player isKindOf  "PZombie_VB")) then {
        DZE_Surrender = true;
        _dropPrimary = false;
        _dropSecondary = false;

        _primaryWeapon = primaryWeapon player;
        if (_primaryWeapon != "") then {_dropPrimary = true;};
        _secondaryWeapon = "";
        {
            if ((getNumber (configFile >> "CfgWeapons" >> _x >> "Type")) == 2) exitWith {
                    _secondaryWeapon = _x;
            };
        } forEach (weapons player);
        if (_secondaryWeapon != "") then {_dropSecondary = true;};

        if (_dropPrimary or _dropSecondary) then {
            player playActionNow "PutDown";
            _iPos = getPosATL player;
            _radius = 1;
            _item = createVehicle ["WeaponHolder", _iPos, [], _radius, "CAN_COLLIDE"];
            _item setposATL _iPos;
            if (_dropPrimary) then {
                _iItem = _primaryWeapon;
                _removed = ([player,_iItem,1] call BIS_fnc_invRemove);
                if (_removed == 1) then {
                    _item addWeaponCargoGlobal [_iItem,1];
                };
            };
            if (_dropSecondary) then {
                _iItem = _secondaryWeapon;
                _removed = ([player,_iItem,1] call BIS_fnc_invRemove);
                if (_removed == 1) then {
                    _item addWeaponCargoGlobal [_iItem,1];
                };
            };
            player reveal _item;
        };

        // set publicvariable that allows other player to access gear
        player setVariable ["DZE_Surrendered", true, true];
        // surrender animation
        player playMove "AmovPercMstpSsurWnonDnon";
    };
    _handled = true;
};

if (_dikCode in actionKeys "MoveForward") exitWith {r_interrupt = true; if (DZE_Surrender) then {call dze_surrender_off};};
if (_dikCode in actionKeys "MoveLeft") exitWith {r_interrupt = true; if (DZE_Surrender) then {call dze_surrender_off};};
if (_dikCode in actionKeys "MoveRight") exitWith {r_interrupt = true; if (DZE_Surrender) then {call dze_surrender_off};};
if (_dikCode in actionKeys "MoveBack") exitWith {r_interrupt = true; if (DZE_Surrender) then {call dze_surrender_off};};

//Prevent exploit of drag body
if ((_dikCode in actionKeys "Prone") and r_drag_sqf) exitWith { force_dropBody = true; };
if ((_dikCode in actionKeys "Crouch") and r_drag_sqf) exitWith { force_dropBody = true; };

_shift =     _this select 2;
_ctrl =     _this select 3;
_alt =        _this select 4;

//diag_log format["Keypress: %1", _this];
if ((_dikCode in actionKeys "Gear") and (vehicle player != player) and !_shift and !_ctrl and !_alt && !dialog) then {
            createGearDialog [player, "RscDisplayGear"];
            _handled = true;
};

if (_dikCode in (actionKeys "GetOver")) then {
   
    if (player isKindOf  "PZombie_VB") then {
        _handled = true;
        DZE_PZATTACK = true;
    } else {
        _nearbyObjects = nearestObjects[getPosATL player, dayz_disallowedVault, 8];
        if (count _nearbyObjects > 0) then {
            if((diag_tickTime - dayz_lastCheckBit > 4)) then {
                [objNull, player, rSwitchMove,"GetOver"] call RE;
                player playActionNow "GetOver";
                dayz_lastCheckBit = diag_tickTime;
            } else {
                _handled = true;
            };
        };
    };
};
//if (_dikCode == 57) then {_handled = true}; // space
//if (_dikCode in actionKeys 'MoveForward' or _dikCode in actionKeys 'MoveBack') then {r_interrupt = true};
if (_dikCode == 210) then {
        _nill = execvm "\z\addons\dayz_code\actions\playerstats.sqf";
};

if (_dikCode in actionKeys "ForceCommandingMode") then {_handled = true};
if (_dikCode in actionKeys "PushToTalk" and (diag_tickTime - dayz_lastCheckBit > 10)) then {
    dayz_lastCheckBit = diag_tickTime;
    [player,50,true,(getPosATL player)] spawn player_alertZombies;
};
if (_dikCode in actionKeys "VoiceOverNet" and (diag_tickTime - dayz_lastCheckBit > 10)) then {
    dayz_lastCheckBit = diag_tickTime;
    [player,50,true,(getPosATL player)] spawn player_alertZombies;
};
if (_dikCode in actionKeys "PushToTalkDirect" and (diag_tickTime - dayz_lastCheckBit > 10)) then {
    dayz_lastCheckBit = diag_tickTime;
    [player,15,false,(getPosATL player)] spawn player_alertZombies;
};
if (_dikCode in actionKeys "Chat" and (diag_tickTime - dayz_lastCheckBit > 10)) then {
    dayz_lastCheckBit = diag_tickTime;
    [player,15,false,(getPosATL player)] spawn player_alertZombies;
};
if (_dikCode in actionKeys "User20" and (diag_tickTime - dayz_lastCheckBit > 5)) then {
    dayz_lastCheckBit = diag_tickTime;
    createDialog "horde_journal_front_cover";
};

// numpad 8 0x48 now pgup 0xC9 1
if ((_dikCode == 0xC9 and (!_alt or !_ctrl)) or (_dikCode in actionKeys "User15")) then {
    DZE_Q = true;
};
// numpad 2 0x50 now pgdn 0xD1
if ((_dikCode == 0xD1 and (!_alt or !_ctrl)) or (_dikCode in actionKeys "User16")) then {
    DZE_Z = true;
};


// numpad 8 0x48 now pgup 0xC9 0.1
if ((_dikCode == 0xC9 and (_alt and !_ctrl)) or (_dikCode in actionKeys "User13")) then {
    DZE_Q_alt = true;
};
// numpad 2 0x50 now pgdn 0xD1
if ((_dikCode == 0xD1 and (_alt and !_ctrl)) or (_dikCode in actionKeys "User14")) then {
    DZE_Z_alt = true;
};


// numpad 8 0x48 now pgup 0xC9 0.01
if ((_dikCode == 0xC9 and (!_alt and _ctrl)) or (_dikCode in actionKeys "User7")) then {
    DZE_Q_ctrl = true;
};
// numpad 2 0x50 now pgdn 0xD1
if ((_dikCode == 0xD1 and (!_alt and _ctrl)) or (_dikCode in actionKeys "User8")) then {
    DZE_Z_ctrl = true;
};




// numpad 4 0x4B now Q 0x10
if (_dikCode == 0x10 or (_dikCode in actionKeys "User17")) then {
    DZE_4 = true;
};       
// numpad 6 0x4D now E 0x12
if (_dikCode == 0x12 or (_dikCode in actionKeys "User18")) then {
    DZE_6 = true;
};
// numpad 5 0x4C now space 0x39
if (_dikCode == 0x39 or (_dikCode in actionKeys "User19")) then {
    DZE_5 = true;
};

_handled
 
You'll find it in a File called "dayz_spaceinterrupt.sqf", which is not part of Epoch, it's part of DayZ. You could add it to your compiles.sqf manually:

PHP:
dayz_spaceInterrupt =            compile preprocessFileLineNumbers "custom\dayz_spaceInterrupt.sqf";

And then place the File inside your Folder (might have to edit path!!!)
PHP:
private ["_dikCode","_handled","_primaryWeapon","_secondaryWeapon","_nearbyObjects","_nill","_shift","_ctrl","_alt","_dropPrimary","_dropSecondary","_iItem","_removed","_iPos","_radius","_item"];
_dikCode =     _this select 1;

_handled = false;

if (_dikCode in[0x02,0x03,0x04,0x58,0x57,0x44,0x43,0x42,0x41,0x40,0x3F,0x3E,0x3D,0x3C,0x3B,0x0B,0x0A,0x09,0x08,0x07,0x06,0x05]) then {
    _handled = true;
};

if ((_dikCode == 0x3E or _dikCode == 0x0F or _dikCode == 0xD3)) then {
    if(diag_tickTime - dayz_lastCheckBit > 10) then {
        dayz_lastCheckBit = diag_tickTime;
        call dayz_forceSave;
    };
    call dayz_EjectPlayer;
};

// esc
if (_dikCode == 0x01) then {
    DZE_cancelBuilding = true;
    call dayz_EjectPlayer;
};

if (_dikCode == 0x23) then {
        createdialog "help_dialog";
    };

// surrender
if (_dikCode in actionKeys "Surrender") then {
  
    _vehicle = vehicle player;
    _inVehicle = (_vehicle != player);
    _onLadder =    (getNumber (configFile >> "CfgMovesMaleSdr" >> "States" >> (animationState player) >> "onLadder")) == 1;
    _canDo = (!r_drag_sqf and !r_player_unconscious and !_onLadder and !_inVehicle);
  
    if (_canDo and !DZE_Surrender and !(player isKindOf  "PZombie_VB")) then {
        DZE_Surrender = true;
        _dropPrimary = false;
        _dropSecondary = false;

        _primaryWeapon = primaryWeapon player;
        if (_primaryWeapon != "") then {_dropPrimary = true;};
        _secondaryWeapon = "";
        {
            if ((getNumber (configFile >> "CfgWeapons" >> _x >> "Type")) == 2) exitWith {
                    _secondaryWeapon = _x;
            };
        } forEach (weapons player);
        if (_secondaryWeapon != "") then {_dropSecondary = true;};

        if (_dropPrimary or _dropSecondary) then {
            player playActionNow "PutDown";
            _iPos = getPosATL player;
            _radius = 1;
            _item = createVehicle ["WeaponHolder", _iPos, [], _radius, "CAN_COLLIDE"];
            _item setposATL _iPos;
            if (_dropPrimary) then {
                _iItem = _primaryWeapon;
                _removed = ([player,_iItem,1] call BIS_fnc_invRemove);
                if (_removed == 1) then {
                    _item addWeaponCargoGlobal [_iItem,1];
                };
            };
            if (_dropSecondary) then {
                _iItem = _secondaryWeapon;
                _removed = ([player,_iItem,1] call BIS_fnc_invRemove);
                if (_removed == 1) then {
                    _item addWeaponCargoGlobal [_iItem,1];
                };
            };
            player reveal _item;
        };

        // set publicvariable that allows other player to access gear
        player setVariable ["DZE_Surrendered", true, true];
        // surrender animation
        player playMove "AmovPercMstpSsurWnonDnon";
    };
    _handled = true;
};

if (_dikCode in actionKeys "MoveForward") exitWith {r_interrupt = true; if (DZE_Surrender) then {call dze_surrender_off};};
if (_dikCode in actionKeys "MoveLeft") exitWith {r_interrupt = true; if (DZE_Surrender) then {call dze_surrender_off};};
if (_dikCode in actionKeys "MoveRight") exitWith {r_interrupt = true; if (DZE_Surrender) then {call dze_surrender_off};};
if (_dikCode in actionKeys "MoveBack") exitWith {r_interrupt = true; if (DZE_Surrender) then {call dze_surrender_off};};

//Prevent exploit of drag body
if ((_dikCode in actionKeys "Prone") and r_drag_sqf) exitWith { force_dropBody = true; };
if ((_dikCode in actionKeys "Crouch") and r_drag_sqf) exitWith { force_dropBody = true; };

_shift =     _this select 2;
_ctrl =     _this select 3;
_alt =        _this select 4;

//diag_log format["Keypress: %1", _this];
if ((_dikCode in actionKeys "Gear") and (vehicle player != player) and !_shift and !_ctrl and !_alt && !dialog) then {
            createGearDialog [player, "RscDisplayGear"];
            _handled = true;
};

if (_dikCode in (actionKeys "GetOver")) then {
  
    if (player isKindOf  "PZombie_VB") then {
        _handled = true;
        DZE_PZATTACK = true;
    } else {
        _nearbyObjects = nearestObjects[getPosATL player, dayz_disallowedVault, 8];
        if (count _nearbyObjects > 0) then {
            if((diag_tickTime - dayz_lastCheckBit > 4)) then {
                [objNull, player, rSwitchMove,"GetOver"] call RE;
                player playActionNow "GetOver";
                dayz_lastCheckBit = diag_tickTime;
            } else {
                _handled = true;
            };
        };
    };
};
//if (_dikCode == 57) then {_handled = true}; // space
//if (_dikCode in actionKeys 'MoveForward' or _dikCode in actionKeys 'MoveBack') then {r_interrupt = true};
if (_dikCode == 210) then {
        _nill = execvm "\z\addons\dayz_code\actions\playerstats.sqf";
};

if (_dikCode in actionKeys "ForceCommandingMode") then {_handled = true};
if (_dikCode in actionKeys "PushToTalk" and (diag_tickTime - dayz_lastCheckBit > 10)) then {
    dayz_lastCheckBit = diag_tickTime;
    [player,50,true,(getPosATL player)] spawn player_alertZombies;
};
if (_dikCode in actionKeys "VoiceOverNet" and (diag_tickTime - dayz_lastCheckBit > 10)) then {
    dayz_lastCheckBit = diag_tickTime;
    [player,50,true,(getPosATL player)] spawn player_alertZombies;
};
if (_dikCode in actionKeys "PushToTalkDirect" and (diag_tickTime - dayz_lastCheckBit > 10)) then {
    dayz_lastCheckBit = diag_tickTime;
    [player,15,false,(getPosATL player)] spawn player_alertZombies;
};
if (_dikCode in actionKeys "Chat" and (diag_tickTime - dayz_lastCheckBit > 10)) then {
    dayz_lastCheckBit = diag_tickTime;
    [player,15,false,(getPosATL player)] spawn player_alertZombies;
};
if (_dikCode in actionKeys "User20" and (diag_tickTime - dayz_lastCheckBit > 5)) then {
    dayz_lastCheckBit = diag_tickTime;
    createDialog "horde_journal_front_cover";
};

// numpad 8 0x48 now pgup 0xC9 1
if ((_dikCode == 0xC9 and (!_alt or !_ctrl)) or (_dikCode in actionKeys "User15")) then {
    DZE_Q = true;
};
// numpad 2 0x50 now pgdn 0xD1
if ((_dikCode == 0xD1 and (!_alt or !_ctrl)) or (_dikCode in actionKeys "User16")) then {
    DZE_Z = true;
};


// numpad 8 0x48 now pgup 0xC9 0.1
if ((_dikCode == 0xC9 and (_alt and !_ctrl)) or (_dikCode in actionKeys "User13")) then {
    DZE_Q_alt = true;
};
// numpad 2 0x50 now pgdn 0xD1
if ((_dikCode == 0xD1 and (_alt and !_ctrl)) or (_dikCode in actionKeys "User14")) then {
    DZE_Z_alt = true;
};


// numpad 8 0x48 now pgup 0xC9 0.01
if ((_dikCode == 0xC9 and (!_alt and _ctrl)) or (_dikCode in actionKeys "User7")) then {
    DZE_Q_ctrl = true;
};
// numpad 2 0x50 now pgdn 0xD1
if ((_dikCode == 0xD1 and (!_alt and _ctrl)) or (_dikCode in actionKeys "User8")) then {
    DZE_Z_ctrl = true;
};




// numpad 4 0x4B now Q 0x10
if (_dikCode == 0x10 or (_dikCode in actionKeys "User17")) then {
    DZE_4 = true;
};      
// numpad 6 0x4D now E 0x12
if (_dikCode == 0x12 or (_dikCode in actionKeys "User18")) then {
    DZE_6 = true;
};
// numpad 5 0x4C now space 0x39
if (_dikCode == 0x39 or (_dikCode in actionKeys "User19")) then {
    DZE_5 = true;
};

_handled
Alright cool thanks! :)
 
Back
Top