Jump to content

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


Defay

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

Link to comment
Share on other sites

  On 9/4/2014 at 6:08 PM, Link said:

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";
Link to comment
Share on other sites

  On 9/4/2014 at 6:31 PM, calamity said:

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:

 

  Reveal hidden contents

 

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

Link to comment
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

Link to comment
Share on other sites

  On 9/4/2014 at 7:45 PM, calamity said:

 

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.

Link to comment
Share on other sites

  On 9/6/2014 at 1:05 AM, ThisIsVexx said:

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?

Link to comment
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.

Link to comment
Share on other sites

  On 9/6/2014 at 9:29 PM, mdswish said:

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.

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...