Eggbox

block a display in infistar

8 posts in this topic

hi... again

i need help with blocking an exile display (hunger, thirst on bottom left of screen)....

some players with smaller screens say that it obscures system chat and i have status bar installed so its not really needed

i tried to edit

exile_client\code\ExileClient_gui_hud_renderStatsPanel.sqf

but it didn't work, im guessing that all players must do that edit in their client for it to work, or i didn't edit it properly 

so.... is it possible for me to add the display IDD to infistars display blacklist?

if so, how would i find the IDD?.... i think i have tracked it down to #display 24 but im not sure

thanks in advance :)

Edited by Eggbox

Share this post


Link to post
Share on other sites

That is in exile already so if it works by default it will also work once it is changed like this:

 

Spoiler

/*
	ExileClient_gui_hud_renderStatsPanel
	
	Exile Mod
	www.exilemod.com
	© 2015 Exile Mod Team
	
	This work is licensed under the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License. 
	To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/4.0/
	
	
	Edit:
	No Hunger or Thirst shown..
*/
private["_display","_health","_healthValueControl","_healthLabelControl"];
disableSerialization;
if (diag_tickTime - ExileHudStatsRenderedAt >= 0.25) then
{
	ExileHudStatsRenderedAt = diag_tickTime;
	_display = uiNamespace getVariable "RscExileHUD";
	_health = round (ExileClientPlayerAttributes select 0);
	_healthValueControl = _display displayCtrl 1306;
	_healthValueControl ctrlSetText format ["%1%2", _health, "%"];
	_healthLabelControl = _display displayCtrl 1307;
	if (_health > 25) then
	{
		_healthLabelControl ctrlSetTextColor [0.25, 0.85, 1, 1];
		_healthValueControl ctrlSetTextColor [1, 1, 1, 1];
	}
	else 
	{
		_healthLabelControl ctrlSetTextColor [0.9, 0.15, 0.15, 1];
		_healthValueControl ctrlSetTextColor [0.9, 0.15, 0.15, 1];
	};
};

 

 

1 person likes this

Share this post


Link to post
Share on other sites
Advertisement

yes, it looks like i did edit that wrong...

thanks for the re-edit and the help again :)

Share this post


Link to post
Share on other sites

sorry chris,

the display still shows after your edit...

i replaced the text in 

exile_client\code\ExileClient_gui_hud_renderStatsPanel.sqf

with yours, repacked PBO and uploaded to @exile\addons on my server

i'm probably still doing something wrong

i just thought i could block that display using infistar...

being as this isnt a real anti-hack/infistar question you can close if you like :)

Edited by Eggbox

Share this post


Link to post
Share on other sites

That is not how you replace it, you can't just replace your client files as then your pbo is not signed anymore and you would get kicked.

You put the file into your mpmission and open the config.cpp

You search for

class CfgExileCustomCode 

then you add

ExileClient_gui_hud_renderStatsPanel = "ExileClient_gui_hud_renderStatsPanel.sqf";

 

within the class.

 

So it looks like this:
 

class CfgExileCustomCode 
{
    ExileClient_gui_hud_renderStatsPanel = "ExileClient_gui_hud_renderStatsPanel.sqf";
};

 

and gg works ;)

1 person likes this

Share this post


Link to post
Share on other sites
9 hours ago, Eggbox said:

i just thought i could block that display using infistar...

being as this isnt a real anti-hack/infistar question you can close if you like :)

you are right, has nothing to do with antihack :)

1 person likes this

Share this post


Link to post
Share on other sites

no wonder I couldn't get it to work :P

thanks for the help again

please close

Share this post


Link to post
Share on other sites
Advertisement
Guest
This topic is now closed to further replies.

  • Recently Browsing   0 members

    No registered users viewing this page.