PPrimezz Posted April 9, 2014 Report Share Posted April 9, 2014 My init.sqf I have the server_name = "UPG"; linein my .ext I have// DayZ Watermarkclass 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 backgroundvalign = "middle";shadow = 2;};colorBackground[] = { 1, 0.3, 0, 0 }; // uncomment and increase 4th number to have a backgroundfont = "EtelkaNarrowMediumPro";size = 0.06*safeZoneH;type = 13;style = 0;text=";};};};};and at the bottom of my init I have//DayZ Watermarkif (!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 More sharing options...
0 MrAlfred Posted April 9, 2014 Report Share Posted April 9, 2014 Strange, are you getting any error? Link to comment Share on other sites More sharing options...
0 ftshill Posted April 9, 2014 Report Share Posted April 9, 2014 Same here and no error! could you show me yours as an example (if you have it working (MrAlfred)) Link to comment Share on other sites More sharing options...
0 MrAlfred Posted April 9, 2014 Report Share Posted April 9, 2014 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 More sharing options...
0 ftshill Posted April 9, 2014 Report Share Posted April 9, 2014 I will test it now thanks Link to comment Share on other sites More sharing options...
0 MrAlfred Posted April 9, 2014 Report Share Posted April 9, 2014 Okey, hope it works! :) Link to comment Share on other sites More sharing options...
0 ftshill Posted April 9, 2014 Report Share Posted April 9, 2014 This is the message i got when I tried what you did: http://prntscr.com/38d4i5 Link to comment Share on other sites More sharing options...
0 MrAlfred Posted April 9, 2014 Report Share Posted April 9, 2014 This is the message i got when I tried what you did: http://prntscr.com/38d4i5 Can i see your description? Link to comment Share on other sites More sharing options...
0 ftshill Posted April 9, 2014 Report Share Posted April 9, 2014 http://prntscr.com/38d8kg this is where i added the water mark line (right at the bottom Link to comment Share on other sites More sharing options...
0 MrAlfred Posted April 9, 2014 Report Share Posted April 9, 2014 And you have puted your watermark.hpp in scripts/watermark/ ? Link to comment Share on other sites More sharing options...
0 ftshill Posted April 9, 2014 Report Share Posted April 9, 2014 F***K, i didn't put it in the scripts folder, let me test it Link to comment Share on other sites More sharing options...
0 MrAlfred Posted April 9, 2014 Report Share Posted April 9, 2014 F***K, i didn't put it in the scripts folder, let me test it hehe ;D tell me if it works Link to comment Share on other sites More sharing options...
0 ftshill Posted April 9, 2014 Report Share Posted April 9, 2014 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 More sharing options...
0 MrAlfred Posted April 9, 2014 Report Share Posted April 9, 2014 Have you put in one more code at the bottom in your init? Link to comment Share on other sites More sharing options...
0 ftshill Posted April 9, 2014 Report Share Posted April 9, 2014 no but im guessing my meant to have done? <_< Link to comment Share on other sites More sharing options...
0 MrAlfred Posted April 9, 2014 Report Share Posted April 9, 2014 You should have it in there, look at the first post. Link to comment Share on other sites More sharing options...
0 ftshill Posted April 9, 2014 Report Share Posted April 9, 2014 my bad that was added, still didnt work I added it earlier: http://prntscr.com/38gqni Link to comment Share on other sites More sharing options...
0 MrAlfred Posted April 9, 2014 Report Share Posted April 9, 2014 Damn, this is strange, do you have any error in rpt? Link to comment Share on other sites More sharing options...
0 PPrimezz Posted April 9, 2014 Author Report Share Posted April 9, 2014 no RPT error Link to comment Share on other sites More sharing options...
0 MrAlfred Posted April 9, 2014 Report Share Posted April 9, 2014 Do you want to send you mission file, so i can try to fix it from my computer? :) Link to comment Share on other sites More sharing options...
0 ftshill Posted April 9, 2014 Report Share Posted April 9, 2014 yes please! how would you like me to send the mission file, sorry never had to do this before Link to comment Share on other sites More sharing options...
0 MrAlfred Posted April 10, 2014 Report Share Posted April 10, 2014 If you upload it somewhere? :) Link to comment Share on other sites More sharing options...
Question
PPrimezz
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
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 accountSign in
Already have an account? Sign in here.
Sign In Now