Jump to content

[Tutorial] Custom Debug / Stats


Recommended Posts

Just something I thought I would share :)

Image :

qzUepN7.jpg


Changes :
Images Resized (Smaller Mission File)
Icon Changes When Hero Or Bandit
Removed all unused code 
Made the Numbers Match the Variables
Removed Unused Images
Completely remade the playerhud.sqf 
 
Install :
Links Updated : 18/09/2014
 
Zupa 1.1 :
Just Replace The playerhud In The Addons Folder Download
 
Souls Version : 
Just Replace The playerhud In The Addons Folder Download

Credit :
Zupa (Coin System)
AsReMix (For The Hud)

Link to comment
Share on other sites

How do you group your numbers? Or should I ask where can I get numberDigits.sqf And numberText.sqf?

 

Edit// Nevermind found it.

 

The sqf files:

 

And how to 'install':

 

I think you should include this in your first post because most people will be looking for this.

 

 

 

Edit// In fact this does NOT work for me. As soon as I apply the "call BIS_fnc_numberText" my HUD completely disappears. I have also removed almost everything from the original HUD, only kept the money & money in bank variables, so MAYBE that has something to do with it? Anyway, here's my playerHud.sqf:

 

disableSerialization;

AsReMixhud_Control = true; // player getVariable["AsReMixhud",true];

while {true} do
{
    1000 cutRsc ["AsReMixhud","PLAIN"];
    _wpui = uiNameSpace getVariable "AsReMixhud";
    _vitals = _wpui displayCtrl 4900;
	
	_thePlayer = player;
	
	_cashMoney 		= _thePlayer getVariable["cashMoney",0];
    _bankMoney 		= _thePlayer getVariable["bankMoney",0];
    
	_vitals ctrlSetStructuredText parseText format ["
		<t size='1'> %1 </t><img size='1' align='right' image='addons\playerhud\icons\dollars.paa'/>   <br/>
		<t size='1'> %2 </t><img size='1' align='right' image='addons\playerhud\icons\equip_safe_CA.paa'/>   <br/>",
	[_cashMoney] call BIS_fnc_numberText,
	[_bankMoney] call BIS_fnc_numberText
	];
	_vitals ctrlCommit 0;
        
    sleep 2;
};
 

 

Anyone know a possible fix cause it's quite irritating without the commas. 

 

Also, the function (call BIS_fnc_numberText) works perfectly fine everywhere else. I've added it to traders and in bank.

Link to comment
Share on other sites

How do you group your numbers? Or should I ask where can I get numberDigits.sqf And numberText.sqf?

 

Edit// Nevermind found it.

 

The sqf files:

 

And how to 'install':

 

I think you should include this in your first post because most people will be looking for this.

 

 

 

Edit// In fact this does NOT work for me. As soon as I apply the "call BIS_fnc_numberText" my HUD completely disappears. I have also removed almost everything from the original HUD, only kept the money & money in bank variables, so MAYBE that has something to do with it? Anyway, here's my playerHud.sqf:

 

disableSerialization;

AsReMixhud_Control = true; // player getVariable["AsReMixhud",true];

while {true} do
{
    1000 cutRsc ["AsReMixhud","PLAIN"];
    _wpui = uiNameSpace getVariable "AsReMixhud";
    _vitals = _wpui displayCtrl 4900;
	
	_thePlayer = player;
	
	_cashMoney 		= _thePlayer getVariable["cashMoney",0];
    _bankMoney 		= _thePlayer getVariable["bankMoney",0];
    
	_vitals ctrlSetStructuredText parseText format ["
		<t size='1'> %1 </t><img size='1' align='right' image='addons\playerhud\icons\dollars.paa'/>   <br/>
		<t size='1'> %2 </t><img size='1' align='right' image='addons\playerhud\icons\equip_safe_CA.paa'/>   <br/>",
	[_cashMoney] call BIS_fnc_numberText,
	[_bankMoney] call BIS_fnc_numberText
	];
	_vitals ctrlCommit 0;
        
    sleep 2;
};
 

 

Anyone know a possible fix cause it's quite irritating without the commas. 

 

Also, the function (call BIS_fnc_numberText) works perfectly fine everywhere else. I've added it to traders and in bank.

 

most people will have this, its implemented in zupa's v1.1 release and aswell required by my updates/fixes.

Link to comment
Share on other sites

currently using this and love it! only 1 problem players online won't update only shows 1 player online all the time, but works for admins using infistar antihack.  someone help me on this please?

 

TO Fix this issue:

 

In PlayerHUD.sqf

 

Find:

AsReMixhud_Players        =     (count playableUnits);

Replace with:

_players = [];
    {
        _y = _x;
        if (isPlayer _y) then
            {
                {_players = _players + [_x];} forEach (crew _y);
            };
    } forEach ([0,0,0] nearEntities ['AllVehicles', 10000000]);
    _pOn = {isPlayer _x} count _players;

Find:

AsReMixhud_Players

Replace with:

_pOn

This should now fix the online player count issue for regular players

Link to comment
Share on other sites

anyone know where i can find a script for just the coin and safe icon? something like this Cold-coins.jpg

If your gonna use that (Which I wouldn't suggest since theres a lot of those signs everywhere), check out my alternate ATM object over at: 

You'll find my alternate ATM object really easy to access and it keeps the realism for the banking item.

Heres an image:

2014-08-22_00003_zps95767549.jpg

Link to comment
Share on other sites

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