Jump to content

[Released] Player Stats Elite!


- VJ -

Recommended Posts

hey,

first of all this is great work and looks very nice.

i have a problem maybe not regarding this script but i'll ask anyway.

i installed it on my private pc to test it out and it worked great. after installing it to my host i dont get this running. something prevents it from showing and i cant figure out what that would be. the same problem occurs to several misison systems which show spawned missions with a popup (like vemf or wai). the missions work as intended but dont show any popups (different statbars show the same problem).

the basic.cfg and server.cfg along with the be scripts.txt is the same, turning off BE didnt solve that problem either.

maybe someone can give me a hint?

 

thx in advance

Link to comment
Share on other sites

thanks for replying, i checked everything and it didnt work because of my custom loadout srcipt.

i moved it to the end of my init without success, but after removing it entirely everything now works as a charm.

its funny that it works when i host it on my private pc.

 

anyways, heres the init

//VEMF
if (!isDedicated) then {
    "VEMFChatMsg" addPublicVariableEventHandler {
        systemChat ((_this select 1) select 0);
        [
            [
                [((_this select 1) select 0),"align = 'center' size = '1' font=PuristaBold'],
                ["","<br/>"],
                [((_this select 1) select 1),"align = 'center' size = '0.5'"]
            ]
        ] spawn BIS_fnc_typeText2;
        VEMFChatMsg = nil;
    };
};

//BlckEagl
//If server execute this script
if (isServer) then {
    execVM "\q\addons\custom_server\init.sqf";
//If anything but server execute this script
} else {
    [] spawn {
        //This is to spawn the markers when players enter after server has started
        [] execVM "debug\addmarkers.sqf";
        [] execVM "debug\addmarkers2.sqf";
        [] execVM "debug\addmarkers75.sqf";
        [] execVM "debug\addmarkers752.sqf";
        //Event handler to show messages to players // this can be used for other scripts to send messages to players -- see AIM.sqf
        "blck_Message" addPublicVariableEventHandler {titleText[format["%1",_this select 1],"PLAIN DOWN",1];};
    };
};

// Simple Epoch Missions
if(hasInterface)then{execVM "SEM\semClient.sqf"};

// A3EAI
#include "A3EAI_Client\A3EAI_initclient.sqf";

//Wicked
[] execVM "wai\remote.sqf";

//StatusBar
[]execVM "custom\playerStatsElite\psConfig.sqf";

//No Fatigue
[] spawn {
    while {true} do {
        player setFatigue 0;
        uiSleep 6;
    };
};

 

//Custom Loadout

if (!isServer) then {
    waitUntil {!isNull player};
    waitUntil {player == player};
    
    
while {true} do {_player = player;
            player addEventHandler ["Respawn",
                {
                    player addVest "V_41_EPOCH";                
                    player forceAddUniform
"U_C_Poor_1";
                    player addWeapon "ItemMap";
                    player addWeapon "ItemCompass";
                    player addWeapon "ItemWatch";
                }
            ];
        waitUntil {_player != player};
    };
};

 

its outdated in epoch0.3 so i can live without it, but its still weird. exact same setup, with be filters and stuff.

thanks for taking a look, im still learning all that stuff =)

Link to comment
Share on other sites

  • 3 weeks later...

One thing though how do i move it further down screen? 

 

Thanks once again

 

If you going to \custom\playerStatsElite\scripts and open PSEL.hpp and find

 Line 24     y = 0.115 * safezoneH + safezoneY;

 

 and increase the 0.115 by 10 it will move down but it will take a bit or testing to get it where you want.

 

or if you know how to use the map editor->  GUI editor you can get the pos from there.

 

Thanks

 

- VJ -

Link to comment
Share on other sites

If you going to \custom\playerStatsElite\scripts and open PSEL.hpp and find

 and increase the 0.115 by 10 it will move down but it will take a bit or testing to get it where you want.

 

or if you know how to use the map editor->  GUI editor you can get the pos from there.

 

Thanks

 

- VJ -

Thanks dude! that worked perfectly :D

Link to comment
Share on other sites

  • 2 weeks later...

hi every one but im a noob just starting to do stuff like this  can some one tell me were to put this file and what one to download thank u im stuck

DL link here https://github.com/VJ-B/Player_Stats_Elite

then click download zip on the right hand side

 

then follow the instal instructions (if you get stuck join my TS insanityepoch.co.uk)

Link to comment
Share on other sites

i'm sure this can be done much better but it works perfect for me

 

/*-
 * Developers VJ - Developer - http://epochmod.com/forum/index.php?/user/17218-vj/
 * Edited by Gorgy WWW.Highlife.Gaming.com
 *
 * VJsPlayerStats.sqf Ver: 0.391.b
 * License:
 * All the code and information provided here is provided under an Attribution Non-Commercial ShareAlike 4.0 Commons License.
 * http://creativecommons.org/licenses/by-nc-sa/4.0/
-*/

serverTitle="---Your Server Name";
delay=0;

//No need to modify
waitUntil {!isNull player};
waitUntil {!(isNull (findDisplay 46))};
_PS = "VJs_PS" call BIS_fnc_rscLayer;
_PS cutRsc["VJs_PS","PLAIN"];

disableSerialization;
sleep delay;
[] spawn {
	while {true} do	{
	
		//Thirst
		if(EPOCH_playerThirst > 1875) then {Thirst_Icon_Path = 'Custom\img\Drink_1.paa' };
		if(EPOCH_playerThirst < 1875) then {Thirst_Icon_Path = 'Custom\img\Drink_0.75.paa'};
		if(EPOCH_playerThirst < 1250) then {Thirst_Icon_Path = 'Custom\img\Drink_0.5.paa'};
		if(EPOCH_playerThirst < 625) then {Thirst_Icon_Path = 'Custom\img\Drink_0.25.paa'};
		if(EPOCH_playerThirst < 250) then {Thirst_Icon_Path = 'Custom\img\Drink_0.1.paa'};
		
		//Hunger
		if(EPOCH_playerHunger > 3750) then {Hunger_Icon_Path = 'Custom\img\Food_1.paa'};
		if(EPOCH_playerHunger < 3750) then {Hunger_Icon_Path = 'Custom\img\Food_0.75.paa'};
		if(EPOCH_playerHunger < 2500) then {Hunger_Icon_Path = 'Custom\img\Food_0.5.paa'};
		if(EPOCH_playerHunger < 1250) then {Hunger_Icon_Path = 'Custom\img\Food_0.25.paa'};
		if(EPOCH_playerHunger < 500) then {Hunger_Icon_Path =  'Custom\img\Food_0.1.paa'};
		
		//Health
		if(damage player < 0.75) then {Health_Icon_Path = 'Custom\img\Health_1.paa'};
		if(damage player > 0.75) then {Health_Icon_Path = 'Custom\img\Health_0.75.paa'};
		if(damage player > 0.5) then {Health_Icon_Path = 'Custom\img\Health_0.5.paa'};
		if(damage player > 0.25) then {Health_Icon_Path = 'Custom\img\Health_0.25.paa'};
		if(damage player > 0.1) then {Health_Icon_Path = 'Custom\img\Health_0.1.paa'};
		
		//Energy
		if(EPOCH_playerEnergy > 1875) then {Energy_Icon_Path = 'Custom\img\Energy_1.paa'};
		if(EPOCH_playerEnergy < 1875) then {Energy_Icon_Path = 'Custom\img\Energy_0.75.paa'};
		if(EPOCH_playerEnergy < 1250) then {Energy_Icon_Path = 'Custom\img\Energy_0.5.paa'};
		if(EPOCH_playerEnergy < 625) then {Energy_Icon_Path = 'Custom\img\Energy_0.25.paa'};
		if(EPOCH_playerEnergy < 250) then {Energy_Icon_Path = 'Custom\img\Energy_0.1.paa'};
		
		
		
	

	
			if(!(isAbleToBreathe player)) then{
				oText = "Oxygen: ";
				oxygen = getOxygenRemaining player;
			}else{
				oText="Oxygen: ";
				oxygen="1";
			};
			
			if(isBurning player) then {
				bText = "You a Burning!";
			};
			if(isBleeding player) then {
				bText = "You a Bleeding!";
			};
			if((isBurning player) && (isBleeding player)) then{			
				bText = "You're burning & bleeding. Its just not your day is it!";
			};
			bText="Health: OK";
			
			
			

			
			
			((uiNamespace getVariable "VJs_PS")
			displayCtrl 200289)
			ctrlSetStructuredText parseText format
			

	
["

<t size='2.00' align='center' color='#E5E4E2'> %1 </t><br/><br/>
<t size='1.40' align='left'   color='#008C8C'>FPS: %2</t>
<t size='1.40' align='right'  color='#CC6900'>PLAYERS: %3</t><br/><br/>
<img size='3.4' align='center' image= '%16'/><br/><br/>
<img size='3.4' align='center' image= '%17'/><br/><br/>
<img size='3.4' align='center' image= '%18'/><br/><br/>
<img size='3.4' align='center' image= '%19'/><br/><br/>

<t size='1.60' align='center'   color='#E5E4E2'>[Server]</t><br/><br/>
<t size='1.40' align='center'   color='#FF00FF'>Server UpTime: %15</t><br/>
<t size='1.40' align='center'   color='#FF00FF'>TS: ---Your TS IP---  </t><br/><br/><br/><br/>

"
,serverTitle,round diag_fps,count playableUnits,damage player,EPOCH_playerHunger,EPOCH_playerThirst,EPOCH_playerEnergy,EPOCH_playerStamina,(getFatigue player),EPOCH_playerCrypto,mapGridPosition player,(text (oText)),oxygen,(text (bText)),serverTime, Thirst_Icon_Path, Hunger_Icon_Path, Health_Icon_Path, Energy_Icon_Path
];

			sleep 1;
	};
};

 

Icons (these still need some work):

https://www.dropbox.com/s/jhg9wsqi52izxzt/icons.rar?dl=0

Thanks for sharing, but where does the code go to ?

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...