Jump to content
  • 0

WaterMark not showing up


PPrimezz

Question

My init.sqf I have the server_name = "UPG"; line

in my .ext I have

// DayZ Watermark

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 = "#FFFFFF";

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=";

};

};

};

};

and at the bottom of my init I have

//DayZ Watermark

if (!isNil "server_name") then {

[] spawn {

waitUntil {(!isNull Player) and (alive Player) and (player == player)};

waituntil {!(isNull (findDisplay 46))};

5 cutRsc ["wm_disp","PLAIN];

((uiNamespace getVariable "wm_disp") displayCtrl 1) ctrlSetText server_name;

};

};

why does it not work I am so confused????????????????????????

Link to comment
Share on other sites

21 answers to this question

Recommended Posts

  • 0

I have done like this at the bottom of description.ext

class RscTitles
{
#include "scripts\watermark\watermark.hpp"
#include "scripts\deathscreen\death.hpp"
#include "=BTC=_Logistic\btchud.hpp"
};

because i had more then one Rsctitles and was so much crap in description.ext otherwise.

 

and then i did my own file and named it watermark.hpp with this

// DayZ Watermark
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"; // 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="";
			};
		};
	};
Link to comment
Share on other sites

  • 0

No errors this time, and no watermark ... The watermark.hpp is in a folder called watermark in the scripts folder: (http://prntscr.com/38eiv0) ( I have added the watermark: (http://prntscr.com/38ekbb)) 

 

the description.ext is like so: (http://prntscr.com/38eja5)

 

And the init.sqf: (http://prntscr.com/38ejt8)

 

I'm sure I am just doing some minor detail incorrectly, however I cannot see what it is...

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
  • Discord

×
×
  • Create New...