Jump to content

[RELEASE] Status Bar With Icons & Server FPS display v1.36


Darth_Rogue

Recommended Posts

Based on this Status Bar, I made a complete rewrite. (without a difference between PlayerBar / AdminBar, because it is not needed for us).

- Completely removed external config file

- Only 1 File for all

- Config section on the top of the Script-File

- Blinking Icons, if in a dangerous value

- Easy changeable Status Bar Content

- Toggleable between 3 Statusbar sizes (right shift key / configurable)

- 0-No Status Bar

- 1 Full Status Bar

- 2 Half Status Bar

- 3 Small Status Bar

 

I made it only for our Server.

But I want to share it now, if someone also want it.

Download: https://github.com/Ignatz-HeMan/Ignatz_Statusbar

Link to comment
Share on other sites

  • 4 weeks later...

I think in EpochAH there is no setting to disable DisplayEH revert.

So you have to add this keydown EH directly into the Epoch Code.

Remove from my Script:

Spoiler

    if (_UseSwitchKey) then {
        _display displayaddeventhandler ['keydown',{
            if ((_this select 1) == Ignatz_StatusBarSwitchKey) then {
                Ignatz_StatusbarSelected = switch Ignatz_StatusbarSelected do {
                    case 0: {1};
                    case 1: {2};
                    case 2:    {3};
                    case 3: {0};
                };
            };
        }];

    }
    else {
        Ignatz_StatusBarSwitchKey = nil;
    };
 

And add in EPOCH_KeyDown.sqf:

Spoiler

......

if (_dikCode in (actionKeys "NightVision")) then {
    if (EPOCH_playerEnergy == 0) then {
        ["Night Vision Goggles: Need Energy", 5] call Epoch_message;
        _handled = true;
    };
};

if (!isnil 'Ignatz_StatusBarSwitchKey') then {
    if (_dikCode == Ignatz_StatusBarSwitchKey) then {
        Ignatz_StatusbarSelected = switch Ignatz_StatusbarSelected do {
            case 0: {1};
            case 1: {2};
            case 2:    {3};
            case 3: {0};
        };
    };
};

_handled
 

 

Link to comment
Share on other sites

4. Open scripts.txt BE filter add make the following additions

~line 20 7 playableunits !=""pto: %3 | Players: %2 | FPS: %1 ", round diag_fps, count playableUnits, EPOCH_playerCrypto, mapGridPosition player];"

~line 23 7 exec !"addons\status_bar\init_statusBar.sqf"

 

I do not have a scripts.txt anywhere that I see to add those scripts. Can someone help. 

Thank you

Link to comment
Share on other sites

  • 2 months later...

oooh heres me having trouble with another mod!

So, tried the opening posts link and have had nothing but trouble (Battleye!! I'm starting to hate it)

So, have had a look at your repack there @He-Man which sounds great as I've no real need for the seperate Admin bar either and can see you've already made the allplayer changes etc. but where do I install it?  

Do I add the contents of your zip into the epoch.altis.pbo with pbomanager or under the actual server files in @epoch or @epochhive ?  (init.sqf goes inside the pbo doesn't it?)

Sorry to be a bother again

Link to comment
Share on other sites

Gave it a shot, still coming up with script restriction #48  

script.log is showing the following, I just can't decode it. 
 

Spoiler

0.03.2017 17:07:07: Pants (109.180.54.12:2304) c37756691a0d5b07704a9f4bd319e831 - #48 "= finddisplay 46;
if (_UseSwitchKey) then {
_display displayaddeventhandler ['keydown',{
if ((_this select 1) == Ignatz_StatusBa"

Sorry I'm so damn useless here, some of it is starting to sink in though

Link to comment
Share on other sites

Try in scripts.txt in line "7 displayAddEventHandler"

!="if (_UseSwitchKey) then {\n_display displayAddEventHandler ['KeyDown',{\nif ((_this select 1) == Ignatz_StatusBa"
or
!="if (_UseSwitchKey) then {\n_display displayAddEventHandler [\'KeyDown\',{\nif ((_this select 1) == Ignatz_StatusBa"

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...