Jump to content
  • 0

Debug Issue


Bags2247

Question

Hey all, just updated my vilayer hosted EPOCH server to 1.0.2.2 last night... Everything looks great btw...but my debug that was working, now isn't... well parts of it isn't

dayz_spaceInterrupt = {
    private ["_dikCode", "_handled"];
    _dikCode = _this select 1;
    _handled = false;
 
    if (_dikCode == 0x9D) then {
        if (debugMonitor) then {
            debugMonitor = false;
            hintSilent "";
        } else {[] spawn fnc_debug;};
    };
    _handled
};
 
fnc_debug = {
    debugMonitor = true;
    while {debugMonitor} do
    {
        _humanity =        player getVariable["humanity",0];
        _headShots =    player getVariable["headShots",0];
        hintSilent parseText format ["
        <t size='1.25' font='Bitstream'align='center' color='#D60000'>Vanilla DayZ Epoch</t><br/>
	    <t size='1.15' font='Bitstream'align='center' color='#D60000'>[email protected]</t><br/>
	    <t size='1' font='Bitstream' align='left' color='#EE2C2C'>Restart:</t><t size='1' font='Bitstream'align='right'color='#EE2C2C'>%7 min</t><br/>
        <t size='1'font='Bitstream'align='left'>Survivors left:</t><t size='1'font='Bitstream'align='right'>%1 Days</t><br/>
        <t size='1'font='Bitstream'align='left'>Blood:</t><t size='1'font='Bitstream'align='right'>%2</t><br/>
        <t size='1'font='Bitstream'align='left'>Humanity:</t><t size='1'font='Bitstream'align='right'>%3</t><br/>
        <t size='1'font='Bitstream'align='left'>Zombies (alive/total):</t><t size='0.95'font='Bitstream'align='right'>%5/%4</t><br/>
        <t size='1'font='Bitstream'align='left'>FPS:</t><t size='1'font='Bitstream'align='right'>%6</t><br/>
   
        ",(dayz_Survived),r_player_blood,round _humanity,(count entities "zZombie_Base"),({alive _x} count entities "zZombie_Base"),(round diag_fps),(360-(round(serverTime/60)))];
    sleep 1;
    };
};
 
[] spawn fnc_debug;

What's wrong here... The zombies alive/total and FPS and time to restart aren't working.....

 

I was tired last night and couldn't see it...I modified the above debug from Matt L's version here

dayz_spaceInterrupt = {
    private ["_dikCode", "_handled"];
    _dikCode = _this select 1;
    _handled = false;
 
    if (_dikCode == 0x9D) then {
        if (debugMonitor) then {
            debugMonitor = false;
            hintSilent "";
        } else {[] spawn fnc_debug;};
    };
    _handled
};
 
fnc_debug = {
    debugMonitor = true;
    while {debugMonitor} do
    {
        _humanity =        player getVariable["humanity",0];
        _headShots =    player getVariable["headShots",0];
        hintSilent parseText format ["
        <t size='1' font='Bitstream' align='left' color='#EE2C2C'>Restart:</t><t size='1' font='Bitstream'align='right'color='#EE2C2C'>%7 min</t><br/>
        <t size='1'font='Bitstream'align='left'>Survived:</t><t size='1'font='Bitstream'align='right'>%1 Days</t><br/>
        <t size='1'font='Bitstream'align='left'>Blood:</t><t size='1'font='Bitstream'align='right'>%2</t><br/>
        <t size='1'font='Bitstream'align='left'>Humanity:</t><t size='1'font='Bitstream'align='right'>%3</t><br/>
        <t size='1'font='Bitstream'align='left'>Zombies (alive/total):</t><t size='0.95'font='Bitstream'align='right'>%5/%4</t><br/>
        <t size='1'font='Bitstream'align='left'>FPS:</t><t size='1'font='Bitstream'align='right'>%6</t><br/>
 
        ",(dayz_Survived),r_player_blood,round _humanity,(count entities "zZombie_Base"),({alive _x} count entities "zZombie_Base"),(round diag_fps),(180-(round(serverTime/60)))];
    sleep 1;
    };
};
 
[] spawn fnc_debug;

just to add my email there so if issues arise then I could deal with if I wasn't at home at time...

 

Any suggestions would be cool tbh...

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...