Diceman Posted December 16, 2014 Report Share Posted December 16, 2014 seen a few servers running this. has a bar down the bottom of the screen with fps, players online etc, anyone know how to get this or can share how its done? Link to comment Share on other sites More sharing options...
RC_Robio Posted December 16, 2014 Report Share Posted December 16, 2014 Link to comment Share on other sites More sharing options...
Darth_Rogue Posted December 16, 2014 Report Share Posted December 16, 2014 "You don't have permission to view this topic" ??? Link to comment Share on other sites More sharing options...
Diceman Posted December 16, 2014 Author Report Share Posted December 16, 2014 Yep same thing. I have it working but keep getting kicked for script restrictions Link to comment Share on other sites More sharing options...
RC_Robio Posted December 16, 2014 Report Share Posted December 16, 2014 Oops, sorry guys. That topic hasn't been approved yet. Link to comment Share on other sites More sharing options...
Guest Posted December 16, 2014 Report Share Posted December 16, 2014 I found this one wandering the web and confirmed working on Arma3 So create a folder "scripts" in your mpmisssions. create "statusBar.hpp" in this folder with the following content: #define ST_RIGHT 0x01 class statusBar { idd = -1; onLoad = "uiNamespace setVariable ['statusBar', _this select 0]"; onUnload = "uiNamespace setVariable ['statusBar', objNull]"; onDestroy = "uiNamespace setVariable ['statusBar', objNull]"; fadein = 0; fadeout = 0; duration = 10e10; movingEnable = 0; controlsBackground[] = {}; objects[] = {}; class controls { class statusBarText { idc = 1000; x = safezoneX + safezoneW - 1.4; y = safezoneY + safezoneH - 0.04; w = 1; h = 0.04; shadow = 2; colorBackground[] = { 1, 0.3, 0, 0.0 }; font = "PuristaSemibold"; size = 0.03; type = 13; style = 1; text="Cargando..."; class Attributes { align="left"; color = "#FFFFFF"; }; }; }; }; Create "statusBar.sqf" in this folder with the following content and edit the line _statusText = "ADD YOUR SERVER TITLE Epoch"; to your liking: waitUntil {!(isNull (findDisplay 46))}; disableSerialization; _rscLayer = "statusBar" call BIS_fnc_rscLayer; _rscLayer cutRsc["statusBar","PLAIN"]; systemChat format["Epoch MoD", _rscLayer]; [] spawn { sleep 5; _statusText = "Welcome"; _counter = 180; _timeSinceLastUpdate = 0; while {true} do { sleep 1; _counter = _counter - 1; _statusText = "ADD YOUR SERVER TITLE Epoch"; ((uiNamespace getVariable "statusBar")displayCtrl 1000)ctrlSetText format["%3 | FPS: %1 | Players Online : %2 ", round diag_fps, count playableUnits, _statusText, _counter]; }; }; add this line to your init.sqf: [] execVM "scripts\statusBar.sqf"; Add this line to your description.ext (if the class RscTitles exists, only add the #include line): class RscTitles { #include "scripts\statusBar.hpp" }; (OPTIONAL) I think BattleEye will kick you with this script running so you have to edit your scripts.txt (I thought line 21) I take no credits I'm just sharing, I have no Idea from whom this from. Link to comment Share on other sites More sharing options...
uniflare Posted December 16, 2014 Report Share Posted December 16, 2014 Nice! Link to comment Share on other sites More sharing options...
ispan55 Posted December 16, 2014 Report Share Posted December 16, 2014 "FPS: 55 | Next Restart: 155 Minutes | Players Online: 30 | Krypto: 5000 " an example of how it looks statusBar.hpp #define ST_RIGHT 0x01 class osefStatusBar { idd = -1; onLoad = "uiNamespace setVariable ['osefStatusBar', _this select 0]"; onUnload = "uiNamespace setVariable ['osefStatusBar', objNull]"; onDestroy = "uiNamespace setVariable ['osefStatusBar', objNull]"; fadein = 0; fadeout = 0; duration = 10e10; movingEnable = 0; controlsBackground[] = {}; objects[] = {}; class controls { class statusBarText { idc = 1000; x = safezoneX + safezoneW - 1.5; y = safezoneY + safezoneH - 0.04; //H w = 1; h = 0.04; shadow = 2; colorBackground[] = { 1, 0.3, 0, 0.0 }; // uncomment and increase 4th number to have a background font = "PuristaSemibold"; size = 0.04; type = 13; style = 1; text="Loading server info..."; class Attributes { align="left"; color = "#00FF09"; //#FF8700 }; }; }; }; statusBar.sqf waitUntil {!(isNull (findDisplay 46))}; disableSerialization; /* File: fn_statusBar.sqf Author: Some French Guy named Osef I presume, given the variable on the status bar Edited by: [midgetgrimm] Description: Puts a small bar in the bottom right of screen to display in-game information */ _rscLayer = "osefStatusBar" call BIS_fnc_rscLayer; _rscLayer cutRsc["osefStatusBar","PLAIN"]; systemChat format["[[GLR]] Loading info...", _rscLayer]; [] spawn { sleep 5; _counter = 180; _timeSinceLastUpdate = 0; while {true} do { sleep 1; _counter = _counter - 1; ((uiNamespace getVariable "osefStatusBar")displayCtrl 1000)ctrlSetText format["FPS: %1 | Next Restart: %2 Minutes | Players Online: %3 | Krypto: $%4 ", round diag_fps, (240-(round(serverTime/60))), (count playableUnits), EPOCH_playerCrypto]; }; }; Lord1385 1 Link to comment Share on other sites More sharing options...
Lord1385 Posted December 16, 2014 Report Share Posted December 16, 2014 Nice Thanks... Link to comment Share on other sites More sharing options...
Psygomin Posted December 16, 2014 Report Share Posted December 16, 2014 I got kicked immediately after putting this in. I belive it was script restriction 17. I'll stab at it again after work Link to comment Share on other sites More sharing options...
dzrealkiller Posted December 16, 2014 Report Share Posted December 16, 2014 Anybody know the filters to add for this? Link to comment Share on other sites More sharing options...
Coco-Nuts Posted December 16, 2014 Report Share Posted December 16, 2014 Anybody know the filters to add for this? If you use the osefStatusBar then edit the scripts.txt file At line 18 add this : !="round diag_fps" !="(240-(round(serverTime/60)))" !="(count playableUnits)" !="EPOCH_playerCrypto];" ispan55 1 Link to comment Share on other sites More sharing options...
ThelMightylThor Posted December 17, 2014 Report Share Posted December 17, 2014 Oops, sorry guys. That topic hasn't been approved yet. lol that is actually my topic... but swerrie shows how to install it just fine. There are a lot of great variables you can use with it too, including any of the variables from the debug monitor. Link to comment Share on other sites More sharing options...
Snakeyes Posted December 30, 2014 Report Share Posted December 30, 2014 I installed the Status Bar on my server this morning. I only see the FPS and Players Online. The Next Restart and Krypto are missing. Any ideas why? I copied and pasted verbatim. NVM. Got it ... Thanks for the status bar. :) Link to comment Share on other sites More sharing options...
ispan55 Posted December 30, 2014 Report Share Posted December 30, 2014 If you use the osefStatusBar then edit the scripts.txt file At line 18 add this : !="round diag_fps" !="(240-(round(serverTime/60)))" !="(count playableUnits)" !="EPOCH_playerCrypto];" Thanks forgot about the main :D Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now