Help Debug Monitor (1.7.7.1 works with small issue)

QueZ

Well-Known Member
Hey guys i'm currently using THIS debug monitor for 1.7.7.1 It works and much more simple than other monitors out there. However a couple of problems occurred since I tried adding some stuff to it and I just can't find the solution.

1 - The Survived Days is the same as Headshots (Every time I get a Headshot it goes up too)
2 - The Zombies Alive/Total does not display numbers

Wlz9fQL.jpg


What am I doing wrong? Any help would be appreciated...

MY CURRENT CODE
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];
_zombies =      count entities "zZombie_Base"];
    _zombiesA =    {alive _x} count entities "zZombie_Base"];
hintSilent parseText format ["
    <t size='1'font='Bitstream'align='left'>Survived:</t><t size='1'font='Bitstream'align='right'>%7 Days</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'>Murders:</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='1'font='Bitstream'align='left'>Zombies (alive/total):</t><t size='0.95'font='Bitstream'align='right'>%19/%20</t><br/>
<t size='1'font='Bitstream'align='left'>FPS:</t><t size='1'font='Bitstream'align='right'>%10</t><br/>
 
",(dayz_Survived),r_player_blood,round _humanity,_killsH,_killsB,_kills,_headShots,(count entities "zZombie_Base"),({alive _x} count entities "zZombie_Base"),(round diag_fps)];
sleep 1;
};
 
Hey guys i'm currently using THIS debug monitor for 1.7.7.1 It works and much more simple than other monitors out there. However a couple of problems occurred since I tried adding some stuff to it and I just can't find the solution.

1 - The Survived Days is the same as Headshots (Every time I get a Headshot it goes up too)
2 - The Zombies Alive/Total does not display numbers

Wlz9fQL.jpg


What am I doing wrong? Any help would be appreciated...

MY CURRENT CODE
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];
_zombies =      count entities "zZombie_Base"];
    _zombiesA =    {alive _x} count entities "zZombie_Base"];
hintSilent parseText format ["
    <t size='1'font='Bitstream'align='left'>Survived:</t><t size='1'font='Bitstream'align='right'>%7 Days</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'>Murders:</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='1'font='Bitstream'align='left'>Zombies (alive/total):</t><t size='0.95'font='Bitstream'align='right'>%19/%20</t><br/>
<t size='1'font='Bitstream'align='left'>FPS:</t><t size='1'font='Bitstream'align='right'>%10</t><br/>
 
",(dayz_Survived),r_player_blood,round _humanity,_killsH,_killsB,_kills,_headShots,(count entities "zZombie_Base"),({alive _x} count entities "zZombie_Base"),(round diag_fps)];
sleep 1;
};

Well...first off...your survived line isn't even pointing to the dayz_survived variable. If you look at that line, it's pointing to the HEADSHOT count. That's why they are the same. As for the zombies....they are pointing to nothing. Let me explain. Look at each line of the font.
Code:
    <t size='1'font='Bitstream'align='left'>Survived:</t><t size='1'font='Bitstream'align='right'>%7 Days</t><br/>
Obviously the text is Survived: blah blah. Well, the %7 tells it to point to the seventh variable listed here :
Code:
",(dayz_Survived),r_player_blood,round _humanity,_killsH,_killsB,_kills,_headShots,(count entities "zZombie_Base"),({alive _x} count entities "zZombie_Base"),(round diag_fps)];
sleep 1;
Your survived line has it pointing to the _headShots variable. While your zombie count isn't pointing to anything because you have no nineteenth or twentieth variables. Therefore they are returning no values and won't display anything. Hope i've helped :D

EDIT: realized I didn't tell you which variables are which for the alive / total zombie count. The Alive is ({alive _x} count entities "zZombie_Base") and total is (count entities "zZombie_Base") so for alive it would be %9 and total %8 OH and for the survived count, you need it to be %1
 
Well...first off...your survived line isn't even pointing to the dayz_survived variable. If you look at that line, it's pointing to the HEADSHOT count. That's why they are the same. As for the zombies....they are pointing to nothing. Let me explain. Look at each line of the font.
Code:
    <t size='1'font='Bitstream'align='left'>Survived:</t><t size='1'font='Bitstream'align='right'>%7 Days</t><br/>
Obviously the text is Survived: blah blah. Well, the %7 tells it to point to the seventh variable listed here :
Code:
",(dayz_Survived),r_player_blood,round _humanity,_killsH,_killsB,_kills,_headShots,(count entities "zZombie_Base"),({alive _x} count entities "zZombie_Base"),(round diag_fps)];
sleep 1;
Your survived line has it pointing to the _headShots variable. While your zombie count isn't pointing to anything because you have no nineteenth or twentieth variables. Therefore they are returning no values and won't display anything. Hope i've helped :D

EDIT: realized I didn't tell you which variables are which for the alive / total zombie count. The Alive is ({alive _x} count entities "zZombie_Base") and total is (count entities "zZombie_Base") so for alive it would be %9 and total %8 OH and for the survived count, you need it to be %1


Thanks for your awesome help Matt I got my debug the way I want it. Since Journal is now part of dayz I only added stuff that was needed in there (can't find in journal) here it is.

Code:
if (isNil "custom_monitor") then {custom_monitor = true;} else {custom_monitor = !custom_monitor;};
 
while {custom_monitor} do
{
    _humanity =        player getVariable["humanity",0];
    _headShots =    player getVariable["headShots",0];
    hintSilent parseText format ["
    <t size='1'font='Bitstream'align='left'>Survived:</t><t size='1'font='Bitstream'align='right'>%1 Days</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'>Zombies (alive/total):</t><t size='0.95'font='Bitstream'align='right'>%5/%4</t><br/>
    <t size='1'font='Bitstream'align='left'>FPS:</t><t size='1'font='Bitstream'align='right'>%6</t><br/>
 
    ",(dayz_Survived),r_player_blood,round _humanity,(count entities "zZombie_Base"),({alive _x} count entities "zZombie_Base"),(round diag_fps)];
sleep 1;
};
 
Back
Top