Liqu1dShadow Posted January 2, 2015 Report Share Posted January 2, 2015 I mean for this exeption 7 playableunits !"{getplayeruid _x == _ownerVar} count playableunits" !="lbSetData[21500, _index, netId _x];\n} forEach(playableUnits - [player]); !="FPS: %1 | PLAYERS: %2 | DAMAGE: %3 | KRYPTO: %4 | HUNGER: %5 | THIRST: %6 | SOILED: %7 | GRIDREF: %8", round diag_fps, count playableUnits, damage player, EPOCH_playerCrypto, EPOCH_playerHunger, EPOCH_playerThirst, EPOCH_playerSoiled, mapGridPosition player, _counter"" If I add in the restart timer then this BE exception will be incorrect? Link to comment Share on other sites More sharing options...
hoxor Posted January 2, 2015 Report Share Posted January 2, 2015 Try this : 7 playableunits !"{getplayeruid _x == _ownerVar} count playableunits" !="lbSetData[21500, _index, netId _x];\n} forEach(playableUnits - [player]);" !="round diag_fps" !="(240-(round(serverTime/60)))" !="(count playableUnits)" !="EPOCH_playerCrypto];" PS : Change the variable with your variable you use. (Its work for me with this) Link to comment Share on other sites More sharing options...
Liqu1dShadow Posted January 2, 2015 Report Share Posted January 2, 2015 that looks very different from what I have but ill give it a go, Ok here is what my players are asking for as they really like this :) Damage, Hunger, Thirst, Temp, Blood Pressure, Wet, Bleeding, Krypto, Restart Time, Link to comment Share on other sites More sharing options...
hoxor Posted January 2, 2015 Report Share Posted January 2, 2015 Can you try this ? 7 playableunits !"{getplayeruid _x == _ownerVar} count playableunits" !="lbSetData[21500, _index, netId _x];\n} forEach(playableUnits - [player]);" !="(damage player)" !="EPOCH_playerHunger" !="EPOCH_playerThirst" !="EPOCH_playerTemp" !="EPOCH_playerBloodP" !="EPOCH_playerWet" !="(isBleeding player)" !="EPOCH_playerCrypto" !="(240-(round(serverTime/60)));" Liqu1dShadow 1 Link to comment Share on other sites More sharing options...
Liqu1dShadow Posted January 2, 2015 Report Share Posted January 2, 2015 Can you try this ? 7 playableunits !"{getplayeruid _x == _ownerVar} count playableunits" !="lbSetData[21500, _index, netId _x];\n} forEach(playableUnits - [player]);" !="(damage player)" !="EPOCH_playerHunger" !="EPOCH_playerThirst" !="EPOCH_playerTemp" !="EPOCH_playerBloodP" !="EPOCH_playerWet" !="(isBleeding player)" !="EPOCH_playerCrypto" !="(240-(round(serverTime/60)));" that's the BE filter part? if so I need the actual script part to tie together and ill implement this :) Link to comment Share on other sites More sharing options...
Darth_Rogue Posted January 2, 2015 Report Share Posted January 2, 2015 that looks very different from what I have but ill give it a go, Ok here is what my players are asking for as they really like this :) Damage, Hunger, Thirst, Temp, Blood Pressure, Wet, Bleeding, Krypto, Restart Time, fn_statusBar.sqf: waitUntil {!(isNull (findDisplay 46))}; disableSerialization; /* File: fn_statusBar.sqf Author: Osef (Ported to EpochMod by piX) Edited by: [piX] Description: Puts a small bar in the bottom centre of screen to display in-game information PLEASE KEEP CREDITS - THEY ARE DUE TO THOSE WHO PUT IN THE EFFORT! */ _rscLayer = "osefStatusBar" call BIS_fnc_rscLayer; _rscLayer cutRsc["osefStatusBar","PLAIN"]; systemChat format["statusBar Loading player info...", _rscLayer]; [] spawn { sleep 5; _counter = 180; _timeSinceLastUpdate = 0; while {true} do { sleep 1; _counter = _counter - 1; _time = (round(240-(serverTime)/60)); _hours = (floor(_time/60)); _minutes = (_time - (_hours * 60)); switch(_minutes) do { case 9: {_minutes = "09"}; case 8: {_minutes = "08"}; case 7: {_minutes = "07"}; case 6: {_minutes = "06"}; case 5: {_minutes = "05"}; case 4: {_minutes = "04"}; case 3: {_minutes = "03"}; case 2: {_minutes = "02"}; case 1: {_minutes = "01"}; case 0: {_minutes = "00"}; }; ((uiNamespace getVariable "osefStatusBar")displayCtrl 1000)ctrlSetText format["DAMAGE: %1 | KRYPTO: %2 | HUNGER: %3 | THIRST: %4 | BP: %5 | BLEEDING: %6 | TEMP: %7 | WET: %8 | RESTART IN: %9:%10", damage player, EPOCH_playerCrypto, EPOCH_playerHunger, EPOCH_playerThirst, EPOCH_playerBloodP, isBleeding_player, EPOCH_playerTemp, EPOCH_playerWet, _hours, _minutes, _counter]; }; }; 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 - 2.25; y = safezoneY + safezoneH - 0.04; w = 1.55; 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.03; type = 13; style = 2; text="Loading statusBar..."; class Attributes { align="right"; //color = "#b20000"; red color = "#FFFFFF"; //white }; }; }; }; You may have to play with the x and w values in statusBar.hpp to get enough room to display all those items on one line and to align it in the center of the screen. Other than that, that should do it. Enjoy! :) Link to comment Share on other sites More sharing options...
Crankk123 Posted January 2, 2015 Report Share Posted January 2, 2015 Hallo my sript log gets spamt with this 02.01.2015 18:59:36: Jack Bauer (192.168.178.52:2304) - #18 " THIRST: %6 | RESTART IN: %8:%9", round diag_fps, count playableUnits, damage player, EPOCH_playerCrypto, EPOCH_playerHunger, E" 02.01.2015 18:59:44: Jack Bauer (192.168.178.52:2304) - #18 " THIRST: %6 | RESTART IN: %8:%9", round diag_fps, count playableUnits, damage player, EPOCH_playerCrypto, EPOCH_playerHunger, E" 02.01.2015 18:59:45: Jack Bauer (192.168.178.52:2304) - #18 " THIRST: %6 | RESTART IN: %8:%9", round diag_fps, count playableUnits, damage player, EPOCH_playerCrypto, EPOCH_playerHunger, E" 02.01.2015 18:59:46: Jack Bauer (192.168.178.52:2304) - #18 " THIRST: %6 | RESTART IN: %8:%9", round diag_fps, count playableUnits, damage player, EPOCH_playerCrypto, EPOCH_playerHunger, E" 02.01.2015 18:59:47: Jack Bauer (192.168.178.52:2304) - #18 " THIRST: %6 | RESTART IN: %8:%9", round diag_fps, count playableUnits, damage player, EPOCH_playerCrypto, EPOCH_playerHunger, E" 02.01.2015 18:59:48: Jack Bauer (192.168.178.52:2304) - #18 " THIRST: %6 | RESTART IN: %8:%9", round diag_fps, count playableUnits, damage player, EPOCH_playerCrypto, EPOCH_playerHunger, E" 02.01.2015 18:59:49: Jack Bauer (192.168.178.52:2304) - #18 " THIRST: %6 | RESTART IN: %8:%9", round diag_fps, count playableUnits, damage player, EPOCH_playerCrypto, EPOCH_playerHunger, E" 02.01.2015 18:59:50: Jack Bauer (192.168.178.52:2304) - #18 " THIRST: %6 | RESTART IN: %8:%9", round diag_fps, count playableUnits, damage player, EPOCH_playerCrypto, EPOCH_playerHunger, E" 02.01.2015 18:59:51: Jack Bauer (192.168.178.52:2304) - #18 " THIRST: %6 | RESTART IN: %8:%9", round diag_fps, count playableUnits, damage player, EPOCH_playerCrypto, EPOCH_playerHunger, E" 02.01.2015 18:59:52: Jack Bauer (192.168.178.52:2304) - #18 " THIRST: %6 | RESTART IN: %8:%9", round diag_fps, count playableUnits, damage player, EPOCH_playerCrypto, EPOCH_playerHunger, E" 02.01.2015 18:59:53: Jack Bauer (192.168.178.52:2304) - #18 " THIRST: %6 | RESTART IN: %8:%9", round diag_fps, count playableUnits, damage player, EPOCH_playerCrypto, EPOCH_playerHunger, E" 02.01.2015 18:59:54: Jack Bauer (192.168.178.52:2304) - #18 " THIRST: %6 | RESTART IN: %8:%9", round diag_fps, count playableUnits, damage player, EPOCH_playerCrypto, EPOCH_playerHunger, E" 02.01.2015 18:59:55: Jack Bauer (192.168.178.52:2304) - #18 " THIRST: %6 | RESTART IN: %8:%9", round diag_fps, count playableUnits, damage player, EPOCH_playerCrypto, EPOCH_playerHunger, E" 02.01.2015 19:00:07: Jack Bauer (192.168.178.52:2304) - #18 " THIRST: %6 | RESTART IN: %8:%9", round diag_fps, count playableUnits, damage player, EPOCH_playerCrypto, EPOCH_playerHunger, E" 02.01.2015 19:00:10: Jack Bauer (192.168.178.52:2304) - #18 " THIRST: %6 | RESTART IN: %8:%9", round diag_fps, count playableUnits, damage player, EPOCH_playerCrypto, EPOCH_playerHunger, E" 02.01.2015 19:00:11: Jack Bauer (192.168.178.52:2304) - #18 " THIRST: %6 | RESTART IN: %8:%9", round diag_fps, count playableUnits, damage player, EPOCH_playerCrypto, EPOCH_playerHunger, E" 02.01.2015 19:00:12: Jack Bauer (192.168.178.52:2304) - #18 " THIRST: %6 | RESTART IN: %8:%9", round diag_fps, count playableUnits, damage player, EPOCH_playerCrypto, EPOCH_playerHunger, E" 02.01.2015 19:00:13: Jack Bauer (192.168.178.52:2304) - #18 " THIRST: %6 | RESTART IN: %8:%9", round diag_fps, count playableUnits, damage player, EPOCH_playerCrypto, EPOCH_playerHunger, E" 02.01.2015 19:00:20: Jack Bauer (192.168.178.52:2304) - #18 " THIRST: %6 | RESTART IN: %8:%9", round diag_fps, count playableUnits, damage player, EPOCH_playerCrypto, EPOCH_playerHunger, E" 02.01.2015 19:00:46: Jack Bauer (192.168.178.52:2304) - #18 " THIRST: %6 | RESTART IN: %8:%9", round diag_fps, count playableUnits, damage player, EPOCH_playerCrypto, EPOCH_playerHunger, E" i have tryt to add this line at 18 in BE Filter but nothing happens i got not kicked but ist spams the script.log Link to comment Share on other sites More sharing options...
piyrez Posted January 2, 2015 Report Share Posted January 2, 2015 Looks like when a player presses "~" they lose their StatusBar and it does not return until they relog. Link to comment Share on other sites More sharing options...
Crankk123 Posted January 3, 2015 Report Share Posted January 3, 2015 how can i fix this? Link to comment Share on other sites More sharing options...
Darth_Rogue Posted January 3, 2015 Report Share Posted January 3, 2015 how can i fix this? Add this to the end of line 21 of scripts.txt: !="execVM \"\MPMissions\epoch.altis\scripts\fn_statusBar.sqf\"" Link to comment Share on other sites More sharing options...
Crankk123 Posted January 3, 2015 Report Share Posted January 3, 2015 i have added this line but the same thing happend Link to comment Share on other sites More sharing options...
Tricks Posted January 3, 2015 Report Share Posted January 3, 2015 piX, great lil script thank you and an even better profile pic! ;) piX 1 Link to comment Share on other sites More sharing options...
Liqu1dShadow Posted January 3, 2015 Report Share Posted January 3, 2015 piX, great lil script thank you and an even better profile pic! ;) I think the pic is fake, Reverse Image Search is your friend here https://www.google.com/search?tbs=sbi:AMhZZisBsYi7L78Jy2v-IRRlDYGCmCfb46pGBsc9FcXnCTayx3TYH0d-mGphzULjHXvHUHSpd7WpkV86X4G2e8w3EcHPdlJQ78gnag4e_1BocUUWMEPa_1Pcj-jfNtI3UBGG5SI_1aELq8rxJk-QdYd9BO_1xjJq8d0hAbTczZpx_1nf9Fx1C8ACmYhT9oR18KRIcAhs_1Sgrw7Nb4AzCkTDXQlsIEttyOcdAyDUFmFVG4k6QyrsUzdjLttfzOCx-PSg88NvbKvayku8X4tnmcePu2A01XPovBDgQGq84jAUh3X-A8SevNjblR1Q4Su9S9GNItv5DZKuqguYC-6TmXHdb3N7YJViLgwf_1mC6eZvnFH08Moh5dVxch9B8y5GCBRYetaeZJ1LD-i6GK4yfVekSL5atRO2fDw3SUtEcOuZAfTZ80dk06laR-wgqB7zOdTzM-HmaPsmvTRM_1d4j9eBSBSxCiGu_1DQed3z5HbzoYmTblS03xsNvX97RWaYMZIIPyBtf-mLZmHT1-F8LWWDUADr2bDp6TjLNWdI9DZSSJiSgGrShKBFwciLmeV3zz6dB9QVmMrGknMQXwot508GnCKnjHXoYx8FZzRGBOXdpGftF-wDYvLq6radLT1V0ToUePmIqn81sZt87cRYcIwFiZ5McPGh44cROx2s3Wh9od8hGSveGO5Si1zmzy5fIswRf2FMzXDDEabHPD2zqj95AbjgpZRYWKDCGEfI7_1AVSHpNBZSyAfRCPCxGqTLHB2TlIo0dQfsGqeOTy6yKqtwtGlZmCSuxS-QR9AEfkXlF4DmliV8ldIJPtV83v0D3UkxRD0R_1vtOOklOXg4DetCNnG0R7Y-nHZAEYPpZTBecxi8dfzVlU4XiXrBAGwPDpSjAwuvVEng4b4cYlfFwGbsnjf1Jvw9i3E9DDyBb7XeRfHHEhMRrJthi8UdX0rTpsvwomoY3y5ILzF9L9-9_1Pp5lq_1MEza04nLFnuNQiAYSvm-Lg05IsqxteSyGzSunswCoaM7rK55DhLwbUYeHwB-9b-L0h8P41olZsDXk9BH82HDGjYpRbXC01K4DVzyMueB1c-7CzWLV1VLmAkQTTLAYsQy6EmWlSDlr9Mspr2yNGd5SoYy57FQbJUui0bVHGEp2U9dMiGzYBmJKl2BbaWKM3xVcD8-X-9Mdr_1xexRKvUi-fb16XCbdKxS3vp5JeUw5bElrAdbX4aKLk_1EN8npHboNdpTYlVWBGYcJgR-EU04_1l2pq_1YM9dOne9ocnBjlWZt9Uq8NU1a6s2ySQkvZzh0YZ2PE0Ra8bENukGRJIwpwEGjoLfN6F-fF211GQ_1skH1lzAnohpB0OwTSBecjbMz3MeCtxHpqs1oEprywjRPLBcrDTT00xKH9OOCiiQCd5PZTtRI1F29vUb7w2hnCIiMaNCYYPXFBnOi17q0dWWFURlu7leI128yrBKB5-nYAd8dwcKeuDop9VM5-50Fg3gG6Xjjeg7bui5MrQ9rAc-TnotAXK0fGsoXTOC79euhiFCYKIQIsJvxJ9GFN2Uun7u8 Link to comment Share on other sites More sharing options...
Richie Posted January 3, 2015 Report Share Posted January 3, 2015 I think the pic is fake, Reverse Image Search is your friend here My avatar picture is also fake :( does that make me a bad person ? Link to comment Share on other sites More sharing options...
piX Posted January 3, 2015 Author Report Share Posted January 3, 2015 Sorry for letting everyone down, although a little off topic - my profile picture is not me. Link to comment Share on other sites More sharing options...
piX Posted January 3, 2015 Author Report Share Posted January 3, 2015 i have added this line but the same thing happend I have added the provided filters to my Server - I have had absolutely no issues with BattlEye. Id suggest checking over the filters, making sure they are all spelt correctly/implemented in the correct part of the file. IF you have put the scripts in different folders within your mission file, then the BattlEye Filters will need to reflect that. i.e !="execVM \"\MPMissions\epoch.altis\(custom folder)\fn_statusBar.sqf\"" Link to comment Share on other sites More sharing options...
Liqu1dShadow Posted January 3, 2015 Report Share Posted January 3, 2015 My avatar picture is also fake :( does that make me a bad person ? Yes... yes it does! I wanted you to look like a cartoon Zombie. everything is lost now that you have admitted you don't :( Link to comment Share on other sites More sharing options...
Tricks Posted January 3, 2015 Report Share Posted January 3, 2015 The pic is obviously fake, lol. I still like it enough to comment on it :) piX 1 Link to comment Share on other sites More sharing options...
Richie Posted January 3, 2015 Report Share Posted January 3, 2015 Anyone notice the restart time vanishes after dying ? works fine first login, die and the time is blank Link to comment Share on other sites More sharing options...
Santa Posted January 3, 2015 Report Share Posted January 3, 2015 Anyone notice the restart time vanishes after dying ? works fine first login, die and the time is blank Restart time vanishes because the info is to wide for the bar :) Get your damage 0, # of players 1 and you'll see that restart time appears again. It needs a fix :) Link to comment Share on other sites More sharing options...
piX Posted January 3, 2015 Author Report Share Posted January 3, 2015 Restart time vanishes because the info is to wide for the bar :) Get your damage 0, # of players 1 and you'll see that restart time appears again. It needs a fix :) From what I can tell, Santa is correct. Nothing is preventing the statusBar from updating. So it is something to do with the text spacing etc. I suggest changing the Style from 2 to 0. So it should look like this: size = 0.03; type = 13; style = 0; // change to zero text="Loading statusBar..."; Link to comment Share on other sites More sharing options...
theirongiant Posted January 4, 2015 Report Share Posted January 4, 2015 When you take damage it shows 7 or 8 decimal places and pushes the restart time to a new line, if you change the width to 1.25 it seems to be fine. Link to comment Share on other sites More sharing options...
wrt12345 Posted January 5, 2015 Report Share Posted January 5, 2015 would anyone know how to add image.paa files to the bottom of these,i've seen them on some servers ?? Link to comment Share on other sites More sharing options...
Zupa Posted January 6, 2015 Report Share Posted January 6, 2015 would anyone know how to add image.paa files to the bottom of these,i've seen them on some servers ?? Like this? ^^ I'll maybe release it soon : ) MillerTime, Tywin, Friendly and 2 others 5 Link to comment Share on other sites More sharing options...
wrt12345 Posted January 6, 2015 Report Share Posted January 6, 2015 Yeah thats the one looks great,Really does, great work 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