How do i configure the debugmonitor?

Piton

New Member
hello everyone,

i used the search function but i can´t find the right thread...

how can i configure the debug-monitor from dayz-epoch-scriptpack 1.0.4 ?

We have a new Nitrado-dayz-epoch-Server and i´ve installed the epoch-scirptpack 1.0.4

downloaded here: https://github.com/daeks/Dayz-DNetwork

The debug-monitor which can be turned off and on with the key "end" doesn´t show the servername and shows the wrong time (left minutes till serverrestart).

I was looking through many files but i cant find the line where to configure it.

Please tell me where can i change the servername shown in the debug monitor and where can i make the debug monitor show the right amount of minutes left till next serverrestart?

Your sincerely
 
Navigate to: -> dayz_private_1.epoch.chernarus/scripts/custom_monitor.sqf

Open the File and you'll find:

PHP:
fnc_debug = {
    debugMonitor = true;
    while {debugMonitor} do
    {
                    _nearestCity = nearestLocations [getPos player, ["NameCityCapital","NameCity","NameVillage","NameLocal"],750];
                    _textCity = "Wilderness";
                    if (count _nearestCity > 0) then {_textCity = text (_nearestCity select 0)};

                    _timeleft = _combattimeout-time;
                    _kills =         player getVariable["zombieKills",0];
                    _killsH =         player getVariable["humanKills",0];
                    _killsB =         player getVariable["banditKills",0];
                    _humanity =        player getVariable["humanity",0];                   
                    _dmpic = "";
                    _dmtit = ""; // ('' + (gettext (configFile >> 'CfgVehicles' >> (typeof vehicle player) >> 'displayName')))
                    if (player == vehicle player) then {
                        _dmpic = (gettext (configFile >> 'cfgWeapons' >> (currentWeapon player) >> 'picture'));
                        _dmtit = (gettext (configFile >> 'cfgWeapons' >> (currentWeapon player) >> 'displayName'));
                    } else {
                        _dmpic = (gettext (configFile >> 'CfgVehicles' >> (typeof vehicle player) >> 'picture'));
                        _dmtit = (gettext (configFile >> 'CfgVehicles' >> (typeof vehicle player) >> 'displayName'));
                    };

                hintSilent parseText format ["
                <t size='1' font='Bitstream' align='Center' >%19</t><br/>
                <img size='4.75' image='%9' align='Center'/><br/>
                <t size='1' font='Bitstream' align='left' color='#EEC900'>Location:</t><t size='1' font='Bitstream' align='right' color='#FFFAF0'>%11</t><br/>
                <t size='1' font='Bitstream' align='center' color='#DDDDDD'></t><br/>
                <t size='1' font='Bitstream' align='left' color='#B40404'>Blood:</t><t size='1' font='Bitstream' align='right' color='#FFFAF0'>%1</t><br/>
                <t size='1' font='Bitstream' align='left' color='#2E64FE'>Humanity:</t><t size='1' font='Bitstream' align='right' color='#FFFAF0'>%2</t><br/>
                <t size='1' font='Bitstream' align='left' color='#EEC900'>Killed Heros:</t><t size='1' font='Bitstream' align='right' color='#FFFAF0'>%3</t><br/>
                <t size='1' font='Bitstream' align='left' color='#EEC900'>Killed Bandits:</t><t size='1' font='Bitstream' align='right' color='#FFFAF0'>%4</t><br/>
                <t size='1' font='Bitstream' align='left' color='#EEC900'>Killed Zombies:</t><t size='1' font='Bitstream' align='right' color='#FFFAF0'>%5</t><br/>
                <t size='1' font='Bitstream' align='left' color='#EEC900'></t><br/>
                <t size='1' font='Bitstream' align='left' color='#EEC900'>FPS:</t><t size='1' font='Bitstream' align='right' color='#FFFAF0'>%14</t><br/>
                <t size='1' font='Bitstream' align='center' color='#DDDDDD'></t><br/>
                <t size='1' font='Bitstream' align='left' color='#EEC900'>Major:</t><t size='1' font='Bitstream' align='right' color='#FFFAF0'>%20</t><br/>
                <t size='1' font='Bitstream' align='left' color='#EEC900'>Minor:</t><t size='1' font='Bitstream' align='right' color='#FFFAF0'>%21</t><br/>
                <t size='1' font='Bitstream' align='center' color='#DDDDDD'></t><br/>
                <t size='1' font='Bitstream' align='center' color='#5882FA'>Restart in %18 minutes</t><br/>
                <t size='1' font='Bitstream' align='center' color='#DDDDDD'>SERVER_NAME (%17/12)</t><br/>",

                            r_player_blood,                                                //1
                            round _humanity,                                            //2
                            _killsH,                                                    //3
                            _killsB,                                                    //4
                            _kills,                                                        //5
                            _headShots,                                                    //6
                            (dayz_Survived),                                            //7
                            (360-(round(serverTime/60))),                                //8
                            _dmpic,                                                        //9
                            _logo,                                                        //10
                            _textCity,                                                    //11
                            count entities "zZombie_Base",                                //12
                            {alive _x} count entities "zZombie_Base",                    //13
                            (round diag_FPS),                                                    //14
                            dayz_playerName, //15
                            round(dayz_temperatur), //16
                            (count playableUnits),  //17
                            (round(357-(serverTime) / 60)), //18
                            _dmtit, //19
                            MissionGoName, // 20
                            MissionGoNameMinor //21
                        ];
            sleep 2;
    };
};

sleep 25.5;
systemChat ("<System>: -END- key toggles the debugmonitor");
[] spawn fnc_debug;

Change as you want. For example search (STRG + F) for "SERVER_NAME" and change it to your server name.

To change the Time search for "(round(357-(serverTime) / 60)), //18" and change it. For example:
"(round(240-(serverTime) / 60))". Would be 240 Minutes i.e. 4 Hours.
 
Back
Top