Jump to content

RisingDead

Member
  • Posts

    5
  • Joined

  • Last visited

Posts posted by RisingDead

  1. Yeah, modify debug.sqf any way you like. There are some server restart timer examples on previous pages.

     

    adg i was able to add a restart timer but it has broken the picture for some reason. Whenever someone logs in it says "Picture not found".

     

    Could you advise? my debug.sqf is as follows and the picture does not work  with the restart timer addition. It works perfectly without it

    while {debugMonitor} do
    {
     //Modify your debug starting here
    _pic = (gettext (configFile >> 'CfgVehicles' >> (typeof vehicle player) >> 'picture'));
            if (player == vehicle player) then
            {
                _pic = (gettext (configFile >> 'cfgWeapons' >> (currentWeapon player) >> 'picture'));
            }
                else
            {
                _pic = (gettext (configFile >> 'CfgVehicles' >> (typeof vehicle player) >> 'picture'));
            };
    hintSilent parseText format ["
    <t size='1' font='Bitstream' align='center' color='#D60000'>www.Rising-Dead.enjin.com</t><br/>
    <img size='4' image='%9'/><br/>
            <t size='1' font='Bitstream' align='left'>Zombies Killed: </t><t color='#669933' size='1.2' font='Bitstream' align='right'>%2</t><br/>
            <t color='#ffffff' size='1' font='Bitstream' align='left'>Survivors Killed: </t><t color='#669933' size='1' font='Bitstream' align='right'>%4</t><br/>
            <t color='#ffffff' size='1' font='Bitstream' align='left'>Bandits Killed: </t><t color='#669933' size='1' font='Bitstream' align='right'>%5</t><br/>
            <t color='#ffffff' size='1' font='Bitstream' align='left'>FPS: </t><t color='#669933' size='1' font='Bitstream' align='right'>%8</t><br/>
            <t color='#ffffff' size='1' font='Bitstream' align='left'>Humanity: </t><t color='#5882FA' size='1' font='Bitstream' align='right'>%7</t><br/>
            <t color='#ffffff' size='1' font='Bitstream' align='left'>Blood: </t><t color='#D60000' size='1' font='Bitstream' align='right'>%6</t><br/>
    <t size='1.15' font='Bitstream'align='center' color='#5882FA'>Restart in %9 Minutes</t><br/> <----Restart timer addition
    <t color='#D60000' size='1' font='Bitstream' align='center'>TS: 85.236.100.125:10037 </t><br/>
    <t size='1' font='Bitstream' align='center' color='#669933'>Press INSERT to toggle</t>
    ",
            (name player),
            (player getVariable['zombieKills', 0]),
            (player getVariable['headShots', 0]),
            (player getVariable['humanKills', 0]),
            (player getVariable['banditKills', 0]),
            (player getVariable['USEC_BloodQty', r_player_blood]),
            (player getVariable['humanity', 0]),
            (round diag_fps),
    (239-(round(serverTime/60))), <----Restart timer addition
            _pic];
    //Don't modify below this line
    sleep 1;
    };
    
    

    EDIT: I have realised the error, I should have changed <img size='4' image='%9'/><br/> to <img size='4' image='%10'/><br/> after adding a new variable

     

     

    Sorry about this

  2. only way to fix this easily: disable your antihacks (that is the only reason it should not work correctly, if you don't use any AH check the debug monitor again).

     

     

    Thanks for the reply Axe Cop.

     

    I am using AH and dont want to sacrifice them in order to display online players. So i will simply remove the online players bit   :P

     

    Thanks again 

  3. Hi there,

     

    I was just wondering if anyone can help with how to display/fetch the servers player count?

     

    I am fairly certain that to fetch this value I need to use:

    (count playableUnits)
    

    However it isnt working in my debug monitor.

     

    The code for this is as follows:

    	hintSilent parseText format ["
    	<t size='1.25' font='Bitstream'align='center' color='#D60000'>Example Server Name</t><br/>
    	<t size='1.15' font='Bitstream'align='center' color='#D60000'>www.websiteExample.com</t><br/>
    	<t size='1.15' font='Bitstream'align='center' color='#5882FA'>Survived %2 Days</t><br/>
    	<t size='0.95' font='Bitstream' align='left' color='#FFBF00'>Players Online: </t><t size='0.95 'font='Bitstream' align='right'>%3</t><br/> <-----HERE
    	<t size='0.95' font='Bitstream' align='left' color='#FFBF00'>Murders: </t><t size='0.95' font='Bitstream' align='right'>%4</t><br/>
    	<t size='0.95' font='Bitstream' align='left' color='#FFBF00'>Bandits Killed: </t><t size='0.95' font='Bitstream' align='right'>%5</t><br/>
    	<t size='0.95' font='Bitstream' align='left' color='#FFBF00'>Zombies Killed: </t><t size='0.95' font='Bitstream' align='right'>%6</t><br/>
    	<t size='0.95' font='Bitstream' align='left' color='#FFBF00'>Humanity: </t><t size='0.95' font='Bitstream' align='right'>%7</t><br/>
        <t size='0.95' font='Bitstream' align='left' color='#FFBF00'>Blood: </t><t size='0.95' font='Bitstream' align='right'>%8</t><br/>
        <t size='0.95' font='Bitstream' align='left' color='#FFBF00'>FPS: </t><t size='0.95' font='Bitstream' align='right'>%9</t><br/>
    	<t size='1.15' font='Bitstream'align='center' color='#5882FA'>Restart in %10 Minutes</t><br/>",
    
    	dayz_playerName,(dayz_Survived),(count playableUnits),_killsH,_killsB,_kills,round _humanity,r_player_blood,(round diag_fps),(round(180-(serverTime) / 60))
    	];
    

     

    This is then the executing code in my init.sqf located at around line 60 (not at the end of the file).

    if (!isDedicated) then {
    [] execVM "scripts\custom_monitor.sqf";
    

    Here (count playableUnits) should be displaying server players. If I am correct this should be being fetched from my playerstats.sqf? However for some reason the vaule is ALWAYS 1 for any normal player.

     

    For admins however it works perfectly and changes as it should.

     

    Can anyone explain what Is wrong here?

     

    Everything else in the monitor works perfectly 

  4. Hi there,

     

    Not sure if this is the correct place to ask this question but saves making a new thread.

     

    I am using THIS debug monitor and its really nice and almost works perfectly.

     

    The only issue is it does not display the correct player count. It is ALWAYS at 1, even if the server has more than 1 player.

     

    For some reason though it works perfectly for the server owner (with UID in super.sqf).

     

    Any ideas on a fix? 

×
×
  • Create New...