DX | Custom Debug Monitor

Did This Work For You?

  • Yes

    Votes: 17 63.0%
  • No

    Votes: 10 37.0%

  • Total voters
    27
ok i tried ur script it didnt gave me any error but i dont know i was unable to use the toggle option maybe i missed something

so in my Mpmission\dayz_1.chernarus\
theres no fn_selfActions.sqf

but there was one fn_selfactions.sqf in Mpmission\dayz_1.origins.tavi\Debug

so i took that file made a directory in
Mpmission\dayz_1.chernarus\debug
placed the file there

edited as u said
the code
Code:
if((speed player <= 1) && _canDo) then {
    if (s_player_toggle < 0) then {
        s_player_toggle = player addaction[("<t color=""#DAA520"">" + ("Toggle Debug") +"</t>"),"custom_monitor.sqf","",5,false,true,"",""];
    };
} else {
    player removeAction s_player_toggle;
    s_player_toggle = -1;
};

below
Code:
_canDo = (!r_drag_sqf and !r_player_unconscious and !_onLadder);

added this to my init.sqf

Code:
call compile preprocessFileLineNumbers "debug\fn_selfActions.sqf";                //Compile self action functions
progressLoadingScreen 0.8;

just below

Code:
call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\compiles.sqf";                //Compile regular functions
progressLoadingScreen 0.6;

didnt had any errors but i was unable to toggle the debug menu

You are pulling directions out of your ass. fn_selfActions comes from dayz_code.pbo
 
Here is my code for a toggle debug monitor which I have adapted from many sources and made my own. Personally, I think it's a lot easier to install then some of the tutorials here. Just save config below as debug.sqf, put it in your mission folder and include the following line in the init.sqf file - Find where it says:
Code:
[] execVM "\z\addons\dayz_code\system\antihack.sqf";
and just add below that:
Code:
[] execVM "debug.sqf";

Config:
Code:
dayz_spaceInterrupt = {
    private ["_dikCode", "_handled"];
    _dikCode = _this select 1;
    _handled = false;
 
    if (_dikCode == 0x44) then {
        if (debugMonitor) then {
            debugMonitor = false;
            hintSilent "";
        } else {[] spawn fnc_debug;};
    };
    _handled
};
 
fnc_debug = {
    debugMonitor = true;
    while {debugMonitor} do
    {
        _pic = (gettext (configFile >> 'CfgVehicles' >> (typeof vehicle player) >> 'picture'));
        if (player == vehicle player) then
        {
            _pic = (gettext (configFile >> 'cfgWeapons' >> (currentWeapon player) >> 'picture'));
        }
            else
        {
            _pic = (gettext (configFile >> 'CfgVehicles' >> (typeof vehicle player) >> 'picture'));
        };
        hintSilent parseText format ["
        <t color='#ff5200' size='1.30' font='Bitstream' align='center'>SERVER NAME</t><br/>
        <t color='#ffffff' size='1.15' font='Bitstream' align='center'>%1</t><br/><br/>
        <t size='1' font='Bitstream' align='left'>Zombies Killed: </t><t color='#ff5200' size='1' font='Bitstream' align='right'>%2</t><br/>
        <t color='#ffffff' size='1' font='Bitstream' align='left'>Survivors Killed: </t><t color='#ff5200' size='1' font='Bitstream' align='right'>%4</t><br/>
        <t color='#ffffff' size='1' font='Bitstream' align='left'>Bandits Killed: </t><t color='#ff5200' size='1' font='Bitstream' align='right'>%5</t><br/>
        <t color='#ffffff' size='1' font='Bitstream' align='left'>Blood: </t><t color='#ff5200' size='1' font='Bitstream' align='right'>%6</t><br/>
        <t color='#ffffff' size='1' font='Bitstream' align='left'>Humanity: </t><t color='#ff5200' size='1' font='Bitstream' align='right'>%7</t><br/><br/>
        <t color='#ffffff' size='1' font='Bitstream' align='left'>FPS: </t><t color='#ff5200' size='1' font='Bitstream' align='right'>%8</t><br/>
        <img size='4' image='%9'/><br/>
        <t color='#ff5200' size='1' font='Bitstream' align='center'>Press F10 to toggle</t><br/>
        <t size='0.8' font='Bitstream' align='center'>WEBSITE</t>",
        (name player),
        (player getVariable['zombieKills', 0]),
        (player getVariable['headShots', 0]),
        (player getVariable['humanKills', 0]),
        (player getVariable['banditKills', 0]),
        (player getVariable['USEC_BloodQty', r_player_blood]),
        (player getVariable['humanity', 0]),
        (round diag_fps),
        _pic];
        sleep 1;
    };
};
 
[] spawn fnc_debug;

You would obviously change SERVERNAME and WEBSITE to your own details. You may also add other features like server restart time, days survived etc. Pic below (Note: I'm holding a M9SD):
debug.png
 
Here is my code for a toggle debug monitor which I have adapted from many sources and made my own. Personally, I think it's a lot easier to install then some of the tutorials here. Just save config below as debug.sqf, put it in your mission folder and include the following line in the init.sqf file - Find where it says:
Code:
[] execVM "\z\addons\dayz_code\system\antihack.sqf";
and just add below that:
Code:
[] execVM "debug.sqf";

Config:
Code:
dayz_spaceInterrupt = {
    private ["_dikCode", "_handled"];
    _dikCode = _this select 1;
    _handled = false;
 
    if (_dikCode == 0x44) then {
        if (debugMonitor) then {
            debugMonitor = false;
            hintSilent "";
        } else {[] spawn fnc_debug;};
    };
    _handled
};
 
fnc_debug = {
    debugMonitor = true;
    while {debugMonitor} do
    {
        _pic = (gettext (configFile >> 'CfgVehicles' >> (typeof vehicle player) >> 'picture'));
        if (player == vehicle player) then
        {
            _pic = (gettext (configFile >> 'cfgWeapons' >> (currentWeapon player) >> 'picture'));
        }
            else
        {
            _pic = (gettext (configFile >> 'CfgVehicles' >> (typeof vehicle player) >> 'picture'));
        };
        hintSilent parseText format ["
        <t color='#ff5200' size='1.30' font='Bitstream' align='center'>SERVER NAME</t><br/>
        <t color='#ffffff' size='1.15' font='Bitstream' align='center'>%1</t><br/><br/>
        <t size='1' font='Bitstream' align='left'>Zombies Killed: </t><t color='#ff5200' size='1' font='Bitstream' align='right'>%2</t><br/>
        <t color='#ffffff' size='1' font='Bitstream' align='left'>Survivors Killed: </t><t color='#ff5200' size='1' font='Bitstream' align='right'>%4</t><br/>
        <t color='#ffffff' size='1' font='Bitstream' align='left'>Bandits Killed: </t><t color='#ff5200' size='1' font='Bitstream' align='right'>%5</t><br/>
        <t color='#ffffff' size='1' font='Bitstream' align='left'>Blood: </t><t color='#ff5200' size='1' font='Bitstream' align='right'>%6</t><br/>
        <t color='#ffffff' size='1' font='Bitstream' align='left'>Humanity: </t><t color='#ff5200' size='1' font='Bitstream' align='right'>%7</t><br/><br/>
        <t color='#ffffff' size='1' font='Bitstream' align='left'>FPS: </t><t color='#ff5200' size='1' font='Bitstream' align='right'>%8</t><br/>
        <img size='4' image='%9'/><br/>
        <t color='#ff5200' size='1' font='Bitstream' align='center'>Press F10 to toggle</t><br/>
        <t size='0.8' font='Bitstream' align='center'>WEBSITE</t>",
        (name player),
        (player getVariable['zombieKills', 0]),
        (player getVariable['headShots', 0]),
        (player getVariable['humanKills', 0]),
        (player getVariable['banditKills', 0]),
        (player getVariable['USEC_BloodQty', r_player_blood]),
        (player getVariable['humanity', 0]),
        (round diag_fps),
        _pic];
        sleep 1;
    };
};
 
[] spawn fnc_debug;

You would obviously change SERVERNAME and WEBSITE to your own details. You may also add other features like server restart time, days survived etc. Pic below (Note: I'm holding a M9SD):
debug.png



this is promising just what i had in my mind :D

if it shows what weapon u hold then its awsome :D

gonna give this a try

also if i can add a flag to the right top corner of the debug would be awsome

coz i tried that and i was unable to make the image visible
 
Code:
    _pic = (gettext (configFile >> 'cfgWeapons' >> (currentWeapon player) >> 'picture'));
        }
            else
        {
            _pic = (gettext (configFile >> 'CfgVehicles' >> (typeof vehicle player) >> 'picture'));
        };

it shows weapon and vehicle
 
Here is my code for a toggle debug monitor which I have adapted from many sources and made my own. Personally, I think it's a lot easier to install then some of the tutorials here. Just save config below as debug.sqf, put it in your mission folder and include the following line in the init.sqf file - Find where it says:
Code:
[] execVM "\z\addons\dayz_code\system\antihack.sqf";
and just add below that:
Code:
[] execVM "debug.sqf";

Config:
Code:
dayz_spaceInterrupt = {
    private ["_dikCode", "_handled"];
    _dikCode = _this select 1;
    _handled = false;
 
    if (_dikCode == 0x44) then {
        if (debugMonitor) then {
            debugMonitor = false;
            hintSilent "";
        } else {[] spawn fnc_debug;};
    };
    _handled
};
 
fnc_debug = {
    debugMonitor = true;
    while {debugMonitor} do
    {
        _pic = (gettext (configFile >> 'CfgVehicles' >> (typeof vehicle player) >> 'picture'));
        if (player == vehicle player) then
        {
            _pic = (gettext (configFile >> 'cfgWeapons' >> (currentWeapon player) >> 'picture'));
        }
            else
        {
            _pic = (gettext (configFile >> 'CfgVehicles' >> (typeof vehicle player) >> 'picture'));
        };
        hintSilent parseText format ["
        <t color='#ff5200' size='1.30' font='Bitstream' align='center'>SERVER NAME</t><br/>
        <t color='#ffffff' size='1.15' font='Bitstream' align='center'>%1</t><br/><br/>
        <t size='1' font='Bitstream' align='left'>Zombies Killed: </t><t color='#ff5200' size='1' font='Bitstream' align='right'>%2</t><br/>
        <t color='#ffffff' size='1' font='Bitstream' align='left'>Survivors Killed: </t><t color='#ff5200' size='1' font='Bitstream' align='right'>%4</t><br/>
        <t color='#ffffff' size='1' font='Bitstream' align='left'>Bandits Killed: </t><t color='#ff5200' size='1' font='Bitstream' align='right'>%5</t><br/>
        <t color='#ffffff' size='1' font='Bitstream' align='left'>Blood: </t><t color='#ff5200' size='1' font='Bitstream' align='right'>%6</t><br/>
        <t color='#ffffff' size='1' font='Bitstream' align='left'>Humanity: </t><t color='#ff5200' size='1' font='Bitstream' align='right'>%7</t><br/><br/>
        <t color='#ffffff' size='1' font='Bitstream' align='left'>FPS: </t><t color='#ff5200' size='1' font='Bitstream' align='right'>%8</t><br/>
        <img size='4' image='%9'/><br/>
        <t color='#ff5200' size='1' font='Bitstream' align='center'>Press F10 to toggle</t><br/>
        <t size='0.8' font='Bitstream' align='center'>WEBSITE</t>",
        (name player),
        (player getVariable['zombieKills', 0]),
        (player getVariable['headShots', 0]),
        (player getVariable['humanKills', 0]),
        (player getVariable['banditKills', 0]),
        (player getVariable['USEC_BloodQty', r_player_blood]),
        (player getVariable['humanity', 0]),
        (round diag_fps),
        _pic];
        sleep 1;
    };
};
 
[] spawn fnc_debug;

You would obviously change SERVERNAME and WEBSITE to your own details. You may also add other features like server restart time, days survived etc. Pic below (Note: I'm holding a M9SD):
debug.png

offhand do you know the server restart time code?
 
tested works perfectly

btw i'm trying to add a logo pic on the debug but its not showing up can u help me out with that

<t color='#ffffff' size='1' font='Bitstream' align='left'>Bandits Killed: </t><t color='#ff5200' size='1' font='Bitstream' align='right'>%5</t><br/>
<t color='#ffffff' size='1' font='Bitstream' align='left'>Blood: </t><t color='#ff5200' size='1' font='Bitstream' align='right'>%6</t><br/>
<t color='#ffffff' size='1' font='Bitstream' align='left'>Humanity: </t><t color='#ff5200' size='1' font='Bitstream' align='right'>%7</t><br/><br/>
<t color='#ffffff' size='1' font='Bitstream' align='left'>FPS: </t><t color='#ff5200' size='1' font='Bitstream' align='right'>%8</t><br/>
<img size='4' image='%9'/><br/>
<t color='#ff5200' size='1' font='Bitstream' align='center'>Press F10 to toggle</t><br/>
<img size='4'align='center'image='scripts\xyz.jpg'/>
<t size='0.8' font='Bitstream' align='center'>WEBSITE</t>",
(name player),
(player getVariable['zombieKills', 0]),
(player getVariable['headShots', 0]),
(player getVariable['humanKills', 0]),
(player getVariable['banditKills', 0]),
(player getVariable['USEC_BloodQty', r_player_blood]),
(player getVariable['humanity', 0]),
(round diag_fps),
_pic];
sleep 1;
};
};
 
tested works perfectly

btw i'm trying to add a logo pic on the debug but its not showing up can u help me out with that

<t color='#ffffff' size='1' font='Bitstream' align='left'>Bandits Killed: </t><t color='#ff5200' size='1' font='Bitstream' align='right'>%5</t><br/>
<t color='#ffffff' size='1' font='Bitstream' align='left'>Blood: </t><t color='#ff5200' size='1' font='Bitstream' align='right'>%6</t><br/>
<t color='#ffffff' size='1' font='Bitstream' align='left'>Humanity: </t><t color='#ff5200' size='1' font='Bitstream' align='right'>%7</t><br/><br/>
<t color='#ffffff' size='1' font='Bitstream' align='left'>FPS: </t><t color='#ff5200' size='1' font='Bitstream' align='right'>%8</t><br/>
<img size='4' image='%9'/><br/>
<t color='#ff5200' size='1' font='Bitstream' align='center'>Press F10 to toggle</t><br/>
<img size='4'align='center'image='scripts\xyz.jpg'/>
<t size='0.8' font='Bitstream' align='center'>WEBSITE</t>",
(name player),
(player getVariable['zombieKills', 0]),
(player getVariable['headShots', 0]),
(player getVariable['humanKills', 0]),
(player getVariable['banditKills', 0]),
(player getVariable['USEC_BloodQty', r_player_blood]),
(player getVariable['humanity', 0]),
(round diag_fps),
_pic];
sleep 1;
};
};


define _pic as _pic = [] execVM "scripts\xyz.jpg" and then replace 'scripts\xyz.jpg' with '%9' in the code

Totally unsure of if that will work, but that's how the debug works. If you put it in the debug it has to be called from the sets at the bottom numerically, so player name would be %1, etc
 
Here is my code for a toggle debug monitor which I have adapted from many sources and made my own. Personally, I think it's a lot easier to install then some of the tutorials here. Just save config below as debug.sqf, put it in your mission folder and include the following line in the init.sqf file - Find where it says:
Code:
[] execVM "\z\addons\dayz_code\system\antihack.sqf";
and just add below that:
Code:
[] execVM "debug.sqf";

Config:
Code:
dayz_spaceInterrupt = {
    private ["_dikCode", "_handled"];
    _dikCode = _this select 1;
    _handled = false;
 
    if (_dikCode == 0x44) then {
        if (debugMonitor) then {
            debugMonitor = false;
            hintSilent "";
        } else {[] spawn fnc_debug;};
    };
    _handled
};
 
fnc_debug = {
    debugMonitor = true;
    while {debugMonitor} do
    {
        _pic = (gettext (configFile >> 'CfgVehicles' >> (typeof vehicle player) >> 'picture'));
        if (player == vehicle player) then
        {
            _pic = (gettext (configFile >> 'cfgWeapons' >> (currentWeapon player) >> 'picture'));
        }
            else
        {
            _pic = (gettext (configFile >> 'CfgVehicles' >> (typeof vehicle player) >> 'picture'));
        };
        hintSilent parseText format ["
        <t color='#ff5200' size='1.30' font='Bitstream' align='center'>SERVER NAME</t><br/>
        <t color='#ffffff' size='1.15' font='Bitstream' align='center'>%1</t><br/><br/>
        <t size='1' font='Bitstream' align='left'>Zombies Killed: </t><t color='#ff5200' size='1' font='Bitstream' align='right'>%2</t><br/>
        <t color='#ffffff' size='1' font='Bitstream' align='left'>Survivors Killed: </t><t color='#ff5200' size='1' font='Bitstream' align='right'>%4</t><br/>
        <t color='#ffffff' size='1' font='Bitstream' align='left'>Bandits Killed: </t><t color='#ff5200' size='1' font='Bitstream' align='right'>%5</t><br/>
        <t color='#ffffff' size='1' font='Bitstream' align='left'>Blood: </t><t color='#ff5200' size='1' font='Bitstream' align='right'>%6</t><br/>
        <t color='#ffffff' size='1' font='Bitstream' align='left'>Humanity: </t><t color='#ff5200' size='1' font='Bitstream' align='right'>%7</t><br/><br/>
        <t color='#ffffff' size='1' font='Bitstream' align='left'>FPS: </t><t color='#ff5200' size='1' font='Bitstream' align='right'>%8</t><br/>
        <img size='4' image='%9'/><br/>
        <t color='#ff5200' size='1' font='Bitstream' align='center'>Press F10 to toggle</t><br/>
        <t size='0.8' font='Bitstream' align='center'>WEBSITE</t>",
        (name player),
        (player getVariable['zombieKills', 0]),
        (player getVariable['headShots', 0]),
        (player getVariable['humanKills', 0]),
        (player getVariable['banditKills', 0]),
        (player getVariable['USEC_BloodQty', r_player_blood]),
        (player getVariable['humanity', 0]),
        (round diag_fps),
        _pic];
        sleep 1;
    };
};
 
[] spawn fnc_debug;

You would obviously change SERVERNAME and WEBSITE to your own details. You may also add other features like server restart time, days survived etc. Pic below (Note: I'm holding a M9SD):
debug.png


Works fine but like another couple of debug monitors I've tried, arma2oaserver.rpt getting spammed with:

4:20:03 Wrong text element 'null'
 
define _pic as _pic = [] execVM "scripts\xyz.jpg" and then replace 'scripts\xyz.jpg' with '%9' in the code

Totally unsure of if that will work, but that's how the debug works. If you put it in the debug it has to be called from the sets at the bottom numerically, so player name would be %1, etc



aaah nope its not working maybe i'm doing something wrong

_pic = [] execVM "scripts\xyz.jpg"

fnc_debug = {
debugMonitor = true;
while {debugMonitor} do
{
_pic = (gettext (configFile >> 'CfgVehicles' >> (typeof vehicle player) >> 'picture'));
if (player == vehicle player) then
{
_pic = (gettext (configFile >> 'cfgWeapons' >> (currentWeapon player) >> 'picture'));
}
else
{
_pic = (gettext (configFile >> 'CfgVehicles' >> (typeof vehicle player) >> 'picture'));
};
hintSilent parseText format ["
<img size='2'align='left' image='%10'/><br/><t color='#ff5200' size='1.30' font='Bitstream' align='center'>SERVER NAME</t><br/>
<t color='#ffffff' size='1.15' font='Bitstream' align='center'>%1</t><br/><br/>
<t size='1' font='Bitstream' align='left'>Zombies Killed: </t><t color='#ff5200' size='1' font='Bitstream' align='right'>%2</t><br/>
<t color='#ffffff' size='1' font='Bitstream' align='left'>Survivors Killed: </t><t color='#ff5200' size='1' font='Bitstream' align='right'>%4</t><br/>
<t color='#ffffff' size='1' font='Bitstream' align='left'>Bandits Killed: </t><t color='#ff5200' size='1' font='Bitstream' align='right'>%5</t><br/>
<t color='#ffffff' size='1' font='Bitstream' align='left'>Blood: </t><t color='#ff5200' size='1' font='Bitstream' align='right'>%6</t><br/>
<t color='#ffffff' size='1' font='Bitstream' align='left'>Humanity: </t><t color='#ff5200' size='1' font='Bitstream' align='right'>%7</t><br/><br/>
<t color='#ffffff' size='1' font='Bitstream' align='left'>FPS: </t><t color='#ff5200' size='1' font='Bitstream' align='right'>%8</t><br/>
<img size='4' image='%9'/><br/>
<t color='#ff5200' size='1' font='Bitstream' align='center'>Press F10 to toggle</t><br/>
<t size='0.8' font='Bitstream' align='center'>WEBSITE</t>",
(name player),
(player getVariable['zombieKills', 0]),
(player getVariable['headShots', 0]),
(player getVariable['humanKills', 0]),
(player getVariable['banditKills', 0]),
(player getVariable['USEC_BloodQty', r_player_blood]),
(player getVariable['humanity', 0]),
(round diag_fps),
_pic,
_pix];
sleep 1;
};
};
 
offhand do you know the server restart time code?

The server restart code was mentioned in an earlier post:
(120-(round(serverTime/60))) change the 120 to your play time in minutes.
One note, if you add any extra lines to my default monitor, it may start covering the HUD. You may obviously delete whatever you want from mine to meet your standards.


Works fine but like another couple of debug monitors I've tried, arma2oaserver.rpt getting spammed with:

4:20:03 Wrong text element 'null'
Not on my server . I suspect something may be conflicting with the monitor and causing that error but I don't think it's originated by my monitor.

tested works perfectly

btw i'm trying to add a logo pic on the debug but its not showing up can u help me out with that


Have you tried converting the picture to a .paa? Just a guess. http://www.armaholic.com/page.php?id=1563
 
aaah nope its not working maybe i'm doing something wrong


Here you go:

Code:
dayz_spaceInterrupt = {
    private ["_dikCode", "_handled"];
    _dikCode = _this select 1;
    _handled = false;
 
    if (_dikCode == 0x44) then {
        if (debugMonitor) then {
            debugMonitor = false;
            hintSilent "";
        } else {[] spawn fnc_debug;};
    };
    _handled
};
 
fnc_debug = {
    debugMonitor = true;
    while {debugMonitor} do
    {
        _logo = "pictures\batman-logo-big.paa";
        _pic = (gettext (configFile >> 'CfgVehicles' >> (typeof vehicle player) >> 'picture'));
        if (player == vehicle player) then
        {
            _pic = (gettext (configFile >> 'cfgWeapons' >> (currentWeapon player) >> 'picture'));
        }
            else
        {
            _pic = (gettext (configFile >> 'CfgVehicles' >> (typeof vehicle player) >> 'picture'));
        };
        hintSilent parseText format ["
        <t color='#ff5200' size='1.30' font='Bitstream' align='center'>Snap Gaming!</t><br/>
        <t color='#ffffff' size='1.15' font='Bitstream' align='center'>%1</t><br/><br/>
        <t size='1' font='Bitstream' align='left'>Zombies Killed: </t><t color='#ff5200' size='1' font='Bitstream' align='right'>%2</t><br/>
        <t color='#ffffff' size='1' font='Bitstream' align='left'>Survivors Killed: </t><t color='#ff5200' size='1' font='Bitstream' align='right'>%4</t><br/>
        <t color='#ffffff' size='1' font='Bitstream' align='left'>Bandits Killed: </t><t color='#ff5200' size='1' font='Bitstream' align='right'>%5</t><br/>
        <t color='#ffffff' size='1' font='Bitstream' align='left'>Blood: </t><t color='#ff5200' size='1' font='Bitstream' align='right'>%6</t><br/>
        <t color='#ffffff' size='1' font='Bitstream' align='left'>Humanity: </t><t color='#ff5200' size='1' font='Bitstream' align='right'>%7</t><br/><br/>
        <t color='#ffffff' size='1' font='Bitstream' align='left'>FPS: </t><t color='#ff5200' size='1' font='Bitstream' align='right'>%8</t><br/>
        <img size='4' image='%9'/><br/>
        <t color='#ff5200' size='1' font='Bitstream' align='center'>Press F10 to toggle</t><br/>
        <t size='0.8' font='Bitstream' align='center'>www.facebook.com/SnapDayz</t><br/>
        <img size='4' image='%10'/><br/>",
        (name player),
        (player getVariable['zombieKills', 0]),
        (player getVariable['headShots', 0]),
        (player getVariable['humanKills', 0]),
        (player getVariable['banditKills', 0]),
        (player getVariable['USEC_BloodQty', r_player_blood]),
        (player getVariable['humanity', 0]),
        (round diag_fps),
        _pic,
        _logo];
        sleep 1;
    };
};
 
[] spawn fnc_debug;


debug_logo.jpg
 
Here you go:

Code:
dayz_spaceInterrupt = {
    private ["_dikCode", "_handled"];
    _dikCode = _this select 1;
    _handled = false;
 
    if (_dikCode == 0x44) then {
        if (debugMonitor) then {
            debugMonitor = false;
            hintSilent "";
        } else {[] spawn fnc_debug;};
    };
    _handled
};
 
fnc_debug = {
    debugMonitor = true;
    while {debugMonitor} do
    {
        [COLOR=#ff0000]_logo = "pictures\batman-logo-big.paa";[/COLOR]
        _pic = (gettext (configFile >> 'CfgVehicles' >> (typeof vehicle player) >> 'picture'));
        if (player == vehicle player) then
        {
            _pic = (gettext (configFile >> 'cfgWeapons' >> (currentWeapon player) >> 'picture'));
        }
            else
        {
            _pic = (gettext (configFile >> 'CfgVehicles' >> (typeof vehicle player) >> 'picture'));
        };
        hintSilent parseText format ["
        <t color='#ff5200' size='1.30' font='Bitstream' align='center'>Snap Gaming!</t><br/>
        <t color='#ffffff' size='1.15' font='Bitstream' align='center'>%1</t><br/><br/>
        <t size='1' font='Bitstream' align='left'>Zombies Killed: </t><t color='#ff5200' size='1' font='Bitstream' align='right'>%2</t><br/>
        <t color='#ffffff' size='1' font='Bitstream' align='left'>Survivors Killed: </t><t color='#ff5200' size='1' font='Bitstream' align='right'>%4</t><br/>
        <t color='#ffffff' size='1' font='Bitstream' align='left'>Bandits Killed: </t><t color='#ff5200' size='1' font='Bitstream' align='right'>%5</t><br/>
        <t color='#ffffff' size='1' font='Bitstream' align='left'>Blood: </t><t color='#ff5200' size='1' font='Bitstream' align='right'>%6</t><br/>
        <t color='#ffffff' size='1' font='Bitstream' align='left'>Humanity: </t><t color='#ff5200' size='1' font='Bitstream' align='right'>%7</t><br/><br/>
        <t color='#ffffff' size='1' font='Bitstream' align='left'>FPS: </t><t color='#ff5200' size='1' font='Bitstream' align='right'>%8</t><br/>
        <img size='4' image='%9'/><br/>
        <t color='#ff5200' size='1' font='Bitstream' align='center'>Press F10 to toggle</t><br/>
        <t size='0.8' font='Bitstream' align='center'>www.facebook.com/SnapDayz</t><br/>
        [COLOR=#ff0000]<img size='4' image='%10'/><br/>[/COLOR]",
        (name player),
        (player getVariable['zombieKills', 0]),
        (player getVariable['headShots', 0]),
        (player getVariable['humanKills', 0]),
        (player getVariable['banditKills', 0]),
        (player getVariable['USEC_BloodQty', r_player_blood]),
        (player getVariable['humanity', 0]),
        (round diag_fps),
        _pic,
        [COLOR=#ff0000]_logo[/COLOR]];
        sleep 1;
    };
};
 
[] spawn fnc_debug;


debug_logo.jpg

Thanks for the server restart code. I've got my own debug that i've pulled code from quite a bit of other debugs to create. My players don't care about the hud, they just like how many things i've got on my monitor. Thanks for posting yours, now I know how to do hotkeys for future reference in other scripts xD tired of using fn_selfActions
 
Here you go:

Code:
dayz_spaceInterrupt = {
    private ["_dikCode", "_handled"];
    _dikCode = _this select 1;
    _handled = false;
 
    if (_dikCode == 0x44) then {
        if (debugMonitor) then {
            debugMonitor = false;
            hintSilent "";
        } else {[] spawn fnc_debug;};
    };
    _handled
};
 
fnc_debug = {
    debugMonitor = true;
    while {debugMonitor} do
    {
        _logo = "pictures\batman-logo-big.paa";
        _pic = (gettext (configFile >> 'CfgVehicles' >> (typeof vehicle player) >> 'picture'));
        if (player == vehicle player) then
        {
            _pic = (gettext (configFile >> 'cfgWeapons' >> (currentWeapon player) >> 'picture'));
        }
            else
        {
            _pic = (gettext (configFile >> 'CfgVehicles' >> (typeof vehicle player) >> 'picture'));
        };
        hintSilent parseText format ["
        <t color='#ff5200' size='1.30' font='Bitstream' align='center'>Snap Gaming!</t><br/>
        <t color='#ffffff' size='1.15' font='Bitstream' align='center'>%1</t><br/><br/>
        <t size='1' font='Bitstream' align='left'>Zombies Killed: </t><t color='#ff5200' size='1' font='Bitstream' align='right'>%2</t><br/>
        <t color='#ffffff' size='1' font='Bitstream' align='left'>Survivors Killed: </t><t color='#ff5200' size='1' font='Bitstream' align='right'>%4</t><br/>
        <t color='#ffffff' size='1' font='Bitstream' align='left'>Bandits Killed: </t><t color='#ff5200' size='1' font='Bitstream' align='right'>%5</t><br/>
        <t color='#ffffff' size='1' font='Bitstream' align='left'>Blood: </t><t color='#ff5200' size='1' font='Bitstream' align='right'>%6</t><br/>
        <t color='#ffffff' size='1' font='Bitstream' align='left'>Humanity: </t><t color='#ff5200' size='1' font='Bitstream' align='right'>%7</t><br/><br/>
        <t color='#ffffff' size='1' font='Bitstream' align='left'>FPS: </t><t color='#ff5200' size='1' font='Bitstream' align='right'>%8</t><br/>
        <img size='4' image='%9'/><br/>
        <t color='#ff5200' size='1' font='Bitstream' align='center'>Press F10 to toggle</t><br/>
        <t size='0.8' font='Bitstream' align='center'>www.facebook.com/SnapDayz</t><br/>
        <img size='4' image='%10'/><br/>",
        (name player),
        (player getVariable['zombieKills', 0]),
        (player getVariable['headShots', 0]),
        (player getVariable['humanKills', 0]),
        (player getVariable['banditKills', 0]),
        (player getVariable['USEC_BloodQty', r_player_blood]),
        (player getVariable['humanity', 0]),
        (round diag_fps),
        _pic,
        _logo];
        sleep 1;
    };
};
 
[] spawn fnc_debug;


debug_logo.jpg



hey thanx man appreciate it :)
 
Thanks for the server restart code. I've got my own debug that i've pulled code from quite a bit of other debugs to create. My players don't care about the hud, they just like how many things i've got on my monitor. Thanks for posting yours, now I know how to do hotkeys for future reference in other scripts xD tired of using fn_selfActions



yea im also gonna add these things

vehicles on the map
players online
time left for restart

thanx for your help too :D
 
hey guys is there anything wrong with this script ?

Code:
dayz_spaceInterrupt = {
    private ["_dikCode", "_handled"];
    _dikCode = _this select 1;
    _handled = false;
 
    if (_dikCode == 0x44) then {
        if (debugMonitor) then {
            debugMonitor = false;
            hintSilent "";
        } else {[] spawn fnc_debug;};
    };
    _handled
};
 
fnc_debug = {
    debugMonitor = true;
    while {debugMonitor} do
    {
        _pic = (gettext (configFile >> 'CfgVehicles' >> (typeof vehicle player) >> 'picture'));
        if (player == vehicle player) then
        {
            _pic = (gettext (configFile >> 'cfgWeapons' >> (currentWeapon player) >> 'picture'));
        }
            else
        {
            _pic = (gettext (configFile >> 'CfgVehicles' >> (typeof vehicle player) >> 'picture'));
        };
        hintSilent parseText format ["
        <t color='#33FF00' size='1.30' font='Bitstream' align='center'>Testing server</t><br/>
        <t color='#FFFFFF' size='1.15' font='Bitstream' align='center'>%1</t><br/>
        <t color='#FFFF00' size='0.95' font='Bitstream' align='center'>Survived %10 Days</t><br/><br/>
        <t color='#FF3333' size='0.95' font='Bitstream' align='left'>Players</t><t color='#FFFFFF' size='0.95' font='Bitstream' align='left'> : %11</t><br/>
        <t color='#FF3333' size='0.95' font='Bitstream' align='left'>Vehicles</t><t color='#FFFFFF' size='0.95' font='Bitstream' align='left'> : %12(%13)</t><br/>
        <t color='#FF3333' size='0.95' font='Bitstream' align='left'>Air</t><t color='#FFFFFF' size='0.95' font='Bitstream' align='left'> : %14</t><t color='#FF3333' size='0.95' font='Bitstream' align='right'>Sea</t><t color='#FFFFFF' size='0.95' font='Bitstream' align='right'> : %15</t><br/>
        <t color='#FF3333' size='0.95' font='Bitstream' align='left'>All Bikes</t><t color='#FFFFFF' size='0.95' font='Bitstream 'align='left'> : %16</t><t color='#FF3333' size='0.95' font='Bitstream' align='right'>Cars</t><t color='#FFFFFF' size='0.95' font='Bitstream' align='right'> : %17</t><br/>
        <t color='#FF3333' size='0.95' font='Bitstream' align='left'>Zombies (alive/total):</t><t size='0.95' font='Bitstream' align='left'>%19(%18)</t><br/>
        <t color='#FF6633' size='1' font='Bitstream' align='left'>Zombies Killed:</t><t color='#ffffff' size='1' font='Bitstream' align='right'>%2</t><br/>
        <t color='#FF6633' size='1' font='Bitstream' align='left'>Survivors Killed:</t><t color='#ffffff' size='1' font='Bitstream' align='right'>%4</t><br/>
        <t color='#FF6633' size='1' font='Bitstream' align='left'>Bandits Killed:</t><t color='#ffffff' size='1' font='Bitstream' align='right'>%5</t><br/>
        <t color='#FF6633' size='1' font='Bitstream' align='left'>Blood:</t><t color='#ffffff' size='1' font='Bitstream' align='right'>%6</t><br/>
        <t color='#FF6633' size='1' font='Bitstream' align='left'>Humanity:</t><t color='#ffffff' size='1' font='Bitstream' align='left'>%7</t><br/><br/>
        <t color='#FF6633' size='1' font='Bitstream' align='left'>FPS: </t><t color='#ffffff' size='1' font='Bitstream' align='left'>%8</t><br/>
        <t color='#0099FF' size='1' font='Bitstream' align='center'>Press F10 to toggle</t><br/>
        <img size='4' image='%9'/><br/>
        <t color='#FFFF00' size='0.8' font='Bitstream' align='center'>www.yoyonigga.com</t><br/>",
        (name player),
        (player getVariable['zombieKills', 0]),
        (player getVariable['headShots', 0]),
        (player getVariable['humanKills', 0]),
        (player getVariable['banditKills', 0]),
        (player getVariable['USEC_BloodQty', r_player_blood]),
        (player getVariable['humanity', 0]),
        (round diag_fps),
        _pic,
        (dayz_skilllevel),
        (count playableUnits),
        (count([6800, 9200, 0] nearEntities [["StaticWeapon","Car","Motorcycle","Tank","Air","Ship"],25000])),
        count vehicles,
        (count([6800, 9200, 0] nearEntities [["Air"],25000])),
        (count([6800, 9200, 0] nearEntities [["Ship"],25000])),
        (count([6800, 9200, 0] nearEntities [["Motorcycle"],25000])),
        (count([6800, 9200, 0] nearEntities [["Car"],25000])),
        (count entities "zZombie_Base"),
        ({alive _x} count entities "zZombie_Base")];
        sleep 1;
    };
};
 
[] spawn fnc_debug;
 
You can stop your debug monitor spamming your rpt logs by making sure you have it in the

Code:
if (!isDedicated) then {
section of init.sqf
 
Back
Top