Custom Debug prevents Building in Epoch

Black_Sheep

New Member
Hi Guys,

I had implemented J0k3r5 Stats Panel (http://opendayz.net/threads/j0k3r5-stats-panel-very-easy-install-stats-panel.15090/) which was working quite nicely. However, my players went on to notice that the Epoch placement keys were not responding (placing a fireplace or wall didnt work, cancelling a trade etc)

I can get it working again when I remove this part of the code from the debug script
Code:
dayz_spaceInterrupt = {
    private ["_dikCode", "_handled"];
    _dikCode = _this select 1;
    _handled = false;
 
    if (_dikCode == 0x44) then {
        if (j0k3r5_stats) then {
            j0k3r5_stats = false;
            hintSilent "";
        } else {[] spawn fnc_debug;};
    };
    _handled
};

This make it so it is on all times. I would still like it to be toggled, perhaps using the Insert key replacing the default menu. Does anyone know how to make this happen?
 
If you are on epoch I recommend modifying the existing debug monitor instead of adding a new one.
 
@Dayz_Epoch\dayz_code.pbo > actions > playerstats.sqf

You would copy it to your mission.pbo and modify it. Then change your compiles to point to it.
 
Awesome, I figured it would be in there somewhere, just didnt know what it was called. Thanks for your help, I'll see if I can make it work! :)
 
were you able to get it to work? because I have the same problem and have tried to fix it like this but can't figure out how to override the existing debug
 
Yes I did. I copied playerstats.sqf from the dayz_code.pbo into the mission, updated the compiles to point to it and put in the parts of Jokers debug that I wanted. The playerstats sqf now looks like this (I left the original content in but commented it out)
Code:
//Let Zeds know
[player,4,true,(getPosATL player)] spawn player_alertZombies;
 
//display gui (temp hint)
 
        _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";
 
        //                <img size='6' image='%10'/>
   
        hintSilent parseText format
            [
                "
                <br/>
                <t size='1'        font='Bitstream'align='center'>Server IP 103.18.206.66:2302</t><br/>
                <t size='1'        font='Bitstream'align='center'>[email protected]</t>
                <br/>
                <br/>
                <t size='0.75'        font='Bitstream'align='left'>Location:</t><t size='0.75'                        font='Bitstream'align='right'color='#FF0000'>%11</t><br/>
                <t size='0.75'        font='Bitstream'align='left'>Blood:</t><t size='0.75'                            font='Bitstream'align='right'color='#FF0000'>%1</t><br/>
                <t size='0.75'        font='Bitstream'align='left'>Humanity:</t><t size='0.75'                        font='Bitstream'align='right'color='#FF0000'>%2</t><br/>
                <t size='0.75'        font='Bitstream'align='left'>Headshots:</t><t size='0.75'                        font='Bitstream'align='right'color='#FF0000'>%6</t><br/>
                <t size='0.75'        font='Bitstream'align='left'>Heroes Killed:</t><t size='0.75'                    font='Bitstream'align='right'color='#FF0000'>%3</t><br/>
                <t size='0.75'        font='Bitstream'align='left'>Bandits Killed:</t><t size='0.75'                    font='Bitstream'align='right'color='#FF0000'>%4</t><br/>
                <t size='0.75'        font='Bitstream'align='left'>Zombies Killed:</t><t size='0.75'                    font='Bitstream'align='right'color='#FF0000'>%5</t><br/>
                <t size='0.75'        font='Bitstream'align='left'>Zeds (alive/total): </t><t size='0.75'            font='Bitstream'align='right'color='#FF0000'>%13/%12</t><br/>
                <t size='0.75'        font='Bitstream'align='left'>FPS: </t><t size='0.75'                            font='Bitstream'align='right'color='#FF0000'>%14</t><br/>
                <t size='0.75'        font='Bitstream'align='left'>Survived:</t><t size='0.75'                        font='Bitstream'align='right'color='#FF0000'>%7 Dayz</t>
                <br/>
                <br/>
                <t size='1'        font='Bitstream'align='center'color='#FFFF00'>Restart in %8 minutes!</t>
                <br/>
                <img size='6' image='%9'/>
                <br/>
                <t size='1'        font='Bitstream' align='center'>Desolation Alpha</t>
                <br/>
           
           
           
                ",
                r_player_blood,                                                //1
                round _humanity,                                            //2
                _killsH,                                                    //3
                _killsB,                                                    //4
                _kills,                                                        //5
                _headShots,                                                    //6
                (dayz_Survived),                                            //7
                (180-(round(serverTime/60))),                                //8 change the 180 to suit your server mins for restarts
                _pic,                                                        //9
                _logo,                                                        //10
                _textCity,                                                    //11
                count entities "zZombie_Base",                                //12
                {alive _x} count entities "zZombie_Base",                    //13
                diag_fps                                                    //14
 
            ];
 
 
/*hintSilent parseText format ["
    <t size='1.20' font='Bitstream' color='#5882FA'>%1</t><br/><br/>
    <t size='1.20' font='Bitstream' color='#5882FA'>Survived %7 Days</t><br/><br/>
    <t size='1.15' font='Bitstream' align='left'>Zombies Killed: </t><t size='1.15' font='Bitstream' align='right'>%2</t><br/>
    <t size='1.15' font='Bitstream' align='left'>Headshots: </t><t size='1.15' font='Bitstream' align='right'>%3</t><br/>
    <t size='1.15' font='Bitstream' align='left'>Murders: </t><t size='1.15' font='Bitstream' align='right'>%4</t><br/>
    <t size='1.15' font='Bitstream' align='left'>Bandits Killed: </t><t size='1.15' font='Bitstream' align='right'>%5</t><br/><br/>
    <t size='1.15' font='Bitstream' align='left'>Humanity: </t><t size='1.15' font='Bitstream' align='right'>%6</t><br/><br/>",
    (name player),
    (player getVariable['zombieKills', 0]),
    (player getVariable['headShots', 0]),
    (player getVariable['humanKills', 0]),
    (player getVariable['banditKills', 0]),
    (player getVariable['humanity', 0]),
    (dayz_Survived)
];
*/
/*
player createDiarySubject ["MyDiary","My Diary"];
player createDiaryRecord ["MyDiary",["Stats", "Zombies Killed: <execute expression='player getVariable['zombieKills', 0]'</execute>"]];
player createDiaryRecord ["MyDiary",["Stats", "Headshots: <execute expression='player getVariable['headShots', 0]'</execute>"]];
player createDiaryRecord ["MyDiary",["Stats", "Murders: <execute expression='player getVariable['humanKills', 0]'</execute>"]];
player createDiaryRecord ["MyDiary",["Stats", "Bandits Killed: <execute expression='player getVariable['banditKills', 0]'</execute>"]];
player createDiaryRecord ["MyDiary",["Stats", "Humanity: <execute expression='player getVariable['humanity', 0]'</execute>"]];
*/
 
thanks for posting this I am currently trying to get it to work server side but if I can't I will do it thought the mission like this thanks for the help again :)
 
You need to add a custom compiles.sqf from your @dayz_epoch files on your client to your mission.pbo. You would then change your init.sqf to point to it, and then change the line in your compiles to point to the new playerstats.sqf that you copied into your mission.pbo from your clientside files.

There is no editing of clientside files involved...
 
You need to add a custom compiles.sqf from your @dayz_epoch files on your client to your mission.pbo. You would then change your init.sqf to point to it, and then change the line in your compiles to point to the new playerstats.sqf that you copied into your mission.pbo from your clientside files.

There is no editing of clientside files involved...

thank you so much got it to work now :)
 
I don't seem to have a line inside my compiles.sqf that points to playerstats.sqf. Has this been changed?
 
For Epoch 1.0.3+ you need to now point your compiles.sqf to a custom dayz_spaceInterrupt.sqf, and then change the two lines that point to playerstats.sqf in there to point to your custom one.
 
Sorry, been out of town. Just tried it and worked perfectly. Thanks for the info as to where that file was.
 
I tried this on my buddies epoch server... made it extremely laggy, it was unplayable. Not sure what went wrong.
 
Back
Top