Improved Status Bar HUD

Re: Improved Status Bar HUD

« Reply #60 posted: Sep 10, 2015, 05:25 AM »
i keep getting these errors:


23:19:30   Error position: <_wallet,
_hunger,
_thirst,
_serverFPS>
23:19:30   Error Undefined variable in expression: _wallet
23:19:30 File mpmissions\__CUR_MP.Takistan\addons\statusBar\statusbar.sqf, line 186
23:19:31 Error in expression <_colourDefault;      
switch true do{

case(_thirst >= 100) : {_colourThirst = _colo>
23:19:31   Error position: <_thirst >= 100) : {_colourThirst = _colo>
23:19:31   Error Undefined variable in expression: _thirst
23:19:31 File mpmissions\__CUR_MP.Takistan\addons\statusBar\statusbar.sqf, line 135
23:19:31 Error in expression <mage player)) * 100);

_hunger = round (ExileClientPlayerAttributes select 2);
_>
23:19:31   Error position: <ExileClientPlayerAttributes select 2);
_>

any clue?
  • Offline Mokey
  • Fractured Wasteland
  • Elite
  • ******
  • Posts: 606
  • Https://Fractured-Gaming.com

Re: Improved Status Bar HUD

« Reply #61 posted: Sep 10, 2015, 02:01 PM »
Posts once, edits post 40 times in 60 seconds. STUPID FAT FINGERS!

Re: Improved Status Bar HUD

« Reply #62 posted: Dec 24, 2015, 12:12 AM »
Any download links that work, Does it work ok with new version of Arma 3  :)

Thank you

Re: Improved Status Bar HUD

« Reply #63 posted: Jan 28, 2016, 02:27 PM »
The Epoch custom hud (code below) displays a number of useful items but I would like to use its restart timer to display a built in restart warning message. I could use a wee bit of coding help and all due credit will be added to the script.
 
What I think we need is a simple if / then statement.
 
if _time = 5 minutes then cutText ["Server restart in 5 minutes", "BLACK", 0.01];
 
As I am no coder I would really appreciate some help properly formatting and adding the needed line to this script:
 
cutText appears to be the simplest solution for placing this warning center screen (where I want it)

Re: Improved Status Bar HUD

« Reply #64 posted: Jun 04, 2016, 05:38 PM »
Ported the new Epoch HUD over last night and made a few small changes =) 

Grab it on my GIT here :) - https://github.com/CRE4MPIE/ArmA3_Wasteland_1.1e.Stratis


Link is dead.

Re: Improved Status Bar HUD

« Reply #65 posted: Jun 04, 2016, 10:10 PM »
try here

https://github.com/CRE4MPIE

statusbar is here

Re: Improved Status Bar HUD

« Reply #66 posted: Jun 05, 2016, 01:22 AM »
  • Offline CREAMPIE
  • Armaholic
  • Veteran
  • ******
  • Posts: 1083
  • ^_^;;

Re: Improved Status Bar HUD

« Reply #67 posted: Jun 06, 2016, 10:55 AM »
Thanks a mil.

iirc that status bar is for Exile :P You will have to change a few variables and possibly the font type in the HPP.

apart from that it should work - check the statusBar under my A3Wasteland Repo in Github ( I haven't updated in some time  )



- from the grassy knoll -

Re: Improved Status Bar HUD

« Reply #68 posted: Jul 14, 2016, 04:03 AM »
Hi
I would like to remove it  8)

Re: Improved Status Bar HUD

« Reply #69 posted: Jul 14, 2016, 04:15 AM »
i had to do it today as well and did it this way

ArmA3_Wasteland.Stratis/client/systems/hud/playerHud.sqf

add to the file both items in red and the icons wont be there ingame

/* 

   if (_atmEnabled) then {
      _strArray pushBack format ["%1 <img size='0.7' image='client\icons\suatmm_icon.paa'/>", [player getVariable ["bmoney", 0]] call fn_numbersText];
   };

   _strArray pushBack format ["%1 <img size='0.7' image='client\icons\money.paa'/>", [player getVariable ["cmoney", 0]] call fn_numbersText];

   if (_survivalSystem) then {
      _strArray pushBack format ["%1 <img size='0.7' image='client\icons\water.paa'/>", ceil (thirstLevel max 0)];
      _strArray pushBack format ["%1 <img size='0.7' image='client\icons\food.paa'/>", ceil (hungerLevel max 0)];
   };

   if (!_unlimitedStamina) then {
      _strArray pushBack format ["%1 <img size='0.7' image='client\icons\running_man.paa'/>", 100 - ceil ((getFatigue player) * 100)];
   };

   _strArray pushBack format ["<t color='%1'>%2</t> <img size='0.7' image='client\icons\health.paa'/>", _healthTextColor, _health];

*/   

works a charm

Re: Improved Status Bar HUD

« Reply #70 posted: Jul 14, 2016, 10:14 AM »
thank you dude it works for me :-*
  • Offline Ltc-Bullet
  • First Blood
  • ***
  • Posts: 57
  • Founder of EZ Company Gaming

Re: Improved Status Bar HUD

« Reply #71 posted: Sep 09, 2016, 11:04 AM »
Hi
I would like to remove it  8)


Well i dont wanna remove it i wanna edit this to make it like a rules pop up when you join any one have an idea
  • Offline Vapr0
  • Geared Up
  • **
  • Posts: 26

Re: Improved Status Bar HUD

« Reply #72 posted: Oct 13, 2016, 12:59 AM »
Well i dont wanna remove it i wanna edit this to make it like a rules pop up when you join any one have an idea

this took me way too long to figure out where the file, but I found it last night.

the Text is located:
A3Wasteland/ArmA3_Wasteland.<MAP>/stringtable.xml

https://github.com/A3Wasteland/ArmA3_Wasteland.Tanoa/blob/dev/stringtable.xml

Code: [Select]
<Package name="WelcomeMessage">
<Key ID="STR_WL_WelcomeToWasteland">
<English>&lt;t color='#FF8000' size='2.5' &gt;A3Wasteland Tanoa v1.3b &lt;/t&gt;</English>
</Key>
<Key ID="STR_WL_YouAreInTeam">
<English>&lt;t color='#FFFFFF' size='1.5' &gt;* You are in &lt;img size="1.5" image="%1"/&gt; &lt;t color="%2"&gt;%3&lt;/t&gt; team.&lt;br/&gt;* Attacking or stealing from other %4 players is &lt;t color="#FF1111"&gt;FORBIDDEN&lt;/t&gt;&lt;br/&gt;* &lt;t color="#FF1111"&gt;NO VOICE IN GLOBAL&lt;/t&gt;&lt;br/&gt;* You can find the Server Rules in the map menu.&lt;br/&gt;* Server restarts are done at the admin's discretion.&lt;br/&gt;* You will be locked to your team after 3 minutes.&lt;/t&gt;</English>
</Key>
<Key ID="STR_WL_YouAreInFFA">
<English>&lt;t color='#FFFFFF' size='1.5' &gt;* You are in &lt;img size="1.5" image="%1"/&gt; &lt;t color="%2"&gt;%3&lt;/t&gt; team.&lt;br/&gt;* You are &lt;t color="#00aa00"&gt;FREE TO ATTACK ANYONE&lt;/t&gt;&lt;br/&gt;* &lt;t color="#FF1111"&gt;NO VOICE IN GLOBAL&lt;/t&gt;&lt;br/&gt;* You can find the Server Rules in the map menu.&lt;br/&gt;* Server restarts are done at the admin's discretion.&lt;/t&gt;</English>
</Key>
<Key ID="STR_WL_MapMoreInfo">
<English>&lt;t color='#FFFFFF' size='1.5' &gt;Report bugs and suggestions at http://forums.a3wasteland.com/ &lt;br/&gt;Server restarts are done at the admin's discretion.&lt;br/&gt;Press the Windows or Home key to toggle player names&lt;br/&gt;Press the End key to toggle earplugs&lt;br/&gt;For more info please see the map&lt;br/&gt;</English>
<!-- &lt;br/&gt;&lt;/t&gt;&lt;t size='1.3'&gt;[Update X]&lt;/t&gt;&lt;br/&gt; -->
</Key>

You can find all the associated scripts for it if you go to A3Wasteland/ArmA3_Wasteland.<MAP> and then type in the search bar in windows explorer 
Code: [Select]
WelcomeMessage
there are 3 files: in A3Wasteland/ArmA3_Wasteland.<MAP>

- client/functions/welcomeMessage.sqf
- stringtable.xml
- client/systems/playerMenu/dialog/welcome.hpp

to disable it you go to

client/functions/welcomeMessage.sqf
and add whats in red
/*
Code: [Select]
#define welcomeText 3200

10 cutrsc["WelcomeMessage", "PLAIN"];

disableSerialization;

_display = uiNamespace getVariable "WelcomeMessage";
_control = _display displayCtrl welcomeText;

private ["_teamrules", "_teamicon", "_teamcol"];

switch (playerSide) do {
case BLUFOR: {
_teamrules = "STR_WL_YouAreInTeam";
_teamicon = "client\icons\igui_side_blufor_ca.paa";
_teamcol = "#0066ff";
};
case OPFOR: {
_teamrules = "STR_WL_YouAreInTeam";
_teamicon = "client\icons\igui_side_opfor_ca.paa";
_teamcol = "#ff1111";
};
default {
_teamrules = "STR_WL_YouAreInFFA";
_teamicon = "client\icons\igui_side_indep_ca.paa";
_teamcol = "#00ff00";
};
};

_message = format ["<t shadow=""1"">%1<br/>%2<br/>%3<br/></t>",
localize "STR_WL_WelcomeToWasteland",
localize "STR_WL_MapMoreInfo",
format [localize _teamrules,
_teamicon,
_teamcol,
localize format ["STR_WL_Gen_Team%1", str playerSide],
localize format ["STR_WL_Gen_Team%1_2", str playerSide]
]
];

_control ctrlSetStructuredText (parseText _message);

sleep 20;

_control ctrlSetFade 1;
_control ctrlCommit 2;

waitUntil {ctrlCommitted _control};

_control ctrlShow false;
_control ctrlCommit 0;
*/

and

client/systems/playerMenu/dialog/welcome.hpp :

/*
Code: [Select]
class WelcomeMessage {
idd = -1;
duration = 1e+011;
name= "WelcomeMessage";
onLoad = "uiNamespace setVariable ['WelcomeMessage', _this select 0]";

class controlsBackground {
class WelcomeMessage_Text:w_RscText
{
idc = welcomeText;
type = CT_STRUCTURED_TEXT;
size = 0.028;
x = 0; y = 0;
w = 1; h = 0.7;
colorText[] = {1,1,1,1};
colorBackground[] = {0,0,0,0};
text = "Welcome";
};
};
};
*/

or you can delete
Code: [Select]
</Package>
<Package name="WelcomeMessage">
<Key ID="STR_WL_WelcomeToWasteland">
<English>&lt;t color='#FF8000' size='2.5' &gt;A3Wasteland Tanoa v1.3b &lt;/t&gt;</English>
</Key>
<Key ID="STR_WL_YouAreInTeam">
<English>&lt;t color='#FFFFFF' size='1.5' &gt;* You are in &lt;img size="1.5" image="%1"/&gt; &lt;t color="%2"&gt;%3&lt;/t&gt; team.&lt;br/&gt;* Attacking or stealing from other %4 players is &lt;t color="#FF1111"&gt;FORBIDDEN&lt;/t&gt;&lt;br/&gt;* &lt;t color="#FF1111"&gt;NO VOICE IN GLOBAL&lt;/t&gt;&lt;br/&gt;* You can find the Server Rules in the map menu.&lt;br/&gt;* Server restarts are done at the admin's discretion.&lt;br/&gt;* You will be locked to your team after 3 minutes.&lt;/t&gt;</English>
</Key>
<Key ID="STR_WL_YouAreInFFA">
<English>&lt;t color='#FFFFFF' size='1.5' &gt;* You are in &lt;img size="1.5" image="%1"/&gt; &lt;t color="%2"&gt;%3&lt;/t&gt; team.&lt;br/&gt;* You are &lt;t color="#00aa00"&gt;FREE TO ATTACK ANYONE&lt;/t&gt;&lt;br/&gt;* &lt;t color="#FF1111"&gt;NO VOICE IN GLOBAL&lt;/t&gt;&lt;br/&gt;* You can find the Server Rules in the map menu.&lt;br/&gt;* Server restarts are done at the admin's discretion.&lt;/t&gt;</English>
</Key>
<Key ID="STR_WL_MapMoreInfo">
<English>&lt;t color='#FFFFFF' size='1.5' &gt;Report bugs and suggestions at http://forums.a3wasteland.com/ &lt;br/&gt;Server restarts are done at the admin's discretion.&lt;br/&gt;Press the Windows or Home key to toggle player names&lt;br/&gt;Press the End key to toggle earplugs&lt;br/&gt;For more info please see the map&lt;br/&gt;</English>
<!-- &lt;br/&gt;&lt;/t&gt;&lt;t size='1.3'&gt;[Update X]&lt;/t&gt;&lt;br/&gt; -->
</Key>
</Package>

Re: Improved Status Bar HUD

« Reply #73 posted: Oct 25, 2016, 06:00 PM »
Help  :o

How do I remove the right statusbar?

Pic:
http://up.picr.de/27233579wq.jpg
Improved Status Bar HUD

Re: Improved Status Bar HUD

« Reply #74 posted: Oct 25, 2016, 06:43 PM »
Find ..

client\systems\hud\playerHud.sqf

and edit ..

Code: [Select]
// Icons in bottom right

_strArray = [];
/*
if (_atmEnabled) then {
_strArray pushBack format ["%1 <img size='0.7' image='client\icons\suatmm_icon.paa'/>", [player getVariable ["bmoney", 0]] call fn_numbersText];
};

_strArray pushBack format ["%1 <img size='0.7' image='client\icons\money.paa'/>", [player getVariable ["cmoney", 0]] call fn_numbersText];

if (_survivalSystem) then {
_strArray pushBack format ["%1 <img size='0.7' image='client\icons\water.paa'/>", ceil (thirstLevel max 0)];
_strArray pushBack format ["%1 <img size='0.7' image='client\icons\food.paa'/>", ceil (hungerLevel max 0)];
};

if (!_unlimitedStamina) then {
_strArray pushBack format ["%1 <img size='0.7' image='client\icons\running_man.paa'/>", 100 - ceil ((getFatigue player) * 100)];
};

_strArray pushBack format ["<t color='%1'>%2</t> <img size='0.7' image='client\icons\health.paa'/>", _healthTextColor, _health];
*/