Jump to content
BigEgg

[Release] BigEgg's Debug Monitor

Recommended Posts

This tutorial will guide you through how to install my custom debug monitor. With this install you will be able to press insert in game to have it come up.

 

Step 1: 

 

Open your dayz_spaceInterrupt and find this line:

 if (_dikCode == 210) then {

Under that you will see a line that looks like this:

 _nill = execvm "\z\addons\dayz_code\actions\playerstats.sqf";

Replace that with this:

 _nill = execvm "custom\playerstats.sqf";

Step 2:

 

Copy the code from this link: http://pastebin.com/10K7ginT

 

Open a blank text document using Notepad++ or an editor of your choice

 

Paste the code in it and save it as playerstats.sqf

 

Move it to your custom folder.

 

Make any changes you want to make :)

 

Pictures:

 

http://imgur.com/WmdPMMk

Share this post


Link to post
Share on other sites

Nice... but not interesting for people with SC :/

 

You could easily add that in. I just use the coin icon on the right hand side of the screen.

 

 

your monitor debug

does not block construction?

Nope it sure doesn't

Share this post


Link to post
Share on other sites

Looks good mate, thanks for sharing! :)

 

(AKA : Don't worry about all these other ingrates, keep doing what your doing) :)

 

Thanks! Trying to give back to the community that taught me all of the things I have learned about scripting in the past 4 months.

Share this post


Link to post
Share on other sites
 

Yes that would be great, and I think that would make this debug monitor really solid!

Infistar has a few functions for determining what is what and what picture to use. 

 

If you want to implement this into the default infistar one then do the following:

 

Open AH.sqf

 

Find this code:

 

 <t size=

 

It should bring you to code that looks like this:

 

hintSilent parseText format[""
<t size='1' font='Bitstream' align='Center' >[%1]</t><br/>
<t size='0.8' font='Bitstream' align='Center' >Players Online: %12</t><br/>
<img size='4.75' image='%4'/><br/>
<t size='1' font='Bitstream' align='left' color='#CC0000'>Blood: </t><t size='1' font='Bitstream' align='right'>%2</t><br/>
<t size='1' font='Bitstream' align='left' color='#0066CC'>Humanity: </t><t size='1' font='Bitstream' align='right'>%3</t><br/>
<br/>
<t size='1' font='Bitstream' align='left' color='#FFBF00'>Zombie Kills: </t><t size='1' font='Bitstream' align='right'>%9</t><br/>
<t size='1' font='Bitstream' align='left' color='#FFBF00'>Murders: </t><t size='1' font='Bitstream' align='right'>%10</t><br/>
<t size='1' font='Bitstream' align='left' color='#FFBF00'>Bandits Killed: </t><t size='1' font='Bitstream' align='right'>%11</t><br/>
<br/>
<t size='1' font='Bitstream' align='left' color='#FFBF00'>%13</t><t size='1' font='Bitstream' align='right'>%5h %6min</t><br/>
<t size='1' font='Bitstream' align='left' color='#FFBF00'>FPS: </t><t size='1' font='Bitstream' align='right'>%8</t><br/>
<t size='1' font='Bitstream' align='Center' color='#CC0000'>%7</t>
"",
_txt,
(r_player_blood),
_humanity,
_pic,
_hours,
_minutes2,
_BottomDebug,
(round diag_fps),
(player getVariable['zombieKills', 0]),
(player getVariable['humanKills', 0]),
(player getVariable['banditKills', 0]),
_pOn,
_timertext

 
Replace that code with this:
 

hintSilent parseText format ["
 
 
<t size='1.6' font='Bitstream' align='center' color='#FACC2E'>Server Name</t><br/>
 
<t size='1.15' font='Bitstream' align='center' color='#5882FA'>%7 Players Online</t><br/>
 
<img size='4.75' image='%11'/><br/>
 
<t size='1.20' font='Bitstream' color='#00FF00'>Survived %6 Days</t><br/><br/>
 
<t size='1.15' font='Bitstream' align='left'>Zombies Killed: </t>
<t size='1.15' font='Bitstream' align='right'>%1</t><br/>
 
<t size='1.15' font='Bitstream' align='left'>Headshots: </t>
<t size='1.15' font='Bitstream' align='right'>%2</t><br/>
 
<t size='1.15' font='Bitstream' align='left'>Murders: </t>
<t size='1.15' font='Bitstream' align='right'>%3</t><br/>
 
<t size='1.15' font='Bitstream' align='left'>Bandits Killed: </t>
<t size='1.15' font='Bitstream' align='right'>%4</t><br/><br/>
 
<t size='1.15' font='Bitstream' align='left'>Humanity: </t>
<t size='1.15' font='Bitstream' align='right'>%5</t><br/>
 
<t size='1.15' font='Bitstream' align='left' color='#C70000'>Blood: </t>
<t size='1.15' font='Bitstream' align='right' color='#C70000'>%8</t><br/><br/>
 
<t size='1.20' font='Bitstream' align='center' color='#16DB57'>Restart in %10 minutes</t><br/>
 
<t size='1.20' font='Bitstream' align='center' color='#FF8000'>FPS: %9</t><br/>
 
<t size='1.20' font='Bitstream' align='center' color='#FFFF00'>www.Website.com</t><br/>
 
<t size='1.20' font='Bitstream' align='center' color='#FFFFFF'>TeamSpeak Info</t><br/>",
(player getVariable['zombieKills', 0]),
(player getVariable['headShots', 0]),
(player getVariable['humanKills', 0]),
(player getVariable['banditKills', 0]),
(player getVariable['humanity', 0]),
(dayz_Survived),
(count playableUnits),
r_player_blood,
(round diag_fps),
(round(120-(serverTime) / 60)),
_pic
];

 
Let me know if it works! 

Share this post


Link to post
Share on other sites

I really like it.... dont want to say any negative or make is work bad! I like everyone who shares his work with the community! ;)

 

Maybe someone can explain how to add Coins to this debug monitor?

Share this post


Link to post
Share on other sites

If you want one with a picture you can modify mine.

 

Picture:

http://imgur.com/dm6qWzA

 

It is a combination of a few different debug monitors I have used in the past. I did not write any of the code myself. I simply compiled a few different tutorials into one for my server.

 

 

Tutorial:

 

All edits are done in the mission folder/PBO!

 

Toggle Version (Medium Install):

 

Step 1: Create a custom compiles.sqf or upload the default compiles.sqf from your dayz_code folder to your mission folder.

 

Step 2: Edit your init.sqf to call your custom compiles.sqf

 

Step 3: copy your dayz_spaceInterrupt.sqf from your dayz_code PBO to your mission folder.

 

Step 4: Edit your custom compiles.sqf to point to your new dayz_spaceInterrupt.sqf

 

Step 5: In your dayz_spaceInterrupt.sqf Search for this:

 

if (_dikCode == 210) then {

 

Change This:

 

 

if (_dikCode == 210) then {
        _nill = execvm "\z\addons\dayz_code\actions\playerstats.sqf";
};

 

 

To this:

 

 

if (_dikCode == 210) then {
    if (isNil 'debugMonitor') then {
        debugMonitor = true;
        _nill = execvm "debug.sqf";
    } else {
        debugMonitor = !debugMonitor;
        hintSilent '';
        _nill = execvm "debug.sqf";
    };
};

 

Step 6: Create a new file called debug.sqf in your mission folder and paste this code in it and edit it to fit your server:

 

 

while {debugMonitor} do
{
    _time = (round(240-(serverTime)/60));
    _hours = (floor(_time/60));
    _minutes = (_time - (_hours * 60));
    _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')); };
            
    switch(_minutes) do
    {
        case 9: {_minutes = "09"};
        case 8: {_minutes = "08"};
        case 7: {_minutes = "07"};
        case 6: {_minutes = "06"};
        case 5: {_minutes = "05"};
        case 4: {_minutes = "04"};
        case 3: {_minutes = "03"};
        case 2: {_minutes = "02"};
        case 1: {_minutes = "01"};
        case 0: {_minutes = "00"};
    };
    
    // You can delete the server website here line (entire line) if you want
    // You can also delete the entire TeamSpeak IP line if you want
    hintSilent parseText format ["
        <t size='1.4' font='Bitstream' align='center' color='#718d67'>YOUR SERVER NAME HERE</t><br/>
        <t size='1.15' font='Bitstream' align='center' color='#e5e5e5'>%1 Players Online: </t><br/><br/>
        <img size='3' align='Center' image='%12'/><br/><br/>
        <t size='1' font='Bitstream'align='center' color='#99ae83'>%11</t><br/>
        <t size='1' font='Bitstream'align='center' color='#99ae83'>%10 Day(s) Survived</t><br/>
        <t size='1' font='Bitstream' align='left' color='#f00c0c'>Blood: </t><t size='1' font='Bitstream' align='right' color='#f00c0c'>%5</t><br/>
        <t size='1' font='Bitstream' align='left' color='#007feb'>Humanity: </t><t size='1' font='Bitstream' align='right' color='#007feb'>%6</t><br/><br/>
        <t size='1' font='Bitstream' align='left' color='#e5e5e5'>Frame Rate: </t><t size='1' font='Bitstream' align='right' color='#e5e5e5'>%7</t><br/>
        <t size='1' font='Bitstream' align='left' color='#e5e5e5'>Murders: </t><t size='1' font='Bitstream' align='right' color='#e5e5e5'>%3</t><br/>
        <t size='1' font='Bitstream' align='left' color='#e5e5e5'>Bandits Killed: </t><t size='1' font='Bitstream' align='right' color='#e5e5e5'>%4</t><br/>
        <t size='1' font='Bitstream' align='left' color='#e5e5e5'>Zombies Killed: </t><t size='1' font='Bitstream' align='right' color='#e5e5e5'>%2</t><br/><br/>
        <t size='1' font='Bitstream'align='center' color='#ffd863'>Server restart in:</t><br/>
        <t size='1' font='Bitstream'align='center' color='#ffd863'>%8 Hour(s) : %9 Minute(s)</t><br/><br/>
        <t size='1' font='Bitstream'align='center' color='#5882FA'>TeamSpeak IP:</t><br/>
        <t size='0.90' font='Bitstream'align='center' color='#5882FA'>YOUR TEAMSPEAK IP HERE</t><br/>",
            
        (count playableUnits),
         (player getVariable['zombieKills', 0]),
        (player getVariable['humanKills', 0]),
        (player getVariable['banditKills', 0]),
         (player getVariable['USEC_BloodQty', r_player_blood]),
        (player getVariable['humanity', 0]),
        (round diag_fps),
        _hours,
        _minutes,
                (dayz_Survived),
                dayz_playerName,
        _pic
    ];
    
    //Don't modify below this line
    sleep 1;
};

 

Step 7: Save the file and start your server. Press the insert key to toggle debug monitor on/off.

 

Non-Toggle Version (Easy Install):

 

Step 1: Create a file called debug.sqf in your mission folder and paste the above code in it and save it.

 

Step 2: Add this to the bottom of your init.sqf:

 

 

//Execute Debug Monitor
[]execVM "debug.sqf";

 

 

Sorry I can't give credit to everybody as I don't remember who wrote all the scripts I borrowed code from. I got the code for the picture from a debug monitor that Matt L posted. I preferred a different method of calling the toggle however as it doesn't give me a script error.

Found Here: http://opendayz.net/threads/simple-ish-debug-monitor-w-toggling-function-and-animation.11594/

 

Again I do not take credit for writing this! Just trying to help out.

 

Sorry don't use coins or bank on my server so couldn't help you with that part...

Share this post


Link to post
Share on other sites

This tutorial will guide you through how to install my custom debug monitor. With this install you will be able to press insert in game to have it come up.

 

Step 1: 

 

Open your dayz_spaceInterrupt and find this line:

 if (_dikCode == 210) then {

Under that you will see a line that looks like this:

 _nill = execvm "\z\addons\dayz_code\actions\playerstats.sqf";

Replace that with this:

 _nill = execvm "custom\playerstats.sqf";

Step 2:

 

Copy the code from this link: http://pastebin.com/10K7ginT

 

Open a blank text document using Notepad++ or an editor of your choice

 

Paste the code in it and save it as playerstats.sqf

 

Move it to your custom folder.

 

Make any changes you want to make :)

 

Pictures:

 

http://imgur.com/WmdPMMk

Nice, thank's.

Share this post


Link to post
Share on other sites

 

 

Infistar has a few functions for determining what is what and what picture to use. 

 

If you want to implement this into the default infistar one then do the following:

 

Open AH.sqf

 

Find this code:

 <t size=

It should bring you to code that looks like this:

 

hintSilent parseText format[""
<t size='1' font='Bitstream' align='Center' >[%1]</t><br/>
<t size='0.8' font='Bitstream' align='Center' >Players Online: %12</t><br/>
<img size='4.75' image='%4'/><br/>
<t size='1' font='Bitstream' align='left' color='#CC0000'>Blood: </t><t size='1' font='Bitstream' align='right'>%2</t><br/>
<t size='1' font='Bitstream' align='left' color='#0066CC'>Humanity: </t><t size='1' font='Bitstream' align='right'>%3</t><br/>
<br/>
<t size='1' font='Bitstream' align='left' color='#FFBF00'>Zombie Kills: </t><t size='1' font='Bitstream' align='right'>%9</t><br/>
<t size='1' font='Bitstream' align='left' color='#FFBF00'>Murders: </t><t size='1' font='Bitstream' align='right'>%10</t><br/>
<t size='1' font='Bitstream' align='left' color='#FFBF00'>Bandits Killed: </t><t size='1' font='Bitstream' align='right'>%11</t><br/>
<br/>
<t size='1' font='Bitstream' align='left' color='#FFBF00'>%13</t><t size='1' font='Bitstream' align='right'>%5h %6min</t><br/>
<t size='1' font='Bitstream' align='left' color='#FFBF00'>FPS: </t><t size='1' font='Bitstream' align='right'>%8</t><br/>
<t size='1' font='Bitstream' align='Center' color='#CC0000'>%7</t>
"",
_txt,
(r_player_blood),
_humanity,
_pic,
_hours,
_minutes2,
_BottomDebug,
(round diag_fps),
(player getVariable['zombieKills', 0]),
(player getVariable['humanKills', 0]),
(player getVariable['banditKills', 0]),
_pOn,
_timertext

 
Replace that code with this:
 

hintSilent parseText format ["
 
 
<t size='1.6' font='Bitstream' align='center' color='#FACC2E'>Server Name</t><br/>
 
<t size='1.15' font='Bitstream' align='center' color='#5882FA'>%7 Players Online</t><br/>
 
<img size='4.75' image='%11'/><br/>
 
<t size='1.20' font='Bitstream' color='#00FF00'>Survived %6 Days</t><br/><br/>
 
<t size='1.15' font='Bitstream' align='left'>Zombies Killed: </t>
<t size='1.15' font='Bitstream' align='right'>%1</t><br/>
 
<t size='1.15' font='Bitstream' align='left'>Headshots: </t>
<t size='1.15' font='Bitstream' align='right'>%2</t><br/>
 
<t size='1.15' font='Bitstream' align='left'>Murders: </t>
<t size='1.15' font='Bitstream' align='right'>%3</t><br/>
 
<t size='1.15' font='Bitstream' align='left'>Bandits Killed: </t>
<t size='1.15' font='Bitstream' align='right'>%4</t><br/><br/>
 
<t size='1.15' font='Bitstream' align='left'>Humanity: </t>
<t size='1.15' font='Bitstream' align='right'>%5</t><br/>
 
<t size='1.15' font='Bitstream' align='left' color='#C70000'>Blood: </t>
<t size='1.15' font='Bitstream' align='right' color='#C70000'>%8</t><br/><br/>
 
<t size='1.20' font='Bitstream' align='center' color='#16DB57'>Restart in %10 minutes</t><br/>
 
<t size='1.20' font='Bitstream' align='center' color='#FF8000'>FPS: %9</t><br/>
 
<t size='1.20' font='Bitstream' align='center' color='#FFFF00'>www.Website.com</t><br/>
 
<t size='1.20' font='Bitstream' align='center' color='#FFFFFF'>TeamSpeak Info</t><br/>",
(player getVariable['zombieKills', 0]),
(player getVariable['headShots', 0]),
(player getVariable['humanKills', 0]),
(player getVariable['banditKills', 0]),
(player getVariable['humanity', 0]),
(dayz_Survived),
(count playableUnits),
r_player_blood,
(round diag_fps),
(round(120-(serverTime) / 60)),
_pic
];

 
Let me know if it works! 

 

What exactly would i have to add in to make this display the coins in this debug monitor as well, any help would be greatly appreciated.. Im using single currency 3.0

Share this post


Link to post
Share on other sites

What exactly would i have to add in to make this display the coins in this debug monitor as well, any help would be greatly appreciated.. Im using single currency 3.0

 

Add this line to wherever you want it on the debug:

 

 <t size='1.15' font='Bitstream' color='#FACC2E' align='left'>Coins: %12 </t>

 

Then add this below _pic:

 

 (player getVariable['cashMoney', 0])

Share this post


Link to post
Share on other sites

 

Add this line to wherever you want it on the debug:

 <t size='1.15' font='Bitstream' color='#FACC2E' align='left'>Coins: %12 </t>

Then add this below _pic:

 (player getVariable['cashMoney', 0])

That is exactly what i was looking for, thank you alot for the info.. i will report back shortly to confirm if this works a treat or not..

Scratch that, i cant seem to get this to work out.. 

Below is the code i have used for this

hintSilent parseText format [""
 
<t size='1.6' font='Bitstream' align='center' color='#FACC2E'>Raging Dragon</t><br/>
<t size='1.15' font='Bitstream' align='center' color='#5882FA'>%7 Players Online</t><br/>
<img size='4.75' image='%11'/><br/>
<t size='1.20' font='Bitstream' color='#00FF00'>Survived %6 Days</t><br/><br/>
<t size='1.15' font='Bitstream' color='#FACC2E' align='left'>Coins: %12 </t>
<t size='1.15' font='Bitstream' align='left'>Zombies Killed: </t>
<t size='1.15' font='Bitstream' align='right'>%1</t><br/>
<t size='1.15' font='Bitstream' align='left'>Headshots: </t>
<t size='1.15' font='Bitstream' align='right'>%2</t><br/>
<t size='1.15' font='Bitstream' align='left'>Murders: </t>
<t size='1.15' font='Bitstream' align='right'>%3</t><br/>
<t size='1.15' font='Bitstream' align='left'>Bandits Killed: </t>
<t size='1.15' font='Bitstream' align='right'>%4</t><br/><br/>
<t size='1.15' font='Bitstream' align='left'>Humanity: </t>
<t size='1.15' font='Bitstream' align='right'>%5</t><br/>
<t size='1.15' font='Bitstream' align='left' color='#C70000'>Blood: </t>
<t size='1.15' font='Bitstream' align='right' color='#C70000'>%8</t><br/><br/>
<t size='1.20' font='Bitstream' align='center' color='#16DB57'>Restart in %10 minutes</t><br/>
<t size='1.20' font='Bitstream' align='center' color='#FF8000'>FPS: %9</t><br/>
<t size='1.20' font='Bitstream' align='center' color='#FFFF00'>ragingdragonclan.com</t><br/>
<t size='1.20' font='Bitstream' align='center' color='#FFFFFF'>ts3rg.ts3.nfoservers.com</t><br/>
"",
(player getVariable['zombieKills', 0]),
(player getVariable['headShots', 0]),
(player getVariable['humanKills', 0]),
(player getVariable['banditKills', 0]),
(player getVariable['humanity', 0]),
(dayz_Survived),
(count playableUnits),
r_player_blood,
(round diag_fps),
(round(120-(serverTime) / 60)),
_pic
(player getVariable['cashMoney', 0])
];

 
Here is the error im getting from it

 0:44:49 Error in expression <),
(round(120-(serverTime) / 60)),
_pic
(player getVariable['cashMoney', 0])
];
>
 0:44:49   Error position: <(player getVariable['cashMoney', 0])
];
>
 0:44:49   Error Missing ]
 0:44:49 Error in expression <),
(round(120-(serverTime) / 60)),
_pic
(player getVariable['cashMoney', 0])
];
>
 0:44:49   Error position: <(player getVariable['cashMoney', 0])
];
>
 0:44:49   Error Missing ]

Share this post


Link to post
Share on other sites

 

That is exactly what i was looking for, thank you alot for the info.. i will report back shortly to confirm if this works a treat or not..

Scratch that, i cant seem to get this to work out.. 

Below is the code i have used for this

hintSilent parseText format [""
 
<t size='1.6' font='Bitstream' align='center' color='#FACC2E'>Raging Dragon</t><br/>
<t size='1.15' font='Bitstream' align='center' color='#5882FA'>%7 Players Online</t><br/>
<img size='4.75' image='%11'/><br/>
<t size='1.20' font='Bitstream' color='#00FF00'>Survived %6 Days</t><br/><br/>
<t size='1.15' font='Bitstream' color='#FACC2E' align='left'>Coins: %12 </t>
<t size='1.15' font='Bitstream' align='left'>Zombies Killed: </t>
<t size='1.15' font='Bitstream' align='right'>%1</t><br/>
<t size='1.15' font='Bitstream' align='left'>Headshots: </t>
<t size='1.15' font='Bitstream' align='right'>%2</t><br/>
<t size='1.15' font='Bitstream' align='left'>Murders: </t>
<t size='1.15' font='Bitstream' align='right'>%3</t><br/>
<t size='1.15' font='Bitstream' align='left'>Bandits Killed: </t>
<t size='1.15' font='Bitstream' align='right'>%4</t><br/><br/>
<t size='1.15' font='Bitstream' align='left'>Humanity: </t>
<t size='1.15' font='Bitstream' align='right'>%5</t><br/>
<t size='1.15' font='Bitstream' align='left' color='#C70000'>Blood: </t>
<t size='1.15' font='Bitstream' align='right' color='#C70000'>%8</t><br/><br/>
<t size='1.20' font='Bitstream' align='center' color='#16DB57'>Restart in %10 minutes</t><br/>
<t size='1.20' font='Bitstream' align='center' color='#FF8000'>FPS: %9</t><br/>
<t size='1.20' font='Bitstream' align='center' color='#FFFF00'>ragingdragonclan.com</t><br/>
<t size='1.20' font='Bitstream' align='center' color='#FFFFFF'>ts3rg.ts3.nfoservers.com</t><br/>
"",
(player getVariable['zombieKills', 0]),
(player getVariable['headShots', 0]),
(player getVariable['humanKills', 0]),
(player getVariable['banditKills', 0]),
(player getVariable['humanity', 0]),
(dayz_Survived),
(count playableUnits),
r_player_blood,
(round diag_fps),
(round(120-(serverTime) / 60)),
_pic
(player getVariable['cashMoney', 0])
];

 
Here is the error im getting from it

 0:44:49 Error in expression <),
(round(120-(serverTime) / 60)),
_pic
(player getVariable['cashMoney', 0])
];
>
 0:44:49   Error position: <(player getVariable['cashMoney', 0])
];
>
 0:44:49   Error Missing ]
 0:44:49 Error in expression <),
(round(120-(serverTime) / 60)),
_pic
(player getVariable['cashMoney', 0])
];
>
 0:44:49   Error position: <(player getVariable['cashMoney', 0])
];
>
 0:44:49   Error Missing ]

 

You need to put a comma after _pic

Share this post


Link to post
Share on other sites

You need to put a comma after _pic

I can confirm this last edit works great, i had to move around the coins location on the debug monitor a little bit to look better but it works.. again thanks..

One more question, does anyone know how to get the coins to display correctly if a player has more than one million coins on them. it displays like this below if past that amount

1.00501e+005

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Advertisement
  • Donation Box

    Please donate to support the community.
    We appreciate all donations!
  • Advertisement
  • Supporters
  • Latest Donations

  • Advertisement
  • Discord

×