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 Harkness
      Mods;
      DayZ_Epoch 1.0.6.2 / Namalsk 0.75
      Scripts/Features;
      EMP Storms and ASPI Protection Device
      Freezing Weather and Slow Zombies
      Warm Clothing and APSI @ Traders
      Refuel, Repair, Rearm Stations
      Remove Clothing From Dead
      AI Missions and Events
      Super Mutant Attacks
      Trader Safe-Zones
      Player Kill Feed
      Custom Map
      Alien Rifle
      Raiders
      Snow
      Extras;
      Click Here For Custom Server Settings
      Visit Time2Kill.co.uk for more info
      Discord Invite Link
      IP : 86.10.6.13 Port : 2302
    • By Adam1911
      Pure Gaming UK
      Server IP: 54.37.244.16:2302
      Discord: Discord
      Website: Website
      Top Server Features:
      PvE Only Server.
      Dedicated server for max performance.
      6 Hour Restarts.
      Full day/night cycle. (No Voting)
      Indestructible bases.
      Custom AI Missions.
      High loot spawns.
      Slow (Walking) Zombies.
      Custom Traders. (10k/50k/100k/500k humanity)
      Pay checks every hour. (Scales with humanity)
      Humanity Quests.
      Anit Stealing for all vehicles. (Prevents anyone from stealing your vehicles)
      Simi Militarised.
    • By AntZ
      Hey there! I just set up an Overpoch Chernarus server on a server provider but the vehicle traders aren't spawning the vehicles when you buy them. The trader takes your gold bars, gives you a key, then a red arrow appears over where the vehicle Should spawn, but nothing appears. After restarting the server all the vehicles that were bought appear right on top of the spot where they were Suppose to show up.
      -I Do Not have infistar installed
      -I'm using worldwidesorrow's admin tools from here: https://github.com/worldwidesorrow/Epoch-Admin-Tools/tree/TestBranch
      -But just in case I removed the admin tool and tested the vehicle traders again but still no luck.
      Here is my server RPT: 
       
      Can someone please look into this. This is the exact issue discussed in this post but the solution doesn't apply in my case.
       
    • By [email protected]
      Im setting up a new epoch 1.0.6 server with very little addons/mods installed, and when i was testing i realized safes/plotpoles/walls etc werent saving to the server database. Anyone got any ideas what might be wrong?
  • Advertisement
  • Supporters
  • Discord

×
×
  • Create New...