Jump to content
Defay

[Release] Cen's Custom GUI for Epoch/Overpoch

Recommended Posts

Hey guys,

so I saw that there are lot of people asking how to get an GUI looking like this:

 

bfKLcQE.png

 

This is not my work, I'm only posting a tutorial on how to do it. This is from user Cen who was so nice to share it with us.

All credits go to: Cen

 

Tutorial:

 

1.) First download these files and extract them in the root of your mission folder or mission.pbo.

Download Link or Attached files.

 

2.) Add this to the bottom of description.ext

class RscPictureGUI
{
    access = 0;
    type = 0;
    idc = -1;
    colorBackground[] = {0,0,0,0};
    colorText[] = {0.38,0.63,0.26,0.75};
    font = "TahomaB";
    sizeEx = 0;
    lineSpacing = 0;
    text = "";
    style = "0x30 + 0x100";
    x = 0;
    y = 0;
    w = 0.2;
    h = 0.15;
};
class RscTextGUIK {
    type = 0;
    idc = -1;
    style = 0x02;
    colorBackground[] = {0,0,0,0};
    colorText[] = {1, 1, 1, 0.5};
    //color[] = {1, 1, 1, 0.5};
    font = "TahomaB";
    size = 0.03;
    sizeEx = 0.03;
    x = 0;
    y = 0;
    w = 0.1;
    h = 0.2;
};

#include "dayz_code\gui\ATD_Hud.h"

3.) Add this line to a custom compiles.sqf or overwrite the path in the existing compiles.sqf (depends how you call yours).

I will not do a tutorial on how to add custom compiles as there are plenty of them already out here on this forum.

player_updateGui  = 	compile preprocessFileLineNumbers "dayz_code\compile\player_updateGui.sqf";

4.) Edit ATD_Hud.h to your liking.

 

And that should be it! If you have any questions or problems with it, please post down below and I'll try to get back to you as soon as possible or send me a PM.

Let me know how I did for my first tutorial and thanks again to Cen for the HUD and letting me post a tutorial on this.

ATD-HUD-FILES.zip

Share this post


Link to post
Share on other sites

Thanks for this. I have plot pole for life installed which also uses a custom player_updateGUI, is this compatible or do we have to merge the two together?

I'm not sure. I think you must merge them together. Or if there is a way to run both at the same time and just to add a new line like:

player_updateGui2  = 	compile preprocessFileLineNumbers "compile\player_updateGui2.sqf";

Share this post


Link to post
Share on other sites

dang it I always get these confilcts with 

ErrorMessage: File mpmissions\__cur_mp.Napf\description.ext, line 267: .RscPictureGUI: Member already defined.

 

can one just rename RscPictureGUI to like 

RscPictureGUI_1 or something ????

Share this post


Link to post
Share on other sites

dang it I always get these confilcts with 

ErrorMessage: File mpmissions\__cur_mp.Napf\description.ext, line 267: .RscPictureGUI: Member already defined.

 

can one just rename RscPictureGUI to like 

RscPictureGUI_1 or something ????

That means that RscPictureGUI has been defined somewhere else already. I had the same problem, what I did was copied all of this code:

 

class playerStatusGUI {
idd = 6900;
movingEnable = 0;
duration = 100000;
name = "statusBorder";
onLoad = "uiNamespace setVariable ['DAYZ_GUI_display', _this select 0];";
class ControlsBackground {
//FOOD BACKGROUND
class RscPicture_1901: RscPictureGUI
{
idc = 1901;
text = "\z\addons\dayz_code\gui\status\status_bg.paa";
x = 0.905 * safezoneW + safezoneX;
y = 0.93 * safezoneH + safezoneY;//2
w = 0.075;
h = 0.10;
};
//FOOD BORDER
class RscPicture_1201: RscPictureGUI
{
idc = 1201;
text = "\z\addons\dayz_code\gui\status\status_food_border_ca.paa";
x = 0.905 * safezoneW + safezoneX;
y = 0.93 * safezoneH + safezoneY;//2
w = 0.075;
h = 0.10;
};
//BLOOD BACKGROUND
class RscPicture_1900: RscPictureGUI
{
idc = 1900;
text = "\z\addons\dayz_code\gui\status\status_bg.paa";
x = 0.875 * safezoneW + safezoneX;
y = 0.93 * safezoneH + safezoneY; //3
w = 0.075;
h = 0.10;
};
//BLOOD BORDER
class RscPicture_1200: RscPictureGUI
{
idc = 1200;
text = "\z\addons\dayz_code\gui\status\status_blood_border_ca.paa";
x = 0.875 * safezoneW + safezoneX;
y = 0.93* safezoneH + safezoneY; //3
w = 0.075;
h = 0.10;
};
//THIRST BACKGROUND
class RscPicture_1902: RscPictureGUI
{
idc = 1902;
text = "\z\addons\dayz_code\gui\status\status_bg.paa";
x = 0.935 * safezoneW + safezoneX;
y = 0.93 * safezoneH + safezoneY; //1
w = 0.075;
h = 0.10;
};
//THIRST BORDER
class RscPicture_1202: RscPictureGUI
{
idc = 1202;
text = "\z\addons\dayz_code\gui\status\status_thirst_border_ca.paa";
x = 0.935 * safezoneW + safezoneX;
y = 0.93 * safezoneH + safezoneY; //1
w = 0.075;
h = 0.10;
};
//TEMP BACKGROUND
class RscPicture_1908: RscPictureGUI
{
idc = 1908;
text = "\z\addons\dayz_code\gui\status\status_bg.paa";
x = 0.845 * safezoneW + safezoneX;
y = 0.93 * safezoneH + safezoneY; //3
w = 0.075;
h = 0.10;
};
//TEMP BORDER
class RscPicture_1208: RscPictureGUI
{
idc = 1208;
text = "\z\addons\dayz_code\gui\status\status_temp_outside_ca.paa";
x = 0.845 * safezoneW + safezoneX;
y = 0.93 * safezoneH + safezoneY; //3
w = 0.075;
h = 0.10;
};
//BROKEN LEG
class RscPicture_1203: RscPictureGUI
{
idc = 1203;
text = "\z\addons\dayz_code\gui\status\status_effect_brokenleg.paa";
x = 0.810 * safezoneW + safezoneX;
y = 0.93 * safezoneH + safezoneY;
w = 0.075;
h = 0.10;
colorText[] = {1,1,1,1};
};
/*--------------------------------------------*/
//SURVIVOR ICON
class RscPicture_1307: RscPictureGUI
{
idc = 1307;
text = "gui\status\st_humanity_survivor.paa";
x = 0.670 * safezoneW + safezoneX;
y = 0.933 * safezoneH + safezoneY;
w = 0.027 * safezoneW;
h = 0.037 * safezoneH;
colorText[] = {1,1,1,1};
};
//BANDIT ICON
class RscPicture_1309: RscPictureGUI
{
idc = 1309;
text = "gui\status\st_humanity_bandit.paa";
x = 0.713 * safezoneW + safezoneX;
y = 0.933 * safezoneH + safezoneY;
w = 0.027 * safezoneW;
h = 0.037 * safezoneH;
colorText[] = {1,1,1,1};
};
//ZOMBIE ICON
class RscPicture_1310: RscPictureGUI
{
idc = 1310;
text = "gui\status\zombie.paa";
x = 0.756 * safezoneW + safezoneX;
y = 0.933 * safezoneH + safezoneY;
w = 0.027 * safezoneW;
h = 0.037 * safezoneH;
colorText[] = {1,1,1,1};
};
};
class Controls {
//FOOD ICON
class RscPicture_1301: RscPictureGUI
{
idc = 1301;
//text = "\z\addons\dayz_code\gui\status\status_food_inside_ca.paa";
x = 0.905 * safezoneW + safezoneX;
y = 0.93 * safezoneH + safezoneY;
w = 0.075;
h = 0.10;
};
//BLOOD ICON
class RscPicture_1300: RscPictureGUI
{
idc = 1300;
//text = "\z\addons\dayz_code\gui\status\status_blood_inside_ca.paa";
x = 0.875 * safezoneW + safezoneX;
y = 0.93 * safezoneH + safezoneY;
w = 0.075;
h = 0.10;
};
//THIRST ICON
class RscPicture_1302: RscPictureGUI
{
idc = 1302;
//text = "\z\addons\dayz_code\gui\status\status_thirst_inside_ca.paa";
x = 0.935 * safezoneW + safezoneX;
y = 0.93 * safezoneH + safezoneY;
w = 0.075;
h = 0.10;
};
//TEMP ICON
class RscPicture_1306: RscPictureGUI
{
idc = 1306;
//text = "\z\addons\dayz_code\gui\status\status_temp_ca.paa";
x = 0.845 * safezoneW + safezoneX;
y = 0.93 * safezoneH + safezoneY;
w = 0.075;
h = 0.10;
};
//BLOOD ICON - BLEEDING
class RscPicture_1303: RscPictureGUI
{
idc = 1303;
text = "\z\addons\dayz_code\gui\status\status_bleeding_ca.paa";
x = 0.875 * safezoneW + safezoneX;
y = 0.93 * safezoneH + safezoneY;
w = 0.075;
h = 0.10;
colorText[] = {1,1,1,0.5};
};
//FPS
class RscText_1321: RscTextGUIK
{
idc = 1321;
text = "fps";
x = 0.960 * safezoneW + safezoneX;
y = 0.93 * safezoneH + safezoneY;
w = 0.037 * safezoneW;
h = 0.047 * safezoneH;
size = 0.065;
sizeEx = 0.065;
colorText[] = {1,1,1,0.0};
};
//FPS BACKGROUND
class RscText_1322: RscPictureGUI
{
idc = 1322;
//text = "\z\addons\dayz_code\gui\status\status_bg.paa";
x = 0.960 * safezoneW + safezoneX;
y = 0.93 * safezoneH + safezoneY;
w = 0.037 * safezoneW;
h = 0.047 * safezoneH;
colorText[] = {1,1,1,0.0};
};
/*-----------------------------------------------*/
//SURVIVOR KILLS
class RscText_1400: RscTextGUIK
{
idc = 1400;
text = "1000";
x = 0.683 * safezoneW + safezoneX;
y = 0.931 * safezoneH + safezoneY;
w = 0.037 * safezoneW;
h = 0.047 * safezoneH;
colorText[] = {1,1,1,1.0};
size = 0.03;
sizeEx = 0.03;
};
//BANDIT KILLS
class RscText_1402: RscTextGUIK
{
idc = 1402;
text = "1000";
x = 0.726 * safezoneW + safezoneX;
y = 0.931 * safezoneH + safezoneY;
w = 0.037 * safezoneW;
h = 0.047 * safezoneH;
colorText[] = {1,1,1,1.0};
size = 0.03;
sizeEx = 0.03;
};
//ZOMBIE KILLS
class RscText_1403: RscTextGUIK
{
idc = 1403;
text = "1000";
x = 0.769 * safezoneW + safezoneX;
y = 0.931 * safezoneH + safezoneY;
w = 0.037 * safezoneW;
h = 0.047 * safezoneH;
colorText[] = {1,1,1,1.0};
size = 0.03;
sizeEx = 0.03;
};

};
};
};

 

from ATD_Hud.h to bottom of description.ext

 

In your case you see the RscPictureGUI is already defined in description.ext so no need for it to be defined again ATD_Hud.h

Share this post


Link to post
Share on other sites

still abit confused here...

 

so I should only add  do description

class RscTextGUIK {
    type = 0;
    idc = -1;
    style = 0x02;
    colorBackground[] = {0,0,0,0};
    colorText[] = {1, 1, 1, 0.5};
    //color[] = {1, 1, 1, 0.5};
    font = "TahomaB";
    size = 0.03;
    sizeEx = 0.03;
    x = 0;
    y = 0;
    w = 0.1;
    h = 0.2;
};


#include "dayz_code\gui\ATD_Hud.h"

Do I need to remove all  RscPictureGUI  from the ATD_Hud.h

Share this post


Link to post
Share on other sites

 

still abit confused here...

 

so I should only add  do description

class RscTextGUIK {
    type = 0;
    idc = -1;
    style = 0x02;
    colorBackground[] = {0,0,0,0};
    colorText[] = {1, 1, 1, 0.5};
    //color[] = {1, 1, 1, 0.5};
    font = "TahomaB";
    size = 0.03;
    sizeEx = 0.03;
    x = 0;
    y = 0;
    w = 0.1;
    h = 0.2;
};


#include "dayz_code\gui\ATD_Hud.h"

Do I need to remove all  RscPictureGUI  from the ATD_Hud.h

 

Yep, that's how you should do it.

Share this post


Link to post
Share on other sites

Hey man, i got it to work but I only get shown these '1000' that are even called 'text=' in the code 

How do I get the real values to be shown? 

 

I hope you can help me attachicon.gifScreen.png

This happend to me when I tried using Project Gold Coin. I found out that the playerHUD from Project Gold Coin is interfering with Cen's HUD.

I still have not got it to work. Have you got Project Gold Coin?

Share this post


Link to post
Share on other sites

Maybe some knows this.

Ive a script with a publicVariable.
 

publicVariable "SomethingHappens";

Is the PublicVar still accessable from a Monitor?
Like:
 

if(SomethingsHappens) then {

};

How i make a icon active if this is true, otherwise hide the icon. Like broken legs.

Share this post


Link to post
Share on other sites

Works good.  But where do you define the server restart countdown values?  I see where the position data is but there don't seem to be any values where you can edit them to reflect a four hour restart timer.

 

player_updateGui.sqf

_RestartTime = 120-(round(serverTime/60));

120 is minutes.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

  • Similar Content

    • By Restplay
      Hello, does anyone have Sector C files for the Napf map? On the island where is the Sürenfeld Observatory.
    • By Restplay
      Hello i created my server from this thread:
       
    • By salival
      Zabns Take Clothes is part of Epoch 1.0.7.1 now.
      Hi,
      Since Zabn is MIA I have updated his Take Clothes script to 1.0.7 compatible.
      Github with install instructions and download location: https://github.com/oiad/TakeClothes
       
       
      **** For Epoch 1.0.6.2 only **** >> Download <<
      Visit this link: https://github.com/oiad/TakeClothes/tree/Epoch_1.0.6.2
      (original install url: http://opendayz.net/threads/release-zabns-take-clothes-2-0.19290/)
      (original discussion url: http://opendayz.net/threads/help-discussion-zabns-take-clothes.13198/)
       
    • By salival
      Bury and butcher body is part of Epoch 1.0.7.1 now.
       
      Hi guys,
      Here's my version of the bury/butcher body script. Focus'd on optimization and cleanliness.
      * Tested as working on a blank Epoch 1.0.7 server
      * Contains a server side scheduler module to clean up old weapon crates, graves and crosses after 25 minutes.
      * Removes the flies sound when body is buried for performance.
       
      To download: https://github.com/oiad/buryBodies
       
      **** For Epoch 1.0.6.2 only **** >> Download <<
      Visit this link: https://github.com/oiad/buryBodies/tree/Epoch_1.0.6.2
    • By salival
      Vehicle Key Changer is part of Epoch 1.0.7.1 now.
       
      Hi,
      Here's my version of  @OtterNas3 vehicle key changer.  It was subsequently modified by @Grahame for epoch 1.0.6. Updated for 1.0.7.
      This adds support for briefcases, gems and coins as well as using the epoch vehicle upgrade system to do the key changing/claiming.
      * original discussion url: https://epochmod.com/forum/topic/5972-release-vehicle-key-changer-for-making-masterkey-v-14-updated-06152014/
      * updated discussion url: https://epochmod.com/forum/topic/43048-release-vehicle-key-changer-for-making-masterkey-v-141-updated-for-epoch-106/
      Github link with install directions: https://github.com/oiad/vkc
      **EDIT* Link to a working locate Vehicle script that is able to find multiple vehicles per key: 
       
      **** For Epoch 1.0.6.2 only **** >> Download <<
      Visit this link: https://github.com/oiad/vkc/tree/vkc-Epoch-1.0.6.2
  • Advertisement
  • Supporters
  • Discord

×
×
  • Create New...