DayZ Dual Admin Debug Monitor

Not sure what else I can do with it , other than tweak the vehicle count issues (once I figure out what's going wrong, on my server though it shows 179 vehicles and I do have 179 vehicles in my database. so definitely let me know what you find with Celle). BluePhoenix175 suggested having the option to store the UID's in a database table or external file, so you didn't need to keep repackaging your pbo each time you added an admin. Might try and get round to that. Was also thinking of doing a "anymeeting" session teaching people how to edit the debug file properly. Not sure whether I'd be too shy for that though :p

Hey i was wondering if you could give me a hand with your debug monitor im having some trouble setting it up.. if you have skype add me: damion.bennett

thanks
 
Hey i was wondering if you could give me a hand with your debug monitor im having some trouble setting it up.. if you have skype add me: damion.bennett

thanks

Ask your question here please Damion, what are you having trouble with? It helps others solve their issues if I keep it here, hope you understand :)
 
Well ive followed your instructions down to every last detail and the monitor wont show up, I changed my custom key 20 to H and when I hit it, it does nothing. I tried with and without my UID inside playerstats.sqf and I just cant seem to get it to work here is my init.sqf

Code:
execVM "bon_recruit_units\init.sqf";
[] execVM "addons\R3F_ARTY_AND_LOG\init.sqf";
startLoadingScreen ["","RscDisplayLoadCustom"];
cutText ["","BLACK OUT"];
enableSaving [false, false];
 
//REALLY IMPORTANT VALUES
dayZ_instance = 353;                    //The instance
dayzHiveRequest = [];
initialized = false;
dayz_previousID = 0;
 
//disable greeting menu
player setVariable ["BIS_noCoreConversations", true];
//disable radio messages to be heard and shown in the left lower corner of the screen
enableRadio false;
 
//Load in compiled functions
call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\variables.sqf";              //Initilize the Variables (IMPORTANT: Must happen very early)
progressLoadingScreen 0.1;
call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\publicEH.sqf";              //Initilize the publicVariable event handlers
progressLoadingScreen 0.2;
call compile preprocessFileLineNumbers "\z\addons\dayz_code\medical\setup_functions_med.sqf"; //Functions used by CLIENT for mediprogressLoadingScreen 0.4;
//call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\compiles.sqf";            //Compile regular functions
call compile preprocessFileLineNumbers "debug\compiles.sqf";              //Compile regular functions
progressLoadingScreen 1.0;
"filmic" setToneMappingParams [0.153, 0.357, 0.231, 0.1573, 0.011, 3.750, 6, 4]; setToneMapping "Filmic";
playerstats = compile preprocessFileLineNumbers "debug\playerstats.sqf";
 
if ((!isServer) && (isNull player) ) then
{
waitUntil {!isNull player};
waitUntil {time > 3};
};
 
if ((!isServer) && (player != player)) then
{
  waitUntil {player == player};
  waitUntil {time > 3};
};
 
if (isServer) then {
    _serverMonitor =    [] execVM "\z\addons\dayz_code\system\server_monitor.sqf";
};
 
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 =    [] execVM "\z\addons\dayz_code\system\player_monitor.sqf";   
};
 
I changed the tinyurl.com link to our servers homepage?

playerstats.sqf
Code:
//Let Zeds know
[player,4,true,(getPosATL player)] spawn player_alertZombies;
 
//display gui (temp hint)
 
 
/*
Change the UID's below to match those of you and your admin(s)
Your admins will get the advanced version of your debug monitor,
while your regular users will get the cut down version.
*/
 
if ((getPlayerUID player) in ["11111","22222"]) then {
     
    while {sleep 1;hotkey_hitme == 1} do {
     
      hintSilent parseText format ["
    <t size='0.95' font='Bitstream' align='left' >[%18]</t><t size='0.95' font='Bitstream' align='right'>[FPS: %10]</t><br/>
    <t size='0.95' font='Bitstream' align='center' color='#FFBF00'>Survived %7 Days</t><br/>
    <t size='0.95' font='Bitstream' align='left' >Players: %8</t><t size='0.95 'font='Bitstream' align='right'>Within 500m: %11</t><br/>
    <t size='0.95' font='Bitstream' align='left' >Vehicles:</t><t size='0.95' font='Bitstream'align='right'>%13(%14)</t><br/>
    <t size='0.95' font='Bitstream' align='left'>Air: %16</t><t size='0.95' font='Bitstream'align='right'>Sea: %23</t><br/>
    <t size='0.95' font='Bitstream' align='left' >All Bikes: %15</t><t size='0.95' font='Bitstream'align='right'>Cars: %17</t><br/>
    <t size='0.95' font='Bitstream' align='left' >Zombies (alive/total): </t><t size='0.95' font='Bitstream' align='right'>%20(%19)</t><br/>
    <t size='0.95' font='Bitstream' align='left' color='#FFBF00'>Zombies Killed: </t><t size='0.95' font='Bitstream' align='right'>%2</t><br/>
    <t size='0.95' font='Bitstream' align='left' color='#FFBF00'>Headshots: </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'>Humanity: </t><t size='0.95' font='Bitstream' align='right'>%6</t><br/>
    <t size='0.95' font='Bitstream' align='left' color='#FFBF00'>Blood: </t><t size='0.95' font='Bitstream' align='right'>%9</t><br/>
    <t size='0.95' font='Bitstream' align='left' >GPS: %22</t><t size='0.95' font='Bitstream' align='right'>DIR: %24</t><br/>
    <t size='0.95'font='Bitstream'align='center' >%21</t><br/>",
    (name player),
    (player getVariable['zombieKills', 0]),
    (player getVariable['headShots', 0]),
    (player getVariable['humanKills', 0]),
    (player getVariable['banditKills', 0]),
    (player getVariable['humanity', 0]),
    (dayz_skilllevel),
    (count playableUnits),
    r_player_blood,
    (round diag_fps),
    (({isPlayer _x} count (getPos vehicle player nearEntities [["AllVehicles"], 500]))-1),
    viewdistance,
    (count([6800, 9200, 0] nearEntities [["StaticWeapon","Car","Motorcycle","Tank","Air","Ship"],25000])),
    count vehicles,
    (count([6800, 9200, 0] nearEntities [["Motorcycle"],25000])),
    (count([6800, 9200, 0] nearEntities [["Air"],25000])),
    (count([6800, 9200, 0] nearEntities [["Car"],25000])),
    (gettext (configFile >> 'CfgVehicles' >> (typeof vehicle player) >> 'displayName')),
    (count entities "zZombie_Base"),
    ({alive _x} count entities "zZombie_Base"),
    (getPosASL player),
    (mapGridPosition getPos player),
    (count([6800, 9200, 0] nearEntities [["Ship"],25000])),
    (round(getDir player))
];
};
} else {
 
while {sleep 1;hotkey_hitme == 1} do {
 
hintSilent parseText format ["
    <t size='1.20' font='Bitstream' align='center' color='#00CC00'>%1</t><br/>
    <t size='0.95' font='Bitstream' align='center' >[%10]</t><br/>
    <t size='1.15' font='Bitstream' align='center' color='#FFCC00'>Survived %7 Days</t><br/><br/>
    <t size='1.15' font='Bitstream' align='left' color='#FFBF00'>Zombies Killed: </t><t size='1.15' font='Bitstream' align='right'>%2</t><br/>
    <t size='1.15' font='Bitstream' align='left' color='#FFBF00'>Headshots: </t><t size='1.15' font='Bitstream' align='right'>%3</t><br/>
    <t size='1.15' font='Bitstream' align='left' color='#FFBF00'>Murders: </t><t size='1.15' font='Bitstream' align='right'>%4</t><br/>
    <t size='1.15' font='Bitstream' align='left' color='#FFBF00'>Bandits Killed: </t><t size='1.15' font='Bitstream' align='right'>%5</t><br/>
    <t size='1.15' font='Bitstream' align='left' color='#FFBF00'>Humanity: </t><t size='1.15' font='Bitstream' align='right'>%6</t><br/><br/>
    <t size='1.15' font='Bitstream' color='#5882FA'>DayZBounty.Com</t><br/>",
    (name player),
    (player getVariable['zombieKills', 0]),
    (player getVariable['headShots', 0]),
    (player getVariable['humanKills', 0]),
    (player getVariable['banditKills', 0]),
    (player getVariable['humanity', 0]),
    (dayz_skilllevel),
    (count entities "zZombie_Base"),
    ({alive _x} count entities "zZombie_Base"),
    (gettext (configFile >> 'CfgVehicles' >> (typeof vehicle player) >> 'displayName'))
];};};
 
@Damion, that shouldn't cause any issues . Let me compile and test the github version again on my server, and get back to you. I can't do it right now, but I'll definitely get back to you within a few hours ..
 
I changed the tinyurl.com link to our servers homepage?

playerstats.sqf
Code:
//Let Zeds know
[player,4,true,(getPosATL player)] spawn player_alertZombies;
 
//display gui (temp hint)
 
 
/*
Change the UID's below to match those of you and your admin(s)
Your admins will get the advanced version of your debug monitor,
while your regular users will get the cut down version.
*/
 
if ((getPlayerUID player) in ["11111","22222"]) then {
   
    while {sleep 1;hotkey_hitme == 1} do {
   
      hintSilent parseText format ["
    <t size='0.95' font='Bitstream' align='left' >[%18]</t><t size='0.95' font='Bitstream' align='right'>[FPS: %10]</t><br/>
    <t size='0.95' font='Bitstream' align='center' color='#FFBF00'>Survived %7 Days</t><br/>
    <t size='0.95' font='Bitstream' align='left' >Players: %8</t><t size='0.95 'font='Bitstream' align='right'>Within 500m: %11</t><br/>
    <t size='0.95' font='Bitstream' align='left' >Vehicles:</t><t size='0.95' font='Bitstream'align='right'>%13(%14)</t><br/>
    <t size='0.95' font='Bitstream' align='left'>Air: %16</t><t size='0.95' font='Bitstream'align='right'>Sea: %23</t><br/>
    <t size='0.95' font='Bitstream' align='left' >All Bikes: %15</t><t size='0.95' font='Bitstream'align='right'>Cars: %17</t><br/>
    <t size='0.95' font='Bitstream' align='left' >Zombies (alive/total): </t><t size='0.95' font='Bitstream' align='right'>%20(%19)</t><br/>
    <t size='0.95' font='Bitstream' align='left' color='#FFBF00'>Zombies Killed: </t><t size='0.95' font='Bitstream' align='right'>%2</t><br/>
    <t size='0.95' font='Bitstream' align='left' color='#FFBF00'>Headshots: </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'>Humanity: </t><t size='0.95' font='Bitstream' align='right'>%6</t><br/>
    <t size='0.95' font='Bitstream' align='left' color='#FFBF00'>Blood: </t><t size='0.95' font='Bitstream' align='right'>%9</t><br/>
    <t size='0.95' font='Bitstream' align='left' >GPS: %22</t><t size='0.95' font='Bitstream' align='right'>DIR: %24</t><br/>
    <t size='0.95'font='Bitstream'align='center' >%21</t><br/>",
    (name player),
    (player getVariable['zombieKills', 0]),
    (player getVariable['headShots', 0]),
    (player getVariable['humanKills', 0]),
    (player getVariable['banditKills', 0]),
    (player getVariable['humanity', 0]),
    (dayz_skilllevel),
    (count playableUnits),
    r_player_blood,
    (round diag_fps),
    (({isPlayer _x} count (getPos vehicle player nearEntities [["AllVehicles"], 500]))-1),
    viewdistance,
    (count([6800, 9200, 0] nearEntities [["StaticWeapon","Car","Motorcycle","Tank","Air","Ship"],25000])),
    count vehicles,
    (count([6800, 9200, 0] nearEntities [["Motorcycle"],25000])),
    (count([6800, 9200, 0] nearEntities [["Air"],25000])),
    (count([6800, 9200, 0] nearEntities [["Car"],25000])),
    (gettext (configFile >> 'CfgVehicles' >> (typeof vehicle player) >> 'displayName')),
    (count entities "zZombie_Base"),
    ({alive _x} count entities "zZombie_Base"),
    (getPosASL player),
    (mapGridPosition getPos player),
    (count([6800, 9200, 0] nearEntities [["Ship"],25000])),
    (round(getDir player))
];
};
} else {
 
while {sleep 1;hotkey_hitme == 1} do {
 
hintSilent parseText format ["
    <t size='1.20' font='Bitstream' align='center' color='#00CC00'>%1</t><br/>
    <t size='0.95' font='Bitstream' align='center' >[%10]</t><br/>
    <t size='1.15' font='Bitstream' align='center' color='#FFCC00'>Survived %7 Days</t><br/><br/>
    <t size='1.15' font='Bitstream' align='left' color='#FFBF00'>Zombies Killed: </t><t size='1.15' font='Bitstream' align='right'>%2</t><br/>
    <t size='1.15' font='Bitstream' align='left' color='#FFBF00'>Headshots: </t><t size='1.15' font='Bitstream' align='right'>%3</t><br/>
    <t size='1.15' font='Bitstream' align='left' color='#FFBF00'>Murders: </t><t size='1.15' font='Bitstream' align='right'>%4</t><br/>
    <t size='1.15' font='Bitstream' align='left' color='#FFBF00'>Bandits Killed: </t><t size='1.15' font='Bitstream' align='right'>%5</t><br/>
    <t size='1.15' font='Bitstream' align='left' color='#FFBF00'>Humanity: </t><t size='1.15' font='Bitstream' align='right'>%6</t><br/><br/>
    <t size='1.15' font='Bitstream' color='#5882FA'>DayZBounty.Com</t><br/>",
    (name player),
    (player getVariable['zombieKills', 0]),
    (player getVariable['headShots', 0]),
    (player getVariable['humanKills', 0]),
    (player getVariable['banditKills', 0]),
    (player getVariable['humanity', 0]),
    (dayz_skilllevel),
    (count entities "zZombie_Base"),
    ({alive _x} count entities "zZombie_Base"),
    (gettext (configFile >> 'CfgVehicles' >> (typeof vehicle player) >> 'displayName'))
];};};

Just noticed, you haven't changed the UID's ?

I've ran the code on my server, straight from Github and it seems to be working.
 
this is strange, I tried it with and without my UID's inside the file and now I just tried it again as I gave it to you here it hangs on wait for host so obviously my init.sqf is crashing somewhere. I have R3F and Bon Recruit Script, do you think this will be effecting it somehow? Iv tried a few things like making the spacing between the loading lines and the playerstatus in the init.sqf but no avail.
 
this is strange, I tried it with and without my UID's inside the file and now I just tried it again as I gave it to you here it hangs on wait for host so obviously my init.sqf is crashing somewhere. I have R3F and Bon Recruit Script, do you think this will be effecting it somehow? Iv tried a few things like making the spacing between the loading lines and the playerstatus in the init.sqf but no avail.

Put the r3F and Bon Recruit script lines at the very bottom of your init... Then try it, also .. When you try it this time, if it doesn't work again, copy over your rpt file contents for this session.
 
Put the r3F and Bon Recruit script lines at the very bottom of your init... Then try it, also .. When you try it this time, if it doesn't work again, copy over your rpt file contents for this session.


this is my rpt file, still no debug monitor
 

Attachments

  • server.txt
    234.1 KB · Views: 7
My apologies to BluePheonix175 and Damion (I owe you both a beer now): It would appear that I am still not getting to grips with GitHub (only my 2nd week). The bug has been fixed though and I can confirm the debug monitor works, I used BluePheonix's pbo to test it , so there wasn't any chance that my pbo was a fluke ;)

The code that needed changing was:

Code:
if (!isDedicated) then {
    _config =    configFile >> "CfgLoot";
    _config1 =    configFile >> "CfgMagazines" >> "FoodEdible";
    _config2 =    configFile >> "CfgWeapons" >> "Loot";
    hotkey_hitme = 0;  // This line was missing

It has been updated and pushed to github.. I checked twice!
 
Not yet! But I'll get to that when I've got a chance. I'll drop specific vehicle numbers of diff types and see what it does with them (specifically the celle vehicles)
 
My apologies to BluePheonix175 and Damion (I owe you both a beer now): It would appear that I am still not getting to grips with GitHub (only my 2nd week). The bug has been fixed though and I can confirm the debug monitor works, I used BluePheonix's pbo to test it , so there wasn't any chance that my pbo was a fluke ;)

i will trade the beer for a 30min debug modification course :D
 
Hi

My players want to be able to see there blood level too on the debug monitor, so I've added "r_player_blood," to the none admin version too, is there anythign else I need to add there to get the Blood level to work ?



Code:
//Let Zeds know
[player,4,true,(getPosATL player)] spawn player_alertZombies;
 
//display gui (temp hint)
 
 
/*
Change the UID's below to match those of you and your admin(s)
Your admins will get the advanced version of your debug monitor,
while your regular users will get the cut down version.
*/
 
if ((getPlayerUID player) in ["113026054","113066950"]) then {
     
    while {sleep 1;hotkey_hitme == 1} do {
     
      hintSilent parseText format ["
    <t size='0.95' font='Bitstream' align='left' >[%18]</t><t size='0.95' font='Bitstream' align='right'>[FPS: %10]</t><br/>
    <t size='0.95' font='Bitstream' align='center' color='#FFBF00'>Survived %7 Days</t><br/>
    <t size='0.95' font='Bitstream' align='left' >Players: %8</t><t size='0.95 'font='Bitstream' align='right'>Within 500m: %11</t><br/>
    <t size='0.95' font='Bitstream' align='left' >Vehicles:</t><t size='0.95' font='Bitstream'align='right'>%13(%14)</t><br/>
    <t size='0.95' font='Bitstream' align='left'>Air: %16</t><t size='0.95' font='Bitstream'align='right'>Sea: %23</t><br/>
    <t size='0.95' font='Bitstream' align='left' >All Bikes: %15</t><t size='0.95' font='Bitstream'align='right'>Cars: %17</t><br/>
    <t size='0.95' font='Bitstream' align='left' >Zombies (alive/total): </t><t size='0.95' font='Bitstream' align='right'>%20(%19)</t><br/>
    <t size='0.95' font='Bitstream' align='left' color='#FFBF00'>Zombies Killed: </t><t size='0.95' font='Bitstream' align='right'>%2</t><br/>
    <t size='0.95' font='Bitstream' align='left' color='#FFBF00'>Headshots: </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'>Humanity: </t><t size='0.95' font='Bitstream' align='right'>%6</t><br/>
    <t size='0.95' font='Bitstream' align='left' color='#FFBF00'>Blood: </t><t size='0.95' font='Bitstream' align='right'>%9</t><br/>
    <t size='0.95' font='Bitstream' align='left' >GPS: %22</t><t size='0.95' font='Bitstream' align='right'>DIR: %24</t><br/>
    <t size='0.95'font='Bitstream'align='center' >%21</t><br/>",
    (name player),
    (player getVariable['zombieKills', 0]),
    (player getVariable['headShots', 0]),
    (player getVariable['humanKills', 0]),
    (player getVariable['banditKills', 0]),
    (player getVariable['humanity', 0]),
    (dayz_skilllevel),
    (count playableUnits),
    r_player_blood,
    (round diag_fps),
    (({isPlayer _x} count (getPos vehicle player nearEntities [["AllVehicles"], 500]))-1),
    viewdistance,
    (count([6800, 9200, 0] nearEntities [["StaticWeapon","Car","Motorcycle","Tank","Air","Ship"],25000])),
    count vehicles,
    (count([6800, 9200, 0] nearEntities [["Motorcycle"],25000])),
    (count([6800, 9200, 0] nearEntities [["Air"],25000])),
    (count([6800, 9200, 0] nearEntities [["Car"],25000])),
    (gettext (configFile >> 'CfgVehicles' >> (typeof vehicle player) >> 'displayName')),
    (count entities "zZombie_Base"),
    ({alive _x} count entities "zZombie_Base"),
    (getPosASL player),
    (mapGridPosition getPos player),
    (count([6800, 9200, 0] nearEntities [["Ship"],25000])),
    (round(getDir player))
];
};
} else {
 
while {sleep 1;hotkey_hitme == 1} do {
 
hintSilent parseText format ["
    <t size='1.20' font='Bitstream' align='center' color='#00CC00'>%1</t><br/>
    <t size='0.95' font='Bitstream' align='center' >[%10]</t><br/>
    <t size='1.15' font='Bitstream' align='center' color='#FFCC00'>Survived %7 Days</t><br/><br/>
    <t size='1.15' font='Bitstream' align='left' color='#FFBF00'>Zombies Killed: </t><t size='1.15' font='Bitstream' align='right'>%2</t><br/>
    <t size='1.15' font='Bitstream' align='left' color='#FFBF00'>Headshots: </t><t size='1.15' font='Bitstream' align='right'>%3</t><br/>
    <t size='1.15' font='Bitstream' align='left' color='#FFBF00'>Murders: </t><t size='1.15' font='Bitstream' align='right'>%4</t><br/>
    <t size='1.15' font='Bitstream' align='left' color='#FFBF00'>Bandits Killed: </t><t size='1.15' font='Bitstream' align='right'>%5</t><br/>
    <t size='1.15' font='Bitstream' align='left' color='#FFBF00'>Humanity: </t><t size='1.15' font='Bitstream' align='right'>%6</t><br/><br/>
    <t size='0.95' font='Bitstream' align='left' color='#FFBF00'>Blood: </t><t size='0.95' font='Bitstream' align='right'>%9</t><br/>
    //<t size='1.15' font='Bitstream' color='#5882FA'>Tinyurl.com/DAYZ487</t><br/>",
    (name player),
    (player getVariable['zombieKills', 0]),
    (player getVariable['headShots', 0]),
    (player getVariable['humanKills', 0]),
    (player getVariable['banditKills', 0]),
    (player getVariable['humanity', 0]),
    (dayz_skilllevel),
    r_player_blood,
    (count entities "zZombie_Base"),
    ({alive _x} count entities "zZombie_Base"),
    (gettext (configFile >> 'CfgVehicles' >> (typeof vehicle player) >> 'displayName'))
];};};
 
Back
Top