Jump to content

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


Defay

Recommended Posts

Look, I have never had such a problem before. This is just confusing me endlessly.

Installing the mod using the tut I get;

 

ErrorMessage: File mpmissions\__cur_mp.Chernarus\dayz_code\gui\ATD_Hud.h, line 399: .RscTitles: Member already defined.

Ok fine, I try following the OP's advice add my current RscTitles code to ATD_Hud.h

Now because I use Group Manager I have this as my "current RscTitles;"

class RscTitles
{
    #include "dzgm\icons.hpp"
};

After adding it to ATD_Hud.n, it cant find the dzgm folder at my root. What do I do?

(These are my configs as they stand, broken  :S)

desc:

respawn = "BASE";

respawndelay = 5;

onLoadMission= "DayZ Epoch Chernarus";

OnLoadIntro = "Welcome to DayZ Epoch Chernarus";

OnLoadIntroTime = False;

OnLoadMissionTime = False;

disabledAI = true;

disableChannels[]={0,2,6};

enableItemsDropping = 0;

briefing = 0;

debriefing = 0;

onPauseScript = "";

loadScreen = "\z\addons\dayz_code\gui\dayz_logo_ca.paa";

class Header

{

gameType = COOP; //DM, Team, Coop, ...

minPlayers = 1; //min # of players the mission supports

maxPlayers = 100; //Max # of players the mission supports

};

aiKills = 1;

diagRadio = 1;

diagHit = 1;

class RscText

{

type = 0;

idc = -1;

x = 0;

y = 0;

h = 0.037;

w = 0.3;

style = 0x100;

font = Zeppelin32;

SizeEx = 0.03921;

colorText[] = {1,1,1,1};

colorBackground[] = {0, 0, 0, 0};

linespacing = 1;

};

class RscPicture

{

access=0;

type=0;

idc=-1;

style=48;

colorBackground[]={0,0,0,0};

colorText[]={1,1,1,1};

font="TahomaB";

sizeEx=0;

lineSpacing=0;

text="";

};

class RscLoadingText : RscText

{

style = 2;

x = 0.323532;

y = 0.666672;

w = 0.352944;

h = 0.039216;

sizeEx = 0.03921;

colorText[] = {0.543,0.5742,0.4102,1.0};

};

class RscProgress

{

x = 0.344;

y = 0.619;

w = 0.313726;

h = 0.0261438;

texture = "\ca\ui\data\loadscreen_progressbar_ca.paa";

colorFrame[] = {0,0,0,0};

colorBar[] = {1,1,1,1};

};

class RscProgressNotFreeze

{

idc = -1;

type = 45;

style = 0;

x = 0.022059;

y = 0.911772;

w = 0.029412;

h = 0.039216;

texture = "#(argb,8,8,3)color(0,0,0,0)";

};

//

// the loading screen itself

//

class DayZ_loadingScreen

{

idd = -1;

duration = 10e10;

fadein = 0;

fadeout = 0;

name = "loading screen";

class controlsBackground

{

class blackBG : RscText

{

x = safezoneX;

y = safezoneY;

w = safezoneW;

h = safezoneH;

text = "";

colorText[] = {0,0,0,0};

colorBackground[] = {0,0,0,1};

};

/*

class nicePic : RscPicture

{

style = 48 + 0x800; // ST_PICTURE + ST_KEEP_ASPECT_RATIO

x = safezoneX + safezoneW/2 - 0.25;

y = safezoneY + safezoneH/2 - 0.2;

w = 0.5;

h = 0.4;

text = "img\nicePic.paa";

};

*/

};

class controls

{

class Title1 : RscLoadingText

{

text = "$STR_LOADING"; // "Loading" text in the middle of the screen

};

class CA_Progress : RscProgress // progress bar, has to have idc 104

{

idc = 104;

type = 8; // CT_PROGRESS

style = 0; // ST_SINGLE

texture = "\ca\ui\data\loadscreen_progressbar_ca.paa";

};

class CA_Progress2 : RscProgressNotFreeze // progress bar that will go reverse

{

idc = 103;

};

class Name2: RscText // the text on the top-left

{

idc = 101;

x = 0.05;

y = 0.029412;

w = 0.9;

h = 0.04902;

text = "";

sizeEx = 0.05;

colorText[] = {0.543,0.5742,0.4102,1.0};

};

};

};

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;

};

//DONN sounds

class CfgSounds {

sounds[] = {error1};

class error1 {

name="error1";

sound[]={error1.ogg,1,1};

titles[] = {};

};

};

#include "custom\snap_pro\snappoints.hpp"

#include "extra_rc.hpp"

#include "dzgm\defines.hpp"

class RscTitles

{

#include "dzgm\icons.hpp"

};

#include "dayz_code\gui\ATD_Hud.h"

#include "dzgm\groupManagement.hpp"

AD:

#define CT_STATIC 0

#define ST_LEFT 0x00

#define ST_PICTURE 48

class RscStructuredText {

access = ReadAndWrite;

type = 13;

idc = -1;

style = 2;

font = "Zeppelin33";

size = "0.025 * safezoneH";

colorText[] = {1,1,1,1};

colorBackground[] = {0, 0, 0, 0};

text = "";

shadow = 1;

class Attributes {

align = "center";

valign = "middle";

};

};

class RscTitles

{

#include "dzgm\icons.hpp"

class playerStatusGUI {

idd = 6900;

movingEnable = 0;

duration = 100000;

name = "statusBorder";

onLoad = "uiNamespace setVariable ['DAYZ_GUI_display', _this select 0];";

class ControlsBackground {

//PLAYER NAME

class RscStructuredText_1199 : RscStructuredText {

idc = 1199;

x = 0.250001;

y = 0.350001;

w = 0.5;

h = 0.1;

};

//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};

};

//NOISE BACKGROUND

class RscPicture_1205: RscPictureGUI

{

idc = 1205;

text = "\z\addons\dayz_code\gui\status\status_bg.paa";

x = 0.960 * safezoneW + safezoneX;

y = 0.825 * safezoneH + safezoneY;

w = 0.075;

h = 0.10;

};

//VISIBLE BACKGROUND

class RscPicture_1206: RscPictureGUI

{

idc = 1206;

text = "\z\addons\dayz_code\gui\status\status_bg.paa";

x = 0.960 * safezoneW + safezoneX;

y = 0.875 * safezoneH + safezoneY;

w = 0.075;

h = 0.10;

};

/*--------------------------------------------*/

//SURVIVOR ICON

class RscPicture_1307: RscPictureGUI

{

idc = 1307;

text = "dayz_code\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 = "dayz_code\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 = "dayz_code\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};

};

//NOISE ICON

class RscPicture_1304: RscPictureGUI

{

idc = 1304;

text = "\z\addons\dayz_code\gui\status\status_noise.paa";

x = 0.960 * safezoneW + safezoneX;

y = 0.825 * safezoneH + safezoneY;

w = 0.075;

h = 0.10;

};

//VISIBLE ICON

class RscPicture_1305: RscPictureGUI

{

idc = 1305;

text = "\z\addons\dayz_code\gui\status\status_visible.paa";

x = 0.960 * safezoneW + safezoneX;

y = 0.875 * safezoneH + safezoneY;

w = 0.075;

h = 0.10;

};

//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;

};

//BLOOD AMOUNT

class RscText_1420: RscTextGUIK

{

idc = 1420;

text = "1000";

x = 0.915 * safezoneW + safezoneX;

y = 0.842 * safezoneH + safezoneY;

w = 0.040 * safezoneW;

h = 0.047 * safezoneH;

colorText[] = {0.8,0.07,0.06,1.0};

size = 0.03;

sizeEx = 0.03;

};

//HUMANITY AMOUNT

class RscText_1421: RscTextGUIK

{

idc = 1421;

text = "1000";

x = 0.915 * safezoneW + safezoneX;

y = 0.862 * safezoneH + safezoneY;

w = 0.040 * safezoneW;

h = 0.047 * safezoneH;

colorText[] = {1,1,1,1.0};

size = 0.03;

sizeEx = 0.03;

};

//SERVER RESTART AMOUNT

class RscText_1422: RscTextGUIK

{

idc = 1422;

text = "1000";

x = 0.915 * safezoneW + safezoneX;

y = 0.882 * safezoneH + safezoneY;

w = 0.040 * safezoneW;

h = 0.047 * safezoneH;

colorText[] = {1,0.8,0,1.0};

size = 0.03;

sizeEx = 0.03;

};

//BLOOD LABEL

class RscText_1423: RscTextGUIK

{

idc = 1423;

text = "Blood Left:";

x = 0.845 * safezoneW + safezoneX;

y = 0.842 * safezoneH + safezoneY;

w = 0.08 * safezoneW;

h = 0.047 * safezoneH;

colorText[] = {1,1,1,1.0};

size = 0.03;

sizeEx = 0.03;

};

//HUMANITY LABEL

class RscText_1424: RscTextGUIK

{

idc = 1424;

text = "Humanity:";

x = 0.845 * safezoneW + safezoneX;

y = 0.862 * safezoneH + safezoneY;

w = 0.08 * safezoneW;

h = 0.047 * safezoneH;

colorText[] = {1,1,1,1.0};

size = 0.03;

sizeEx = 0.03;

};

//RESTART LABEL

class RscText_1425: RscTextGUIK

{

idc = 1425;

text = "Restart in (min):";

x = 0.845 * safezoneW + safezoneX;

y = 0.882 * safezoneH + safezoneY;

w = 0.08 * safezoneW;

h = 0.047 * safezoneH;

colorText[] = {1,1,1,1.0};

size = 0.03;

sizeEx = 0.03;

};

};

};

};

I feel dumb. (Everyone who just read this and faceplamed im sorry D:)

fyi: I just moved everything from ATD_hud to description

Link to comment
Share on other sites

Ok @kylemcqueen75 dont feel dumb. I did same thing as u did on earlier post and actually ur next post helped me a lot!

 

Btw got atm something like this:

6mtaoh.jpg

 

I would like to move COINS above Blood Left, and i did, amount displays good but...

I would like to add "Coins:" text as well but just copy/paste +1 RscText_1426 doesnt seem to work. Propably need to add it somewhere.

 

Edit:

Ok, tried to add new text on gui but have no fckin idea how to:

Found some dependencies between rsctexts in dayz_code\compile\player_updateGui.sqf but none of these are to labels, only to values.

How then i can add just new text in there?

After restart label code block in ATD_Hud i added:

//GOLD LABEL
class RscText_1426: RscTextGUIK
            {
                idc = 1426;
                text = "MYCOINS:";
                x = 0.845 * safezoneW + safezoneX;
                y = 0.822 * safezoneH + safezoneY;
                w = 0.08 * safezoneW;
                h = 0.047 * safezoneH;
                colorText[] = {1,1,1,1.0};
                size = 0.03;
                sizeEx = 0.03;
            };

EDIT2:: Obviously made wrong edit and forgot about description.ext changes xDD

Link to comment
Share on other sites

  • 3 weeks later...
  • 3 weeks later...

Hey guys! I have a question (sry if it was already asked, ain't got the time to check all the comments): how to change the restart time to the restart time of my srever?  thnx ;)

 

In the compile folder open player_updateGui.sqf and look at around line 43 for this:

 

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

 

and just change it to whatever you need..

Link to comment
Share on other sites

  • 2 months later...

Anybody had this problem in their Overpoch Server Before ?

 

RUp2Idr.png

 

Notice the background icon. They work but they don't belong there. 

 

Is that normal?

 

EDIT :

 

I fixed it with Replacing all dayz_code\gui to dayz_code\gui\status

Link to comment
Share on other sites

  • 4 weeks later...

I got everything installed and it's working the only issue I am having now is everything is showing as 1000, I checked all paths and they all seem to be pointing to the correct locations does anybody have a fix for this yet?

Link to comment
Share on other sites

  • 1 month later...
  • 3 weeks later...
  • 1 month later...

Please tell me whitch files you have taken.... i got the gui working, but without SC and it crashes SC system.... the bank shows "ANY Coins" and i can withdraw what i want :(

The rpt says:

[Money] call BIS_fnc_numberText,
[Bank_Ba>
  Error position: <Money] call BIS_fnc_numberText,
[Bank_Ba>
  Error Nicht definierte Variable in Ausdruck: money
File mpmissions\__CUR_MP.chernarus\Scripts\Player_Hud\playerHud.sqf, line 22
Link to comment
Share on other sites

Please tell me whitch files you have taken.... i got the gui working, but without SC and it crashes SC system.... the bank shows "ANY Coins" and i can withdraw what i want :(

The rpt says:

 

[Money] call BIS_fnc_numberText,
[Bank_Ba>
  Error position: <Money] call BIS_fnc_numberText,
[Bank_Ba>
  Error Nicht definierte Variable in Ausdruck: money
File mpmissions\__CUR_MP.chernarus\Scripts\Player_Hud\playerHud.sqf, line 22

Using 3.0

Edited by DZKitty
Link to comment
Share on other sites

  • 1 month later...
  • 3 months later...
  • 5 months later...

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...