Jump to content

[HOWTO] Adding a player statusBar


piX

Recommended Posts

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

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

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)));"

Link to comment
Share on other sites

  On 1/2/2015 at 1:18 PM, hoxor said:

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

  On 1/2/2015 at 12:53 PM, Liqu1dShadow said:

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:

 

  Reveal hidden contents

 

statusBar.hpp

 

  Reveal hidden contents

 

 

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

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

  On 1/3/2015 at 3:34 PM, Tricks said:

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

  On 1/3/2015 at 3:34 PM, Crankk123 said:

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

  On 1/3/2015 at 10:07 PM, Richie said:

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

  On 1/3/2015 at 10:11 PM, Santa said:

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Advertisement
×
×
  • Create New...