Jump to content

[Release] Walk Amongst The Dead - (Hide from zombies like "The Walking Dead")


Sandbird

Recommended Posts

I got it all working except for the icon, keeps saying the GUI ins't defined or something. Here is my description.txt:

 

#include "Scripts\Loot\CfgBuildingLoot.hpp"
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 = "Scripts\Loadscreen\dayzloadinscreen.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 CfgSounds
{
    sounds[] = {siren,z_wzombie1,z_wzombie2};
		class siren {
			name = "siren";
			sound[] = {Scripts\Vehicles\Siren\siren.ogg,0.5,1};
			titles[] = {};
    };
		class z_wzombie1 {
			name = "";
			sound[] = {"Scripts\walkamongstthedead\dayz_sfx\femalezombie_attack_04.ogg",0.3,1,40};
			titles[] = {0, ""};	
	};	
		class z_wzombie2 : z_wzombie1 {
			sound[] = {"Scripts\walkamongstthedead\dayz_sfx\femalezombie_spotted_01.ogg",0.3,1,40};
	};
};
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)";
};
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.25999999,0.75};
	font="TahomaB";
	sizeEx=0;
	lineSpacing=0;
	text="";
	style="0x30 + 0x100";
	x=0;
	y=0;
	w=0.2;
	h=0.15000001;
};

// DayZ Watermark
		class zCamoStatusGUI {
			idd = -1;
			fadeout=0;
			fadein=0;
			onLoad = "uiNamespace setVariable ['zCamo_GUI_display', _this select 0]";
			duration = 10e10;
			name= "zCamoGui";
			controlsBackground[] = {};
			objects[] = {};
			class controls {
			class zCamoIcon:RscPictureGUI {
			idc = 1;
			text="Scripts\walkamongstthedead\zombie.paa";
			x="0.958313 * safezoneW + safezoneX";
			y="0.43 * safezoneH + safezoneY";
			w=0.059999999;
			h=0.079999998;
			colorText[]={1,1,1,1};
						};
					};
				};	
class RscTitles {
		class wm_disp {
			idd = -1;
			onLoad = "uiNamespace setVariable ['wm_disp', _this select 0]";
			fadein = 0;
			fadeout = 0;
			duration = 10e10;
			controlsBackground[] = {};
			objects[] = {};
			class controls {
			class wm_text2 {
			idc = 1;
			x = safeZoneX+0.027;//safeZoneW*0.01;
			y = safeZoneY+safeZoneH-0.16;
			w = 1.151*safeZoneH;
			h = 0.057*safeZoneH;
			shadow = 2;
		class Attributes {
			font = "EtelkaNarrowMediumPro";
			color = "#24FFFFFF";
			align = "left"; // put "center" here if you want some background
			valign = "middle";
			shadow = 2;
			};
			colorBackground[] = { 1, 0.3, 0, 0 };  // uncomment and increase 4th number to have a background
			font = "EtelkaNarrowMediumPro";
			size = 0.06*safeZoneH;
			type = 13;
			style = 0;
			text="";
			};
        };
    };
};

#include "Scripts\snap_pro\snappoints.hpp"
#include "Scripts\doorManagement\defines.hpp"
#include "Scripts\doorManagement\doorUnlock.hpp"
#include "Scripts\doorManagement\doorManagement.hpp"
#include "Scripts\plotManagement\plotManagement.hpp"
#include "Scripts\doorManagement\ComboLockUI.hpp"
#include "Functions\extra_rc.hpp"
#include "Traders\cfgServerTrader.hpp"

 

Thank you

Link to comment
Share on other sites

I got it all working except for the icon, keeps saying the GUI ins't defined or something. Here is my description.txt:

 

#include "Scripts\Loot\CfgBuildingLoot.hpp"
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 = "Scripts\Loadscreen\dayzloadinscreen.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 CfgSounds
{
    sounds[] = {siren,z_wzombie1,z_wzombie2};
		class siren {
			name = "siren";
			sound[] = {Scripts\Vehicles\Siren\siren.ogg,0.5,1};
			titles[] = {};
    };
		class z_wzombie1 {
			name = "";
			sound[] = {"Scripts\walkamongstthedead\dayz_sfx\femalezombie_attack_04.ogg",0.3,1,40};
			titles[] = {0, ""};	
	};	
		class z_wzombie2 : z_wzombie1 {
			sound[] = {"Scripts\walkamongstthedead\dayz_sfx\femalezombie_spotted_01.ogg",0.3,1,40};
	};
};
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)";
};
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.25999999,0.75};
	font="TahomaB";
	sizeEx=0;
	lineSpacing=0;
	text="";
	style="0x30 + 0x100";
	x=0;
	y=0;
	w=0.2;
	h=0.15000001;
};

// DayZ Watermark
		class zCamoStatusGUI {
			idd = -1;
			fadeout=0;
			fadein=0;
			onLoad = "uiNamespace setVariable ['zCamo_GUI_display', _this select 0]";
			duration = 10e10;
			name= "zCamoGui";
			controlsBackground[] = {};
			objects[] = {};
			class controls {
			class zCamoIcon:RscPictureGUI {
			idc = 1;
			text="Scripts\walkamongstthedead\zombie.paa";
			x="0.958313 * safezoneW + safezoneX";
			y="0.43 * safezoneH + safezoneY";
			w=0.059999999;
			h=0.079999998;
			colorText[]={1,1,1,1};
						};
					};
				};	
class RscTitles {
		class wm_disp {
			idd = -1;
			onLoad = "uiNamespace setVariable ['wm_disp', _this select 0]";
			fadein = 0;
			fadeout = 0;
			duration = 10e10;
			controlsBackground[] = {};
			objects[] = {};
			class controls {
			class wm_text2 {
			idc = 1;
			x = safeZoneX+0.027;//safeZoneW*0.01;
			y = safeZoneY+safeZoneH-0.16;
			w = 1.151*safeZoneH;
			h = 0.057*safeZoneH;
			shadow = 2;
		class Attributes {
			font = "EtelkaNarrowMediumPro";
			color = "#24FFFFFF";
			align = "left"; // put "center" here if you want some background
			valign = "middle";
			shadow = 2;
			};
			colorBackground[] = { 1, 0.3, 0, 0 };  // uncomment and increase 4th number to have a background
			font = "EtelkaNarrowMediumPro";
			size = 0.06*safeZoneH;
			type = 13;
			style = 0;
			text="";
			};
        };
    };
};

#include "Scripts\snap_pro\snappoints.hpp"
#include "Scripts\doorManagement\defines.hpp"
#include "Scripts\doorManagement\doorUnlock.hpp"
#include "Scripts\doorManagement\doorManagement.hpp"
#include "Scripts\plotManagement\plotManagement.hpp"
#include "Scripts\doorManagement\ComboLockUI.hpp"
#include "Functions\extra_rc.hpp"
#include "Traders\cfgServerTrader.hpp"

 

Thank you

 

 

You didnt do step 5.

Add the class zCamoStatusGUI under your class RscTitles

Link to comment
Share on other sites

You didnt do step 5.

Add the class zCamoStatusGUI under your class RscTitles

Thank you Sandbird, I added it in but now I get "resource title zCamoStatusGUI not found". Here is my description.txt

 

#include "Scripts\Loot\CfgBuildingLoot.hpp"
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 = "Scripts\Loadscreen\dayzloadinscreen.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 CfgSounds
{
    sounds[] = {siren,z_wzombie1,z_wzombie2};
		class siren {
			name = "siren";
			sound[] = {Scripts\Vehicles\Siren\siren.ogg,0.5,1};
			titles[] = {};
    };
		class z_wzombie1 {
			name = "";
			sound[] = {"Scripts\walkamongstthedead\dayz_sfx\femalezombie_attack_04.ogg",0.3,1,40};
			titles[] = {0, ""};	
	};	
		class z_wzombie2 : z_wzombie1 {
			sound[] = {"Scripts\walkamongstthedead\dayz_sfx\femalezombie_spotted_01.ogg",0.3,1,40};
	};
};
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)";
};
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.25999999,0.75};
	font="TahomaB";
	sizeEx=0;
	lineSpacing=0;
	text="";
	style="0x30 + 0x100";
	x=0;
	y=0;
	w=0.2;
	h=0.15000001;
};

// DayZ Watermark
		class zCamoStatusGUI {
			idd = -1;
			fadeout=0;
			fadein=0;
			onLoad = "uiNamespace setVariable ['zCamo_GUI_display', _this select 0]";
			duration = 10e10;
			name= "zCamoGui";
			controlsBackground[] = {};
			objects[] = {};
			class controls {
			class zCamoIcon:RscPictureGUI {
			idc = 1;
			text="Scripts\walkamongstthedead\zombie.paa";
			x="0.958313 * safezoneW + safezoneX";
			y="0.43 * safezoneH + safezoneY";
			w=0.059999999;
			h=0.079999998;
			colorText[]={1,1,1,1};
						};
					};
				};	
class RscTitles {
		class wm_disp {
			idd = -1;
			onLoad = "uiNamespace setVariable ['wm_disp', _this select 0]";
			fadein = 0;
			fadeout = 0;
			duration = 10e10;
			controlsBackground[] = {};
			objects[] = {};
			class controls {
			class wm_text2 {
			idc = 1;
			x = safeZoneX+0.027;//safeZoneW*0.01;
			y = safeZoneY+safeZoneH-0.16;
			w = 1.151*safeZoneH;
			h = 0.057*safeZoneH;
			shadow = 2;
		class Attributes {
			font = "EtelkaNarrowMediumPro";
			color = "#24FFFFFF";
			align = "left"; // put "center" here if you want some background
			valign = "middle";
			shadow = 2;
			};
			colorBackground[] = { 1, 0.3, 0, 0 };  // uncomment and increase 4th number to have a background
			font = "EtelkaNarrowMediumPro";
			size = 0.06*safeZoneH;
			type = 13;
			style = 0;
			text="";
		class zCamoStatusGUI {
			idd = -1;
			fadeout=0;
			fadein=0;
			onLoad = "uiNamespace setVariable ['zCamo_GUI_display', _this select 0]";
			duration = 10e10;
			name= "zCamoGui";
			controlsBackground[] = {};
			objects[] = {};
			class controls {
			class zCamoIcon:RscPictureGUI {
			idc = 1;
			text="Scripts\walkamongstthedead\zombie.paa";
			x="0.958313 * safezoneW + safezoneX";
			y="0.43 * safezoneH + safezoneY";
			w=0.059999999;
			h=0.079999998;
			colorText[]={1,1,1,1};
						};
					};
				};	
			};
        };
    };
};

#include "Scripts\snap_pro\snappoints.hpp"
#include "Scripts\doorManagement\defines.hpp"
#include "Scripts\doorManagement\doorUnlock.hpp"
#include "Scripts\doorManagement\doorManagement.hpp"
#include "Scripts\plotManagement\plotManagement.hpp"
#include "Scripts\doorManagement\ComboLockUI.hpp"
#include "Functions\extra_rc.hpp"
#include "Traders\cfgServerTrader.hpp"

Link to comment
Share on other sites

Your RscTitles is total chaos....You got classes embedded in other classes.

 

Try this:

#include "Scripts\Loot\CfgBuildingLoot.hpp"
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 = "Scripts\Loadscreen\dayzloadinscreen.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 CfgSounds
{
    sounds[] = {siren,z_wzombie1,z_wzombie2};
		class siren {
			name = "siren";
			sound[] = {Scripts\Vehicles\Siren\siren.ogg,0.5,1};
			titles[] = {};
    };
		class z_wzombie1 {
			name = "";
			sound[] = {"Scripts\walkamongstthedead\dayz_sfx\femalezombie_attack_04.ogg",0.3,1,40};
			titles[] = {0, ""};	
	};	
		class z_wzombie2 : z_wzombie1 {
			sound[] = {"Scripts\walkamongstthedead\dayz_sfx\femalezombie_spotted_01.ogg",0.3,1,40};
	};
};
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)";
};
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.25999999,0.75};
	font="TahomaB";
	sizeEx=0;
	lineSpacing=0;
	text="";
	style="0x30 + 0x100";
	x=0;
	y=0;
	w=0.2;
	h=0.15000001;
};
// DayZ Watermark
class RscTitles {
	
	class zCamoStatusGUI {
	idd = -1;
	fadeout=0;
	fadein=0;
		onLoad = "uiNamespace setVariable ['zCamo_GUI_display', _this select 0]";
		duration = 10e10;
		name= "zCamoGui";
		controlsBackground[] = {};
		objects[] = {};
		class controls {
			class zCamoIcon:RscPictureGUI {
			idc = 1;
			text="custom\walkamongstthedead\zombie.paa";
			x="0.958313 * safezoneW + safezoneX";
			y="0.43 * safezoneH + safezoneY";
			w=0.059999999;
			h=0.079999998;
			colorText[]={1,1,1,1};
			};
		};
	};
	
	class wm_disp {
		idd = -1;
		onLoad = "uiNamespace setVariable ['wm_disp', _this select 0]";
		fadein = 0;
		fadeout = 0;
		duration = 10e10;
		controlsBackground[] = {};
		objects[] = {};
		class controls {
			class wm_text2 {
				idc = 1;
				x = safeZoneX+0.027;//safeZoneW*0.01;
				y = safeZoneY+safeZoneH-0.16;
				w = 1.151*safeZoneH;
				h = 0.057*safeZoneH;
				shadow = 2;
				class Attributes
				{
					font = "EtelkaNarrowMediumPro";
					color = "#24FFFFFF";
					align = "left"; // put "center" here if you want some background
					valign = "middle";
					shadow = 2;
				};
				colorBackground[] = { 1, 0.3, 0, 0 };  // uncomment and increase 4th number to have a background
				font = "EtelkaNarrowMediumPro";
				size = 0.06*safeZoneH;
				type = 13;
				style = 0;
				text="";
			};
		};
	};
};

#include "Scripts\snap_pro\snappoints.hpp"
#include "Scripts\doorManagement\defines.hpp"
#include "Scripts\doorManagement\doorUnlock.hpp"
#include "Scripts\doorManagement\doorManagement.hpp"
#include "Scripts\plotManagement\plotManagement.hpp"
#include "Scripts\doorManagement\ComboLockUI.hpp"
#include "Functions\extra_rc.hpp"
#include "Traders\cfgServerTrader.hpp"

Link to comment
Share on other sites

Hi! At first, big thank you for that great work! Looks very interesting. I Tryied to install it, but i recognized, that i alredy have custom clic script (its part of deploy anything or something like that). Im not programmer, but only dumb noob in programming. Can you please help me, if is there some way to combine both custom ui_selectSlot.sqf?

 

The one that i alredy use is this:

private ["_control","_button","_parent","_group","_pos","_item","_conf","_name","_cfgActions","_numActions","_height","_menu","_config","_type","_script","_outputOriented","_compile","_array","_outputClass","_outputType"];
disableSerialization;
_control =  _this select 0;
_button =   _this select 1;
_parent =   findDisplay 106;

//if ((time - dayzClickTime) < 1) exitWith {};
if (!DZE_SelfTransfuse && ((gearSlotData _control) == "ItemBloodBag")) exitWith {};
if (_button == 1) then {
    //dayzClickTime = time;
    _group = _parent displayCtrl 6902;
    
    _pos =      ctrlPosition _group;
    _pos set [0,((_this select 2) + 0.48)];
    _pos set [1,((_this select 3) + 0.07)];
    
    _item = gearSlotData _control;
    
    _conf = configFile >> "cfgMagazines" >> _item;
    if (!isClass _conf) then {
        _conf = configFile >> "cfgWeapons" >> _item;
    };
    _name = getText(_conf >> "displayName");
    
    _cfgActions = _conf >> "ItemActions";
    _numActions = (count _cfgActions);
    _height = 0;
    
    //Populate Menu
    for "_i" from 0 to (_numActions - 1) do 
    {
        _menu =     _parent displayCtrl (1600 + _i);
        _menu ctrlShow true;
        _config =   (_cfgActions select _i);
        _type =     getText (_config >> "text");
        _script =   getText (_config >> "script");
        _outputOriented =   getNumber   (_config >> "outputOriented") == 1;
        _height = _height + (0.025 * safezoneH);
        _compile =  format["_id = '%2' %1;",_script,_item];
        uiNamespace setVariable ['uiControl', _control];
        if (_outputOriented) then {
            /*
                This flag means that the action is output oriented
                the output class will then be transferred to the script
                && the type used for the name
            */          
            _array =    getArray    (_config >> "output");
            _outputClass = _array select 0;
            _outputType = _array select 1;
            _name = getText (configFile >> _outputType >> _outputClass >> "displayName");
            _compile =  format["_id = ['%2',%3] %1;",_script,_item,_array];
        };
        
        _menu ctrlSetText format[_type,_name];
        _menu ctrlSetEventHandler ["ButtonClick",_compile];
    };

    //### BEGIN MODIFIED CODE: extra click actions
    {
        private["_classname","_text","_execute","_condition"];
        _classname   = _x select 0;
        _text        = _x select 1;
        _execute     = _x select 2;
        _condition   = _x select 3;
        // if the clicked item matches, then assign the script call and display text
        if(_item == _classname && (call compile _condition)) then {
            _menu = _parent displayCtrl (1600 + _numActions);
            _menu ctrlShow true;
            _height = _height + (0.025 * safezoneH);
            uiNamespace setVariable ['uiControl', _control];
            _menu ctrlSetText _text;
            _menu ctrlSetEventHandler ["ButtonClick",_execute];
            _numActions = _numActions + 1;
        };
    } forEach DZE_CLICK_ACTIONS;
	
	
    //### END MODIFIED CODE: extra click actions

    _pos set [3,_height];
    //hint format["Obj: %1 \nHeight: %2\nPos: %3",_item,_height,_grpPos];       

    _group ctrlShow true;
    ctrlSetFocus _group;
    _group ctrlSetPosition _pos;
    _group ctrlCommit 0;
};

Im not sure if it is possible to combine both, so thank you anyway and Greetings from Czech! (and sorry for my english ;) )

Link to comment
Share on other sites

Well if you have that, then its easy.
You dont need the click overwriting.
All you need to do is add the 2 extra clicks in your array, like:

["ItemZombieParts","Smear Guts on you","execVM 'custom\walkamongstthedead\smear_guts.sqf';","true"],
["ItemWaterbottle","Wash zombie guts","execVM 'custom\walkamongstthedead\usebottle.sqf';","true"],

or something similar that you have.

You probably have a config file or something that you add your right clicks on stuff...Check my above code and adapt it to your script.

Link to comment
Share on other sites

 

Your RscTitles is total chaos....You got classes embedded in other classes.

 

Try this:


#include "Scripts\Loot\CfgBuildingLoot.hpp"
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 = "Scripts\Loadscreen\dayzloadinscreen.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 CfgSounds
{
    sounds[] = {siren,z_wzombie1,z_wzombie2};
		class siren {
			name = "siren";
			sound[] = {Scripts\Vehicles\Siren\siren.ogg,0.5,1};
			titles[] = {};
    };
		class z_wzombie1 {
			name = "";
			sound[] = {"Scripts\walkamongstthedead\dayz_sfx\femalezombie_attack_04.ogg",0.3,1,40};
			titles[] = {0, ""};	
	};	
		class z_wzombie2 : z_wzombie1 {
			sound[] = {"Scripts\walkamongstthedead\dayz_sfx\femalezombie_spotted_01.ogg",0.3,1,40};
	};
};
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)";
};
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.25999999,0.75};
	font="TahomaB";
	sizeEx=0;
	lineSpacing=0;
	text="";
	style="0x30 + 0x100";
	x=0;
	y=0;
	w=0.2;
	h=0.15000001;
};
// DayZ Watermark
class RscTitles {
	
	class zCamoStatusGUI {
	idd = -1;
	fadeout=0;
	fadein=0;
		onLoad = "uiNamespace setVariable ['zCamo_GUI_display', _this select 0]";
		duration = 10e10;
		name= "zCamoGui";
		controlsBackground[] = {};
		objects[] = {};
		class controls {
			class zCamoIcon:RscPictureGUI {
			idc = 1;
			text="custom\walkamongstthedead\zombie.paa";
			x="0.958313 * safezoneW + safezoneX";
			y="0.43 * safezoneH + safezoneY";
			w=0.059999999;
			h=0.079999998;
			colorText[]={1,1,1,1};
			};
		};
	};
	
	class wm_disp {
		idd = -1;
		onLoad = "uiNamespace setVariable ['wm_disp', _this select 0]";
		fadein = 0;
		fadeout = 0;
		duration = 10e10;
		controlsBackground[] = {};
		objects[] = {};
		class controls {
			class wm_text2 {
				idc = 1;
				x = safeZoneX+0.027;//safeZoneW*0.01;
				y = safeZoneY+safeZoneH-0.16;
				w = 1.151*safeZoneH;
				h = 0.057*safeZoneH;
				shadow = 2;
				class Attributes
				{
					font = "EtelkaNarrowMediumPro";
					color = "#24FFFFFF";
					align = "left"; // put "center" here if you want some background
					valign = "middle";
					shadow = 2;
				};
				colorBackground[] = { 1, 0.3, 0, 0 };  // uncomment and increase 4th number to have a background
				font = "EtelkaNarrowMediumPro";
				size = 0.06*safeZoneH;
				type = 13;
				style = 0;
				text="";
			};
		};
	};
};

#include "Scripts\snap_pro\snappoints.hpp"
#include "Scripts\doorManagement\defines.hpp"
#include "Scripts\doorManagement\doorUnlock.hpp"
#include "Scripts\doorManagement\doorManagement.hpp"
#include "Scripts\plotManagement\plotManagement.hpp"
#include "Scripts\doorManagement\ComboLockUI.hpp"
#include "Functions\extra_rc.hpp"
#include "Traders\cfgServerTrader.hpp"

Thank you Sandbird! Just had to change the custom to Scripts and it worked perfectly. One last thing, I would like players to be able to use ItemWaterbottleBoiled to wash off the guts. I added it to my Extra_Rc.hpp and it calls from the bottle, but still looks for ItemWaterbottle...

Link to comment
Share on other sites

Thank you Sandbird! Just had to change the custom to Scripts and it worked perfectly. One last thing, I would like players to be able to use ItemWaterbottleBoiled to wash off the guts. I added it to my Extra_Rc.hpp and it calls from the bottle, but still looks for ItemWaterbottle...

 

Open custom\walkamongstthedead\usebottle.sqf  and change all occurrences of

 

ItemWaterbottle  to ItemWaterbottleBoiled

Link to comment
Share on other sites

Sorry I meant I want to be able to use both.

 

Add the extra: 

["ItemWaterbottleBoiled","Wash zombie guts","execVM 'Scripts\walkamongstthedead\usebottle.sqf';","true"],

in your config.sqf (for ui clicks)....pay attention to the < , > in the end...If its the last array...then it doesnt need a comma.

 

Then use this usebottle.sqf:

private ["_txt","_dis","_sfx","_Qty","_Qty2"];

if (dayz_combat == 1) exitWith {
	_txt = "You need to hide and get out of combat first.";
	cutText [_txt, "PLAIN DOWN"];
};

if (isNil "hasGutsOnHim") then {hasGutsOnHim = false;};
if (!hasGutsOnHim) exitWith {
	_txt = "You are not covered in zombie guts.";
	cutText [_txt, "PLAIN DOWN"];
};

_Qty = {_x == "ItemWaterbottle"} count magazines player;
_Qty2 = {_x == "ItemWaterbottleBoiled"} count magazines player;
	
if ((_Qty >= 1) || (_Qty2 >= 1)) then {
	
	// If we're not swimming, let's start the animation to have the player squat
	if (!dayz_isSwimming) then {
		player playActionNow "PutDown";
	};
	
	
	switch (true) do {
	  case ("ItemWaterbottle" in magazines player): {
			player removeMagazines "ItemWaterbottle";
			for "_x" from 1 to _Qty do {
			sleep 1;
			_dis = 5;
			_sfx = "fillwater";
			[player,_sfx,0,false,_dis] call dayz_zombieSpeak;
			[player,_dis,true,(getPosATL player)] spawn player_alertZombies;
			player addMagazine "ItemWaterbottleUnfilled";
			};
			sand_washed = true;
			hasGutsOnHim = false;
			// Success on cleaning - Inform the player
			if (_Qty > 1) then {
			  cutText [format["You used %1 water bottles to clean yourself from the zombie parts.",_Qty], "PLAIN DOWN"];
			} else {
			  cutText [format["You used your water bottle to clean yourself from the zombie parts."], "PLAIN DOWN"];
			};
	  };
	  case ("ItemWaterbottleBoiled" in magazines player): {
			player removeMagazines "ItemWaterbottleBoiled";
			for "_x" from 1 to _Qty2 do {
			sleep 1;
			_dis = 5;
			_sfx = "fillwater";
			[player,_sfx,0,false,_dis] call dayz_zombieSpeak;
			[player,_dis,true,(getPosATL player)] spawn player_alertZombies;
			player addMagazine "ItemWaterbottleUnfilled";
			};
			sand_washed = true;
			hasGutsOnHim = false;
			// Success on cleaning - Inform the player
			if (_Qty > 1) then {
			  cutText [format["You used %1 water bottles to clean yourself from the zombie parts.",_Qty], "PLAIN DOWN"];
			} else {
			  cutText [format["You used your water bottle to clean yourself from the zombie parts."], "PLAIN DOWN"];
			};
	  };
	  default {
	    cutText [format["You have no full water bottles to clean yourself from the zombie parts."], "PLAIN DOWN"];
	  };
	};
}else {
	cutText [format["You have no full water bottles to clean yourself from the zombie parts."], "PLAIN DOWN"];
};
Link to comment
Share on other sites

UPDATE (2-11-2014)

I noticed that since the latest arma beta patch, there are some RPT log errors cause the new beta patch is really strict with global variables.

Please check the 1st post of this thread and do STEP 11.

I will update the files with the recent update....No need to replace them...just do step 11

Link to comment
Share on other sites

Step 8 means this:

 

In your compiles.sqf you'll find this line:

player_selectSlot= compile preprocessFileLineNumbers "z\addons\dayz_code\compile\ui_selectSlot.sqf";

That means that player_selectSlot will be loaded from the map files, (particularly the dayz_code.pbo). Inside it in folder compile is the sqf you want.

Extract that file from the .pbo and place it somewhere in your MPMission files.....like \MPMission\dayz_11.chernarus (or whatever your mpmission file is called)\custom

and then change that line in your compiles.sqf to

player_selectSlot= compile preprocessFileLineNumbers "custom\ui_selectSlot.sqf";

so the mission file searches for that file in your mppmission and not dayz_code.pbo anymore.

Then open that file and do the additions

Link to comment
Share on other sites

UPDATE (2-11-2014)

I noticed that since the latest arma beta patch, there are some RPT log errors cause the new beta patch is really strict with global variables.

Please check the 1st post of this thread and do STEP 11.

I will update the files with the recent update....No need to replace them...just do step 11

 

Arma 2 hasn't had a beta release since before 125548, which is a stable release, not beta. Is that the version you are talking about?

Link to comment
Share on other sites

Well if you have that, then its easy.

You dont need the click overwriting.

All you need to do is add the 2 extra clicks in your array, like:

["ItemZombieParts","Smear Guts on you","execVM 'custom\walkamongstthedead\smear_guts.sqf';","true"],
["ItemWaterbottle","Wash zombie guts","execVM 'custom\walkamongstthedead\usebottle.sqf';","true"],

or something similar that you have.

You probably have a config file or something that you add your right clicks on stuff...Check my above code and adapt it to your script.

Works great now, big THANK YOU!

Link to comment
Share on other sites

  • 1 month later...

Hi,Sorry I meant I want to be able to use both.

please help me

 

respawn = "BASE";
respawndelay = 5;
onLoadMission="DayZ_Epoch Taviana";
OnLoadIntro = "Welcome to Taviana";
OnLoadIntroTime = False;
OnLoadMissionTime = False;
disabledAI = true;
disableChannels[]={0,2,6};
enableItemsDropping=0;
#include "custom\customloot\CfgBuildingLoot.hpp"

briefing = 0;
debriefing = 0;

onPauseScript = "";
loadScreen = "server imagen.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 CfgSounds
{
    sounds[] = {stronghold,lock};
    class stronghold
    {
        name = "stronghold";
        sound[] = {\custom\origins\sfx\vrata_sound.ogg,0.1,1};
        titles[] = {};
    };
    class lock
    {
        name="lock";
        sound[]={sounds\lock.ogg,0.2,1};
        titles[] = {};
    };
};
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;
};
// DayZ Watermark
class RscTitles {
    
    class zCamoStatusGUI {
    idd = -1;
    fadeout=0;
    fadein=0;
        onLoad = "uiNamespace setVariable ['zCamo_GUI_display', _this select 0]";
        duration = 10e10;
        name= "zCamoGui";
        controlsBackground[] = {};
        objects[] = {};
        class controls {
            class zCamoIcon:RscPictureGUI {
            idc = 1;
            text="custom\walkamongstthedead\zombie.paa";
            x="0.958313 * safezoneW + safezoneX";
            y="0.43 * safezoneH + safezoneY";
            w=0.059999999;
            h=0.079999998;
            colorText[]={1,1,1,1};
            };
        };
    };
    
    class wm_disp {
        idd = -1;
        onLoad = "uiNamespace setVariable ['wm_disp', _this select 0]";
        fadein = 0;
        fadeout = 0;
        duration = 10e10;
        controlsBackground[] = {};
        objects[] = {};
        class controls {
            class wm_text2 {
                idc = 1;
                x = safeZoneX+0.027;//safeZoneW*0.01;
                y = safeZoneY+safeZoneH-0.16;
                w = 1.151*safeZoneH;
                h = 0.057*safeZoneH;
                shadow = 2;
                class Attributes
                {
                    font = "EtelkaNarrowMediumPro";
                    color = "#24FFFFFF";
                    align = "left"; // put "center" here if you want some background
                    valign = "middle";
                    shadow = 2;
                };
                colorBackground[] = { 1, 0.3, 0, 0 };  // uncomment and increase 4th number to have a background
                font = "EtelkaNarrowMediumPro";
                size = 0.06*safeZoneH;
                type = 13;
                style = 0;
                text="";
            };
        };
    };
};

#include "dayz_code\gui\ATD_Hud.h"
#include "custom\spawn_selection\DRNdialogs.hpp"
#include "custom\extra_rc.hpp"
#include "Scripts\snap_pro\snappoints.hpp"

Link to comment
Share on other sites

when I put this:

 

class RscTitles {

 class zCamoStatusGUI {
    idd = -1;
    fadeout=0;
    fadein=0;
        onLoad = "uiNamespace setVariable ['zCamo_GUI_display', _this select 0]";
        duration = 10e10;
        name= "zCamoGui";
        controlsBackground[] = {};
        objects[] = {};
        class controls {
            class zCamoIcon:RscPictureGUI {
            idc = 1;
            text="custom\walkamongstthedead\zombie.paa";
            x="0.958313 * safezoneW + safezoneX";
            y="0.43 * safezoneH + safezoneY";
            w=0.059999999;
            h=0.079999998;
            colorText[]={1,1,1,1};
            };
        };
    };

class wm_disp {
idd = -1;
onLoad = "uiNamespace setVariable ['wm_disp', _this select 0]";
fadein = 0;
fadeout = 0;
duration = 10e10;
controlsBackground[] = {};
objects[] = {};
class controls {
class wm_text2 {
idc = 1;
x = safeZoneX+0.027;//safeZoneW*0.01;
y = safeZoneY+safeZoneH-0.16;
w = 0.151*safeZoneH;
h = 0.057*safeZoneH;
shadow = 2;
class Attributes
{
font = "EtelkaNarrowMediumPro";
color = "#24FFFFFF";
align = "left";
valign = "middle";
shadow = 2;
};
colorBackground[] = { 1, 0.3, 0, 0 };
font = "EtelkaNarrowMediumPro";
size = 0.06*safeZoneH;
type = 13;
style = 0;
text="";
};
};
};
};

Link to comment
Share on other sites

do not know if this will be, but I'm a newbie and have not much idea.
My file is called 7847.RPT

when I put code, the server does not work

 

14:45:10 Error in expression <;


deleteVehicle _loot_box;
deleteMarker _event_marker;

if(_show_marker) then {
>
14:45:10 Error position: <_event_marker;

if(_show_marker) then {
>
14:45:10 Error Undefined variable in expression: _event_marker

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
×
×
  • Create New...