Jump to content
  • 0
Sign in to follow this  
mgm

[HELP] Bug in custom debug monitor script - can you help fix it?

Question

Hey Guys,
 
After hours of testing I have pinpointed to the one script causing the issue, I don't know how to fix it though so can anyone please help me to fix the no-gear-access-in-vehicle bug in custom debug monitor version 2.0 below?
 
 
 
This below is version 1.0. It works. It does not have toggle On/Off option, hence this version was left behind.
 

waitUntil {alive player};

while {true} 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'>SERVERNAME</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/>
	<t size='0.95' font='Bitstream'align='center' color='#D60000'>http://WEBSITE</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;
};

 

 

 

 

This is version 2.0. It is improved and is now user toggleable.
It works (i.e.: displays custom debug monitor on player screen) however it disables gear access in vehicle in Driver/Gunner seats (gear access in back seat works).
 

dayz_spaceInterrupt = {
private ["_dikCode", "_handled"];
_dikCode = _this select 1;
_handled = false;

if (_dikCode == 0xD2) then {
if (debugMonitor) then {
debugMonitor = false;
hintSilent "";
} else {[] spawn fnc_debug;};
};
_handled
};


fnc_debug = {
debugMonitor = true;
while {debugMonitor} 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'>SERVERNAME</t><br/>
<t size='0.95' 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='0.95' 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='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/>
<t size='0.95' font='Bitstream'align='center' color='#D60000'>http://WEBSITE</t><br/>
<t size='0.95' font='Bitstream'align='center' color='#D60000'></t><br/>
<t size='0.95' font='Bitstream'align='center' color='#FFBF00'>Press INS to toggle</t>
",

(count playableUnits),
(name player),
(dayz_Survived),
_kills,_headShots,
_killsH,
_killsB,
round _humanity,
r_player_blood,
(round diag_fps),
(round(180-(serverTime) / 60))
];
sleep 1;
};
};

[] spawn fnc_debug;

 

Share this post


Link to post
Share on other sites

7 answers to this question

Recommended Posts

  • 0
dayz_spaceInterrupt = {
private ["_dikCode", "_handled"];
_dikCode = _this select 1;
_handled = false;

if (_dikCode == 0xD2) then {
if (debugMonitor) then {
debugMonitor = false;
hintSilent "";
} else {[] spawn fnc_debug;};
};
_handled
};

I saw someone else post in one of your other threads, that there is your problem, it will also prevent building and cause other vehicle issues.

Share this post


Link to post
Share on other sites
  • 0
dayz_spaceInterrupt = {
private ["_dikCode", "_handled"];
_dikCode = _this select 1;
_handled = false;

if (_dikCode == 0xD2) then {
if (debugMonitor) then {
debugMonitor = false;
hintSilent "";
} else {[] spawn fnc_debug;};
};
_handled
};

I saw someone else post in one of your other threads, that there is your problem, it will also prevent building and cause other vehicle issues.

 

Thanks for your response. I used WinMerge to compare the code you posted - it is the same one what I have above so I guess you are pointing out the faulty section?

I don't know how to fix it, can you provide the solution perhaps?

 

I keep trying different things but no luck so far.

If I understand correctly the issue here is:some variables such as "(dayz_Survived)" are not available within a function hence they throw an error (Error Undefined variable in expression: dayz_survived).

 

How to access them from within a function? I have no idea on that...

Share this post


Link to post
Share on other sites
  • 0

look in dayz_spaceInterrupt.sqf and either add your button or modify the default to work with your debug monitor

Thank you for the pointer, I managed to resolve this issue exactly in the same place just a few hours ago but didn't get a chance to update it here yet...

 

 

For anyone else that might require this, the pointer above is in the right direction and step by step instructions are http://epochmod.com/forum/index.php?/topic/973-custom-debug-monitor/?p=45230 on this forum. Unfortunately I couldn't find that post within the last two weeks and eventually reverse engineered from a popular server (which gave me the pointer to spaceInterrupt.sqf just like Halvhjearne's tip above).

 

Finally all urgent issues resolved I can now go play lol

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

  • Similar Content

    • By Harkness
      Happy to announce the launch of our new custom server. 
      DayZ Epoch Chernarus 
      To connect search for "v666" in your DayZ Launcher
      Server Modes/Mods/Addons
      Romero Style Zombies
      Snow & Cold Weather Effects (temp+breath)
      Custom Intro Radio Broadcast
      Spawn Location Options
      Safe Trader Areas
      Roaming/Driving/Flying AI Excursions
      AI Mission System
      Random Events
      Auto Re-fuel at any Gas Station
      Day/Night Cycle w/6 Hourly Reboots
      ++Many more to come! Want something added? Request it here
      Don't forget to register here for your own custom load-out and access to our community forums
       
      Note:
      This server is both PVP and PVE. We dont believe in giving players rules but cheating in any way will result in lifetime ban from whole community.
    • By thegdog
      2:08:04 Error Type Any, expected String 2:08:04 File z\addons\dayz_server\compile\server_playerSync.sqf, line 41 2:08:12 Server: Object 3:54 not found (message 70) 2:08:12 "Server_PublishVehicle2 error: Wrong parameter format" 2:08:12 "Trader Menu: jeffdog (76561198147272349) purchased 1x BAF_Merlin_DZE into gear at Aircraft Trader for 1 ItemObsidian" 2:08:12 Error in expression <ceFoot = 0; trying to buy aircraft from the default aircraft trader.  never touched any of it and it giving this error.  no vehicle spawns.  it shows the arrow.  EDIT:  i tried other traders, all vehicles dont spawn when bought.
    • By webbie
      Hi all, Ive been looking for a while now for a vehicle flip script for a single player.
      Ive tried stuff ive used on previous servers but its not allowing the option so im guessing epoch has something that interferes with it.
      If anyone knows of a simple script to allow players to do this could you link it to me please,
      Thanks in advance.
      PS. Im aware the jacks flip vehicles but I actually  find this to be incredibly painstaking unless theirs a trick to it.
    • By Honey Bee
      Hallo zusammen,
      Die glorreiche Idee den Fahrzeugen das Volumen zu nehmen war jetzt nicht gerade der Bringer. Alle beschweren. Jetzt hab ich mal geschaut aber finde nix wo die Kapazität der Fahrzeuge drin steht. Jemand Erfahrung damit?
       
      Hi,
      how can i change the Vehicle capacity?
       
      THX
    • By Tricks
      I have been browsing the forums looking for unique mods to add to my server. I noticed Juandayz deleted a lot of his mods before leaving the community. Just curious if anyone has them all and would possibly repost them giving him full credit? I am particularly interested in his "Admin Skin" and "Debug" mods.
       
      Thanks community, here's hoping someone will step up!
  • Advertisement
  • Supporters
  • Discord

×
×
  • Create New...