Debug monitor server side?

LTGNick

Valued Member!
So ive noticed some servers have got there debug to be server side instead of client side how is that possible? i know that infiSTAR debug is also server side sooo does anyone know how to?
 
I think I know how it's done. In the server files, not sever PBO, but the main server files in the init folder, there is the compile.sqf (some people pull this compiles.sqf and add it mission side when using custom features) there is a line of code where the debug goes. I know this because I run my debug code inside the compiles.sqf. If I was at home I could explain it better as I have a private test server setup at home and I could explain it better by looking right at the file structure.

But here is my simple debug that's run from inside the compiles.sqf
Code:
if (_dikCode == 0x42) then {
        if (debugMonitor) then {
            debugMonitor = false;
            hintSilent "";
        } else {
        [] spawn fnc_debug;
        };
        };
        _handled
    };
   
    _bloodCol = "#33CC33";

fnc_debug = {
    debugMonitor = true;
    while {(debugMonitor && (!isDedicated))} do
    {

        hintSilent parseText format ["
   
        <t size='0.90' font='Bitstream' align='left' color='#cdcdcd'>Players: %8</t><t size='0.90 'font='Bitstream' align='right' color='#cdcdcd'>Within 1000m: %11</t><br/>
        <t size='0.90' font='Bitstream' align='left' color='#c10b0b'>Blood: </t><t size='0.90' font='Bitstream' align='right' color='#c10b0b'>%9</t><br/>
        <t size='0.90' font='Bitstream' align='left' color='#ff5700'>Humanity: </t><t size='0.90' font='Bitstream' align='right' color='#ff5700'>%6</t><br/>
        <t size='0.90' font='Bitstream' align='left' color='#ffffff'>Zombie Kills: </t><t size='0.90' font='Bitstream' align='right'>%2</t><br/>
        <t size='0.90' font='Bitstream' align='left' color='#ffffff'>Murders: </t><t size='0.90' font='Bitstream' align='right'>%4</t><br/>
        <t size='0.90' font='Bitstream' align='left' color='#ffffff'>Bandit Kills: </t><t size='0.90' font='Bitstream' align='right'>%5</t><br/>
        <t size='0.90' font='Bitstream' align='left' color='#ffffff'>Headshots: </t><t size='0.90' font='Bitstream' align='right'>%3</t><br/>
        <t size='0.90' font='Bitstream' align='left' color='#cdcdcd'>FPS: %10</t><t size='0.90' font='Bitstream' align='right' color='#cdcdcd'>GPS: %22</t><br/>
        <t size='0.90' font='Bitstream' align='left' color='#cdcdcd'>Restart in: <t size='0.90' font='Bitstream' align='right' color='#cdcdcd'>%25 Minutes</t><br/>
   
   
   
    ",
        (name player),                                                                                                    //1
        (player getVariable['zombieKills', 0]),                                                                            //2
        (player getVariable['headShots', 0]),                                                                            //3
        (player getVariable['humanKills', 0]),                                                                            //4
        (player getVariable['banditKills', 0]),                                                                            //5
        (player getVariable['humanity', 0]),                                                                            //6
        (dayz_Survived),                                                                                                //7
        ( playersNumber west),                                                                                            //8
        r_player_blood,                                                                                                    //9
        ((round diag_fps)),                                                                                        //10
        (({isPlayer _x} count (getPos vehicle player nearEntities [["AllVehicles"], 1000]))-1),                            //11
        viewdistance,                                                                                                    //12
        ((count([6800, 9200, 0] nearEntities [["StaticWeapon","Car","Motorcycle","Tank","Air","Ship"],25000])) + 300),    //13
        ((count vehicles) + 300),                                                                                        //14
        ((count([6800, 9200, 0] nearEntities [["Motorcycle"],25000])) + 100),                                            //15
        ((count([6800, 9200, 0] nearEntities [["Air"],25000])) + 50),                                                    //16
        ((count([6800, 9200, 0] nearEntities [["Car"],25000])) + 100),                                                    //17
        (gettext (configFile >> 'CfgVehicles' >> (typeof vehicle player) >> 'displayName')),                            //18
        (count entities "zZombie_Base"),                                                                                //19
        ({alive _x} count entities "zZombie_Base"),                                                                        //20
        (getPosASL player),                                                                                                //21
        (mapGridPosition getPos player),                                                                                //22
        (count([6800, 9200, 0] nearEntities [["Ship"],25000])),                                                            //23
        (round(getDir player)),                                                                                            //24
        (360-(round(serverTime/60)))   
    ];
       
        sleep 2;
    };
};
[] spawn fnc_debug;
 
Back
Top