DX | Custom Debug Monitor

Did This Work For You?

  • Yes

    Votes: 17 63.0%
  • No

    Votes: 10 37.0%

  • Total voters
    27
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



well i just checked it shows its in

Code:
if (!isDedicated) then {

have a look
if (!isDedicated) then {
//Conduct map operations
0 fadeSound 0;
waitUntil {!isNil "dayz_loadScreenMsg"};
dayz_loadScreenMsg = (localize "STR_AUTHENTICATING");

//Run the player monitor
_id = player addEventHandler ["Respawn", {_id = [] spawn player_death;}];
_playerMonitor = [] execFSM "admintools\player_monitor.fsm";
// [] execVM "\z\addons\dayz_code\system\antihack.sqf";
[] execVM "scripts\debug.sqf";
[] execVM "Scripts\kh_actions.sqf";
};
 
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


ummmm its spamming the scripts log :s

is it normal ?

16.07.2013 16:46:15: TGT*Peter (127.0.0.1:2304) 715ffefb2705c4504c79a4c318a930a6 - #4 "_vehicle = _currentVehicle;

_vehicle_refuel_id = _vehicle addAction ["Refuel", "Scripts\kh_vehicle_refuel.sqf", [], -1, false, "
16.07.2013 16:47:36: TGT*Peter (127.0.0.1:2304) 715ffefb2705c4504c79a4c318a930a6 - #52 ") then
{
_pic = (gettext (configFile >> 'cfgWeapons' >> (currentWeapon player) >> 'picture'));
}
else
{
_pic = (gettext (configF"
16.07.2013 16:47:36: TGT*Peter (127.0.0.1:2304) 715ffefb2705c4504c79a4c318a930a6 - #115 "y', 0]),
(round diag_fps),
_pic,
(dayz_survived),
(count playableUnits),
(count entities "zZombie_Base"),
({alive _x} count enti"
16.07.2013 16:47:36: TGT*Peter (127.0.0.1:2304) 715ffefb2705c4504c79a4c318a930a6 - #4 "_vehicle = _currentVehicle;

_vehicle_refuel_id = _vehicle addAction ["Refuel", "Scripts\kh_vehicle_refuel.sqf", [], -1, false, "
16.07.2013 16:48:30: TGT*Peter (127.0.0.1:2304) 715ffefb2705c4504c79a4c318a930a6 - #52 ") then
{
_pic = (gettext (configFile >> 'cfgWeapons' >> (currentWeapon player) >> 'picture'));
}
else
{
_pic = (gettext (configF"
16.07.2013 16:48:30: TGT*Peter (127.0.0.1:2304) 715ffefb2705c4504c79a4c318a930a6 - #115 "y', 0]),
(round diag_fps),
_pic,
(dayz_survived),
(count playableUnits),
(count entities "zZombie_Base"),
({alive _x} count enti"
 
ummmm its spamming the scripts log :s

is it normal ?


Apologies I was talking about rpt logs as I had that issue with an older another debug monitor which was posted somewhere here looks like you had it in the right section anyway though.

You need to add an exception to your battle eye filters to stop your script logs being hammered, really excessive BE logging can slow down performance on hosts that aren't fully dedicated like dayz.st.
 
Apologies I was talking about rpt logs as I had that issue with an older another debug monitor which was posted somewhere here looks like you had it in the right section anyway though.

You need to add an exception to your battle eye filters to stop your script logs being hammered, really excessive BE logging can slow down performance on hosts that aren't fully dedicated like dayz.st.



ok and how do i do that ? sorry for asking but i'm a complete noob

learning all this
 
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


Anyone have any ideas why making me debug toggle like this stops combat rolls from working?
 
when i try removing the player name for

Code:
if (isNil "custom_monitor") then {custom_monitor = true;} else {custom_monitor = !custom_monitor;};
 
while {custom_monitor} do
{
    _kills =        player getVariable["zombieKills",0];
    _killsH =        player getVariable["humanKills",0];
    _killsB =        player getVariable["banditKills",0];
    _humanity =        player getVariable["humanity",0];
    _headShots =    player getVariable["headShots",0];
    hintSilent parseText format ["
    <t size='2'font='Bitstream'align='center'>%1</t><br/>
    <t size='1'font='Bitstream'align='left'>Blood:</t><t size='1' font='Bitstream'align='right'>%2</t><br/>
    <t size='1'font='Bitstream'align='left'>Humanity:</t><t size='1'font='Bitstream'align='right'>%3</t><br/>
    <t size='1'font='Bitstream'align='left'>Players Killed:</t><t size='1'font='Bitstream'align='right'>%4</t><br/>
    <t size='1'font='Bitstream'align='left'>Bandits Killed:</t><t size='1'font='Bitstream'align='right'>%5</t><br/>
    <t size='1'font='Bitstream'align='left'>Zombies Killed:</t><t size='1'font='Bitstream'align='right'>%6</t><br/>
    <t size='1'font='Bitstream'align='left'>Headshots:</t><t size='1'font='Bitstream'align='right'>%7</t><br/>
    <t size='2'font='Bitstream'align='center'>DX-Gaming.com</t><br/>
    ",dayz_playerName,r_player_blood,round _humanity,_killsH,_killsB,_kills,_headShots];
sleep 1;
};

my debug monitor screws up. i know it has to do with dayz_playername but removing that distorts everything else. do i remove <t size='2'font='Bitstream'align='center'>%1</t><br/> and do ",,r_player_blood........." ?
 
when i try removing the player name for

Code:
if (isNil "custom_monitor") then {custom_monitor = true;} else {custom_monitor = !custom_monitor;};
 
while {custom_monitor} do
{
    _kills =        player getVariable["zombieKills",0];
    _killsH =        player getVariable["humanKills",0];
    _killsB =        player getVariable["banditKills",0];
    _humanity =        player getVariable["humanity",0];
    _headShots =    player getVariable["headShots",0];
    hintSilent parseText format ["
    <t size='2'font='Bitstream'align='center'>%1</t><br/>
    <t size='1'font='Bitstream'align='left'>Blood:</t><t size='1' font='Bitstream'align='right'>%2</t><br/>
    <t size='1'font='Bitstream'align='left'>Humanity:</t><t size='1'font='Bitstream'align='right'>%3</t><br/>
    <t size='1'font='Bitstream'align='left'>Players Killed:</t><t size='1'font='Bitstream'align='right'>%4</t><br/>
    <t size='1'font='Bitstream'align='left'>Bandits Killed:</t><t size='1'font='Bitstream'align='right'>%5</t><br/>
    <t size='1'font='Bitstream'align='left'>Zombies Killed:</t><t size='1'font='Bitstream'align='right'>%6</t><br/>
    <t size='1'font='Bitstream'align='left'>Headshots:</t><t size='1'font='Bitstream'align='right'>%7</t><br/>
    <t size='2'font='Bitstream'align='center'>DX-Gaming.com</t><br/>
    ",dayz_playerName,r_player_blood,round _humanity,_killsH,_killsB,_kills,_headShots];
sleep 1;
};

my debug monitor screws up. i know it has to do with dayz_playername but removing that distorts everything else. do i remove <t size='2'font='Bitstream'align='center'>%1</t><br/> and do ",,r_player_blood........." ?

You can remove the Bitstream line with no issue but if you remove dayz_playerName you are going to have to redo all the other lines. Each '%#" refers to a different variable that is defined there and you'll have to readjust each 'path'
 
Love this debug monitor - however, like the poster above mentioned: is there any way to get the combat roll working with this? Seems not to work whether this is showing or not.
 
I got a dayz Overwatch server from XstreamGaming and I'm tring to get the debug monitor put on my server but i can not find the PBO where is it
 
I got a dayz Overwatch server from XstreamGaming and I'm tring to get the debug monitor put on my server but i can not find the PBO where is it

Each hoster is different, you'll have to mess around with your control panel a bit to figure it out.
 
Anyone figure out the combat roll problem when using the toggle code?

edit: nm fixed it, was because I had that already dayz_spaceInterupt defined in the mission side compiles.sqf I was using.
 
Anyone figure out the combat roll problem when using the toggle code?

edit: nm fixed it, was because I had that already dayz_spaceInterupt defined in the mission side compiles.sqf I was using.

Thanks! I wasn't defining dayz_spaceinterrupt anywhere else, but copying that code out of the dayz_code compiles into the debug.sqf and including the check for f10 keypress fixed the issue.
 
Hi im having issues getting the images to work on my custom debug monitor mine is below... My debug monitor works perfect but when i try to add the code for the images it do not show up Im trying to add the image below The deathzone Warlords and below the IP but it just wont show the monitor its self works and show how i like it tho just no image can anyone help me please...


if (isNil "custom_monitor") then {custom_monitor = true;} else {custom_monitor = !custom_monitor;};

waitUntil {alive player};

while {true} 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'));
};

_kills =player getVariable["zombieKills",0];
_killsH =player getVariable["humanKills",0];
_killsB =player getVariable["banditKills",0];
_humanity =player getVariable["humanity",0];

_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 size='1.30' font='Bitstream'align='center' color='#FFFFFF'> %1 </t><br/>
<t size='1.20' font='Bitstream'align='center' color='#FFA600'>The Deathzone Warlords</t><br/>
<t size='1.20' font='Bitstream'align='center' color='#D60000'>IP: 149.3.132.164:2302</t><br/>
<t size='1.15' font='Bitstream'align='center' color='#5882FA'>Survived %2 Days</t><br/>
<t size='0.95' font='Bitstream' align='left' color='#FFBF00'>Players Online: </t><t size='0.95 'font='Bitstream' align='right'>%3</t><br/>
<t size='0.95' font='Bitstream' align='left' color='#FFBF00'>Murders: </t><t size='0.95' font='Bitstream' align='right'>%4</t><br/>
<t size='0.95' font='Bitstream' align='left' color='#FFBF00'>Bandits Killed: </t><t size='0.95' font='Bitstream' align='right'>%5</t><br/>
<t size='0.95' font='Bitstream' align='left' color='#FFBF00'>Zombies Killed: </t><t size='0.95' font='Bitstream' align='right'>%6</t><br/>
<t size='0.95' font='Bitstream' align='left' color='#FFBF00'>Humanity: </t><t size='0.95' font='Bitstream' align='right'>%7</t><br/>
<t size='0.95' font='Bitstream' align='left' color='#FFBF00'>Blood: </t><t size='0.95' font='Bitstream' align='right'>%8</t><br/>
<t size='0.95' font='Bitstream' align='left' color='#FFBF00'>FPS: </t><t size='0.95' font='Bitstream' align='right'>%9</t><br/>
<t size='1.15' font='Bitstream'align='center' color='#5882FA'>Restart in %10 Minutes</t><br/>",

dayz_playerName,(dayz_Survived),(count playableUnits),_killsH,_killsB,_kills,round _humanity,r_player_blood,(round diag_fps),(round(180-(serverTime) / 60))
];
sleep 1;
};
 
Back
Top