itsatrap

xm8 status bar

29 posts in this topic

Hi,

 

Just what to share my little tweaks to the xm8, since I think status-bars are the spawn of the Devil

copy exileclient_gui_xm8_thread_update.sqf to you mission file and add this to you mission config.cpp

find "class CfgExileCustomCode" add

Exileclient_gui_xm8_thread_update = "exileclient_gui_xm8_thread_update.sqf";

Replace the text in "exileclient_gui_xm8_thread_update.sqf" with whats below

/**

 * FILE: exileclient_gui_xm8_thread_update.sqf
 * Exile Mod
 * exile.majormittens.co.uk
 * © 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/.
 * 
 * Restart and player count by itsatrap / 
 */

private["_display","_leftHeader","_hours","_minutes","_8GImage","_rightHeader","_time","_onlinePlayers","_restart"];
disableSerialization;
_display 	= uiNameSpace getVariable ["RscExileXM8", displayNull];

_onlinePlayers = count (allPlayers - allMissionObjects "HeadlessClient_F");
_leftHeader = _display displayCtrl 4003;
_leftHeader ctrlSetStructuredText (parseText (format ["<t align='left'><img image='\A3\ui_f\data\gui\Rsc\RscDisplayMultiplayerSetup\disabledai_ca.paa' shadow='0'/>%2 - %1</t>", mapgridposition player, _onlinePlayers]));

_hours 		= str (date select 3);
_minutes 	= str (date select 4);
// 6*60 = 6 hours, change "6" to the number of hours you have between restarts
_restart 	= [(round((6*60))-(serverTime)/60),"MM:SS"] call BIS_fnc_secondsToString;
if (count _minutes isEqualTo 1) then
{
  _minutes = "0" + _minutes;
};
if ((player getVariable ["ExileXM8IsOnline", false]) isEqualTo true) then
{
  _8GImage = format ["\exile_client\texture\ui\xm8_signal_%1_ca.paa", (round (random 4)) + 1];
}
else
{
  _8GImage = "\exile_client\texture\ui\xm8_signal_0_ca.paa";
};
_rightHeader = _display displayCtrl 4005;
_rightHeader ctrlSetStructuredText (parseText (format ["<t align='right' shadow='0'><img image='%1' shadow='0'/>%2:%3 - Restart: %4</t>", _8GImage, _hours, _minutes, _restart]));

what it looks like.

Capture.thumb.PNG.c817b7b3c0eec9b667f2db

The red/blue lines is just to show where the change is

 

Battleye:

LINE: 37 (default  filters) (7 allPlayers)

!="ble [\"RscExileXM8\", displayNull];\n\n_onlinePlayers = count (allPlayers - allMissionObjects \"HeadlessClient_F\");\n_leftHeader = _di"

 

Edited by itsatrap
  • Like 11

Share this post


Link to post
Share on other sites
Advertisement

good work, if i was to use i would have to redo the code to fit in with real-world time we have on the server which is a pain in the ass

its just count from 6 hours to 0 so i still Think you Can use it in your real world time ?

Share this post


Link to post
Share on other sites

kick ¬¬

scripts.log

#38 "", displayNull];

_onlinePlayers = count (allPlayers - allMissionObjects "HeadlessClient_F");
_leftHeader = _display displayCtrl"

scripts.txt


7 loadFile !="loadFile \"\A3\animals_f\Snakes\scripts\randomize.sqf" !="ble [\"RscExileXM8\", displayNull];\n\n_onlinePlayers = count (allPlayers - allMissionObjects \"HeadlessClient_F\");\n_leftHeader = _di"

I did everything as you indicated :(

Share this post


Link to post
Share on other sites

kick ¬¬

scripts.log

Hidden Content

scripts.txt

Hidden Content

Hello, batteye kick me, in script.txt it's at the line "7 setDamage" right?

See update, 

!="ble [\"RscExileXM8\", displayNull];\n\n_onlinePlayers = count (allPlayers - allMissionObjects \"HeadlessClient_F\");\n_leftHeader = _di"

LINE 36 in default battleye, don't know with infi.

Share this post


Link to post
Share on other sites

 

See update, 

!="ble [\"RscExileXM8\", displayNull];\n\n_onlinePlayers = count (allPlayers - allMissionObjects \"HeadlessClient_F\");\n_leftHeader = _di"

LINE 36 in default battleye, don't know with infi.

I know but i do it.. by default line 36 it's "7 setDamage"

but i am kick again when i open the xm8

So thanks for your help

Share this post


Link to post
Share on other sites

line 37 my fault.

LINE: 37 (default  filters) (7 allPlayers)

!="ble [\"RscExileXM8\", displayNull];\n\n_onlinePlayers = count (allPlayers - allMissionObjects \"HeadlessClient_F\");\n_leftHeader = _di"

Share this post


Link to post
Share on other sites
Advertisement

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

  • Recently Browsing   0 members

    No registered users viewing this page.