DayZ Debug Monitor - Old And New

Citidel

New Member
Credit to: Torndeco and Dirty Rat for the original Debug install, now on to that.

1. Extract your mission file using whatever pbo manager you use.
2. Open the extracted folder and create a new folder inside called fixes
3. unpack the attached file (dayz_1.chen...) and move the FIXES folder over to your mission file.
4. Open init.sqf in the mission folder and find this:
Code:
//Load in compiled functions
call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\variables.sqf"; //Initilize the Variables (IMPORTANT: Must happen very early)
Replace that with:
Code:
//Load in compiled functions
//call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\variables.sqf"; //Initilize the Variables (IMPORTANT: Must happen very early)
call compile preprocessFileLineNumbers "fixes\variables.sqf"; //Initilize the Variables (IMPORTANT: Must happen very early)
Find:
Code:
"filmic" setToneMappingParams [0.153, 0.357, 0.231, 0.1573, 0.011, 3.750, 6, 4]; setToneMapping "Filmic";
On a new line after add:
Code:
player_spawn_2 = compile preprocessFileLineNumbers "fixes\player_spawn_2.sqf";
Save and close.
At this point you are done. You can, if you like, repack the mission file into a pbo but this is optional. Your server will run perfectly fine if you leave it unpacked, plus it means you can make changes without unpacking and re-packing everytime!

WITH 1.7.5.1 THERE ARE SOME EXTRA STEPS:
Open up Player_spawn_2.sqf and find:
if (dayzDebug) then {
and comment it and its closing brace to have the debug run at all times.

from there you can change the DEBUG message to fit your needs.

*THIS HAS NOT BEEN TESTED BY ME AT THIS TIME*


VERSION 2
file.php

Original Post at OpenDayz.net
Setup:
You need to have the old Debug Monitor running on your server
You have to get this working first!
Then Unpack the attached ZIP
Now on to some editing!
description.ext changes:
Add below - class RscPicture { };
EDIT: I have made it down to 1 line, just ensure that its below the RSCPICTURE declaration.

class RscTitles {
#include "Dialogs\DB2DZ.hpp"
};
init.sfq Changes:
Add:

if (!isNil{uiNameSpace getVariable 'DB2DZ_IDD_Debug2_DZ'}) then {
// Debug is running
uiNameSpace setVariable ['DB2DZ_IDD_Debug2_DZ', nil];
};
into the "if (!isDedicated) then {" Section near the bottom of the file.
player_spawn_2.sqf changes:
Add where hint silent is:

_DB2DZ_run = [] execVM "Dialogs\DB2DZ.sqf";​

and comment out the Hint (or remove it). (use /* */ to block quote it out if you wish)
That should be it!
IF YOU WANT TO MOVE THE DIALOG:
You'll need to open the .hpp file in the dialogs DIR and change the positions of the structuredText block.
Below if for just under zeroing on the right side of the screen where the old Debug is.

class DB2DZ_StructuredText: RscStructuredText
{
idc = DB2DZ_IDC_StructuredText;
x = safezoneX + 0.84 * safezoneW; // EDIT THIS , simply change the number not safezone
y = safezoneY + 0.09 * safezoneW; // EDIT THIS , simply change the number not safezone
w = 0.22;
h = 0.19;
text = ""; //Dont Change
};
If you want to change the text:
open DB2DZ.sqf and locate: parseText format
the section after that is exactly like the current debug script but re-formatted to fit in the smaller box. Also make sure you change _servername to your server name!

<t size='1' font='Bitstream' align='center'>%10</t>
<t size='1.25' font='Bitstream' ><br />%1<br /><br /></t>
<t size='1' font='Bitstream' align='left' color='#ff0000' >Blood: </t><t size='1' font='Bitstream' align='right' >%2</t>
<t size='1' font='Bitstream' align='left' ><br />Humanity: </t><t size='1' font='Bitstream' align='right' >%3</t>
<t size='1' font='Bitstream' align='left' ><br />Headshots: </t><t size='1' font='Bitstream' align='right' >%4</t>
<t size='1' font='Bitstream' align='left' ><br />Murders: </t><t size='1' font='Bitstream' align='right' >%5</t>
<t size='1' font='Bitstream' align='left' ><br />Bandits Killed: </t><t size='1' font='Bitstream' align='right' >%6</t>
<t size='1' font='Bitstream' align='left' ><br />Zombies Killed: </t><t size='1' font='Bitstream' align='right' >%7</t>
<t size='1' font='Bitstream' align='left' ><br />Zombies (alive/total): <t size='1' font='Bitstream' align='right' >%9/%8</t>"
,dayz_playerName,r_player_blood,round(_humanity),_headShots,_killsH,_killsB,_kills,_zombies,_zombiesA,_servername
 

Attachments

  • Dialogs_Debug2.zip
    9.3 KB · Views: 188
  • dayz_1.Chernarus.zip
    12 KB · Views: 135
  • dayz_1.Chernarus.pbo
    58.5 KB · Views: 93
  • fixes.zip
    5.9 KB · Views: 162
Back
Top