Jump to content

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


Defay

Recommended Posts

dose this work with DZGM (group management) because I've been going at it and trying to get it to work and no progress. new errors pop up when I fix the old ones. if I run the gui by its self its fine and same for the DZGM.

I need some help maybe some one can show me their description.ext and the their edited files for the dayz_code by the way im not using SC and also running an OverPoch Server.

 

(is it just me or dose link, quote, and pasting not work?)

Link to comment
Share on other sites

Hi,

 

I have group management and I did have some problems at first but now it is working great. This is my description.ext, I don't know how to post it with the spoiler buttons so its a straight copy and paste.

 

#include "custom\loot\CfgBuildingLoot.hpp"
#include "addons\blowout\config\sound.hpp"
#include "addons\warmclothes\CfgSurvival.hpp"
respawn = "BASE";
respawndelay = 5;
onLoadMission="DayZ_Epoch Namalsk";
OnLoadIntro = "Welcome to Namalsk";
OnLoadIntroTime = False;
OnLoadMissionTime = False;
disabledAI = true;
disableChannels[]={0,2,6};
enableItemsDropping=0;
 
briefing = 0;
debriefing = 0;
 
onPauseScript = "";
loadScreen = "loadscreen.jpg";
 
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 RscTextNS
{
    idc = -1;
    type = 0;
    style = 2;
    LineSpacing = 1.0;
    h = 0.04;
    ColorBackground[] = {1,1,1,0.2};
    ColorText[] = {0.1,0.1,0.1,1};
    font = "BitStream";
    SizeEx = 0.025;
};
#include "dzgm\defines.hpp"
#include "dzgm\icons.hpp"
    
#include "custom\snap_pro\snappoints.hpp"
#include "addons\R3F_ARTY_AND_LOG\desc_rsct_include.h"
#include "custom\extra_rc.hpp"
#include "dzgm\groupManagement.hpp"
#include "Paint\defines.hpp"
#include "Paint\vehiclecolour.hpp"
#include "custom\Buildables\MT_Defines.hpp"
#include "custom\Buildables\Crafting_Defines.hpp"
#include "custom\Buildables\Crafting_Dialogs.hpp"
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 "GUI\dayz_code\gui\ATD_Hud.h"
Link to comment
Share on other sites

This is my ATD_Hud.h, I put the Cen's folder in a folder named GUI in the root of my mission file so the location will be different for your file

 

#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 
{
class RscAPSI_h1
    {
        idd = -1;
        duration = 4;
        fadein = 0;
        movingEnable = 0;
        enableSimulation = 0;
        enableDisplay = 0;
        class controls
        {
            class APSILog: RscTextNS
            {
                x = 0.5;
                y = 0.99;
                w = 0.5;
                h = 0.03;
                text = "APSI: Stronger activity of floax field has been detected..";
                colorBackground[] = {0.5,0.5,0.5,0.4};
                ColorText[] = {1.0,0.2,0.1,1};
            };
        };
    };
    class RscAPSI_h2: RscAPSI_h1
    {
        class controls
        {
            class APSILog: RscTextNS
            {
                x = 0.5;
                y = 0.99;
                w = 0.4;
                h = 0.03;
                text = "APSI: EVR sequence detected..";
                colorBackground[] = {0.5,0.5,0.5,0.4};
                ColorText[] = {1.0,0.0,0.2,1};
            };
        };
    };
    class RscAPSI_h3: RscAPSI_h1
    {
        class controls
        {
            class APSILog: RscTextNS
            {
                x = 0.5;
                y = 0.99;
                w = 0.4;
                h = 0.03;
                text = "APSI: EM and PSI protection enabled..";
                colorBackground[] = {0.5,0.5,0.5,0.4};
                ColorText[] = {0.0,1.0,0.2,1};
            };
        };
    };
    class RscAPSI_h4: RscAPSI_h1
    {
        class controls
        {
            class APSILog: RscTextNS
            {
                x = 0.5;
                y = 0.99;
                w = 0.4;
                h = 0.03;
                text = "APSI: Ready..";
                colorBackground[] = {0.5,0.5,0.5,0.4};
                ColorText[] = {0.0,1.0,0.2,1};
            };
        };
    };
    class RscAPSI_h5: RscAPSI_h1
    {
        class controls
        {
            class APSILog: RscTextNS
            {
                x = 0.5;
                y = 0.99;
                w = 0.4;
                h = 0.03;
                text = "APSI: EVR sequence start..";
                colorBackground[] = {0.5,0.5,0.5,0.4};
                ColorText[] = {1.0,0.0,0.2,1};
            };
        };
    };
    class RscAPSI_h6: RscAPSI_h1
    {
        class controls
        {
            class APSILog: RscTextNS
            {
                x = 0.5;
                y = 0.99;
                w = 0.4;
                h = 0.03;
                text = "APSI: End of EVR..";
                colorBackground[] = {0.5,0.5,0.5,0.4};
                ColorText[] = {0.0,1.0,0.2,1};
            };
        };
    };
    class RscAPSI_ha: RscAPSI_h1
    {
        class controls
        {
            class APSILog: RscTextNS
            {
                x = 0.5;
                y = 0.99;
                w = 0.4;
                h = 0.03;
                text = "Blowout module, v1.0, by Sumrak.";
                colorBackground[] = {0.5,0.5,0.5,0.4};
                ColorText[] = {0.0,1.0,0.2,1};
            };
        };
    };
 
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 = "GUI\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 = "GUI\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 = "GUI\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;
            };
        };
    };
};
Link to comment
Share on other sites

this works now but I've ran into another problem. the DZGM icons don't show but everything else works. im going to try and diffmerge or add in the icons to the hud file.

 

edit: got it to work just took the text from the icons.hpp and include(pasted) it under the "class RscTitles{" in the ATD_Hud.h file.

 

Thanks for the help everyone

Link to comment
Share on other sites

Hi,

 

I am getting a conflict issue with this and Zupa's 999 single currency. I see some people are getting a similar problem but with other coin versions. What file would I need to merge the player_updateGui.sqf with, if anyone has had the same issue. Any help would be great

 

Thanks

Dave

Link to comment
Share on other sites

was wondering if anyone could help with this

 

It works but only works for 3 of them

 

5000

-5000

and 

default

 

it wont update to the 25k & 50k icons

 

i even tryed using a Break;

humanity = player getVariable["humanity", 0];
_typeHumanity = "";
switch true do
{
    case (_humanity >= 5000):
{
        _typeHumanity = "gui\hrank_1.paa";
    };
    case (_humanity >= 25000):
    {
        _typeHumanity = "gui\hrank_2.paa";
    };
    case (_humanity >= 50000):
    {
        _typeHumanity = "gui\hrank_3.paa";
    };
    case (_humanity <= -5000):
    {
        _typeHumanity = "gui\brank_1.paa";
    };
    case (_humanity <= -25000):
    {
        _typeHumanity = "gui\brank_2.paa";
    };
    case (_humanity <= -50000):
    {
        _typeHumanity = "gui\brank_3.paa";
    };
    default
    {
        _typeHumanity = "gui\srank.paa";
    };
};
_ctrlHumanity = _display displayCtrl 1502;
_ctrlHumanity ctrlSetText _typeHumanity;

 

Link to comment
Share on other sites

  • 2 weeks later...

For some reason I have both the original gui dispays and the new ones....I am using coins/door/plot ect.  not sure why i have both displaying...so i have 2 complete sets of the gun, therm, water, blood and food icons one on top of the other...any ideas?

Link to comment
Share on other sites

For some reason I have both the original gui dispays and the new ones....I am using coins/door/plot ect.  not sure why i have both displaying...so i have 2 complete sets of the gun, therm, water, blood and food icons one on top of the other...any ideas?

 

 

by chance did u comment out 

 

compiles.sqf

//    player_updateGui =            compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\player_updateGui.sqf";
    player_updateGui =            compile preprocessFileLineNumbers "fixes\player_updateGui.sqf";

OP Skips some steps so there a link to the other stuff

Link to comment
Share on other sites

Im having the same issue, cant figure it out- the gui wont update upon damage or food/thirst.. zombie kills, the whole lot.

 

*FIXED*

 

For some reason my compiles.sqf was missing this block of code

 

player_guiControlFlash = {
private["_control"];
_control = _this;
if (ctrlShown _control) then {
 
_control ctrlShow false;
} else {
 
_control ctrlShow true;
};
};
Link to comment
Share on other sites

  • 2 weeks later...

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

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...