[Help] Custom Debug monitor

Puffnstuff

New Member
Ive been trying to add a custom debug to my server. I have followed the tutorials but still cant get it to pop up. I bought my server from survivalservers and it came with a toggable debug already installed. Could the debug that came with the server be causing the new one not to show up? and if so where is the debug that came with the server I cant find it anywhere. Would it have to be somewhere in the mission pbo or could it be anywhere else?

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='1.25' font='Bitstream'align='center' color='#D60000'>Pufnstufs Playground</t><br/>
<t size='1.15' font='Bitstream' align='left' color='#FFBF00'>Players Online: </t><t size='1.15 'font='Bitstream' align='right'>%1</t><br/>
<t size='0.95' font='Bitstream'align='center' color='#D60000'></t><br/>
<t size='1.15' font='Bitstream'align='center' color='#298A08'>%2</t><br/>
<t size='1.15' font='Bitstream'align='center' color='#5882FA'>Survived %3 Days</t><br/>
<t size='0.95' font='Bitstream'align='center' color='#D60000'></t><br/>
<t size='0.95' font='Bitstream' align='left' color='#FFBF00'>Zombies Killed: </t><t size='0.95' font='Bitstream' align='right'>%4</t><br/>
<t size='0.95' font='Bitstream' align='left' color='#FFBF00'>Headshots: </t><t size='0.95' font='Bitstream' align='right'>%5</t><br/>
<t size='0.95' font='Bitstream' align='left' color='#FFBF00'>Murders: </t><t size='0.95' font='Bitstream' align='right'>%6</t><br/>
<t size='0.95' font='Bitstream' align='left' color='#FFBF00'>Bandits Killed: </t><t size='0.95' font='Bitstream' align='right'>%7</t><br/>
<t size='0.95' font='Bitstream' align='left' color='#FFBF00'>Humanity: </t><t size='0.95' font='Bitstream' align='right'>%8</t><br/>
<t size='0.95' font='Bitstream' align='left' color='#FF0000'>Blood: </t><t size='0.95' font='Bitstream' align='right'>%9</t><br/>
<t size='0.95' font='Bitstream'align='center' color='#D60000'></t><br/>
<t size='0.95' font='Bitstream' align='left' color='#FFBF00'>FPS: </t><t size='0.95' font='Bitstream' align='right'>%10</t><br/>
<t size='0.95' font='Bitstream'align='center' color='#D60000'></t><br/>
<t size='1.15' font='Bitstream'align='center' color='#5882FA'>Restart in %11 Minutes</t><br/>
<t size='0.95' font='Bitstream'align='center' color='#D60000'></t><br/>

(count playableUnits),dayz_playerName,(dayz_Survived),_kills,_headShots,_killsH,_killsB,round _humanity,r_player_blood,(round diag_fps),(round(180-(serverTime) / 60))
];
sleep 1;
};
/*
For DayZ Epoch
Addons Credits: Jetski Yanahui by Kol9yN, Zakat, Gerasimow9, YuraPetrov, zGuba, A.Karagod, IceBreakr, Sahbazz
*/
startLoadingScreen ["","RscDisplayLoadCustom"];
cutText ["","BLACK OUT"];
enableSaving [false, false];

//REALLY IMPORTANT VALUES
dayZ_instance = 11; //The instance
dayZ_serverName = "";
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;
// May prevent "how are you civillian?" messages from NPC
enableSentences false;

// DayZ Epoch config
spawnShoremode = 1; // Default = 1 (on shore)
spawnArea= 1500; // Default = 1500
dayz_MapArea = 14000; // Default = 10000
setViewDistance 1500;
setTerrainGrid 20;


//Epoch Config Variables
call compile preprocessFileLineNumbers "config\epochconfig.sqf";

// Dayz Epoch Events
EpochEvents = [["any","any","any","any",5,"crash_spawner"],["any","any","any","any",10,"crash_spawner"],["any","any","any","any",15,"supply_drop"],["any","any","any","any",25,"ikea"],["any","any","any","any",35,"supply_drop"],
["any","any","any","any",40,"crash_spawner"],["any","any","any","any",45,"supply_drop"],["any","any","any","any",50,"ikea"],["any","any","any","any",30,"Construction"]];


//Load in compiled functions
call compile preprocessFileLineNumbers "init\variables.sqf"; //Initilize the Variables (IMPORTANT: Must happen very early)
progressLoadingScreen 0.1;
call compile preprocessFileLineNumbers "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 medical
progressLoadingScreen 0.4;
//call compile preprocessFileLineNumbers "init\compiles.sqf"; //Compile regular functions
call compile preprocessFileLineNumbers "custom\compiles.sqf";
call compile preprocessFileLineNumbers "custom\Snapconfig.sqf";
call compile preprocessFileLineNumbers "Recover_Skin\compiles.sqf";
progressLoadingScreen 0.5;
call compile preprocessFileLineNumbers "traders\server_traders.sqf"; //Compile trader configs
progressLoadingScreen 1.0;

"filmic" setToneMappingParams [0.153, 0.357, 0.231, 0.1573, 0.011, 3.750, 6, 4]; setToneMapping "Filmic";

[] execVM "admintools\AdminList.sqf";

if (isServer) then {
//Compile vehicle configs
call compile preprocessFileLineNumbers "\z\addons\dayz_server\missions\DayZ_Epoch_17.Chernarus\dynamic_vehicle.sqf";
// Add trader citys
_nil = [] execVM "\z\addons\dayz_server\missions\DayZ_Epoch_17.Chernarus\mission.sqf";

_serverMonitor = [] execVM "\z\addons\dayz_code\system\server_monitor.sqf";
};

if (!isDedicated) then {[] execVM "Scripts\kh_actions.sqf";
//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";
};

// Logo watermark: adding a logo in the bottom left corner of the screen with the server name in it
if (!isNil "dayZ_serverName") then {
[] spawn {
waitUntil {(!isNull Player) and (alive Player) and (player == player)};
waituntil {!(isNull (findDisplay 46))};
5 cutRsc ["wm_disp","PLAIN"];
((uiNamespace getVariable "wm_disp") displayCtrl 1) ctrlSetText dayZ_serverName;
};
};

//BIS_Effects
#include "\z\addons\dayz_code\system\BIS_Effects\init.sqf"

//Mod Config
execVM "config\modconfig.sqf";


[] execVM "admintools\Activate.sqf";

[] execVM "faction.sqf";

[] execvm 'AGN\agn_SafeZoneCommander.sqf';

[] execVM "addons\R3F_ARTY_AND_LOG\init.sqf";

[] execVM "custom_monitor.sqf";
 
This wouldnt work try this.

Replace the debug script with this

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;
 
Back
Top