Jump to content

Custom debug monitor


Kisha

Recommended Posts

My debug monitor works fine and closing with F8, first  click make it smaller, second one close it .

In the end of  your init.sqf paste this one:

//HotKey(F8)
waituntil {!IsNull (findDisplay 46)};
_SpecKeyDown = (findDisplay 46) displayAddEventHandler ["KeyDown", loadFile "hotkeys.sqf"];
//Debug Monitor	
[] execVM "custom_monitor.sqf";

Next make file custom_monitor.sqf same place where is init.sqf  and paste inside:

custom_monitor_state = 0;
 
fnc_debug = {
    j0k3r5_stats = true;
    while {j0k3r5_stats} do
	{
		
		_pic = (gettext (configFile >> 'CfgVehicles' >> (typeof vehicle player) >> 'picture'));
		
		_nearestCity = nearestLocations [getPos player, ["NameCityCapital","NameCity","NameVillage","NameLocal"],750];
		_textCity = "Wilderness";
		if (count _nearestCity > 0) then {_textCity = text (_nearestCity select 0)};
			
		if (player == vehicle player) then
		{
			_pic = (gettext (configFile >> 'cfgWeapons' >> (currentWeapon player) >> 'picture'));	
		}
		else
		{
			_pic = (gettext (configFile >> 'CfgVehicles' >> (typeof vehicle player) >> 'picture'));	
		};
 
		_timeleft= 		_combattimeout-time;
		_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";
		_text = switch(custom_monitor_state) do {
			case 0:{
				"
				<img size='5' image='%10'/>
				<t color='#7D8D70' size='1' font='Bitstream'align='left'>Location:</t><t size='1' font='Bitstream'align='right'color='#7D8D70'>%11</t><br/>
				<t color='#708D72' size='1' font='Bitstream'align='left'>Blood:</t><t size='1' font='Bitstream'align='right'color='#708D72'>%1</t><br/>
				<t color='#708D70' size='1'	font='Bitstream'align='left'>Humanity:</t><t size='1' font='Bitstream'align='right'color='#708D70'>%2</t><br/>
				<t color='#708B8D' size='1'	font='Bitstream'align='left'>Head:</t><t size='1' font='Bitstream'align='right'color='#708B8D'>%6</t><br/>
                <br/>
				<t color='#707D8D' size='1' font='Bitstream'align='left'>Players Killed:</t><t size='1' font='Bitstream'align='right'color='#707D8D'>%3</t><br/>
				<t color='#707D8D' size='1'	font='Bitstream'align='left'>Bandits Killed:</t><t size='1' font='Bitstream'align='right'color='#707D8D'>%4</t><br/>
				<t color='#707D8D' size='1'	font='Bitstream'align='left'>Zombie Killed:</t><t size='1' font='Bitstream'align='right'color='#707D8D'>%5</t><br/>
				<t color='#707D8D' size='1' font='Bitstream'align='left'>Vehicles:</t><t size='0.95' font='Bitstream'align='right'color='#707D8D'>%16</t><br/>
				<t color='#72708D' size='1' font='Bitstream'align='left'>FPS: </t><t size='1' font='Bitstream'align='right'color='#72708D'>%14</t><br/>
				<t color='#80708D' size='1' font='Bitstream'align='left'>Players Online: </t><t size='1' font='Bitstream'align='right'color='#80708D'>%15</t><br/> 
				<t size='1'	font='Bitstream'align='center'color='#8D708B'>Server run %18h %8m</t><br/>	
				<img size='6' image='%9'/>
				"
			};
			case 1:{
				"
				<t color='#708D72' size='1' font='Bitstream'align='left'>Blood:</t><t size='1' font='Bitstream'align='right'color='#708D72'>%1</t><br/>
				<t color='#707D8D' size='1'	font='Bitstream'align='left'>Bandits Killed:</t><t size='1' font='Bitstream'align='right'color='#707D8D'>%4</t><br/>
				<t color='#72708D' size='1' font='Bitstream'align='left'>FPS: </t><t size='1' font='Bitstream'align='right'color='#72708D'>%14</t><br/>
				<t color='#80708D' size='1' font='Bitstream'align='left'>Players Online: </t><t size='1' font='Bitstream'align='right'color='#80708D'>%15</t><br/> 
				<t size='1'	font='Bitstream'align='center'color='#8D708B'>Server run %18h %8m</t><br/>	
				"
			};
			case 2:{
				""
			};
		};
		
		if(((getPlayerUID player) in ["xxxx","xxxxx"]) and custom_monitor_state == 1 ) then {      // Replace xxx to admins UID
			_position = getPos player;
			_px = _position select 0;//X
			_py = _position select 1;//Y
			_text = _text + format ["<t color='#00bcbc' size='0.8'font='Bitstream'align='left'>x:%1 y:%2</t><br/>",_px,_py];
		};
		
		hintSilent parseText format 
			[
				_text,
				r_player_blood,												//1
				round _humanity,											//2
				_killsH,													//3
				_killsB,													//4
				_kills,														//5
				_headShots,													//6
				(dayz_Survived),											//7
				((floor(serverTime/60)) mod 60), 							//8
				_pic,														//9
				_logo,														//10
				_textCity,													//11
				0,															//12
				0,															//13
				round diag_fps,												//14
                {side _x == west} count allUnits,                           //15
	            (count([6800, 9200, 0] nearEntities [["StaticWeapon","Car","Motorcycle","Tank","Air","Ship"],25000])),//16
	            count vehicles,												//17
				(floor(serverTime/3600))											//18
			];			
			sleep 1;
	};
};
 
[] spawn fnc_debug;
 

Same place make file hotkeys.sqf and paste:

if (_this select 1 == 66) then {
	hintSilent "";
	custom_monitor_state = custom_monitor_state + 1;
	if (custom_monitor_state>2) then {
		custom_monitor_state = 0;
	};
};

Must work!

SadBoy, i'm having a problem with the debug monitor, it works well but when i log into the server all goes well but then a message appears, it says "Picture any not found" if i don't click accept i can move my character and everything goes good but if i click accept it sends me to the loading screen forever. Also if i press "W" in the loading screen i can hear my character moving. It would be great if someone could help me with that issue :C.

Link to comment
Share on other sites

_pic = (gettext (configFile >> 'CfgVehicles' >> (typeof vehicle player) >> 'picture'));


Before this line write:  _logo = "";

 

Or you can make your own logo for monitor. Make picture with name logo.paa file must be in format PAA

Drop file where is init.sqf and replase line into debug monitor with  _logo = "logo.paa";

Link to comment
Share on other sites

_pic = (gettext (configFile >> 'CfgVehicles' >> (typeof vehicle player) >> 'picture'));


Before this line write:  _logo = "";

 

Or you can make your own logo for monitor. Make picture with name logo.paa file must be in format PAA

Drop file where is init.sqf and replase line into debug monitor with  _logo = "logo.paa";

 

 

What size should the .paa image be? I know how to make one using photoshop and converting a .tga 32bit file into a .paa file using textview2, but what size is recommended for a debug monitor logo?

Link to comment
Share on other sites

I've been tearing through PBO files, config files of every shape and size, literally scanning almost every line of every config I could think might be related to a "playerstats.sqf" file and only found references to use this file, but no actual "call" in a compiles.sqf to actually cache this "playerstats" file... i knew it had to've been changed, it also seems the entire "call" command used to be some other entry not including the word "call" so I've been COMPLETELY lost as to why I wasn't seeing this  "\z\addons\dayz_code\actions\playerstats.sqf in any compile anywhere

 

So the actual call, in the dayz_code.pbo, in the init\compile.sqf is for a file called "dayz_spaceInterrupt" and via adding / manipulating the script inside "dayz_spaceinterrupt", this call can be redirected to include the "playerstats" ?

 

Well, hopefully thats the case...even if I described it poorly. And I'm not just losing my mind or eyesight completely

You go into your dayz_code.PBO which is probably in your steam folder on your PC, this PBO is not on your server.  You go into, I believe the compiles folder, and copy/paste the dayz_spaceinterrupt.sqf into your mission PBO on your server. The line where dayz_spaceinterrupt.sqf is called from, the line you need to change, is in the compiles.sqf which you should have previously removed from your dayz_code.pbo and put onto your mission PBO. You change that line to represent where you put the dayz_spaceinterrupt.sqf on your server. Then inside the dayz_spaceinterrupt.sqf there is a line which calls the playerstats.sqf. You change that to represent where you want to put the playerstats.sqf (in your mission PBO) and then you can  make a blank SQF, paste your debug monitor code in it, save it as playerstats.sqf. Im not sure if its exactly called playerstats.sqf so make sure you name it exactly right. Then when you go in game, insert should be the hotkey. Although, if you use infiSTAR it might possibly block it. I just use infiSTAR's debug monitor. It's good enough.

Link to comment
Share on other sites

My debug monitor works fine and closing with F8, first  click make it smaller, second one close it .

In the end of  your init.sqf paste this one:

//HotKey(F8)
waituntil {!IsNull (findDisplay 46)};
_SpecKeyDown = (findDisplay 46) displayAddEventHandler ["KeyDown", loadFile "hotkeys.sqf"];
//Debug Monitor	
[] execVM "custom_monitor.sqf";

Next make file custom_monitor.sqf same place where is init.sqf  and paste inside:

custom_monitor_state = 0;
 
fnc_debug = {
    j0k3r5_stats = true;
    while {j0k3r5_stats} do
	{
		
		_pic = (gettext (configFile >> 'CfgVehicles' >> (typeof vehicle player) >> 'picture'));
		
		_nearestCity = nearestLocations [getPos player, ["NameCityCapital","NameCity","NameVillage","NameLocal"],750];
		_textCity = "Wilderness";
		if (count _nearestCity > 0) then {_textCity = text (_nearestCity select 0)};
			
		if (player == vehicle player) then
		{
			_pic = (gettext (configFile >> 'cfgWeapons' >> (currentWeapon player) >> 'picture'));	
		}
		else
		{
			_pic = (gettext (configFile >> 'CfgVehicles' >> (typeof vehicle player) >> 'picture'));	
		};
 
		_timeleft= 		_combattimeout-time;
		_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";
		_text = switch(custom_monitor_state) do {
			case 0:{
				"
				<img size='5' image='%10'/>
				<t color='#7D8D70' size='1' font='Bitstream'align='left'>Location:</t><t size='1' font='Bitstream'align='right'color='#7D8D70'>%11</t><br/>
				<t color='#708D72' size='1' font='Bitstream'align='left'>Blood:</t><t size='1' font='Bitstream'align='right'color='#708D72'>%1</t><br/>
				<t color='#708D70' size='1'	font='Bitstream'align='left'>Humanity:</t><t size='1' font='Bitstream'align='right'color='#708D70'>%2</t><br/>
				<t color='#708B8D' size='1'	font='Bitstream'align='left'>Head:</t><t size='1' font='Bitstream'align='right'color='#708B8D'>%6</t><br/>
                <br/>
				<t color='#707D8D' size='1' font='Bitstream'align='left'>Players Killed:</t><t size='1' font='Bitstream'align='right'color='#707D8D'>%3</t><br/>
				<t color='#707D8D' size='1'	font='Bitstream'align='left'>Bandits Killed:</t><t size='1' font='Bitstream'align='right'color='#707D8D'>%4</t><br/>
				<t color='#707D8D' size='1'	font='Bitstream'align='left'>Zombie Killed:</t><t size='1' font='Bitstream'align='right'color='#707D8D'>%5</t><br/>
				<t color='#707D8D' size='1' font='Bitstream'align='left'>Vehicles:</t><t size='0.95' font='Bitstream'align='right'color='#707D8D'>%16</t><br/>
				<t color='#72708D' size='1' font='Bitstream'align='left'>FPS: </t><t size='1' font='Bitstream'align='right'color='#72708D'>%14</t><br/>
				<t color='#80708D' size='1' font='Bitstream'align='left'>Players Online: </t><t size='1' font='Bitstream'align='right'color='#80708D'>%15</t><br/> 
				<t size='1'	font='Bitstream'align='center'color='#8D708B'>Server run %18h %8m</t><br/>	
				<img size='6' image='%9'/>
				"
			};
			case 1:{
				"
				<t color='#708D72' size='1' font='Bitstream'align='left'>Blood:</t><t size='1' font='Bitstream'align='right'color='#708D72'>%1</t><br/>
				<t color='#707D8D' size='1'	font='Bitstream'align='left'>Bandits Killed:</t><t size='1' font='Bitstream'align='right'color='#707D8D'>%4</t><br/>
				<t color='#72708D' size='1' font='Bitstream'align='left'>FPS: </t><t size='1' font='Bitstream'align='right'color='#72708D'>%14</t><br/>
				<t color='#80708D' size='1' font='Bitstream'align='left'>Players Online: </t><t size='1' font='Bitstream'align='right'color='#80708D'>%15</t><br/> 
				<t size='1'	font='Bitstream'align='center'color='#8D708B'>Server run %18h %8m</t><br/>	
				"
			};
			case 2:{
				""
			};
		};
		
		if(((getPlayerUID player) in ["xxxx","xxxxx"]) and custom_monitor_state == 1 ) then {      // Replace xxx to admins UID
			_position = getPos player;
			_px = _position select 0;//X
			_py = _position select 1;//Y
			_text = _text + format ["<t color='#00bcbc' size='0.8'font='Bitstream'align='left'>x:%1 y:%2</t><br/>",_px,_py];
		};
		
		hintSilent parseText format 
			[
				_text,
				r_player_blood,												//1
				round _humanity,											//2
				_killsH,													//3
				_killsB,													//4
				_kills,														//5
				_headShots,													//6
				(dayz_Survived),											//7
				((floor(serverTime/60)) mod 60), 							//8
				_pic,														//9
				_logo,														//10
				_textCity,													//11
				0,															//12
				0,															//13
				round diag_fps,												//14
                {side _x == west} count allUnits,                           //15
	            (count([6800, 9200, 0] nearEntities [["StaticWeapon","Car","Motorcycle","Tank","Air","Ship"],25000])),//16
	            count vehicles,												//17
				(floor(serverTime/3600))											//18
			];			
			sleep 1;
	};
};
 
[] spawn fnc_debug;
 

Same place make file hotkeys.sqf and paste:

if (_this select 1 == 66) then {
	hintSilent "";
	custom_monitor_state = custom_monitor_state + 1;
	if (custom_monitor_state>2) then {
		custom_monitor_state = 0;
	};
};

Must work!

 

 

How do you change the Server time? Mine is 4 hours each restart. Is it defined itself or does it grab the time somewhere??? XD

BTW sick ass monitor :)

Link to comment
Share on other sites

My debug monitor works fine and closing with F8, first  click make it smaller, second one close it .

In the end of  your init.sqf paste this one:

//HotKey(F8)
waituntil {!IsNull (findDisplay 46)};
_SpecKeyDown = (findDisplay 46) displayAddEventHandler ["KeyDown", loadFile "hotkeys.sqf"];
//Debug Monitor	
[] execVM "custom_monitor.sqf";

Next make file custom_monitor.sqf same place where is init.sqf  and paste inside:

custom_monitor_state = 0;
 
fnc_debug = {
    j0k3r5_stats = true;
    while {j0k3r5_stats} do
	{
		
		_pic = (gettext (configFile >> 'CfgVehicles' >> (typeof vehicle player) >> 'picture'));
		
		_nearestCity = nearestLocations [getPos player, ["NameCityCapital","NameCity","NameVillage","NameLocal"],750];
		_textCity = "Wilderness";
		if (count _nearestCity > 0) then {_textCity = text (_nearestCity select 0)};
			
		if (player == vehicle player) then
		{
			_pic = (gettext (configFile >> 'cfgWeapons' >> (currentWeapon player) >> 'picture'));	
		}
		else
		{
			_pic = (gettext (configFile >> 'CfgVehicles' >> (typeof vehicle player) >> 'picture'));	
		};
 
		_timeleft= 		_combattimeout-time;
		_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";
		_text = switch(custom_monitor_state) do {
			case 0:{
				"
				<img size='5' image='%10'/>
				<t color='#7D8D70' size='1' font='Bitstream'align='left'>Location:</t><t size='1' font='Bitstream'align='right'color='#7D8D70'>%11</t><br/>
				<t color='#708D72' size='1' font='Bitstream'align='left'>Blood:</t><t size='1' font='Bitstream'align='right'color='#708D72'>%1</t><br/>
				<t color='#708D70' size='1'	font='Bitstream'align='left'>Humanity:</t><t size='1' font='Bitstream'align='right'color='#708D70'>%2</t><br/>
				<t color='#708B8D' size='1'	font='Bitstream'align='left'>Head:</t><t size='1' font='Bitstream'align='right'color='#708B8D'>%6</t><br/>
                <br/>
				<t color='#707D8D' size='1' font='Bitstream'align='left'>Players Killed:</t><t size='1' font='Bitstream'align='right'color='#707D8D'>%3</t><br/>
				<t color='#707D8D' size='1'	font='Bitstream'align='left'>Bandits Killed:</t><t size='1' font='Bitstream'align='right'color='#707D8D'>%4</t><br/>
				<t color='#707D8D' size='1'	font='Bitstream'align='left'>Zombie Killed:</t><t size='1' font='Bitstream'align='right'color='#707D8D'>%5</t><br/>
				<t color='#707D8D' size='1' font='Bitstream'align='left'>Vehicles:</t><t size='0.95' font='Bitstream'align='right'color='#707D8D'>%16</t><br/>
				<t color='#72708D' size='1' font='Bitstream'align='left'>FPS: </t><t size='1' font='Bitstream'align='right'color='#72708D'>%14</t><br/>
				<t color='#80708D' size='1' font='Bitstream'align='left'>Players Online: </t><t size='1' font='Bitstream'align='right'color='#80708D'>%15</t><br/> 
				<t size='1'	font='Bitstream'align='center'color='#8D708B'>Server run %18h %8m</t><br/>	
				<img size='6' image='%9'/>
				"
			};
			case 1:{
				"
				<t color='#708D72' size='1' font='Bitstream'align='left'>Blood:</t><t size='1' font='Bitstream'align='right'color='#708D72'>%1</t><br/>
				<t color='#707D8D' size='1'	font='Bitstream'align='left'>Bandits Killed:</t><t size='1' font='Bitstream'align='right'color='#707D8D'>%4</t><br/>
				<t color='#72708D' size='1' font='Bitstream'align='left'>FPS: </t><t size='1' font='Bitstream'align='right'color='#72708D'>%14</t><br/>
				<t color='#80708D' size='1' font='Bitstream'align='left'>Players Online: </t><t size='1' font='Bitstream'align='right'color='#80708D'>%15</t><br/> 
				<t size='1'	font='Bitstream'align='center'color='#8D708B'>Server run %18h %8m</t><br/>	
				"
			};
			case 2:{
				""
			};
		};
		
		if(((getPlayerUID player) in ["xxxx","xxxxx"]) and custom_monitor_state == 1 ) then {      // Replace xxx to admins UID
			_position = getPos player;
			_px = _position select 0;//X
			_py = _position select 1;//Y
			_text = _text + format ["<t color='#00bcbc' size='0.8'font='Bitstream'align='left'>x:%1 y:%2</t><br/>",_px,_py];
		};
		
		hintSilent parseText format 
			[
				_text,
				r_player_blood,												//1
				round _humanity,											//2
				_killsH,													//3
				_killsB,													//4
				_kills,														//5
				_headShots,													//6
				(dayz_Survived),											//7
				((floor(serverTime/60)) mod 60), 							//8
				_pic,														//9
				_logo,														//10
				_textCity,													//11
				0,															//12
				0,															//13
				round diag_fps,												//14
                {side _x == west} count allUnits,                           //15
	            (count([6800, 9200, 0] nearEntities [["StaticWeapon","Car","Motorcycle","Tank","Air","Ship"],25000])),//16
	            count vehicles,												//17
				(floor(serverTime/3600))											//18
			];			
			sleep 1;
	};
};
 
[] spawn fnc_debug;
 

Same place make file hotkeys.sqf and paste:

if (_this select 1 == 66) then {
	hintSilent "";
	custom_monitor_state = custom_monitor_state + 1;
	if (custom_monitor_state>2) then {
		custom_monitor_state = 0;
	};
};

Must work!

 

For me it doesn't work at all no debug appears. I am pretty sure on the typos I checked.

 

 

Here is my custom_monitor.sqf

custom_monitor_state = 0;
 
fnc_debug = {
    j0k3r5_stats = true;
    while {j0k3r5_stats} do
	{
		_logo = "logo.paa";
		_pic = (gettext (configFile >> 'CfgVehicles' >> (typeof vehicle player) >> 'picture'));
		
		_nearestCity = nearestLocations [getPos player, ["NameCityCapital","NameCity","NameVillage","NameLocal"],750];
		_textCity = "Wilderness";
		if (count _nearestCity > 0) then {_textCity = text (_nearestCity select 0)};
			
		if (player == vehicle player) then
		{
			_pic = (gettext (configFile >> 'cfgWeapons' >> (currentWeapon player) >> 'picture'));	
		}
		else
		{
			_pic = (gettext (configFile >> 'CfgVehicles' >> (typeof vehicle player) >> 'picture'));	
		};
 
		_timeleft= 		_combattimeout-time;
		_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";
		_text = switch(custom_monitor_state) do {
			case 0:{
				"
				<img size='5' image='%10'/>
				<t color='#7D8D70' size='1' font='Bitstream'align='left'>Location:</t><t size='1' font='Bitstream'align='right'color='#7D8D70'>%11</t><br/>
				<t color='#708D72' size='1' font='Bitstream'align='left'>Blood:</t><t size='1' font='Bitstream'align='right'color='#708D72'>%1</t><br/>
				<t color='#708D70' size='1'	font='Bitstream'align='left'>Humanity:</t><t size='1' font='Bitstream'align='right'color='#708D70'>%2</t><br/>
				<t color='#708B8D' size='1'	font='Bitstream'align='left'>Headshots:</t><t size='1' font='Bitstream'align='right'color='#708B8D'>%6</t><br/>
                <br/>
				<t color='#707D8D' size='1' font='Bitstream'align='left'>Players Killed:</t><t size='1' font='Bitstream'align='right'color='#707D8D'>%3</t><br/>
				<t color='#707D8D' size='1'	font='Bitstream'align='left'>Dickheads Killed:</t><t size='1' font='Bitstream'align='right'color='#707D8D'>%4</t><br/>
				<t color='#707D8D' size='1'	font='Bitstream'align='left'>Zombs Killed:</t><t size='1' font='Bitstream'align='right'color='#707D8D'>%5</t><br/>
				<t color='#707D8D' size='1' font='Bitstream'align='left'>Vehicles:</t><t size='0.95' font='Bitstream'align='right'color='#707D8D'>%16</t><br/>
				<t color='#72708D' size='1' font='Bitstream'align='left'>FPS: </t><t size='1' font='Bitstream'align='right'color='#72708D'>%14</t><br/>
				<t color='#80708D' size='1' font='Bitstream'align='left'>Players Online: </t><t size='1' font='Bitstream'align='right'color='#80708D'>%15</t><br/> 
				<t size='1'	font='Bitstream'align='center'color='#0080C0'>Server run %18h %8m</t><br/>	
			    <t size='1' font='Bitstream' align='center' color='#0080C0'>TS: wastelandgrounds.ts3dns.com</t><br/>",
				<img size='6' image='%9'/>
				"
			};
			case 1:{
				"
				<t color='#708D72' size='1' font='Bitstream'align='left'>Blood:</t><t size='1' font='Bitstream'align='right'color='#708D72'>%1</t><br/>
				<t color='#707D8D' size='1'	font='Bitstream'align='left'>Bandits Killed:</t><t size='1' font='Bitstream'align='right'color='#707D8D'>%4</t><br/>
				<t color='#72708D' size='1' font='Bitstream'align='left'>FPS: </t><t size='1' font='Bitstream'align='right'color='#72708D'>%14</t><br/>
				<t color='#80708D' size='1' font='Bitstream'align='left'>Players Online: </t><t size='1' font='Bitstream'align='right'color='#80708D'>%15</t><br/> 
				<t size='1'	font='Bitstream'align='center'color='#8D708B'>Server run %18h %8m</t><br/>	
				"
			};
			case 2:{
				""
			};
		};
		
		if(((getPlayerUID player) in ["xxxx","xxxxx"]) and custom_monitor_state == 1 ) then {      // Replace xxx to admins UID
			_position = getPos player;
			_px = _position select 0;//X
			_py = _position select 1;//Y
			_text = _text + format ["<t color='#00bcbc' size='0.8'font='Bitstream'align='left'>x:%1 y:%2</t><br/>",_px,_py];
		};
		
		hintSilent parseText format 
			[
				_text,
				r_player_blood,												//1
				round _humanity,											//2
				_killsH,													//3
				_killsB,													//4
				_kills,														//5
				_headShots,													//6
				(dayz_Survived),											//7
				((floor(serverTime/60)) mod 60), 							//8
				_pic,														//9
				_logo,														//10
				_textCity,													//11
				0,															//12
				0,															//13
				round diag_fps,												//14
                {side _x == west} count allUnits,                           //15
	            (count([6800, 9200, 0] nearEntities [["StaticWeapon","Car","Motorcycle","Tank","Air","Ship"],25000])),//16
	            count vehicles,												//17
				(floor(serverTime/3600))											//18
			];			
			sleep 1;
	};
};
 
[] spawn fnc_debug;
Link to comment
Share on other sites

For others  working, 
Here is my.
 

custom_monitor_state = 0;

fnc_debug = {
    j0k3r5_stats = true;
    while {j0k3r5_stats} do
	{
		_logo = "logo.paa";
		_pic = (gettext (configFile >> 'CfgVehicles' >> (typeof vehicle player) >> 'picture'));
		
		_nearestCity = nearestLocations [getPos player, ["NameCityCapital","NameCity","NameVillage","NameLocal"],750];
		_textCity = "Wilderness";
		if (count _nearestCity > 0) then {_textCity = text (_nearestCity select 0)};
			
		if (player == vehicle player) then
		{
			_pic = (gettext (configFile >> 'cfgWeapons' >> (currentWeapon player) >> 'picture'));	
		}
		else
		{
			_pic = (gettext (configFile >> 'CfgVehicles' >> (typeof vehicle player) >> 'picture'));	
		};

		_timeleft= 		_combattimeout-time;
		_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";
		_text = switch(custom_monitor_state) do {
			case 0:{
				"
				<img size='5' image='%10'/>
				<t color='#7D8D70' size='1' font='Bitstream'align='left'>Локация:</t><t size='1' font='Bitstream'align='right'color='#7D8D70'>%11</t><br/>
				<t color='#708D72' size='1' font='Bitstream'align='left'>Кровь:</t><t size='1' font='Bitstream'align='right'color='#708D72'>%1</t><br/>
				<t color='#708D70' size='1'	font='Bitstream'align='left'>Человечность:</t><t size='1' font='Bitstream'align='right'color='#708D70'>%2</t><br/>
				<t color='#708B8D' size='1'	font='Bitstream'align='left'>В Голову:</t><t size='1' font='Bitstream'align='right'color='#708B8D'>%6</t><br/>
                <br/>
				<t color='#707D8D' size='1' font='Bitstream'align='left'>Игроков Убито:</t><t size='1' font='Bitstream'align='right'color='#707D8D'>%3</t><br/>
				<t color='#707D8D' size='1'	font='Bitstream'align='left'>Бандитов убито:</t><t size='1' font='Bitstream'align='right'color='#707D8D'>%4</t><br/>
				<t color='#707D8D' size='1'	font='Bitstream'align='left'>Зомби убито:</t><t size='1' font='Bitstream'align='right'color='#707D8D'>%5</t><br/>
				<t color='#707D8D' size='1' font='Bitstream'align='left'>Транспорт:</t><t size='0.95' font='Bitstream'align='right'color='#707D8D'>%16</t><br/>
				<t color='#72708D' size='1' font='Bitstream'align='left'>fps: </t><t size='1' font='Bitstream'align='right'color='#72708D'>%14</t><br/>
				<t color='#80708D' size='1' font='Bitstream'align='left'>Игроки онлайн: </t><t size='1' font='Bitstream'align='right'color='#80708D'>%15</t><br/> 
				<t size='1'	font='Bitstream'align='center'color='#8D708B'>Сервер Работает %18ч %8м</t><br/>	
				<img size='6' image='%9'/>
				"
			};
			case 1:{
				"
				<t color='#708D72' size='1' font='Bitstream'align='left'>Кровь:</t><t size='1' font='Bitstream'align='right'color='#708D72'>%1</t><br/>
				<t color='#707D8D' size='1'	font='Bitstream'align='left'>Бандитов убито:</t><t size='1' font='Bitstream'align='right'color='#707D8D'>%4</t><br/>
				<t color='#72708D' size='1' font='Bitstream'align='left'>fps: </t><t size='1' font='Bitstream'align='right'color='#72708D'>%14</t><br/>
				<t color='#80708D' size='1' font='Bitstream'align='left'>Игроки онлайн: </t><t size='1' font='Bitstream'align='right'color='#80708D'>%15</t><br/> 
				<t size='1'	font='Bitstream'align='center'color='#8D708B'>Сервер Работает %18ч %8м</t><br/>	
				"
			};
			case 2:{
				""
			};
		};
		
		if(((getPlayerUID player) in ["198262150","12614854"]) and custom_monitor_state == 1 ) then {
			_position = getPos player;//Позиция игрока
			_px = _position select 0;//X
			_py = _position select 1;//Y
			_text = _text + format ["<t color='#00bcbc' size='0.8'font='Bitstream'align='left'>x:%1 y:%2</t><br/>",_px,_py];
		};
		
		hintSilent parseText format 
			[
				_text,
				r_player_blood,												//1
				round _humanity,											//2
				_killsH,													//3
				_killsB,													//4
				_kills,														//5
				_headShots,													//6
				(dayz_Survived),											//7
				((floor(serverTime/60)) mod 60), 							//8
				_pic,														//9
				_logo,														//10
				_textCity,													//11
				0,															//12
				0,															//13
				round diag_fps,												//14
                {side _x == west} count allUnits,                           //15
	            (count([6800, 9200, 0] nearEntities [["StaticWeapon","Car","Motorcycle","Tank","Air","Ship"],25000])),//16
	            count vehicles,												//17
				(floor(serverTime/3600))											//18
			];			
			sleep 1;
	};
};

[] spawn fnc_debug;

Link to comment
Share on other sites

 

For others  working, 

Here is my.

 

custom_monitor_state = 0;

fnc_debug = {
    j0k3r5_stats = true;
    while {j0k3r5_stats} do
	{
		_logo = "logo.paa";
		_pic = (gettext (configFile >> 'CfgVehicles' >> (typeof vehicle player) >> 'picture'));
		
		_nearestCity = nearestLocations [getPos player, ["NameCityCapital","NameCity","NameVillage","NameLocal"],750];
		_textCity = "Wilderness";
		if (count _nearestCity > 0) then {_textCity = text (_nearestCity select 0)};
			
		if (player == vehicle player) then
		{
			_pic = (gettext (configFile >> 'cfgWeapons' >> (currentWeapon player) >> 'picture'));	
		}
		else
		{
			_pic = (gettext (configFile >> 'CfgVehicles' >> (typeof vehicle player) >> 'picture'));	
		};

		_timeleft= 		_combattimeout-time;
		_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";
		_text = switch(custom_monitor_state) do {
			case 0:{
				"
				<img size='5' image='%10'/>
				<t color='#7D8D70' size='1' font='Bitstream'align='left'>Локация:</t><t size='1' font='Bitstream'align='right'color='#7D8D70'>%11</t><br/>
				<t color='#708D72' size='1' font='Bitstream'align='left'>Кровь:</t><t size='1' font='Bitstream'align='right'color='#708D72'>%1</t><br/>
				<t color='#708D70' size='1'	font='Bitstream'align='left'>Человечность:</t><t size='1' font='Bitstream'align='right'color='#708D70'>%2</t><br/>
				<t color='#708B8D' size='1'	font='Bitstream'align='left'>В Голову:</t><t size='1' font='Bitstream'align='right'color='#708B8D'>%6</t><br/>
                <br/>
				<t color='#707D8D' size='1' font='Bitstream'align='left'>Игроков Убито:</t><t size='1' font='Bitstream'align='right'color='#707D8D'>%3</t><br/>
				<t color='#707D8D' size='1'	font='Bitstream'align='left'>Бандитов убито:</t><t size='1' font='Bitstream'align='right'color='#707D8D'>%4</t><br/>
				<t color='#707D8D' size='1'	font='Bitstream'align='left'>Зомби убито:</t><t size='1' font='Bitstream'align='right'color='#707D8D'>%5</t><br/>
				<t color='#707D8D' size='1' font='Bitstream'align='left'>Транспорт:</t><t size='0.95' font='Bitstream'align='right'color='#707D8D'>%16</t><br/>
				<t color='#72708D' size='1' font='Bitstream'align='left'>fps: </t><t size='1' font='Bitstream'align='right'color='#72708D'>%14</t><br/>
				<t color='#80708D' size='1' font='Bitstream'align='left'>Игроки онлайн: </t><t size='1' font='Bitstream'align='right'color='#80708D'>%15</t><br/> 
				<t size='1'	font='Bitstream'align='center'color='#8D708B'>Сервер Работает %18ч %8м</t><br/>	
				<img size='6' image='%9'/>
				"
			};
			case 1:{
				"
				<t color='#708D72' size='1' font='Bitstream'align='left'>Кровь:</t><t size='1' font='Bitstream'align='right'color='#708D72'>%1</t><br/>
				<t color='#707D8D' size='1'	font='Bitstream'align='left'>Бандитов убито:</t><t size='1' font='Bitstream'align='right'color='#707D8D'>%4</t><br/>
				<t color='#72708D' size='1' font='Bitstream'align='left'>fps: </t><t size='1' font='Bitstream'align='right'color='#72708D'>%14</t><br/>
				<t color='#80708D' size='1' font='Bitstream'align='left'>Игроки онлайн: </t><t size='1' font='Bitstream'align='right'color='#80708D'>%15</t><br/> 
				<t size='1'	font='Bitstream'align='center'color='#8D708B'>Сервер Работает %18ч %8м</t><br/>	
				"
			};
			case 2:{
				""
			};
		};
		
		if(((getPlayerUID player) in ["198262150","12614854"]) and custom_monitor_state == 1 ) then {
			_position = getPos player;//Позиция игрока
			_px = _position select 0;//X
			_py = _position select 1;//Y
			_text = _text + format ["<t color='#00bcbc' size='0.8'font='Bitstream'align='left'>x:%1 y:%2</t><br/>",_px,_py];
		};
		
		hintSilent parseText format 
			[
				_text,
				r_player_blood,												//1
				round _humanity,											//2
				_killsH,													//3
				_killsB,													//4
				_kills,														//5
				_headShots,													//6
				(dayz_Survived),											//7
				((floor(serverTime/60)) mod 60), 							//8
				_pic,														//9
				_logo,														//10
				_textCity,													//11
				0,															//12
				0,															//13
				round diag_fps,												//14
                {side _x == west} count allUnits,                           //15
	            (count([6800, 9200, 0] nearEntities [["StaticWeapon","Car","Motorcycle","Tank","Air","Ship"],25000])),//16
	            count vehicles,												//17
				(floor(serverTime/3600))											//18
			];			
			sleep 1;
	};
};

[] spawn fnc_debug;

First of all, its all in russian lol xD

Second of all, I tried replacing with original code found before and it still doesn't work. It won't show on join, and won't either when pressing F8.

Any idea?

Link to comment
Share on other sites

It just doesn't show up ingame ...

 

Init.sqf's IS dedicated part:
 

if (!isDedicated) then {
[] execVM "custom\WelcomeCredits.sqf";
	//Conduct map operations
	0 fadeSound 0;
	waitUntil {!isNil "dayz_loadScreenMsg"};
	dayz_loadScreenMsg = (localize "STR_AUTHENTICATING");
	[] execVM "infistartingadmin.sqf";
	//Run the player monitor
	_id = player addEventHandler ["Respawn", {_id = [] spawn player_death;}];
	_playerMonitor = 	[] execVM "\z\addons\dayz_code\system\player_monitor.sqf";	
	
	//Lights
	//[0,0,true,true,true,58,280,600,[0.698, 0.556, 0.419],"Generator_DZ",0.1] execVM "\z\addons\dayz_code\compile\local_lights_init.sqf";
	//HotKey(F8)
	waituntil {!IsNull (findDisplay 46)};
	_SpecKeyDown = (findDisplay 46) displayAddEventHandler ["KeyDown", loadFile "hotkeys.sqf"];
	//Debug Monitor	
	[] execVM "custom_monitor.sqf";
};

hotkeys.sqf:

if (_this select 1 == 66) then {
	hintSilent "";
	custom_monitor_state = custom_monitor_state + 1;
	if (custom_monitor_state>2) then {
		custom_monitor_state = 0;
	};
};

custom_monitor.sqf:
 

custom_monitor_state = 0;
 
fnc_debug = {
j0k3r5_stats = true;
while {j0k3r5_stats} do
{
_logo = "logo.paa";
_pic = (gettext (configFile >> 'CfgVehicles' >> (typeof vehicle player) >> 'picture'));
_nearestCity = nearestLocations [getPos player, ["NameCityCapital","NameCity","NameVillage","NameLocal"],750];
_textCity = "Wilderness";
if (count _nearestCity > 0) then {_textCity = text (_nearestCity select 0)};
if (player == vehicle player) then
{
_pic = (gettext (configFile >> 'cfgWeapons' >> (currentWeapon player) >> 'picture'));	
}
else
{
_pic = (gettext (configFile >> 'CfgVehicles' >> (typeof vehicle player) >> 'picture'));	
};
 
_timeleft= _combattimeout-time;
_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";
_text = switch(custom_monitor_state) do {
case 0:{
"
<img size='5' image='%10'/>
<t color='#7D8D70' size='1' font='Bitstream'align='left'>Location:</t><t size='1' font='Bitstream'align='right'color='#7D8D70'>%11</t><br/>
<t color='#708D72' size='1' font='Bitstream'align='left'>Blood:</t><t size='1' font='Bitstream'align='right'color='#708D72'>%1</t><br/>
<t color='#708D70' size='1' font='Bitstream'align='left'>Humanity:</t><t size='1' font='Bitstream'align='right'color='#708D70'>%2</t><br/>
<t color='#708B8D' size='1' font='Bitstream'align='left'>Head:</t><t size='1' font='Bitstream'align='right'color='#708B8D'>%6</t><br/>
<br/>
<t color='#707D8D' size='1' font='Bitstream'align='left'>Players Killed:</t><t size='1' font='Bitstream'align='right'color='#707D8D'>%3</t><br/>
<t color='#707D8D' size='1' font='Bitstream'align='left'>Bandits Killed:</t><t size='1' font='Bitstream'align='right'color='#707D8D'>%4</t><br/>
<t color='#707D8D' size='1' font='Bitstream'align='left'>Zombie Killed:</t><t size='1' font='Bitstream'align='right'color='#707D8D'>%5</t><br/>
<t color='#707D8D' size='1' font='Bitstream'align='left'>Vehicles:</t><t size='0.95' font='Bitstream'align='right'color='#707D8D'>%16</t><br/>
<t color='#72708D' size='1' font='Bitstream'align='left'>FPS: </t><t size='1' font='Bitstream'align='right'color='#72708D'>%14</t><br/>
<t color='#80708D' size='1' font='Bitstream'align='left'>Players Online: </t><t size='1' font='Bitstream'align='right'color='#80708D'>%15</t><br/>
<t size='1' font='Bitstream'align='center'color='#8D708B'>Server run %18h %8m</t><br/>
<img size='6' image='%9'/>
"
};
case 1:{
"
<t color='#708D72' size='1' font='Bitstream'align='left'>Blood:</t><t size='1' font='Bitstream'align='right'color='#708D72'>%1</t><br/>
<t color='#707D8D' size='1' font='Bitstream'align='left'>Bandits Killed:</t><t size='1' font='Bitstream'align='right'color='#707D8D'>%4</t><br/>
<t color='#72708D' size='1' font='Bitstream'align='left'>FPS: </t><t size='1' font='Bitstream'align='right'color='#72708D'>%14</t><br/>
<t color='#80708D' size='1' font='Bitstream'align='left'>Players Online: </t><t size='1' font='Bitstream'align='right'color='#80708D'>%15</t><br/>
<t size='1' font='Bitstream'align='center'color='#8D708B'>Server run %18h %8m</t><br/>
"
};
case 2:{
""
};
};
if(((getPlayerUID player) in ["xxxx","xxxxx"]) and custom_monitor_state == 1 ) then { // Replace xxx to admins UID
_position = getPos player;
_px = _position select 0;//X
_py = _position select 1;//Y
_text = _text + format ["<t color='#00bcbc' size='0.8'font='Bitstream'align='left'>x:%1 y:%2</t><br/>",_px,_py];
};
hintSilent parseText format
[
_text,
r_player_blood,	//1
round _humanity,	//2
_killsH,	//3
_killsB,	//4
_kills,	//5
_headShots,	//6
(dayz_Survived),	//7
((floor(serverTime/60)) mod 60), //8
_pic,	//9
_logo,	//10
_textCity,	//11
0,	//12
0,	//13
round diag_fps,	//14
{side _x == west} count allUnits, //15
(count([6800, 9200, 0] nearEntities [["StaticWeapon","Car","Motorcycle","Tank","Air","Ship"],25000])),//16
count vehicles,	//17
(floor(serverTime/3600))	//18
];	
sleep 1;
};
};
 
[] spawn fnc_debug;
Link to comment
Share on other sites

Where does it need to be called though? Is the init.sqf part okay?

Or should iot be called at the BOTTOM of the init.sqf



if (!isDedicated) then

[] execVM "custom_monitor.sqf";
waituntil {!IsNull (findDisplay 46)};
_SpecKeyDown = (findDisplay 46) displayAddEventHandler ["KeyDown", loadFile "hotkeys.sqf"];
Link to comment
Share on other sites



if (!isDedicated) then

[] execVM "custom_monitor.sqf";
waituntil {!IsNull (findDisplay 46)};
_SpecKeyDown = (findDisplay 46) displayAddEventHandler ["KeyDown", loadFile "hotkeys.sqf"];

Ok now it shows up but won't close or get smaller when pressing f8 xD

And the logo shows on side of Location so the location is under the logo

Link to comment
Share on other sites

Ok now it shows up but won't close or get smaller when pressing f8 xD

And the logo shows on side of Location so the location is under the logo

You must to figure out where is mistake. F8 work if you make hotkey.sqf in same place where is init.sqf  also if F8 not used with something else

About logo, try to change it smaller <img size='5' image='%10'/>  where 5 is size  or your logo.paa resolution is too big

Link to comment
Share on other sites

You must to figure out where is mistake. F8 work if you make hotkey.sqf in same place where is init.sqf  also if F8 not used with something else

About logo, try to change it smaller <img size='5' image='%10'/>  where 5 is size  or your logo.paa resolution is too big

I copy pasted the hotkeys.sqf you gave on the thread. As of the size I will try that out ty.

F8 is not used by anything as far as I know

Link to comment
Share on other sites

mine isn't changing with f8 either. but my admin tool might use f8, I havn't seen an f8 function or it yet but i have used f1-6 so idk. If i wanted to change the bind to end. what code would i use. I can't find key codes for this.

 

thanks.

Link to comment
Share on other sites

mine isn't changing with f8 either. but my admin tool might use f8, I havn't seen an f8 function or it yet but i have used f1-6 so idk. If i wanted to change the bind to end. what code would i use. I can't find key codes for this.

 

thanks.

Same I would rather like disable Debug monitor of the antihack and make this one END key or make it like F7-F11 or idk

Link to comment
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
×
×
  • Create New...