PredatoRX91 Posted August 15, 2015 Report Share Posted August 15, 2015 Hello, I am trying to add a watermark on my test server and i followed this tutorial: I am trying to get this working but i am failing to do so. I have done the .hpp file, and included the file in description, also made the .sqf file, and the picture, but it doesnt showing up :( here is my logo.sqf file: http://pastebin.com/g1uaiWZt logo.hpp file: http://pastebin.com/wQWsHwPL description ext: http://pastebin.com/xUT06eSY Init.sqf: http://pastebin.com/uhcXnfBi I dont know but is it possible that DZGM is interfering with this? Can someone help me, what am i doing wrong? Thanks in advance Link to comment Share on other sites More sharing options...
0 ElDubya Posted August 15, 2015 Report Share Posted August 15, 2015 _pic = "example\example.paa"; [ '<img align=''left'' size=''1.0'' shadow=''1'' image='+(str(_pic))+' />', safeZoneX+0.027, safeZoneY+safeZoneH-0.1, 99999, 0, 0, 3090 ] spawn bis_fnc_dynamicText; Try putting that in your init.sqf at the bottom, like the tutorial says :) Link to comment Share on other sites More sharing options...
0 PredatoRX91 Posted August 15, 2015 Author Report Share Posted August 15, 2015 thanks for your reply, but i tried that in the first place, and still didn`t show up, tried again, but no. :unsure: Also i dont get any errors in RPT logs. Link to comment Share on other sites More sharing options...
0 PredatoRX91 Posted August 16, 2015 Author Report Share Posted August 16, 2015 So it works, but it shows up just after the player dies, and after that, it stays there, but for a player who didn`t died before the addon was placed, the watermark wont show up until he dies, after that it`s there. :blink: So i can`t figure it out why is that? :rolleyes: Edit: so after a server restart, its not showing up again, till the player dies? after that it loads. Link to comment Share on other sites More sharing options...
0 raymix Posted August 16, 2015 Report Share Posted August 16, 2015 You are creating it before main display is set up. add this on top of your logo.sqf waituntil {!(IsNull (findDisplay 46))}; Although the question is - if you are utilizing bis_fnc_dynamicText, why do you need rscTitles? The dialog is never created in any of your scripts from what I see. edit: what I am trying to say is - description.txt and logo.hpp parts are irrelevant to any of this, they play no part. Link to comment Share on other sites More sharing options...
0 PredatoRX91 Posted August 16, 2015 Author Report Share Posted August 16, 2015 raymix thanks for your help. I just followed that tut., but i questioned that myself also, why is that .hpp file needed. So after you mentioned it, i deleted that logo.hpp, but i`m quite new to this, and i`m still learning :) I added that line of code to the top of my logo.sqf, but it doesn`t help, no change. And just another question, do i need to put [] execVM "custom\logo.sqf"; to the bottom of my Init.sqf, or in the if (!isDedicated) then { code block? i appreciate any help :) Link to comment Share on other sites More sharing options...
0 raymix Posted August 16, 2015 Report Share Posted August 16, 2015 Judging by your init.sqf it doesn't matter. It's just a simple resource you are trying to create on your display that's all. It is truly weird it didn't work, must be something to do with the way MP setup is being loaded. Did some digging around, looks like my suspicion was right. Might be due to how debug zone is handled when client is waiting for PV from server to confirm successful login. Try this instead: waitUntil {!isNil ("PVDZE_plr_LoginRecord")}; It seems like there's more to this, an array named PVCDZ_plr_Login2 (or dayzPlayerLogin2) with second element set as a boolean. I assume this is a state used to determine if player has been created and placed in the world. So if above does not work out, you have 2 choices.. add sleep to above command (give it like 5 seconds or so) or wrap your code around if statement like so: waitUntil {!isNil ("PVDZE_plr_LoginRecord")}; if (dayzPlayerLogin2 select 1) then //try select 2, too { _pic = "predator.paa"; [ '<img align=''left'' size=''1.0'' shadow=''0.2'' image='+(str(_pic))+' />', safeZoneX+0.027, safeZoneY+safeZoneH - 0.18, 99999, 0, 0, 3090 ] spawn bis_fnc_dynamicText; }; For whatever reason, most people are checking third element in the array of 2 elements and then suggesting creating this extra element. Makes no sense to me at this point, but I am not really eager to check out what's going on there either edit: just in case you misread - there are 3 possible solutions in this post, try them all. PredatoRX91 1 Link to comment Share on other sites More sharing options...
0 PredatoRX91 Posted August 16, 2015 Author Report Share Posted August 16, 2015 Thanks, the first command you suggested worked, but in the meantime i found out that this waitUntil {(!isNull Player) and (alive Player) and (player == player)}; line works too, so now it loads everyime :) So as i see it doesn`t matter which one is used, as long as it loads correctly. Thanks for your help, much appreciated. raymix 1 Link to comment Share on other sites More sharing options...
Question
PredatoRX91
Hello,
I am trying to add a watermark on my test server and i followed this tutorial:
I am trying to get this working but i am failing to do so.
I have done the .hpp file, and included the file in description, also made the .sqf file, and the picture, but it doesnt showing up :(
here is my logo.sqf file: http://pastebin.com/g1uaiWZt
logo.hpp file: http://pastebin.com/wQWsHwPL
description ext: http://pastebin.com/xUT06eSY
Init.sqf: http://pastebin.com/uhcXnfBi
I dont know but is it possible that DZGM is interfering with this?
Can someone help me, what am i doing wrong? Thanks in advance
Link to comment
Share on other sites
7 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