Simple(ish) Debug Monitor w/ toggling function and animation

all my files are same as the ones at the top only thing that is different i do not have all the stuff in the debug like z's alive all the toggle stuff is the same it not a big deal just takes like 10 secs to go away probably a arma thing
 
all my files are same as the ones at the top only thing that is different i do not have all the stuff in the debug like z's alive all the toggle stuff is the same it not a big deal just takes like 10 secs to go away probably a arma thing

You could also be missing the tiniest bit of code such as an ' somewhere, that causes all sorts of issues.
 
This wasn't originally meant to not have an animation, but if you add me on skype I will gladly take a look at things. mattlampley96
 
This works but can't close
http://pastebin.com/XbvpWvjT

Code:
// ---------------------------------------Krixes Self Bloodbag Start------------------------------------
    _mags = magazines player;
 
    // Krixes Self Bloodbag
    if ("ItemBloodbag" in _mags) then {
        hasBagItem = true;
    } else { hasBagItem = false;};
    if((speed player <= 1) && hasBagItem && _canDo) then {
        if (s_player_selfBloodbag < 0) then {
            s_player_selfBloodbag = player addaction[("<t color=""#c70000"">" + ("Self Bloodbag") +"</t>"),"custom\player_selfbloodbag.sqf","",5,false,true,"", ""];
        };
    } else {
        player removeAction s_player_selfBloodbag;
        s_player_selfBloodbag = -1;
    };
    if((speed player <= 1) && _canDo) then {
        if (s_player_toggle < 0) then {
              s_player_toggle = player addaction[("<t color=""#c70000"">" + ("Toggle Debug") +"</t>"),"custom_monitor.sqf","",5,false,true,"",""];
        };
} else {
                player removeAction s_player_toggle;
                s_player_toggle = -1;
};
   
// ---------------------------------------Krixes Self Bloodbag End------------------------------------
_canDo = (!r_drag_sqf and !r_player_unconscious and !_onLadder);
 
This works but can't close
http://pastebin.com/XbvpWvjT

Code:
// ---------------------------------------Krixes Self Bloodbag Start------------------------------------
    _mags = magazines player;
 
    // Krixes Self Bloodbag
    if ("ItemBloodbag" in _mags) then {
        hasBagItem = true;
    } else { hasBagItem = false;};
    if((speed player <= 1) && hasBagItem && _canDo) then {
        if (s_player_selfBloodbag < 0) then {
            s_player_selfBloodbag = player addaction[("<t color=""#c70000"">" + ("Self Bloodbag") +"</t>"),"custom\player_selfbloodbag.sqf","",5,false,true,"", ""];
        };
    } else {
        player removeAction s_player_selfBloodbag;
        s_player_selfBloodbag = -1;
    };
    if((speed player <= 1) && _canDo) then {
        if (s_player_toggle < 0) then {
              s_player_toggle = player addaction[("<t color=""#c70000"">" + ("Toggle Debug") +"</t>"),"custom_monitor.sqf","",5,false,true,"",""];
        };
} else {
                player removeAction s_player_toggle;
                s_player_toggle = -1;
};
 
// ---------------------------------------Krixes Self Bloodbag End------------------------------------
_canDo = (!r_drag_sqf and !r_player_unconscious and !_onLadder);

I've made a new one. You don't need the fn_selfActions for this one. Also, _canDo is supposed to be above all of that code... otherwise none of it will work....
 
This works but can't close
http://pastebin.com/XbvpWvjT

Code:
// ---------------------------------------Krixes Self Bloodbag Start------------------------------------
    _mags = magazines player;
 
    // Krixes Self Bloodbag
    if ("ItemBloodbag" in _mags) then {
        hasBagItem = true;
    } else { hasBagItem = false;};
    if((speed player <= 1) && hasBagItem && _canDo) then {
        if (s_player_selfBloodbag < 0) then {
            s_player_selfBloodbag = player addaction[("<t color=""#c70000"">" + ("Self Bloodbag") +"</t>"),"custom\player_selfbloodbag.sqf","",5,false,true,"", ""];
        };
    } else {
        player removeAction s_player_selfBloodbag;
        s_player_selfBloodbag = -1;
    };
    if((speed player <= 1) && _canDo) then {
        if (s_player_toggle < 0) then {
              s_player_toggle = player addaction[("<t color=""#c70000"">" + ("Toggle Debug") +"</t>"),"custom_monitor.sqf","",5,false,true,"",""];
        };
} else {
                player removeAction s_player_toggle;
                s_player_toggle = -1;
};
 
// ---------------------------------------Krixes Self Bloodbag End------------------------------------
_canDo = (!r_drag_sqf and !r_player_unconscious and !_onLadder);


Code:
//Credit to nullpo for his original debug and Superlube for the picture
//Modified by Matt L
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
    {
        _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";
        _banditCount = {(isPlayer _x) && ((_x getVariable ["humanity",0]) < 0)} count playableUnits;
        _heroCount  = {(isPlayer _x) && ((_x getVariable ["humanity",0]) >= 5000)} count playableUnits;
        _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 size='1'font='Bitstream'align='center' color='#EE0000' >%1</t><br/>
        <t size='1'font='Bitstream'align='left' color='#EE0000' >Blood Left:</t><t size='1' font='Bitstream'align='right' color='#EE0000' >%2</t><br/>
        <t size='1'font='Bitstream'align='left' color='#104E8B' >Humanity:</t><t size='1'font='Bitstream'align='right' color='#104E8B' >%3</t><br/>
        <t size='1'font='Bitstream'align='left' color='#EEC900' >Noobs Killed:</t><t size='1'font='Bitstream'align='right' color='#EEC900' >%4</t><br/>
        <t size='1'font='Bitstream'align='left' color='#EEC900' >Assholes Killed:</t><t size='1'font='Bitstream'align='right' color='#EEC900' >%5</t><br/>
        <t size='1'font='Bitstream'align='left' color='#EEC900' >Zombitches Killed:</t><t size='1'font='Bitstream'align='right' color='#EEC900' >%6</t><br/>
        <t size='1'font='Bitstream'align='left' color='#EEC900' >Dome Shots:</t><t size='1'font='Bitstream'align='right' color='#EEC900' >%7</t><br/>
        <t size='1' font='Bitstream' align='left' color='#EEC900' >Zombitches (alive/total): </t><t size='1' font='Bitstream' align='right' color='#EEC900' >%9/%8</t><br/>
        <t size='1'font='Bitstream'align='left' color='#104E8B' >Current Asshole Count:</t><t size='1'font='Bitstream'align='right' color='#104E8B' >%11</t><br/>
        <t size='1'font='Bitstream'align='left' color='#104E8B' >Current NiceGuy Count:</t><t size='1'font='Bitstream'align='right' color='#104E8B' >%12</t><br/>
        <t size='1' font='Bitstream' align='left' color='#104E8B' >FPS: </t><t size='1' font='Bitstream' align='right' color='#104E8B' >%10</t><br/>
        <img size='3' image='%13'/><br/>
        <t size='1'font='Bitstream'align='center' color='#104E8B' >Press F10 to toggle! </t><br/>
        <t size='1'font='Bitstream'align='center' color='#104E8B' >Welcome to Pax Extreme DayZ </t><br/>
 
        ",dayz_playerName,r_player_blood,round _humanity,_killsH,_killsB,_kills,_headShots,count entities "zZombie_Base",{alive _x} count entities "zZombie_Base",diag_fps,_banditCount,_heroCount,_pic];
    sleep 1;
    };
};
 
[] spawn fnc_debug;

F10 to toggle on/off, change text as necessary. Also displays a picture.
 
This works but can't close
http://pastebin.com/XbvpWvjT

Code:
// ---------------------------------------Krixes Self Bloodbag Start------------------------------------
    _mags = magazines player;
 
    // Krixes Self Bloodbag
    if ("ItemBloodbag" in _mags) then {
        hasBagItem = true;
    } else { hasBagItem = false;};
    if((speed player <= 1) && hasBagItem && _canDo) then {
        if (s_player_selfBloodbag < 0) then {
            s_player_selfBloodbag = player addaction[("<t color=""#c70000"">" + ("Self Bloodbag") +"</t>"),"custom\player_selfbloodbag.sqf","",5,false,true,"", ""];
        };
    } else {
        player removeAction s_player_selfBloodbag;
        s_player_selfBloodbag = -1;
    };
    if((speed player <= 1) && _canDo) then {
        if (s_player_toggle < 0) then {
              s_player_toggle = player addaction[("<t color=""#c70000"">" + ("Toggle Debug") +"</t>"),"custom_monitor.sqf","",5,false,true,"",""];
        };
} else {
                player removeAction s_player_toggle;
                s_player_toggle = -1;
};
 
// ---------------------------------------Krixes Self Bloodbag End------------------------------------
_canDo = (!r_drag_sqf and !r_player_unconscious and !_onLadder);

This
Code:
              s_player_toggle = player addaction[("<t color=""#c70000"">" + ("Toggle Debug") +"</t>"),"custom_monitor.sqf","",5,false,true,"",""];
Needs to be this
Code:
              s_player_toggle = player addaction[("<t color=""#c70000"">" + ("Toggle Debug") +"</t>"),"debug\custom_monitor.sqf","",5,false,true,"",""];

I had it in a file call "debug"
 
This
Code:
              s_player_toggle = player addaction[("<t color=""#c70000"">" + ("Toggle Debug") +"</t>"),"custom_monitor.sqf","",5,false,true,"",""];
Needs to be this
Code:
              s_player_toggle = player addaction[("<t color=""#c70000"">" + ("Toggle Debug") +"</t>"),"debug\custom_monitor.sqf","",5,false,true,"",""];

I had it in a file call "debug"

...or you can just use the monitor I just posted that doesn't require an fn_selfActions...
 
I LOVE YOU:)

Code:
//Credit to nullpo for his original debug and Superlube for the picture
 
//Modified by Matt L
 
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
 
    {
 
        _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";
 
        _banditCount = {(isPlayer _x) && ((_x getVariable ["humanity",0]) < 0)} count playableUnits;
 
        _heroCount  = {(isPlayer _x) && ((_x getVariable ["humanity",0]) >= 5000)} count playableUnits;
 
        _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 size='1'font='Bitstream'align='center' color='#EE0000' >%1</t><br/>
 
        <t size='1'font='Bitstream'align='left' color='#EE0000' >Blood Left:</t><t size='1' font='Bitstream'align='right' color='#EE0000' >%2</t><br/>
 
        <t size='1'font='Bitstream'align='left' color='#104E8B' >Humanity:</t><t size='1'font='Bitstream'align='right' color='#104E8B' >%3</t><br/>
 
        <t size='1'font='Bitstream'align='left' color='#EEC900' >Noobs Killed:</t><t size='1'font='Bitstream'align='right' color='#EEC900' >%4</t><br/>
 
        <t size='1'font='Bitstream'align='left' color='#EEC900' >Assholes Killed:</t><t size='1'font='Bitstream'align='right' color='#EEC900' >%5</t><br/>
 
        <t size='1'font='Bitstream'align='left' color='#EEC900' >Zombitches Killed:</t><t size='1'font='Bitstream'align='right' color='#EEC900' >%6</t><br/>
 
        <t size='1'font='Bitstream'align='left' color='#EEC900' >Dome Shots:</t><t size='1'font='Bitstream'align='right' color='#EEC900' >%7</t><br/>
 
        <t size='1' font='Bitstream' align='left' color='#EEC900' >Zombitches (alive/total): </t><t size='1' font='Bitstream' align='right' color='#EEC900' >%9/%8</t><br/>
 
        <t size='1'font='Bitstream'align='left' color='#104E8B' >Current Asshole Count:</t><t size='1'font='Bitstream'align='right' color='#104E8B' >%11</t><br/>
 
        <t size='1'font='Bitstream'align='left' color='#104E8B' >Current NiceGuy Count:</t><t size='1'font='Bitstream'align='right' color='#104E8B' >%12</t><br/>
 
        <t size='1' font='Bitstream' align='left' color='#104E8B' >FPS: </t><t size='1' font='Bitstream' align='right' color='#104E8B' >%10</t><br/>
 
        <img size='3' image='%13'/><br/>
 
        <t size='1'font='Bitstream'align='center' color='#104E8B' >Press F10 to toggle! </t><br/>
 
        <t size='1'font='Bitstream'align='center' color='#104E8B' >Welcome to Pax Extreme DayZ </t><br/>
 
 
 
        ",dayz_playerName,r_player_blood,round _humanity,_killsH,_killsB,_kills,_headShots,count entities "zZombie_Base",{alive _x} count entities "zZombie_Base",diag_fps,_banditCount,_heroCount,_pic];
 
    sleep 1;
 
    };
 
};
 
 
 
[] spawn fnc_debug;
 
I LOVE YOU:)

Code:
//Credit to nullpo for his original debug and Superlube for the picture
 
//Modified by Matt L
 
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
 
    {
 
        _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";
 
        _banditCount = {(isPlayer _x) && ((_x getVariable ["humanity",0]) < 0)} count playableUnits;
 
        _heroCount  = {(isPlayer _x) && ((_x getVariable ["humanity",0]) >= 5000)} count playableUnits;
 
        _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 size='1'font='Bitstream'align='center' color='#EE0000' >%1</t><br/>
 
        <t size='1'font='Bitstream'align='left' color='#EE0000' >Blood Left:</t><t size='1' font='Bitstream'align='right' color='#EE0000' >%2</t><br/>
 
        <t size='1'font='Bitstream'align='left' color='#104E8B' >Humanity:</t><t size='1'font='Bitstream'align='right' color='#104E8B' >%3</t><br/>
 
        <t size='1'font='Bitstream'align='left' color='#EEC900' >Noobs Killed:</t><t size='1'font='Bitstream'align='right' color='#EEC900' >%4</t><br/>
 
        <t size='1'font='Bitstream'align='left' color='#EEC900' >Assholes Killed:</t><t size='1'font='Bitstream'align='right' color='#EEC900' >%5</t><br/>
 
        <t size='1'font='Bitstream'align='left' color='#EEC900' >Zombitches Killed:</t><t size='1'font='Bitstream'align='right' color='#EEC900' >%6</t><br/>
 
        <t size='1'font='Bitstream'align='left' color='#EEC900' >Dome Shots:</t><t size='1'font='Bitstream'align='right' color='#EEC900' >%7</t><br/>
 
        <t size='1' font='Bitstream' align='left' color='#EEC900' >Zombitches (alive/total): </t><t size='1' font='Bitstream' align='right' color='#EEC900' >%9/%8</t><br/>
 
        <t size='1'font='Bitstream'align='left' color='#104E8B' >Current Asshole Count:</t><t size='1'font='Bitstream'align='right' color='#104E8B' >%11</t><br/>
 
        <t size='1'font='Bitstream'align='left' color='#104E8B' >Current NiceGuy Count:</t><t size='1'font='Bitstream'align='right' color='#104E8B' >%12</t><br/>
 
        <t size='1' font='Bitstream' align='left' color='#104E8B' >FPS: </t><t size='1' font='Bitstream' align='right' color='#104E8B' >%10</t><br/>
 
        <img size='3' image='%13'/><br/>
 
        <t size='1'font='Bitstream'align='center' color='#104E8B' >Press F10 to toggle! </t><br/>
 
        <t size='1'font='Bitstream'align='center' color='#104E8B' >Welcome to Pax Extreme DayZ </t><br/>
 
 
 
        ",dayz_playerName,r_player_blood,round _humanity,_killsH,_killsB,_kills,_headShots,count entities "zZombie_Base",{alive _x} count entities "zZombie_Base",diag_fps,_banditCount,_heroCount,_pic];
 
    sleep 1;
 
    };
 
};
 
 
 
[] spawn fnc_debug;

Thanks? xD
 
Here is a nice screenshot of it
95JKjuk.jpg
 
if possible, as im a total noob, could you do a tutorial form start to finish on how to install your newest non anim wersion without self actions plz, ps, im running an epoch on dayz.st with bungles server pack, dont like the monitors on there and would like something a little more fancy :)
thanks
 
hey Matt, love the monitor, small problem for me though =( its constantly spamming my RPT with
Code:
Wrong text element 'null'
and i have no idea what its going on about.
 
Back
Top