Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
So I got this working, and with no conflict with the Journal, and no RPT errors.
First create the custom_monitor.sqf in a 'fixes' folder in your mission.pbo
Insert this code:
Code:[player,4,true,(getPosATL player)] spawn player_alertZombies; _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='2'font='Bitstream'align='center'color='#DDDDDD'>MYSERVERNAME</t><br/> <t size='1.5'font='Bitstream'align='center'color='#DDDDDD'>----------------------</t><br/> <t size='1'font='Bitstream'align='left' color='#FF0000'>Blood</t><t size='1' font='Bitstream'align='right'>%1</t><br/> <t size='1'font='Bitstream'align='left' color='#16DB57'>Humanity</t><t size='1'font='Bitstream'align='right'>%2</t><br/> <t size='1.5' font='Bitstream'align='center'color='#DDDDDD'>----------------------</t><br/> <t size='1'font='Bitstream'align='center' color='#16DB57'>Survived %8 dayz!</t><br/> <t size='1.5' font='Bitstream'align='center' color='#DDDDDD'>----------------------</t><br/> <t size='1'font='Bitstream'align='left'color='#DDDDDD'>Murders</t><t size='1'font='Bitstream'align='right'>%3</t><br/> <t size='1'font='Bitstream'align='left'color='#DDDDDD'>Bandits Killed</t><t size='1'font='Bitstream'align='right'>%4</t><br/> <t size='1'font='Bitstream'align='left'color='#DDDDDD'>Zombies Killed</t><t size='1'font='Bitstream'align='right'>%5</t><br/> <t size='1'font='Bitstream'align='left'color='#DDDDDD'>Headshots</t><t size='1'font='Bitstream'align='right'>%6</t><br/> <t size='1.5'font='Bitstream'align='center'color='#DDDDDD'>----------------------</t><br/> <t size='1'font='Bitstream'align='center'color='#16DB57'>Restart in %7 minutes!</t><br/> <t size='1.5'font='Bitstream'align='center'color='#DDDDDD'>----------------------</t><br/> <t size='1'font='Bitstream'align='center'color='#DDDDDD'>MYSERVERWEBSITE</t><br/> <t size='1'font='Bitstream'align='center'color='#DDDDDD'>MYSERVERTEAMSPEAK</t><br/>", r_player_blood,round _humanity,_killsH,_killsB,_kills,_headShots,(180-(round(serverTime/60))),(dayz_Survived) ];
You will need to change the above code to suit your server, especially this: (180-(round(serverTime/60))) where 180 is the length of time between restarts, in minutes.
In your custom compiles.sqf , find:
Code:if (_dikCode in actionKeys "User20" and (time - dayz_lastCheckBit > 5)) then { dayz_lastCheckBit = time; _nill = execvm "\z\addons\dayz_code\actions\playerstats.sqf"; };
Directly after, paste:
Code:if (_dikCode in actionKeys "User19" and (time - dayz_lastCheckBit > 5)) then { dayz_lastCheckBit = time; _nill = execvm "fixes\custom_monitor.sqf"; };
Then just remap Custom Action 19 to the key you wish, and bam! Custom Debug that fades out.
Would love to get it working like this. So I get compiles.sqf from dayz_code right? Do I rename it to custom_compiles.sqf or leave it like it is?
Where does it go? I tried putting it in dayz_mission.pbo>fixes as well as dayz_mission.pbo and neither work.
Did you remember to change the call from dayz_code > fixes?
eg: call compile preprocessFileLineNumbers "fixes\compiles.sqf";//Compile regular functions
Look for the line that calls the compiles.sqf and change it to this (make sure you have the compiles in a fixes folder):
call compile preprocessFileLineNumbers "fixes\compiles.sqf"; //Compile regular functions
eg: call compile preprocessFileLineNumbers "fixes\compiles.sqf";//Compile regular functions
Yeah, weird...can't figure it out. What else could it be?That all looks fine to me, should be working!
I'm using this... and it works... but it's very slow on the update. It takes several seconds for anything to register.. is there a way / variable to set to speed up the "reaction" time?So I got this working, and with no conflict with the Journal, and no RPT errors.
First create the custom_monitor.sqf in a 'fixes' folder in your mission.pbo
Insert this code:
Code:[player,4,true,(getPosATL player)] spawn player_alertZombies; _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='2'font='Bitstream'align='center'color='#DDDDDD'>MYSERVERNAME</t><br/> <t size='1.5'font='Bitstream'align='center'color='#DDDDDD'>----------------------</t><br/> <t size='1'font='Bitstream'align='left' color='#FF0000'>Blood</t><t size='1' font='Bitstream'align='right'>%1</t><br/> <t size='1'font='Bitstream'align='left' color='#16DB57'>Humanity</t><t size='1'font='Bitstream'align='right'>%2</t><br/> <t size='1.5' font='Bitstream'align='center'color='#DDDDDD'>----------------------</t><br/> <t size='1'font='Bitstream'align='center' color='#16DB57'>Survived %8 dayz!</t><br/> <t size='1.5' font='Bitstream'align='center' color='#DDDDDD'>----------------------</t><br/> <t size='1'font='Bitstream'align='left'color='#DDDDDD'>Murders</t><t size='1'font='Bitstream'align='right'>%3</t><br/> <t size='1'font='Bitstream'align='left'color='#DDDDDD'>Bandits Killed</t><t size='1'font='Bitstream'align='right'>%4</t><br/> <t size='1'font='Bitstream'align='left'color='#DDDDDD'>Zombies Killed</t><t size='1'font='Bitstream'align='right'>%5</t><br/> <t size='1'font='Bitstream'align='left'color='#DDDDDD'>Headshots</t><t size='1'font='Bitstream'align='right'>%6</t><br/> <t size='1.5'font='Bitstream'align='center'color='#DDDDDD'>----------------------</t><br/> <t size='1'font='Bitstream'align='center'color='#16DB57'>Restart in %7 minutes!</t><br/> <t size='1.5'font='Bitstream'align='center'color='#DDDDDD'>----------------------</t><br/> <t size='1'font='Bitstream'align='center'color='#DDDDDD'>MYSERVERWEBSITE</t><br/> <t size='1'font='Bitstream'align='center'color='#DDDDDD'>MYSERVERTEAMSPEAK</t><br/>", r_player_blood,round _humanity,_killsH,_killsB,_kills,_headShots,(180-(round(serverTime/60))),(dayz_Survived) ];
You will need to change the above code to suit your server, especially this: (180-(round(serverTime/60))) where 180 is the length of time between restarts, in minutes.
In your custom compiles.sqf , find:
Code:if (_dikCode in actionKeys "User20" and (time - dayz_lastCheckBit > 5)) then { dayz_lastCheckBit = time; _nill = execvm "\z\addons\dayz_code\actions\playerstats.sqf"; };
Directly after, paste:
Code:if (_dikCode in actionKeys "User19" and (time - dayz_lastCheckBit > 5)) then { dayz_lastCheckBit = time; _nill = execvm "fixes\custom_monitor.sqf"; };
Then just remap Custom Action 19 to the key you wish, and bam! Custom Debug that fades out.