Jump to content

[Release] BigEgg's Debug Monitor


BigEgg

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

Link to comment
Share on other sites

  On 7/29/2015 at 8:23 AM, MrShix said:

Nice Work. But I fail to see how this is any different from all the other debug menus out there ?

 

 

  On 7/29/2015 at 10:47 AM, Sporny said:

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

 

Nothing wrong with choice, BigEgg didn't have to share but he did, at least be grateful instead of negative.

Link to comment
Share on other sites

  On 7/29/2015 at 10:47 AM, Sporny said:

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.

 

 

  On 7/29/2015 at 11:15 AM, erony said:

your monitor debug

does not block construction?

Nope it sure doesn't

Link to comment
Share on other sites

  On 7/29/2015 at 11:04 AM, ElDubya said:

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.

Link to comment
Share on other sites

 
  On 7/29/2015 at 12:30 PM, Saltzman said:

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:

 

  Reveal hidden contents

 
Replace that code with this:
 

  Reveal hidden contents

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! 
Link to comment
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:

 

  Quote
if (_dikCode == 210) then {

 

Change This:

 

  Quote

 

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

 

 

To this:

 

  Quote

 

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:

 

  Quote

 

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:

 

  Quote

 

//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...

Link to comment
Share on other sites

  On 7/29/2015 at 7:46 AM, BigEgg said:

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.

Link to comment
Share on other sites

  On 7/29/2015 at 12:44 PM, BigEgg said:

 

 

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:

 

  Reveal hidden contents

 
Replace that code with this:
 

  Reveal hidden contents

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

Link to comment
Share on other sites

  On 8/5/2015 at 10:06 AM, Th3-Hunter333 said:

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])
Link to comment
Share on other sites

  On 8/5/2015 at 10:17 PM, BigEgg said:

 

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

  Reveal hidden contents
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

  Reveal hidden contents
 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 ]

Link to comment
Share on other sites

  On 8/6/2015 at 3:38 AM, Th3-Hunter333 said:

 

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

  Reveal hidden contents
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

  Reveal hidden contents
 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

Link to comment
Share on other sites

  On 8/6/2015 at 7:18 AM, BigEgg said:

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

 

Link to comment
Share on other sites

  • 2 weeks later...

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...