Jump to content
  • 0

[Help] custom debug monitor


pufnstuf

Question

Hey everyone Ive been trying to add a custom debug monitor to my server. I followed the tutorials I found online but it is still not showing up in the server. I bought the server from survival servers and it came with a toggleable debug already installed. Could this debug becausing the one I am trying to add not to show up? I've tried finding the code for the one that came with the serve but I can find it anywhere. Would it have to be in the mission pbo somewhere?

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

 

if (isNil "custom_monitor") then {custom_monitor = true;} else {custom_monitor = !custom_monitor;};
 
while {custom_monitor} 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];
  
   hintSilent parseText format ["
   <t size='1.25' font='Bitstream'align='center' color='#D60000'>Pufnstufs Playground</t><br/>
   <t size='1.15' font='Bitstream' align='left' color='#FFBF00'>Players Online: </t><t size='1.15 'font='Bitstream' align='right'>%1</t><br/>
   <t size='0.95' font='Bitstream'align='center' color='#D60000'></t><br/>
   <t size='1.15' font='Bitstream'align='center' color='#298A08'>%2</t><br/>
   <t size='1.15' font='Bitstream'align='center' color='#5882FA'>Survived %3 Days</t><br/>
   <t size='0.95' font='Bitstream'align='center' color='#D60000'></t><br/>
   <t size='0.95' font='Bitstream' align='left' color='#FFBF00'>Zombies Killed: </t><t size='0.95' font='Bitstream' align='right'>%4</t><br/>
   <t size='0.95' font='Bitstream' align='left' color='#FFBF00'>Headshots: </t><t size='0.95' font='Bitstream' align='right'>%5</t><br/>
   <t size='0.95' font='Bitstream' align='left' color='#FFBF00'>Murders: </t><t size='0.95' font='Bitstream' align='right'>%6</t><br/>
   <t size='0.95' font='Bitstream' align='left' color='#FFBF00'>Bandits Killed: </t><t size='0.95' font='Bitstream' align='right'>%7</t><br/>
   <t size='0.95' font='Bitstream' align='left' color='#FFBF00'>Humanity: </t><t size='0.95' font='Bitstream' align='right'>%8</t><br/>
  <t size='0.95' font='Bitstream' align='left' color='#FF0000'>Blood: </t><t size='0.95' font='Bitstream' align='right'>%9</t><br/>
   <t size='0.95' font='Bitstream'align='center' color='#D60000'></t><br/>
  <t size='0.95' font='Bitstream' align='left' color='#FFBF00'>FPS: </t><t size='0.95' font='Bitstream' align='right'>%10</t><br/>
   <t size='0.95' font='Bitstream'align='center' color='#D60000'></t><br/>
   <t size='1.15' font='Bitstream'align='center' color='#5882FA'>Restart in %11 Minutes</t><br/>
   <t size='0.95' font='Bitstream'align='center' color='#D60000'></t><br/>
 
   (count playableUnits),dayz_playerName,(dayz_Survived),_kills,_headShots,_killsH,_killsB,round _humanity,r_player_blood,(round diag_fps),(round(180-(serverTime) / 60))
   ];
sleep 1;

 

/*  
   For DayZ Epoch
   Addons Credits: Jetski Yanahui by Kol9yN, Zakat, Gerasimow9, YuraPetrov, zGuba, A.Karagod, IceBreakr, Sahbazz
*/
startLoadingScreen ["","RscDisplayLoadCustom"];
cutText ["","BLACK OUT"];
enableSaving [false, false];
 
//REALLY IMPORTANT VALUES
dayZ_instance =   11;           //The instance
dayZ_serverName = "";
dayzHiveRequest = [];
initialized = false;
dayz_previousID = 0;
 
//disable greeting menu
player setVariable ["BIS_noCoreConversations", true];
//disable radio messages to be heard and shown in the left lower corner of the screen
enableRadio false;
// May prevent "how are you civillian?" messages from NPC
enableSentences false;
 
// DayZ Epoch config
spawnShoremode = 1; // Default = 1 (on shore)
spawnArea= 1500; // Default = 1500
dayz_MapArea = 14000; // Default = 10000
setViewDistance 1500;
setTerrainGrid 20;
 
 
//Epoch Config Variables
call compile preprocessFileLineNumbers "config\epochconfig.sqf";  
 
// Dayz Epoch Events
EpochEvents = [["any","any","any","any",5,"crash_spawner"],["any","any","any","any",10,"crash_spawner"],["any","any","any","any",15,"supply_drop"],["any","any","any","any",25,"ikea"],["any","any","any","any",35,"supply_drop"],
["any","any","any","any",40,"crash_spawner"],["any","any","any","any",45,"supply_drop"],["any","any","any","any",50,"ikea"],["any","any","any","any",30,"Construction"]];
 
 
//Load in compiled functions
call compile preprocessFileLineNumbers "init\variables.sqf";         //Initilize the Variables (IMPORTANT: Must happen very early)
progressLoadingScreen 0.1;
call compile preprocessFileLineNumbers "init\publicEH.sqf";         //Initilize the publicVariable event handlers
progressLoadingScreen 0.2;
call compile preprocessFileLineNumbers "\z\addons\dayz_code\medical\setup_functions_med.sqf";   //Functions used by CLIENT for medical
progressLoadingScreen 0.4;
//call compile preprocessFileLineNumbers "init\compiles.sqf";         //Compile regular functions
call compile preprocessFileLineNumbers "custom\compiles.sqf";
call compile preprocessFileLineNumbers "custom\Snapconfig.sqf";
call compile preprocessFileLineNumbers "Recover_Skin\compiles.sqf";
progressLoadingScreen 0.5;
call compile preprocessFileLineNumbers "traders\server_traders.sqf";         //Compile trader configs
progressLoadingScreen 1.0;
 
"filmic" setToneMappingParams [0.153, 0.357, 0.231, 0.1573, 0.011, 3.750, 6, 4]; setToneMapping "Filmic";
 
[] execVM "admintools\AdminList.sqf";
 
if (isServer) then {
   //Compile vehicle configs
   call compile preprocessFileLineNumbers "\z\addons\dayz_server\missions\DayZ_Epoch_17.Chernarus\dynamic_vehicle.sqf";        
   // Add trader citys
   _nil = [] execVM "\z\addons\dayz_server\missions\DayZ_Epoch_17.Chernarus\mission.sqf";
 
   _serverMonitor =    [] execVM "\z\addons\dayz_code\system\server_monitor.sqf";
};
 
if (!isDedicated) then {[] execVM "Scripts\kh_actions.sqf";
     //Conduct map operations
   0 fadeSound 0;
   waitUntil {!isNil "dayz_loadScreenMsg"};
   dayz_loadScreenMsg = (localize "STR_AUTHENTICATING");
  
   //Run the player monitor
   _id = player addEventHandler ["Respawn", {_id = [] spawn player_death;}];
   _playerMonitor =    [] execVM "\z\addons\dayz_code\system\player_monitor.sqf";  
};
 
// Logo watermark: adding a logo in the bottom left corner of the screen with the server name in it
if (!isNil "dayZ_serverName") then {
   [] spawn {
     waitUntil {(!isNull Player) and (alive Player) and (player == player)};
     waituntil {!(isNull (findDisplay 46))};
     5 cutRsc ["wm_disp","PLAIN"];
     ((uiNamespace getVariable "wm_disp") displayCtrl 1) ctrlSetText dayZ_serverName;
   };
};
 
//BIS_Effects
#include "\z\addons\dayz_code\system\BIS_Effects\init.sqf"
 
//Mod Config
execVM  "config\modconfig.sqf";  
 
 
[] execVM "admintools\Activate.sqf";
 
[] execVM "faction.sqf";
 
[] execvm 'AGN\agn_SafeZoneCommander.sqf';
 
[] execVM "addons\R3F_ARTY_AND_LOG\init.sqf";
 
[] execVM "custom_monitor.sqf";

 

Link to comment
Share on other sites

  • 0

I suggest undoing all the changes you've done with your debug so far and follow this tutorial from the start instead:

 

Not sure what tutorials you've found online, but this one works perfectly and it's made quite recently. Some other tutorials might be out of date.

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
  • Discord

×
×
  • Create New...