flakvest Posted September 2, 2014 Report Share Posted September 2, 2014 Anyone having any trouble with Soul's HUD showing up? I was using Zupa's and it displayed properly in top right corner but just switched to Soul's hive and implemented his mission and server files and now the HUD isn't showing up and I can't find the key to turn it on. Thanks Link to comment Share on other sites More sharing options...
Soul Posted September 2, 2014 Report Share Posted September 2, 2014 its not my hud, its ASRemix's hud just modified to work with my variables... Link to comment Share on other sites More sharing options...
Rocu Posted September 2, 2014 Report Share Posted September 2, 2014 Can you show us your playerHud.sqf ? Link to comment Share on other sites More sharing options...
flakvest Posted September 2, 2014 Author Report Share Posted September 2, 2014 Sorry Soul, I should have said I replaced the one from Zupa which was working, with the one I downloaded from your GitHUB. disableSerialization; // player setVariable["AsReMixhud", true];//Variable Show/Hide HUD Support for control player hud AsReMixhud_Control = true; // player getVariable["AsReMixhud",true]; while {true} do { 1000 cutRsc ["AsReMixhud","PLAIN"]; _wpui = uiNameSpace getVariable "AsReMixhud"; _vitals = _wpui displayCtrl 4900; _thePlayer = player; AsReMixhud_zombieKills = _thePlayer getVariable["zombieKills",0]; AsReMixhud_headshots = _thePlayer getVariable["headShots",0]; AsReMixhud_killsH = _thePlayer getVariable["humanKills",0]; _cashMoney = _thePlayer getVariable["cashMoney",0]; _bankMoney = _thePlayer getVariable["bankMoney",0]; AsReMixhud_killsB = _thePlayer getVariable["banditKills",0]; AsReMixhud_humanity = _thePlayer getVariable["humanity",0]; AsReMixhud_zombies = ""; AsReMixhud_zombiesAlive = ""; AsReMixhud_blood = ""; AsReMixhud_pid = ""; AsReMixhud_puid = ""; AsReMixhud_hmnicon = ""; AsReMixhud_svrname = "servertitle"; _stime = 0; if(serverTime > 36000)then{_stime = time;}else{_stime = serverTime;}; _hours = (_stime/60/60); _hours = toArray (str _hours); _hours resize 1; _hours = toString _hours; _hours = compile _hours; _hours = call _hours; _minutes = floor(_stime/60); _minutes2 = ((_minutes - (_hours*60)) min 60) max 0;if (_minutes2 < 10) then {_minutes2 = format ['0%1',_minutes2];}; _vitals ctrlSetStructuredText parseText format [" <t size='0.9'> %2 %5 </t><img size='0.8' align='right' image='custom\playerhud\icons\As_humanity.paa'/> <br/> <t size='0.9'> %3 </t><img size='0.8' align='right' image='custom\playerhud\icons\dollars.paa'/> <br/> <t size='0.9'> %13 </t><img size='0.8' align='right' image='custom\playerhud\icons\equip_safe_CA.paa'/> <br/> <t size='0.9'> %10 </t><img size='0.8' align='right' image='custom\playerhud\icons\As_killh.paa'/> <br/> <t size='0.9'> %9 </t><img size='0.8' align='right' image='custom\playerhud\icons\As_killb.paa'/> <br/> <t size='0.9'> %4 </t><img size='0.8' align='right' image='custom\playerhud\icons\As_zkill.paa'/> <br/> <t size='0.8' align='right'>%11h %12min UPTIME</t><br/>", AsReMixhud_blood, //1 AsReMixhud_humanity,//2 [_cashMoney] call BIS_fnc_numberText,//3 AsReMixhud_zombiekills,//4 AsReMixhud_hmnicon,//5 name player,//6 AsReMixhud_zombiesAlive,//7 AsReMixhud_zombies,//8 AsReMixhud_killsB,//9 AsReMixhud_killsH,//10 _hours,//11 _minutes2,//12 [_bankMoney] call BIS_fnc_numberText,//13 ]; _vitals ctrlCommit 0; sleep 2; }; Link to comment Share on other sites More sharing options...
Chunk. No Captain Chunk. Posted September 2, 2014 Report Share Posted September 2, 2014 Sorry Soul, I should have said I replaced the one from Zupa which was working, with the one I downloaded from your GitHUB. disableSerialization; // player setVariable["AsReMixhud", true];//Variable Show/Hide HUD Support for control player hud AsReMixhud_Control = true; // player getVariable["AsReMixhud",true]; while {true} do { 1000 cutRsc ["AsReMixhud","PLAIN"]; _wpui = uiNameSpace getVariable "AsReMixhud"; _vitals = _wpui displayCtrl 4900; _thePlayer = player; AsReMixhud_zombieKills = _thePlayer getVariable["zombieKills",0]; AsReMixhud_headshots = _thePlayer getVariable["headShots",0]; AsReMixhud_killsH = _thePlayer getVariable["humanKills",0]; _cashMoney = _thePlayer getVariable["cashMoney",0]; _bankMoney = _thePlayer getVariable["bankMoney",0]; AsReMixhud_killsB = _thePlayer getVariable["banditKills",0]; AsReMixhud_humanity = _thePlayer getVariable["humanity",0]; AsReMixhud_zombies = ""; AsReMixhud_zombiesAlive = ""; AsReMixhud_blood = ""; AsReMixhud_pid = ""; AsReMixhud_puid = ""; AsReMixhud_hmnicon = ""; AsReMixhud_svrname = "servertitle"; _stime = 0; if(serverTime > 36000)then{_stime = time;}else{_stime = serverTime;}; _hours = (_stime/60/60); _hours = toArray (str _hours); _hours resize 1; _hours = toString _hours; _hours = compile _hours; _hours = call _hours; _minutes = floor(_stime/60); _minutes2 = ((_minutes - (_hours*60)) min 60) max 0;if (_minutes2 < 10) then {_minutes2 = format ['0%1',_minutes2];}; _vitals ctrlSetStructuredText parseText format [" <t size='0.9'> %2 %5 </t><img size='0.8' align='right' image='custom\playerhud\icons\As_humanity.paa'/> <br/> <t size='0.9'> %3 </t><img size='0.8' align='right' image='custom\playerhud\icons\dollars.paa'/> <br/> <t size='0.9'> %13 </t><img size='0.8' align='right' image='custom\playerhud\icons\equip_safe_CA.paa'/> <br/> <t size='0.9'> %10 </t><img size='0.8' align='right' image='custom\playerhud\icons\As_killh.paa'/> <br/> <t size='0.9'> %9 </t><img size='0.8' align='right' image='custom\playerhud\icons\As_killb.paa'/> <br/> <t size='0.9'> %4 </t><img size='0.8' align='right' image='custom\playerhud\icons\As_zkill.paa'/> <br/> <t size='0.8' align='right'>%11h %12min UPTIME</t><br/>", AsReMixhud_blood, //1 AsReMixhud_humanity,//2 [_cashMoney] call BIS_fnc_numberText,//3 AsReMixhud_zombiekills,//4 AsReMixhud_hmnicon,//5 name player,//6 AsReMixhud_zombiesAlive,//7 AsReMixhud_zombies,//8 AsReMixhud_killsB,//9 AsReMixhud_killsH,//10 _hours,//11 _minutes2,//12 [_bankMoney] call BIS_fnc_numberText,//13 ]; _vitals ctrlCommit 0; sleep 2; }; I always had problems with the preset ones. I customized my own for it to work Link to comment Share on other sites More sharing options...
flakvest Posted September 2, 2014 Author Report Share Posted September 2, 2014 Would someone mind showing me an example of a working one? It worked perfectly using Zupa's but then the one I downloaded from Soul's github doesn't show up at all. I am not a coding whiz but can usually pull apart and fix if I knew what a working one looked like using Soul's hive. Thanks Link to comment Share on other sites More sharing options...
Rocu Posted September 2, 2014 Report Share Posted September 2, 2014 Would someone mind showing me an example of a working one? It worked perfectly using Zupa's but then the one I downloaded from Soul's github doesn't show up at all. I am not a coding whiz but can usually pull apart and fix if I knew what a working one looked like using Soul's hive. Thanks Do you have these lines on the top of your compiles.sqf: BIS_fnc_numberDigits = compile preprocessFileLineNumbers "custom\numberDigits.sqf"; BIS_fnc_numberText = compile preprocessFileLineNumbers "custom\numberText.sqf"; If you do, check if those files really exist and see if they're in the right folder. Link to comment Share on other sites More sharing options...
flakvest Posted September 2, 2014 Author Report Share Posted September 2, 2014 Yes I do have those defined in compiles and they point to files that exist in that path. numberDigits.sqf private ["_number","_step","_stepLocal","_result","_numberLocal","_add"]; _number = [_this,0,0,[0]] call bis_fnc_param; if (_number < 10) then { [_number] } else { _step = 10; _stepLocal = _step; _result = [0]; _add = false; while {_stepLocal < (_number * _step)} do { _numberLocal = _number % (_stepLocal); { _numberLocal = _numberLocal - _x; } foreach _result; _numberLocal = floor (_numberLocal / _stepLocal * _step); if (_numberLocal < 0) then {_numberLocal = 9}; _result = [_numberLocal] + _result; _stepLocal = _stepLocal * (_step); }; if ((_result select 0) == 0) then {_result = [1] + _result;}; _result resize (count _result - 1); _result }; numberText.sqf private ["_number","_mod","_digots","_digitsCount","_modBase","_numberText"]; _number = [_this,0,0,[0, ""]] call bis_fnc_param; _mod = [_this,1,3,[0]] call bis_fnc_param; if (typeName _number == "STRING") then { _number = parseNumber _number; }; _digits = _number call BIS_fnc_numberDigits; _digitsCount = count _digits - 1; _modBase = _digitsCount % _mod; _numberText = ""; { _numberText = _numberText + str _x; if ((_foreachindex - _modBase) % (_mod) == 0 && _foreachindex != _digitsCount) then {_numberText = _numberText + ",";}; } foreach _digits; _numberText Link to comment Share on other sites More sharing options...
Rocu Posted September 3, 2014 Report Share Posted September 3, 2014 Yes I do have those defined in compiles and they point to files that exist in that path. You have one comma too many. In your playerHud.sqf 6th line from the bottom, remove the comma. In other words, change this: [_bankMoney] call BIS_fnc_numberText,//13 To this: [_bankMoney] call BIS_fnc_numberText //13 Link to comment Share on other sites More sharing options...
flakvest Posted September 3, 2014 Author Report Share Posted September 3, 2014 Thanks for that and I did change it. I'm still not getting it to load though. This one will actually load, it's the one that came from Zupa's github, albeit it's displaying zero's and I'm sure it's not calling the right info. I am no where near the level of some of you guys when it comes to coding skills but generally I can look at something and tell where there is a problem. I think I've looked at the one above though too long and I am still just left scratching my head. Thanks. disableSerialization; // player setVariable["AsReMixhud", true];//Variable Show/Hide HUD Support for control player hud AsReMixhud_Control = true; // player getVariable["AsReMixhud",true]; while {true} do { 1000 cutRsc ["AsReMixhud","PLAIN"]; _wpui = uiNameSpace getVariable "AsReMixhud"; _vitals = _wpui displayCtrl 4900; _thePlayer = player; AsReMixhud_zombieKills = _thePlayer getVariable["zombieKills",0]; AsReMixhud_headshots = _thePlayer getVariable["headShots",0]; AsReMixhud_killsH = _thePlayer getVariable["humanKills",0]; Zupa_bank = _thePlayer getVariable["bank",0]; AsReMixhud_killsB = _thePlayer getVariable["banditKills",0]; AsReMixhud_humanity = _thePlayer getVariable["humanity",0]; AsReMixhud_zombies = ""; AsReMixhud_zombiesAlive = ""; AsReMixhud_blood = ""; AsReMixhud_pid = ""; AsReMixhud_puid = ""; AsReMixhud_hmnicon = ""; AsReMixhud_fps = (round diag_fps); AsReMixhud_svrname = "Amnesia"; _stime = 0; if(serverTime > 36000)then{_stime = time;}else{_stime = serverTime;}; _hours = (_stime/60/60); _hours = toArray (str _hours); _hours resize 1; _hours = toString _hours; _hours = compile _hours; _hours = call _hours; _minutes = floor(_stime/60); _minutes2 = ((_minutes - (_hours*60)) min 60) max 0;if (_minutes2 < 10) then {_minutes2 = format ['0%1',_minutes2];}; //if(AsReMixhud_humanity >= 5000) then { AsReMixhud_hmnicon = "<img size='0.8' image='addons\playerhud\icons\As_hmhero.paa'/>"; }; //if((AsReMixhud_humanity >= 200) && (AsReMixhud_humanity <= 4999)) then { AsReMixhud_hmnicon = "<img size='0.8' image='addons\playerhud\icons\As_hmcivil.paa'/>"; }; // if(AsReMixhud_humanity <= 199) then { AsReMixhud_hmnicon = "<img size='0.8' image='addons\playerhud\icons\As_hmbandit.paa'/>"; }; _vitals ctrlSetStructuredText parseText format [" <t size='0.8' align='right'>Zupa - AsRemix</t><br/> <t size='0.9'> %2 %5 </t><img size='0.8' align='right' image='addons\playerhud\icons\As_humanity.paa'/> <br/> <t size='0.9'> %3 </t><img size='0.8' align='right' image='addons\playerhud\icons\dollars.paa'/> <br/> <t size='0.9'> %14 </t><img size='0.8' align='right' image='addons\playerhud\icons\equip_safe_CA.paa'/> <br/> <t size='0.9'> %10 </t><img size='0.8' align='right' image='addons\playerhud\icons\As_killh.paa'/> <br/> <t size='0.9'> %9 </t><img size='0.8' align='right' image='addons\playerhud\icons\As_killb.paa'/> <br/> <t size='0.9'> %4 </t><img size='0.8' align='right' image='addons\playerhud\icons\As_zkill.paa'/> <br/> <t size='0.8' align='right'>%13 FPS</t><br/> <t size='0.8' align='right'>%11h %12min UPTIME</t><br/>", AsReMixhud_blood, //1 AsReMixhud_humanity,//2 AsReMixhud_headshots,//3 AsReMixhud_zombiekills,//4 AsReMixhud_hmnicon,//5 name player,//6 AsReMixhud_zombiesAlive,//7 AsReMixhud_zombies,//8 AsReMixhud_killsB,//9 AsReMixhud_killsH,//10 _hours,//11 _minutes2,//12 AsReMixhud_fps,//13 Zupa_bank,//14 AsReMixhud_svrname//15 ]; _vitals ctrlCommit 0; sleep 2; }; Link to comment Share on other sites More sharing options...
Rocu Posted September 3, 2014 Report Share Posted September 3, 2014 Thanks for that and I did change it. I'm still not getting it to load though. This one will actually load, it's the one that came from Zupa's github, albeit it's displaying zero's and I'm sure it's not calling the right info. I am no where near the level of some of you guys when it comes to coding skills but generally I can look at something and tell where there is a problem. I think I've looked at the one above though too long and I am still just left scratching my head. Thanks. You have different file paths for the icons compared to Zupa's hud. Your script: custom\playerhud\icons\... Zupa's script: addons\playerhud\icons\ Considering Zupa's script worked I'm guessing your icons are located at \addons\ instead of \custom\? Link to comment Share on other sites More sharing options...
flakvest Posted September 3, 2014 Author Report Share Posted September 3, 2014 Sorry I meant the icons are there, just not the right information is showing beside each icon. Figuring out their table was a little tricky but I think I got it now. Thanks alot. Link to comment Share on other sites More sharing options...
Rocu Posted September 3, 2014 Report Share Posted September 3, 2014 Sorry I meant the icons are there, just not the right information is showing beside each icon. Figuring out their table was a little tricky but I think I got it now. Thanks alot. Aaah, okay yeah that's a different story. Just follow the variables and enter the right numbers and you'll be fine. Btw that's why there are commented out numbers behind each line: AsReMixhud_blood, //1 AsReMixhud_humanity,//2 _cashMoney,//3 AsReMixhud_zombiekills,//4 AsReMixhud_hmnicon,//5 name player,//6 and so on... //1 means %1 between the format's quote marks, //2 = %2 and so on... My explanation wasn't the best but you'll get the hang of it. ;) Link to comment Share on other sites More sharing options...
Chunk. No Captain Chunk. Posted September 4, 2014 Report Share Posted September 4, 2014 Aaah, okay yeah that's a different story. Just follow the variables and enter the right numbers and you'll be fine. Btw that's why there are commented out numbers behind each line: AsReMixhud_blood, //1 AsReMixhud_humanity,//2 _cashMoney,//3 AsReMixhud_zombiekills,//4 AsReMixhud_hmnicon,//5 name player,//6 and so on... //1 means %1 between the format's quote marks, //2 = %2 and so on... My explanation wasn't the best but you'll get the hang of it. ;) I do have to say, I had huge problems trying to get the HUD to work, but after creating and editing my own.. Perfecto. Had no problems what so ever. Link to comment Share on other sites More sharing options...
tallboy2k7 Posted December 13, 2014 Report Share Posted December 13, 2014 Hey guys I'm having an issue with my HUD, it wont update a players status more than once per log-in/out. ie. If you get hit , your blood doesnt change except for the first hit. 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