LawlessBaron Posted March 28, 2014 Report Share Posted March 28, 2014 Hey guys sorry for these threads i have been editing this mission all day without worries but when it comes to this i am getting problems when i do it the server just sticks on Waiting for Host Looks like this is where the issue is occuring if (! IsNil "dayZ_serverName") then { [] Spawn { WAITUNTIL {and (alive player) and (player == player) (isNull player!)}; waituntil {! (isNull (find display 46))}; 5 cutRsc ["wm_disp", "PLAIN"]; ((UiNamespace getVariable "wm_disp") displayCtrl 1) ctrlSetText dayZ_serverName; }; }; How can i add class RscTitles { class wm_disp { idd = -1; onLoad = "uiNamespace setVariable ['wm_disp', _this select 0]"; fadein = 0; fadeout = 0; duration = 10E10; control background [] = {}; objects [] = {}; class controls { class wm_text2 { idc = 1; x = safeZoneX +0027 ;/ / safeZoneW * 0.01; y = safeZoneY + safeZoneH-12:16; w = 0.149 * safeZoneH; h = 0.057 * safeZoneH; shadow = 2; class attribute { font = "EtelkaNarrowMediumPro"; color = "# 24FFFFFF"; align = "left" / / put "center" here if you want some background valign = "middle"; shadow = 2; }; color background [] = {1, 0.3, 0, 0}, / / ??uncomment and increase enlarge 4th number to have a background font = "EtelkaNarrowMediumPro"; size = 00:06 * safeZoneH; type = 13; style = 0; text = ""; }; }; }; }; To this respawn = "BASE"; respawndelay = 5; onLoadMission= "DayZ Epoch Chernarus"; OnLoadIntro = "Welcome to DayZ Epoch Chernarus"; OnLoadIntroTime = False; OnLoadMissionTime = False; disabledAI = true; disableChannels[]={0,2,6,1}; enableItemsDropping = 0; briefing = 0; debriefing = 0; onPauseScript = ""; loadScreen = "loading.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[] = { introSong }; class introSong { name="introSong"; sound[]={broadcast.ogg,0.9,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}; }; }; }; #include "custom\snap_build\points.hpp" Link to comment Share on other sites More sharing options...
0 MrAlfred Posted March 28, 2014 Report Share Posted March 28, 2014 I have this in my init.sqf //REALLY IMPORTANT VALUES dayZ_instance = 11; //The instance dayzHiveRequest = []; initialized = false; dayz_previousID = 0; server_name = "YourWatermark"; <---------- and this at the bottom of my init.sqf //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; }; }; and then i did make a watermark.hpp with this //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.04*safeZoneH; type = 13; style = 0; text=""; }; }; }; and i did put this at my bottom of description.ext class RscTitles { #include "watermark.hpp" <---- #include "deathscreen.hpp" #include "=BTC=_Logistic\btchud.hpp" }; Just because i had more then one RscTitles Try that and see if it works. Link to comment Share on other sites More sharing options...
0 LawlessBaron Posted March 28, 2014 Author Report Share Posted March 28, 2014 No luck Link to comment Share on other sites More sharing options...
0 MrAlfred Posted March 28, 2014 Report Share Posted March 28, 2014 it should work i think. did you copy mine or just edited yours? Link to comment Share on other sites More sharing options...
0 LawlessBaron Posted March 28, 2014 Author Report Share Posted March 28, 2014 it should work i think. did you copy mine or just edited yours? copied some of it of what i needed to make it work but mmmm Link to comment Share on other sites More sharing options...
0 LawlessBaron Posted March 28, 2014 Author Report Share Posted March 28, 2014 c'mon man... dont start to fiddle around and mix different methods now... this wont work... stick with one variant and do it exactly as said... I copied directly from the tut and nothing so im not messing anything around 8:45:28 Error context ackground [] = {};ErrorMessage: File mpmissions\__cur_mp.Chernarus\description.ext, line 170: '/RscTitles/wm_disp.control': 'b' encountered instead of '=' Link to comment Share on other sites More sharing options...
0 MrAlfred Posted March 28, 2014 Report Share Posted March 28, 2014 But you said you only took what you needed? if (! IsNil "dayZ_serverName") then { [] Spawn { WAITUNTIL {and (alive player) and (player == player) (isNull player!)}; waituntil {! (isNull (find display 46))}; // Should be like this -> waituntil {! (isNull (findDisplay 46))}; 5 cutRsc ["wm_disp", "PLAIN"]; ((UiNamespace getVariable "wm_disp") displayCtrl 1) ctrlSetText dayZ_serverName; }; }; Link to comment Share on other sites More sharing options...
0 LawlessBaron Posted March 28, 2014 Author Report Share Posted March 28, 2014 But you said you only took what you needed? if (! IsNil "dayZ_serverName") then { [] Spawn { WAITUNTIL {and (alive player) and (player == player) (isNull player!)}; waituntil {! (isNull (find display 46))}; // Should be like this -> waituntil {! (isNull (findDisplay 46))}; 5 cutRsc ["wm_disp", "PLAIN"]; ((UiNamespace getVariable "wm_disp") displayCtrl 1) ctrlSetText dayZ_serverName; }; }; I took all of it which still seems to be causing me grief Link to comment Share on other sites More sharing options...
0 LawlessBaron Posted March 30, 2014 Author Report Share Posted March 30, 2014 I got the script going ok but the Watermark won't display Link to comment Share on other sites More sharing options...
0 LawlessBaron Posted March 30, 2014 Author Report Share Posted March 30, 2014 then i would say the script isnt going very ok... is it? :rolleyes: i would like to say so it runs smooth but the watermark won't display XD Link to comment Share on other sites More sharing options...
0 LawlessBaron Posted March 30, 2014 Author Report Share Posted March 30, 2014 i am using this one https://wiki.nitrado.net/de/Wasserzeichen_mit_dem_Servernamen_in_DayZ but i get this error ErrorMessage: File mpmissions\__cur_mp.Chernarus\description.ext, line 172: '/RscTitles/wm_disp.control': 'b' encountered instead of '=' then i use this one but nothing Link to comment Share on other sites More sharing options...
0 MrAlfred Posted March 30, 2014 Report Share Posted March 30, 2014 post your description.ext Link to comment Share on other sites More sharing options...
0 LawlessBaron Posted March 30, 2014 Author Report Share Posted March 30, 2014 http://pastebin.com/b23CzxhS Link to comment Share on other sites More sharing options...
0 MrAlfred Posted March 30, 2014 Report Share Posted March 30, 2014 and your init.sqf Link to comment Share on other sites More sharing options...
0 LawlessBaron Posted March 30, 2014 Author Report Share Posted March 30, 2014 http://pastebin.com/HDtQgArm Link to comment Share on other sites More sharing options...
0 MrAlfred Posted March 30, 2014 Report Share Posted March 30, 2014 this class RscTitles { class wm_disp { idd = -1; onLoad = "uiNamespace setVariable ['wm_disp', _this select 0]"; fadein = 0; fadeout = 0; duration = 10E10; control background [] = {}; objects [] = {}; class controls { class wm_text2 { idc = 1; x = safeZoneX +0027 ;/ / safeZoneW * 0.01; y = safeZoneY + safeZoneH-12:16; w = 0.149 * safeZoneH; h = 0.057 * safeZoneH; shadow = 2; class attribute // problem { font = "EtelkaNarrowMediumPro"; color = "# 24FFFFFF"; // problem align = "left" / / problem valign = "middle"; shadow = 2; }; color background [] = {1, 0.3, 0, 0}, / / problem font = "EtelkaNarrowMediumPro"; size = 00:06 * safeZoneH; // problem type = 13; style = 0; text = ""; }; }; }; }; should be like this 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 = 0.149*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 LawlessBaron Posted March 31, 2014 Author Report Share Posted March 31, 2014 Weird it still won't display init http://pastebin.com/JFnZQkLd description http://pastebin.com/TFDPf4Mq Link to comment Share on other sites More sharing options...
0 MrAlfred Posted March 31, 2014 Report Share Posted March 31, 2014 This if (! IsNil "dayZ_serverName") then { [] Spawn { WAITUNTIL {and (alive player) and (player == player) (isNull player!)}; waituntil {! (isNull (find display 46))}; 5 cutRsc ["wm_disp", "PLAIN"]; ((UiNamespace getVariable "wm_disp") displayCtrl 1) ctrlSetText dayZ_serverName; }; }; should be like this if (!isNil "dayZ_serverName") 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 dayZ_serverName; }; }; it was a space between findDisplay, that might be a problem. Link to comment Share on other sites More sharing options...
0 LawlessBaron Posted March 31, 2014 Author Report Share Posted March 31, 2014 Still nothing Link to comment Share on other sites More sharing options...
0 MrAlfred Posted March 31, 2014 Report Share Posted March 31, 2014 Hmm, then i dont know anymore... :S Your should try to switch to the other one, http://epochmod.com/forum/index.php?/topic/1157-servername-watermark/?p=8121 LawlessBaron 1 Link to comment Share on other sites More sharing options...
0 LawlessBaron Posted April 1, 2014 Author Report Share Posted April 1, 2014 Got it working finally thanks for all the help guys Link to comment Share on other sites More sharing options...
0 MrAlfred Posted April 1, 2014 Report Share Posted April 1, 2014 That good, what did you do? :) Link to comment Share on other sites More sharing options...
0 LawlessBaron Posted April 1, 2014 Author Report Share Posted April 1, 2014 That good, what did you do? :) Copied the one you linked but weird thing is i used it before and it didn't work so i put in a mission i made and tested it Link to comment Share on other sites More sharing options...
0 MrAlfred Posted April 1, 2014 Report Share Posted April 1, 2014 Strange. But its good that you get it working now at least :) LawlessBaron 1 Link to comment Share on other sites More sharing options...
0 Carp! Posted April 13, 2014 Report Share Posted April 13, 2014 Worked thanks! Link to comment Share on other sites More sharing options...
0 Carp! Posted April 13, 2014 Report Share Posted April 13, 2014 Anyone know what setting is used to change the size of the text of the watermark? I feel like ive hanged every setting and its still a nogo :( EDIT: Have to add size under class attributes :D Link to comment Share on other sites More sharing options...
Question
LawlessBaron
Hey guys sorry for these threads i have been editing this mission all day without worries but when it comes to this i am getting problems
when i do it the server just sticks on Waiting for Host
Looks like this is where the issue is occuring
How can i add
To this
Link to comment
Share on other sites
26 answers to this question
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now