Jump to content

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


Darth_Rogue

Recommended Posts

  • 4 weeks later...
  • 2 weeks later...
_playersNearby = count (player nearEntities['Man',_playersNearbyRadius]);

'Man' = chickens, goats, dogs, bots, fish and players. If instead of 'Man' substitute 'epoch male_F' and 'epoch_female_F' thinks only the players, but only while they are walking. If a player in a car (helicopter, boat), it is not considered.. How do I attach the parameter vehicle player?

Forgive me for my English.

Link to comment
Share on other sites

  On 12/11/2015 at 8:22 PM, S3M4J said:

How would i go about adding this to altis life server, its looks really good.

Expand  

I have no knowledge of Altis Life so I wouldn't know how to do a correct port.  I'm sure it can be done.  All you'd have to do is change the Epoch player variables to those used by Altis Life.  If you know someone in the Altis Life community who does scripting have them contact me and I'll be happy to give them permission to port it over.

 

  On 12/12/2015 at 12:25 AM, JokerZClan said:

Do you have the posibillity to make a keybind to this script for toggle on and of the ui?
Making it so that its shown by standard, but a user can decide to turn this on or off?

Would be great! Btw. love it :)

Expand  

That's a great suggestion!  I'll look into making it happen.  I can't give an ETA though since I'm pretty busy working on other projects.  Keep watching the thread for updates.  :)    

Link to comment
Share on other sites

  • 2 weeks later...

Simply you can try to modify some atributes in statusbar.hpp:
BTW: He-Mans optional function to on or off hud caused slightly additional spaces between each icons and text. I don't know why..

        class statusBarText {
            idc = 55555;
            x = 0.2 * safezoneW + safezoneX;      Start position of statusbar from left of the screen ( input between 0-1)
            y = 0.94 * safezoneH + safezoneY;     Start position of statusbar from top of the screen ( input between 0-1)
            w = 0.7 * safezoneW;     Size of statusbar background
            h = 0.0330033 * safezoneH;     Size of statusbar background
            shadow = 1;
            colorBackground[] = { 0, 0, 0, 0 }; // make the last number in the array 0 to get rid of the background     I set background OFF
            font = "PuristaSemibold";
            size = "0.022 * safezoneH";    Size of statusbar icons and text
            type = 13;
            style = 2;
            text="loading player stats ...";
            class Attributes {
                align="left";     I set align to left
                color = "#ffffff";//#5fe60c
            };
        };

Link to comment
Share on other sites

  On 12/27/2015 at 1:45 PM, Kenobi said:


BTW: He-Mans optional function to on or off hud caused slightly additional spaces between each icons and text. I don't know why..

 

Expand  

Could because when you copy the code from pastebin, all tabs will be replaced by spaces.

Try to change it like this:

old:

                ((uiNamespace getVariable "statusBar")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>

new:

((uiNamespace getVariable "statusBar")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>

...

Link to comment
Share on other sites

  • 3 weeks later...
  • 1 month later...

Hello, sorry to bother you, but I'm a novice!
We often hear of "Mission" file, and here is asked to place files in

1.  Place 'addons' folder into your mission file

2.  Open init.sqf and add this to the last line

   //Status Bar
 if(hasInterface) then{[] execVM "addons\Status_Bar\init_statusBar.sqf"};
 
3.  Open description.ext and add this to the last line

Can you tell me what addon, because there are several.

screenfilezilla.jpg

There I am working on epoch and slowly I read and I instruct you, you are all very good, and I also managed to position Ai patrol A3AEI thanks to instructions.
I would now like to solve this bar.

I have a server, and place the files on the server with FileZilla, it is right ???

Author of the bar, I send my contribution, as it is very pleasant, and the work deserve compensation.
Thank you all ...... and sorry my ignorance .... sigh

Send a pm to me coordinates
Google translator

Link to comment
Share on other sites

  On 2/25/2016 at 1:43 PM, Ghostrider-DbD- said:

The mission file is Epoch.Altis.pbo and is located in the MPMissions folder.

You need to unpack it using a tool such as PBO manager then modify the files within it, repack it with PBO Manager and upload it to your server.

 

Expand  

FANTASTIC, instant response times ..... compliments.
Well, then the addon folder staus bar put it there, and then regrouped?

1.  Place 'addons' folder into your mission file

example:

Status_Bar-master/addons

The entire addon folder in the file epoch.chernarus.pbo?

Anyway, you merit for the answer.
Thank you very much
Antonio

Link to comment
Share on other sites

  On 2/25/2016 at 1:43 PM, Ghostrider-DbD- said:

The mission file is Epoch.Altis.pbo and is located in the MPMissions folder.

You need to unpack it using a tool such as PBO manager then modify the files within it, repack it with PBO Manager and upload it to your server.

 

Expand  

Yes, i have in my server mpmission, epoch.Chernarus.pbo, and whit PBO manager decompressed.

File mission and file description.

Does not work probably make mistakes .... control throughout the procedure .... I must succeed.
Example, I have these lines, but it happens to me with other add on, require you to change lines that I have:

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"

Thanks for your interest, this evening (Italy time) I try everything from neat

Antonio

Link to comment
Share on other sites

  On 2/26/2016 at 6:56 AM, EBEALIEN said:

Yes, i have in my server mpmission, epoch.Chernarus.pbo, and whit PBO manager decompressed.

File mission and file description.

Does not work probably make mistakes .... control throughout the procedure .... I must succeed.
Example, I have these lines, but it happens to me with other add on, require you to change lines that I have:

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"

Thanks for your interest, this evening (Italy time) I try everything from neat

Antonio

Expand  

The BE filters are normally located in the instance # folder/BattlEye - then open up the text file scripts.txt and add from the != onwards so just this bit: !=""pto: %3 | Players: %2 | FPS: %1 ", round diag_fps, count playableUnits, EPOCH_playerCrypto, mapGridPosition player];" to the end of the line that starts playableunits which is around line 20 if using notepad++

 

You will already have the 7 playableunits (The mod author is basically telling to look for: playableunits)

Hope that clears it up a little bit

Link to comment
Share on other sites

  On 2/26/2016 at 8:59 AM, PryMary said:

The BE filters are normally located in the instance # folder/BattlEye - then open up the text file scripts.txt and add from the != onwards so just this bit: !=""pto: %3 | Players: %2 | FPS: %1 ", round diag_fps, count playableUnits, EPOCH_playerCrypto, mapGridPosition player];" to the end of the line that starts playableunits which is around line 20 if using notepad++

 

You will already have the 7 playableunits (The mod author is basically telling to look for: playableunits)

Hope that clears it up a little bit

Expand  
  Reveal hidden contents

I have searched, even with "find" playable units, but where is ?????

the file, is what I have in my Nitrado server .... Thanks for your interest and for the help .... you are serious people!

Antonio

Link to comment
Share on other sites

You are very correct I just checked my BE scripts.txt and playableunits is not listed. What BE # do you get kicked for?

 

Because that way just append the exception above to that line instead. So for instance if you get a BE kick for say #22 then with notepad++ add it to line 24 at the end ;-)

 

Regards,

Pry

Link to comment
Share on other sites

  On 2/26/2016 at 1:37 PM, PryMary said:

You are very correct I just checked my BE scripts.txt and playableunits is not listed. What BE # do you get kicked for?

 

Because that way just append the exception above to that line instead. So for instance if you get a BE kick for say #22 then with notepad++ add it to line 24 at the end ;-)

 

Regards,

Pry

Expand  

So where do I place the lines 20 and 23 where position it if I have not playable and also exec ???

I put everything in the end after my line 78 ??

Grazie

Antonio

Ps Also for example, in the addon SEM missions AI, tell me to change lines, but even here missing the required lines ... sigh ..

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
×
×
  • Create New...