Debug Monitor

Tang0

Well-Known Member
Can anyone recommend a good debug monitor that works in 1.7.71 and maybe post a link to it ?
Thnx
 
I can post a debug, or I can post a debug that's been merged with a nosidechat script (that works wonderfully) which version do you want :)
 
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
    {
        _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];
        _zombies =              count entities "zZombie_Base";
        _zombiesA =    {alive _x} count entities "zZombie_Base";
        _banditCount = {(isPlayer _x) && ((_x getVariable ["humanity",0]) < 0)} count playableUnits;
        _heroCount  = {(isPlayer _x) && ((_x getVariable ["humanity",0]) >= 5000)} count playableUnits;
        _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'font='Bitstream'align='center' color='#EE0000' >%1</t><br/>
        <t size='1'font='Bitstream'align='left' color='#EE0000' >Blood Left:</t><t size='1' font='Bitstream'align='right' color='#EE0000' >%2</t><br/>
        <t size='1'font='Bitstream'align='left' color='#104E8B' >Humanity:</t><t size='1'font='Bitstream'align='right' color='#104E8B' >%3</t><br/>
        <t size='1'font='Bitstream'align='left' color='#EEC900' >Noobs Killed:</t><t size='1'font='Bitstream'align='right' color='#EEC900' >%4</t><br/>
        <t size='1'font='Bitstream'align='left' color='#EEC900' >Assholes Killed:</t><t size='1'font='Bitstream'align='right' color='#EEC900' >%5</t><br/>
        <t size='1'font='Bitstream'align='left' color='#EEC900' >Zombitches Killed:</t><t size='1'font='Bitstream'align='right' color='#EEC900' >%6</t><br/>
        <t size='1'font='Bitstream'align='left' color='#EEC900' >Dome Shots:</t><t size='1'font='Bitstream'align='right' color='#EEC900' >%7</t><br/>
        <t size='1' font='Bitstream' align='left' color='#EEC900' >Zombitches (alive/total): </t><t size='1' font='Bitstream' align='right' color='#EEC900' >%9/%8</t><br/>
        <t size='1'font='Bitstream'align='left' color='#104E8B' >Current Asshole Count:</t><t size='1'font='Bitstream'align='right' color='#104E8B' >%11</t><br/>
        <t size='1'font='Bitstream'align='left' color='#104E8B' >Current NiceGuy Count:</t><t size='1'font='Bitstream'align='right' color='#104E8B' >%12</t><br/>
        <t size='1' font='Bitstream' align='left' color='#104E8B' >FPS: </t><t size='1' font='Bitstream' align='right' color='#104E8B' >%10</t><br/>
        <img size='3' image='%13'/><br/>
        <t size='1'font='Bitstream'align='center' color='#104E8B' >Press the right ctrl button to toggle! </t><br/>
        <t size='1'font='Bitstream'align='center' color='#104E8B' >Welcome to Zombie Battalion! </t><br/>
 
        ",dayz_playerName,r_player_blood,round _humanity,_killsH,_killsB,_kills,_headShots,count entities "zZombie_Base",{alive _x} count entities "zZombie_Base",diag_fps,_banditCount,_heroCount,_pic];
    sleep 1;
    };
};
 
[] spawn fnc_debug;

init.sqf at the bottom execVM "custom_monitor.sqf";
 
OK works great on server except it will not toggle on/off with right ctrl at all, any ideas?
 
found the problem, the keycodes or US and we or UK , solved its actually the F10 keycode here, love the debug :)
 
found the problem, the keycodes or US and we or UK , solved its actually the F10 keycode here, love the debug :)

actually that was my error. I rewrote it because another script was conflicting with it causing F10 to not work, but for it to be changed to Rctrl ( the dikcode was getting overridden by a different one) forgot to edit that ^.^ glad you like it.
 
Yes thnx for the debug, players love it, now i need a combat logging script that when someone has combat logged , when they return to the game their character has to wear a pink dress for the rest of the day - i would love to see that in action on our server :)
 
Hello matt thanks for the debug ive tried 5 diffrent ones today and all of them spam the rpt with :wrong text element is null , im with dayz.st and they are not the best servers so after a hour the rpt is huge then the server starts lagging bad ! if i remove the debug the server works ok and no rpt error's , Do you know what is making this error and a possible fix , thanks for your time pal .
 
I finally found one that dont spam the rpt :) its not a nice looking as your debug but does the job lol thanks anyway
 
I believe I've found the reason behind the .rpt spamming :wrong text element is null messages.

Heres the .sqf code for the Debug Monitor on my server. (I changed "round _humanity" to "(round(_humanity))") and it stopped spamming that message.

Code:
if (isNil "custom_monitor") then {custom_monitor = true;} else {custom_monitor = false;};
 
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='1'font='Bitstream'align='left'color='#ffcc00'>Survived:</t><t size='1'font='Bitstream'align='right'>%1 Days</t><br/>
    <t size='1'font='Bitstream'align='left'color='#ff0000'>Blood:</t><t size='1' font='Bitstream'align='right'>%2</t><br/>
    <t size='1'font='Bitstream'align='left'color='#ffcc00'>Humanity:</t><t size='1'font='Bitstream'align='right'>%3</t><br/>
    <t size='1'font='Bitstream'align='left'color='#ff0000'>Murders:</t><t size='1'font='Bitstream'align='right'>%4</t><br/>
    <t size='1'font='Bitstream'align='left'color='#16ba00'>Bandits Killed:</t><t size='1'font='Bitstream'align='right'>%5</t><br/>
    <t size='1'font='Bitstream'align='left'color='#ffcc00'>Zombies Killed:</t><t size='1'font='Bitstream'align='right'>%6</t><br/>
    <t size='1'font='Bitstream'align='left'color='#ffcc00'>Headshots:</t><t size='1'font='Bitstream'align='right'>%7</t><br/>
    <t size='1'font='Bitstream'align='left'color='#ffcc00'>FPS:</t><t size='1'font='Bitstream'align='right'>%8</t><br/>
    <t size='1'font='Bitstream'align='left'color='#ffcc00'>Restart In:</t><t size='1'font='Bitstream'align='right'>%9 Minutes</t>
    ",(dayz_Survived),r_player_blood,(round(_humanity)),_killsH,_killsB,_kills,_headShots,floor(diag_fps),(round(120-(serverTime)/60))];
    sleep 1;
};

If you use this code, don't forget to change the "120" (round(120-(serverTime)/60))] to match your server restart timer (in minutes)!

Let me know if this helps or anyone has any further issues.

Craig
 
Thanks for that mate , but thats the one i found the other day :) the non spam one lol
Code:
waitUntil {alive player};
 
while {true} do
{
    _kills =        player getVariable["zombieKills",0];
    _killsH =        player getVariable["humanKills",0];
    _killsB =        player getVariable["banditKills",0];
    _humanity =        player getVariable["humanity",0];
   
    hintSilent parseText format ["
    <t size='1.25' font='Bitstream'align='center' color='#D60000'>DAYZ</t><br/>
    <t size='1.15' font='Bitstream'align='center' color='#D60000'>DAYZ </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;
};
 
Ah, haven't seen the non-spamming one - just been adding to the spamming one, and upon changing the round _humanity to (round(_humanity)) it suddenly stopped spamming (thankfully).

Thanks for letting me know :)
 
Im free today so ill try to get matts debug working without the rpt spam , That's the best debug ive seen :) ill post it if i get it working pal :)
 
Loving the debug, 1 question, is the brown screen/window of the debug a set size? Is there only so many lines of text that can be put into it?
 
What was it you were thinking of adding tango ? And i think you can add as much as you want ! Ive been on servers before and the debug is twice the size lol
 
Loving the debug, 1 question, is the brown screen/window of the debug a set size? Is there only so many lines of text that can be put into it?

It's making use of the 'Hint' box, which is only of a certain size. If you add maybe one or two more lines onto my debug, it will not show up. My debug is already packed to the brim xD
 
Just a quick question for you guys.... I'm trying to combine some idea's from this thread... using mostly what base that MATT L posted above.... would this work...just trying to add the restart timing to it... TBH..

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
 
{
 
_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];
 
_zombies = count entities "zZombie_Base";
 
_zombiesA = {alive _x} count entities "zZombie_Base";
 
_banditCount = {(isPlayer _x) && ((_x getVariable ["humanity",0]) < 0)} count playableUnits;
 
_heroCount = {(isPlayer _x) && ((_x getVariable ["humanity",0]) >= 5000)} count playableUnits;
 
_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'font='Bitstream'align='center' color='#EE0000' >%1</t><br/>
 
<t size='1'font='Bitstream'align='left' color='#EE0000' >Blood Left:</t><t size='1' font='Bitstream'align='right' color='#EE0000' >%2</t><br/>
 
<t size='1'font='Bitstream'align='left' color='#104E8B' >Humanity:</t><t size='1'font='Bitstream'align='right' color='#104E8B' >%3</t><br/>
 
<t size='1'font='Bitstream'align='left' color='#EEC900' >Noobs Killed:</t><t size='1'font='Bitstream'align='right' color='#EEC900' >%4</t><br/>
 
<t size='1'font='Bitstream'align='left' color='#EEC900' >Assholes Killed:</t><t size='1'font='Bitstream'align='right' color='#EEC900' >%5</t><br/>
 
<t size='1'font='Bitstream'align='left' color='#EEC900' >Zombitches Killed:</t><t size='1'font='Bitstream'align='right' color='#EEC900' >%6</t><br/>
 
<t size='1'font='Bitstream'align='left' color='#EEC900' >Dome Shots:</t><t size='1'font='Bitstream'align='right' color='#EEC900' >%7</t><br/>
 
<t size='1' font='Bitstream' align='left' color='#EEC900' >Zombitches (alive/total): </t><t size='1' font='Bitstream' align='right' color='#EEC900' >%9/%8</t><br/>
 
<t size='1'font='Bitstream'align='left' color='#104E8B' >Current Asshole Count:</t><t size='1'font='Bitstream'align='right' color='#104E8B' >%11</t><br/>
 
<t size='1'font='Bitstream'align='left' color='#104E8B' >Current NiceGuy Count:</t><t size='1'font='Bitstream'align='right' color='#104E8B' >%12</t><br/>
 
<t size='1' font='Bitstream' align='left' color='#104E8B' >FPS: </t><t size='1' font='Bitstream' align='right' color='#104E8B' >%10</t><br/>
 
<img size='3' image='%13'/><br/>
 
<t size='1'font='Bitstream'align='center' color='#104E8B' >Press the right ctrl button to toggle! </t><br/>
 
<t size='1'font='Bitstream'align='left'color='#ffcc00'>Restart In:</t><t size='1'font='Bitstream'align='right'>%9 Minutes</t>
 
",dayz_playerName,r_player_blood,round _humanity,_killsH,_killsB,_kills,_headShots,count entities "zZombie_Base",{alive _x} count entities "zZombie_Base",diag_fps,_banditCount,_heroCount,_pic](round(360-(serverTime)/60))];
 
sleep 1;
 
};
 
};
 
[] spawn fnc_debug;
 
Back
Top