Oddy-B Posted April 19, 2015 Report Share Posted April 19, 2015 I have just placed othis on my server, nice work. I would like to remove the grid ref from the bar, how do i go about this? Link to comment Share on other sites More sharing options...
Darth_Rogue Posted April 19, 2015 Author Report Share Posted April 19, 2015 I have just placed othis on my server, nice work. I would like to remove the grid ref from the bar, how do i go about this? In whichever of the three bars you want to edit you will need to find the section that looks like this: //display the information ((uiNamespace getVariable "osefStatusBar")displayCtrl 55555)ctrlSetStructuredText parseText format[" <t shadow='1' shadowColor='#000000' color='%10'><img size='1.6' shadowColor='#000000' image='addons\status_bar\images\players.paa' color='%10'/> %2</t> <t shadow='1' shadowColor='#000000' color='%11'><img size='1.6' shadowColor='#000000' image='addons\status_bar\images\damage.paa' color='%11'/> %3%1</t> <t shadow='1' shadowColor='#000000' color='%10'><img size='1.6' shadowColor='#000000' image='addons\status_bar\images\krypto.paa' color='%10'/> %4</t> <t shadow='1' shadowColor='#000000' color='%12'><img size='1.6' shadowColor='#000000' image='addons\status_bar\images\hunger.paa' color='%12'/> %5%1</t> <t shadow='1' shadowColor='#000000' color='%13'><img size='1.6' shadowColor='#000000' image='addons\status_bar\images\thirst.paa' color='%13'/> %6%1</t> <t shadow='1' shadowColor='#000000' color='%15'><img size='1.6' shadowColor='#000000' image='addons\status_bar\images\stamina.paa' color='%15'/>%9</t> <t shadow='1' shadowColor='#000000' color='%19'><img size='1.6' shadowColor='#000000' image='addons\status_bar\images\toxicity.paa' color='%19'/>%20</t> <t shadow='1' shadowColor='#000000' color='%14'><img size='1.6' shadowColor='#000000' image='addons\status_bar\images\energy.paa' color='%14'/>%8%1</t> <t shadow='1' shadowColor='#000000' color='%10'>FPS: %7</t> <t shadow='1' shadowColor='#000000' color='%10'>GRIDREF: %16</t> <t shadow='1' shadowColor='#000000' color='%10'><img size='1.6' shadowColor='#000000' image='addons\status_bar\images\restart.paa' color='%10'/>%17:%18</t>", "%", count playableUnits, _damage, _wallet, _hunger, _thirst, round diag_fps, _energyPercent, _stamina, _colourDefault, _colourDamage, _colourHunger, _colourThirst, _colourEnergy, _colourStamina, format["%1/%2",_xx,_yy], _hours, _minutes, _colourToxicity, _toxPercent ]; To remove the gridref you will need to remove this line <t shadow='1' shadowColor='#000000' color='%10'>GRIDREF: %16</t> and this line below it format["%1/%2",_xx,_yy], Then you will have to renumber the references to all following line items. So for example, since you removed format["%1/%2",_xx,_yy], which was line item 16, you will have to find the number references in the above block and adjust them so that they refer to the updated line numbers below the one that was deleted. Each time you see a %16 or %10, etc., it's referring to one of the line items below. If you remove one then you have to go through and renumber any of them that are after the one that was removed. Link to comment Share on other sites More sharing options...
pr0dukt Posted April 20, 2015 Report Share Posted April 20, 2015 absolutely the style of this bar. I started using it the other day and players are really liking it. Kudos. I got to ask though, I'm getting this annoying bug where the inventory prompt icon, and the build circle load bar, and even on screen exp txt blinks on and off... It's annoying. I've seen this occur on other servers before, but i'm not sure if its related to the status bar refreshing effecting on screen ui elements or what exactly, but i figured it might be good place to start looking before i go disabling all my scripts.. Link to comment Share on other sites More sharing options...
Darth_Rogue Posted April 20, 2015 Author Report Share Posted April 20, 2015 If I recall correctly I'm pretty sure that was an Infistar bug with an older version. Link to comment Share on other sites More sharing options...
Oddy-B Posted April 20, 2015 Report Share Posted April 20, 2015 In whichever of the three bars you want to edit you will need to find the section that looks like this: //display the information ((uiNamespace getVariable "osefStatusBar")displayCtrl 55555)ctrlSetStructuredText parseText format[" <t shadow='1' shadowColor='#000000' color='%10'><img size='1.6' shadowColor='#000000' image='addons\status_bar\images\players.paa' color='%10'/> %2</t> <t shadow='1' shadowColor='#000000' color='%11'><img size='1.6' shadowColor='#000000' image='addons\status_bar\images\damage.paa' color='%11'/> %3%1</t> <t shadow='1' shadowColor='#000000' color='%10'><img size='1.6' shadowColor='#000000' image='addons\status_bar\images\krypto.paa' color='%10'/> %4</t> <t shadow='1' shadowColor='#000000' color='%12'><img size='1.6' shadowColor='#000000' image='addons\status_bar\images\hunger.paa' color='%12'/> %5%1</t> <t shadow='1' shadowColor='#000000' color='%13'><img size='1.6' shadowColor='#000000' image='addons\status_bar\images\thirst.paa' color='%13'/> %6%1</t> <t shadow='1' shadowColor='#000000' color='%15'><img size='1.6' shadowColor='#000000' image='addons\status_bar\images\stamina.paa' color='%15'/>%9</t> <t shadow='1' shadowColor='#000000' color='%19'><img size='1.6' shadowColor='#000000' image='addons\status_bar\images\toxicity.paa' color='%19'/>%20</t> <t shadow='1' shadowColor='#000000' color='%14'><img size='1.6' shadowColor='#000000' image='addons\status_bar\images\energy.paa' color='%14'/>%8%1</t> <t shadow='1' shadowColor='#000000' color='%10'>FPS: %7</t> <t shadow='1' shadowColor='#000000' color='%10'>GRIDREF: %16</t> <t shadow='1' shadowColor='#000000' color='%10'><img size='1.6' shadowColor='#000000' image='addons\status_bar\images\restart.paa' color='%10'/>%17:%18</t>", "%", count playableUnits, _damage, _wallet, _hunger, _thirst, round diag_fps, _energyPercent, _stamina, _colourDefault, _colourDamage, _colourHunger, _colourThirst, _colourEnergy, _colourStamina, format["%1/%2",_xx,_yy], _hours, _minutes, _colourToxicity, _toxPercent ]; To remove the gridref you will need to remove this line <t shadow='1' shadowColor='#000000' color='%10'>GRIDREF: %16</t> and this line below it format["%1/%2",_xx,_yy], Then you will have to renumber the references to all following line items. So for example, since you removed format["%1/%2",_xx,_yy], which was line item 16, you will have to find the number references in the above block and adjust them so that they refer to the updated line numbers below the one that was deleted. Each time you see a %16 or %10, etc., it's referring to one of the line items below. If you remove one then you have to go through and renumber any of them that are after the one that was removed. Thank you got it working, Just one more question how can i make the round the stamina up to a whole number? Link to comment Share on other sites More sharing options...
Kroenen Posted April 20, 2015 Report Share Posted April 20, 2015 Anyone had any issues with server FPS with this? I couldn't really understand it, since the script is solely client side, but it seems when an admin (or anyone showing worldspace) is logged in, the server FPS drops into single digits. When they log off, the server FPS doubles. Just checking other users experience with this....server FPS has been fine at around 30-50 (as well as CPU/memory load), but I'm getting figures as low as 10 until I log off, then it goes back to normal. Link to comment Share on other sites More sharing options...
Darth_Rogue Posted April 20, 2015 Author Report Share Posted April 20, 2015 Anyone can feel free to chime in on this, but I haven't seen any server FPS issues when using the WSC option. Do you have any related server RPT errors, Kroenen? Link to comment Share on other sites More sharing options...
pr0dukt Posted April 20, 2015 Report Share Posted April 20, 2015 If I recall correctly I'm pretty sure that was an Infistar bug with an older version. Nah, I found it. It was damn CBA causing it. We still don't have official support for it so it bugs UI elements out. Luckily I found a way to run the mag repacking script without needing it now, which was the only reason I used it to begin with. Either way, it wasn't your awesome status bar causing it, so keep doing what you're doing bro. Lol Darth_Rogue 1 Link to comment Share on other sites More sharing options...
Kroenen Posted April 20, 2015 Report Share Posted April 20, 2015 Anyone can feel free to chime in on this, but I haven't seen any server FPS issues when using the WSC option. Do you have any related server RPT errors, Kroenen? No errors at all other than the usual Client: Object 5:332 (type Type_91) not found. which were around prior to adding this. I'll try at my next restart removing the WSC. I'm the only admin with that option, and the FPS seems to increase a fair bit when I disconnect. I can only imagine it may be something to do with sending the WSC to the client a lot or something. Will test and report back. Link to comment Share on other sites More sharing options...
Darth_Rogue Posted April 20, 2015 Author Report Share Posted April 20, 2015 I have a theory. Will do some testing and let you know. Link to comment Share on other sites More sharing options...
Darth_Rogue Posted April 20, 2015 Author Report Share Posted April 20, 2015 No errors at all other than the usual Client: Object 5:332 (type Type_91) not found. which were around prior to adding this. I'll try at my next restart removing the WSC. I'm the only admin with that option, and the FPS seems to increase a fair bit when I disconnect. I can only imagine it may be something to do with sending the WSC to the client a lot or something. Will test and report back. Redownload the files and replace init_statusBar.sqf. I changed the global admin list and WSC variables from global to local variables and tested the changed. The script works fine, so try it out and see if that will cure your performance issue. Link to comment Share on other sites More sharing options...
Sonin Posted April 20, 2015 Report Share Posted April 20, 2015 Thank you for this Epic Status Bar! But some player on my Server cant see it :( Link to comment Share on other sites More sharing options...
Darth_Rogue Posted April 20, 2015 Author Report Share Posted April 20, 2015 Thank you for this Epic Status Bar! But some player on my Server cant see it :( Make sure they are playing in full screen and have their Arma setting "Interface Size" set to "Small". Link to comment Share on other sites More sharing options...
Kroenen Posted April 21, 2015 Report Share Posted April 21, 2015 Thanks very much for taking a look at that Darth. Server seems to be running much better (around 46fps) since the change, however there are fewer object not found messages now, so not sure if it may be related to the performance. Either way, it works for the moment, so great job! :D Link to comment Share on other sites More sharing options...
Darth_Rogue Posted April 25, 2015 Author Report Share Posted April 25, 2015 For those of you who may be running a headless client, you can alter the player count so that it does not count the headless client as being a connected player. In the section that looks like this _unit = _this select 0; _damage = round ((1 - (damage player)) * 100); //_damage = (round(_damage * 100)); _hunger = round((EPOCH_playerHunger/5000) * 100); _thirst = round((EPOCH_playerThirst/2500) * 100); _wallet = EPOCH_playerCrypto; _stamina = round(EPOCH_playerStamina * 100) / 100; _toxPercent = round (EPOCH_playerToxicity); _energy = round(EPOCH_playerEnergy); _energyPercent = floor((_energy / 2500 ) * 100); _fps = format["%1", diag_fps]; _grid = mapGridPosition player; _xx = (format[_grid]) select [0,3]; _yy = (format[_grid]) select [3,3]; _time = (round(240-(serverTime)/60)); //edit the '240' value (60*4=240) to change the countdown timer if your server restarts are shorter or longer than 4 hour intervals _hours = (floor(_time/60)); _minutes = (_time - (_hours * 60)); Add this line to the end of that section _players = (count playableUnits -1); Then find the line below that looks like this count playableUnits, And change it to this _players, Do that for all three status bar options (playerBar, AdminBar, and AdminBarWS) and you're all set. Link to comment Share on other sites More sharing options...
mimic Posted April 26, 2015 Report Share Posted April 26, 2015 I just spent about an hour messing around with the .hpp file trying to make the gray background span the full width of my monitor and have the text centered to it. Could you help me at all? Thanks! Link to comment Share on other sites More sharing options...
R4ziel Posted April 28, 2015 Report Share Posted April 28, 2015 Darth, we have an HC constantly connected on the server and that is being picked up as a player so the player numbe ris always one more than actual players on the server, is there any way I can make that players number - 1 so that it shows the correct amount of players on the server? Link to comment Share on other sites More sharing options...
Darth_Rogue Posted April 28, 2015 Author Report Share Posted April 28, 2015 Darth, we have an HC constantly connected on the server and that is being picked up as a player so the player numbe ris always one more than actual players on the server, is there any way I can make that players number - 1 so that it shows the correct amount of players on the server? Look 2 posts up from yours. :) Link to comment Share on other sites More sharing options...
Darth_Rogue Posted April 28, 2015 Author Report Share Posted April 28, 2015 I just spent about an hour messing around with the .hpp file trying to make the gray background span the full width of my monitor and have the text centered to it. Could you help me at all? Thanks! In the hpp file the 'x' value determines the left/right alignment. The 'w' value determines the width. By adjusting those two numbers you should be able to do what you're trying to do. Do note though that if you make the background fill the whole screen width that the items on the status bar will only take up as much room as they need to. They won't stretch to fill the screen. I suppose there's probably a way to add spaces between each item but I'm not sure how that would be done. Link to comment Share on other sites More sharing options...
R4ziel Posted April 28, 2015 Report Share Posted April 28, 2015 In the hpp file the 'x' value determines the left/right alignment. The 'w' value determines the width. By adjusting those two numbers you should be able to do what you're trying to do. Do note though that if you make the background fill the whole screen width that the items on the status bar will only take up as much room as they need to. They won't stretch to fill the screen. I suppose there's probably a way to add spaces between each item but I'm not sure how that would be done. Lol sigh sorry man, I missed that completely Link to comment Share on other sites More sharing options...
R4ziel Posted April 28, 2015 Report Share Posted April 28, 2015 Look 2 posts up from yours. :) Darth, I tried this but I still see the count of the headless client somehow :/ Link to comment Share on other sites More sharing options...
Sonin Posted April 28, 2015 Report Share Posted April 28, 2015 Is there any possibillty to hide the bar and bring it back with a selected key? Link to comment Share on other sites More sharing options...
Darth_Rogue Posted April 28, 2015 Author Report Share Posted April 28, 2015 Darth, I tried this but I still see the count of the headless client somehow :/ Did you do it for all three of the bar variant files or just one? If just one, was the one you changed also the one you tested (admin vs. player vs. adminWS)? Link to comment Share on other sites More sharing options...
Darth_Rogue Posted April 28, 2015 Author Report Share Posted April 28, 2015 Is there any possibillty to hide the bar and bring it back with a selected key? It's possible yes. It's on my list of things to do for a future version. No current ETA though. Link to comment Share on other sites More sharing options...
DirtySanchez Posted April 28, 2015 Report Share Posted April 28, 2015 Fantastic work Darth, Ive customized mine with the nearby threat indicator and have to work in some new colors. Otherwise great work Going to do a few more tweaks to the default colors Darth_Rogue 1 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