• 0
Potatoskin

HUD options

Question

I made my first exile server and I notice that the hud doesn't show rep, server time left, pop tabs, like other servers do.  Mine only shows hunger and thirst at the bottom left side of the screen.  Is this an option that can be enabled?  Can someone help me add this in?

Share this post


Link to post
Share on other sites

13 answers to this question

  • 0

Yes, everything you need is here, developed by @CRE4MPIE - https://github.com/CRE4MPIE/StatusBar

Thanks for the reply, but I have no idea where these files go.  I've not added mods or scripts so i'm not familiar with how to add mods when there isn't any instruction.  As of now my server structure is  C:\Arma\Server which has @exile, @exileserver, addons, battleye, etc.  Can you help me with where the addon folder, initplayerlocal.sqf, and other files go?  I've seen people reference having to add keys, be filters, and add scripts and I have no idea how to do that yet.

Share this post


Link to post
Share on other sites
Advertisement
  • 0

just put the files in your mission file

/addons/statusbar/ 

for example.

then put this in your description.ext (bottom)

class RscTitles
{
    #include "addons\statusbar\statusBar.hpp"
};

 (check if there is already a rsc title)

dont forget to check the config file and to add be filters

Edited by pangea

Share this post


Link to post
Share on other sites
  • 0

did it like you told and it works fine, thanx for the help.

 

but i have a bit i would change. id like to not show the thirst and hunger in the staminabar. what do i have to change ?

 

i tryd it like this:

 //initialize variables and set values
                _unit = _this select 0;
                _damage = round ((1 - (damage player)) * 100);
                //_damage = (round(_damage * 100));
                //_hunger = round (ExileClientPlayerAttributes select 2);
                //_thirst = round (ExileClientPlayerAttributes select 3);
                _wallet = ExileClientPlayerMoney;
                _stamina = ExileClientPlayerScore;
                _energy = 100;
                _energyPercent = 100;
                _serverFPS = round diag_fps;
                _pos = getPosATL player;
                _dir = round (getDir (vehicle player));
                _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));

but then there is a to big space between the other symbols that you cant see everything. 

Edited by Butterzeugs

Share this post


Link to post
Share on other sites
  • 0

Above that you have the html code that displays each item. Each item pulls from the list below it in numerical order (ie: %1, %2, %3, etc.) You have to comment or remove the line of the item that you do not want to show. For example, mine which shows everything except restart time.

//Stamina
		_colourStamina = _colourDefault;
		
		//display the information 
		// 	<t shadow='1' shadowColor='#000000' color='%10'><img size='1.6'  shadowColor='#000000' image='addons\statusbar\icons\restart.paa' color='%10'/>%18:%19</t>
		((uiNamespace getVariable "osefStatusBarAdmin")displayCtrl 55554)ctrlSetStructuredText parseText 
			format["
			<t shadow='1' shadowColor='#000000' color='%10'><img size='1.6'  shadowColor='#000000' image='addons\statusbar\icons\players.paa' color='%10'/> %2</t>
			<t shadow='1' shadowColor='#000000' color='%11'><img size='1.0'  shadowColor='#000000' image='addons\statusbar\icons\health.paa' color='%11'/> %3%1</t> 
			<t shadow='1' shadowColor='#000000' color='%10'><img size='1.0'  shadowColor='#000000' image='addons\statusbar\icons\poptab_ca.paa' color='%10'/> %4</t> 
			<t shadow='1' shadowColor='#000000' color='%12'><img size='1.6'  shadowColor='#000000' image='addons\statusbar\icons\hunger.paa' color='%12'/> %5%1</t> 
			<t shadow='1' shadowColor='#000000' color='%13'><img size='1.6'  shadowColor='#000000' image='addons\statusbar\icons\thirst.paa' color='%13'/> %6%1</t> 
			<t shadow='1' shadowColor='#000000' color='%15'><img size='1.0'  shadowColor='#000000' image='addons\statusbar\icons\exile.paa' color='%10'/> %9</t> 
			<t shadow='1' shadowColor='#000000' color='%10'>FPS: %7</t>
			<t shadow='1' shadowColor='#000000' color='%15'><img size='1.0'  shadowColor='#000000' image='addons\statusbar\icons\compass.paa' color='%10'/> %17</t>",
			
					"%", 
					count playableUnits,
					_damage,
					_wallet, 
					_hunger, 
					_thirst, 
					_serverFPS, 
					_energyPercent, 
					_stamina, 
					_colourDefault,
					_colourDamage,
					_colourHunger,
					_colourThirst,
					_colourEnergy,
					_colourStamina,
					format["%1/%2",_xx,_yy], 
					_dir,
					_hours,
					_minutes					 
				];
		

 

Edited by iVaper

Share this post


Link to post
Share on other sites
  • 0

worked?

did it like you told and it works fine, thanx for the help.

 

but i have a bit i would change. id like to not show the thirst and hunger in the staminabar. what do i have to change ?

Edited by pangea

Share this post


Link to post
Share on other sites
Advertisement

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.