Defay Posted September 4, 2014 Report Share Posted September 4, 2014 Hey guys, so I saw that there are lot of people asking how to get an GUI looking like this: This is not my work, I'm only posting a tutorial on how to do it. This is from user Cen who was so nice to share it with us. All credits go to: Cen Tutorial: 1.) First download these files and extract them in the root of your mission folder or mission.pbo. Download Link or Attached files. 2.) Add this to the bottom of description.ext 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; }; #include "dayz_code\gui\ATD_Hud.h" 3.) Add this line to a custom compiles.sqf or overwrite the path in the existing compiles.sqf (depends how you call yours). I will not do a tutorial on how to add custom compiles as there are plenty of them already out here on this forum. player_updateGui = compile preprocessFileLineNumbers "dayz_code\compile\player_updateGui.sqf"; 4.) Edit ATD_Hud.h to your liking. And that should be it! If you have any questions or problems with it, please post down below and I'll try to get back to you as soon as possible or send me a PM. Let me know how I did for my first tutorial and thanks again to Cen for the HUD and letting me post a tutorial on this. ATD-HUD-FILES.zip Airwaves Man, unrealPANDA, Brummelpuh and 3 others 6 Link to comment Share on other sites More sharing options...
Link Posted September 4, 2014 Report Share Posted September 4, 2014 Thanks for this. I have plot pole for life installed which also uses a custom player_updateGUI, is this compatible or do we have to merge the two together? Link to comment Share on other sites More sharing options...
Defay Posted September 4, 2014 Author Report Share Posted September 4, 2014 Thanks for this. I have plot pole for life installed which also uses a custom player_updateGUI, is this compatible or do we have to merge the two together? I'm not sure. I think you must merge them together. Or if there is a way to run both at the same time and just to add a new line like: player_updateGui2 = compile preprocessFileLineNumbers "compile\player_updateGui2.sqf"; Link to comment Share on other sites More sharing options...
ThaKang Posted September 4, 2014 Report Share Posted September 4, 2014 Awesome! Thanks a lot, been looking for something like this. Link to comment Share on other sites More sharing options...
calamity Posted September 4, 2014 Report Share Posted September 4, 2014 dang it I always get these confilcts with ErrorMessage: File mpmissions\__cur_mp.Napf\description.ext, line 267: .RscPictureGUI: Member already defined. can one just rename RscPictureGUI to like RscPictureGUI_1 or something ???? Link to comment Share on other sites More sharing options...
Defay Posted September 4, 2014 Author Report Share Posted September 4, 2014 Awesome! Thanks a lot, been looking for something like this. No problem, enjoy! Link to comment Share on other sites More sharing options...
Defay Posted September 4, 2014 Author Report Share Posted September 4, 2014 dang it I always get these confilcts with ErrorMessage: File mpmissions\__cur_mp.Napf\description.ext, line 267: .RscPictureGUI: Member already defined. can one just rename RscPictureGUI to like RscPictureGUI_1 or something ???? That means that RscPictureGUI has been defined somewhere else already. I had the same problem, what I did was copied all of this code: class playerStatusGUI { idd = 6900; movingEnable = 0; duration = 100000; name = "statusBorder"; onLoad = "uiNamespace setVariable ['DAYZ_GUI_display', _this select 0];"; class ControlsBackground { //FOOD BACKGROUND class RscPicture_1901: RscPictureGUI { idc = 1901; text = "\z\addons\dayz_code\gui\status\status_bg.paa"; x = 0.905 * safezoneW + safezoneX; y = 0.93 * safezoneH + safezoneY;//2 w = 0.075; h = 0.10; }; //FOOD BORDER class RscPicture_1201: RscPictureGUI { idc = 1201; text = "\z\addons\dayz_code\gui\status\status_food_border_ca.paa"; x = 0.905 * safezoneW + safezoneX; y = 0.93 * safezoneH + safezoneY;//2 w = 0.075; h = 0.10; }; //BLOOD BACKGROUND class RscPicture_1900: RscPictureGUI { idc = 1900; text = "\z\addons\dayz_code\gui\status\status_bg.paa"; x = 0.875 * safezoneW + safezoneX; y = 0.93 * safezoneH + safezoneY; //3 w = 0.075; h = 0.10; }; //BLOOD BORDER class RscPicture_1200: RscPictureGUI { idc = 1200; text = "\z\addons\dayz_code\gui\status\status_blood_border_ca.paa"; x = 0.875 * safezoneW + safezoneX; y = 0.93* safezoneH + safezoneY; //3 w = 0.075; h = 0.10; }; //THIRST BACKGROUND class RscPicture_1902: RscPictureGUI { idc = 1902; text = "\z\addons\dayz_code\gui\status\status_bg.paa"; x = 0.935 * safezoneW + safezoneX; y = 0.93 * safezoneH + safezoneY; //1 w = 0.075; h = 0.10; }; //THIRST BORDER class RscPicture_1202: RscPictureGUI { idc = 1202; text = "\z\addons\dayz_code\gui\status\status_thirst_border_ca.paa"; x = 0.935 * safezoneW + safezoneX; y = 0.93 * safezoneH + safezoneY; //1 w = 0.075; h = 0.10; }; //TEMP BACKGROUND class RscPicture_1908: RscPictureGUI { idc = 1908; text = "\z\addons\dayz_code\gui\status\status_bg.paa"; x = 0.845 * safezoneW + safezoneX; y = 0.93 * safezoneH + safezoneY; //3 w = 0.075; h = 0.10; }; //TEMP BORDER class RscPicture_1208: RscPictureGUI { idc = 1208; text = "\z\addons\dayz_code\gui\status\status_temp_outside_ca.paa"; x = 0.845 * safezoneW + safezoneX; y = 0.93 * safezoneH + safezoneY; //3 w = 0.075; h = 0.10; }; //BROKEN LEG class RscPicture_1203: RscPictureGUI { idc = 1203; text = "\z\addons\dayz_code\gui\status\status_effect_brokenleg.paa"; x = 0.810 * safezoneW + safezoneX; y = 0.93 * safezoneH + safezoneY; w = 0.075; h = 0.10; colorText[] = {1,1,1,1}; }; /*--------------------------------------------*/ //SURVIVOR ICON class RscPicture_1307: RscPictureGUI { idc = 1307; text = "gui\status\st_humanity_survivor.paa"; x = 0.670 * safezoneW + safezoneX; y = 0.933 * safezoneH + safezoneY; w = 0.027 * safezoneW; h = 0.037 * safezoneH; colorText[] = {1,1,1,1}; }; //BANDIT ICON class RscPicture_1309: RscPictureGUI { idc = 1309; text = "gui\status\st_humanity_bandit.paa"; x = 0.713 * safezoneW + safezoneX; y = 0.933 * safezoneH + safezoneY; w = 0.027 * safezoneW; h = 0.037 * safezoneH; colorText[] = {1,1,1,1}; }; //ZOMBIE ICON class RscPicture_1310: RscPictureGUI { idc = 1310; text = "gui\status\zombie.paa"; x = 0.756 * safezoneW + safezoneX; y = 0.933 * safezoneH + safezoneY; w = 0.027 * safezoneW; h = 0.037 * safezoneH; colorText[] = {1,1,1,1}; }; }; class Controls { //FOOD ICON class RscPicture_1301: RscPictureGUI { idc = 1301; //text = "\z\addons\dayz_code\gui\status\status_food_inside_ca.paa"; x = 0.905 * safezoneW + safezoneX; y = 0.93 * safezoneH + safezoneY; w = 0.075; h = 0.10; }; //BLOOD ICON class RscPicture_1300: RscPictureGUI { idc = 1300; //text = "\z\addons\dayz_code\gui\status\status_blood_inside_ca.paa"; x = 0.875 * safezoneW + safezoneX; y = 0.93 * safezoneH + safezoneY; w = 0.075; h = 0.10; }; //THIRST ICON class RscPicture_1302: RscPictureGUI { idc = 1302; //text = "\z\addons\dayz_code\gui\status\status_thirst_inside_ca.paa"; x = 0.935 * safezoneW + safezoneX; y = 0.93 * safezoneH + safezoneY; w = 0.075; h = 0.10; }; //TEMP ICON class RscPicture_1306: RscPictureGUI { idc = 1306; //text = "\z\addons\dayz_code\gui\status\status_temp_ca.paa"; x = 0.845 * safezoneW + safezoneX; y = 0.93 * safezoneH + safezoneY; w = 0.075; h = 0.10; }; //BLOOD ICON - BLEEDING class RscPicture_1303: RscPictureGUI { idc = 1303; text = "\z\addons\dayz_code\gui\status\status_bleeding_ca.paa"; x = 0.875 * safezoneW + safezoneX; y = 0.93 * safezoneH + safezoneY; w = 0.075; h = 0.10; colorText[] = {1,1,1,0.5}; }; //FPS class RscText_1321: RscTextGUIK { idc = 1321; text = "fps"; x = 0.960 * safezoneW + safezoneX; y = 0.93 * safezoneH + safezoneY; w = 0.037 * safezoneW; h = 0.047 * safezoneH; size = 0.065; sizeEx = 0.065; colorText[] = {1,1,1,0.0}; }; //FPS BACKGROUND class RscText_1322: RscPictureGUI { idc = 1322; //text = "\z\addons\dayz_code\gui\status\status_bg.paa"; x = 0.960 * safezoneW + safezoneX; y = 0.93 * safezoneH + safezoneY; w = 0.037 * safezoneW; h = 0.047 * safezoneH; colorText[] = {1,1,1,0.0}; }; /*-----------------------------------------------*/ //SURVIVOR KILLS class RscText_1400: RscTextGUIK { idc = 1400; text = "1000"; x = 0.683 * safezoneW + safezoneX; y = 0.931 * safezoneH + safezoneY; w = 0.037 * safezoneW; h = 0.047 * safezoneH; colorText[] = {1,1,1,1.0}; size = 0.03; sizeEx = 0.03; }; //BANDIT KILLS class RscText_1402: RscTextGUIK { idc = 1402; text = "1000"; x = 0.726 * safezoneW + safezoneX; y = 0.931 * safezoneH + safezoneY; w = 0.037 * safezoneW; h = 0.047 * safezoneH; colorText[] = {1,1,1,1.0}; size = 0.03; sizeEx = 0.03; }; //ZOMBIE KILLS class RscText_1403: RscTextGUIK { idc = 1403; text = "1000"; x = 0.769 * safezoneW + safezoneX; y = 0.931 * safezoneH + safezoneY; w = 0.037 * safezoneW; h = 0.047 * safezoneH; colorText[] = {1,1,1,1.0}; size = 0.03; sizeEx = 0.03; }; }; }; }; from ATD_Hud.h to bottom of description.ext In your case you see the RscPictureGUI is already defined in description.ext so no need for it to be defined again ATD_Hud.h Link to comment Share on other sites More sharing options...
calamity Posted September 4, 2014 Report Share Posted September 4, 2014 still abit confused here... so I should only add do description 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; }; #include "dayz_code\gui\ATD_Hud.h" Do I need to remove all RscPictureGUI from the ATD_Hud.h Link to comment Share on other sites More sharing options...
Defay Posted September 5, 2014 Author Report Share Posted September 5, 2014 still abit confused here... so I should only add do description 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; }; #include "dayz_code\gui\ATD_Hud.h" Do I need to remove all RscPictureGUI from the ATD_Hud.h Yep, that's how you should do it. Link to comment Share on other sites More sharing options...
ThisIsVexx Posted September 6, 2014 Report Share Posted September 6, 2014 Hey man, i got it to work but I only get shown these '1000' that are even called 'text=' in the code How do I get the real values to be shown? I hope you can help me Link to comment Share on other sites More sharing options...
Defay Posted September 6, 2014 Author Report Share Posted September 6, 2014 Hey man, i got it to work but I only get shown these '1000' that are even called 'text=' in the code How do I get the real values to be shown? I hope you can help me Screen.png This happend to me when I tried using Project Gold Coin. I found out that the playerHUD from Project Gold Coin is interfering with Cen's HUD. I still have not got it to work. Have you got Project Gold Coin? Link to comment Share on other sites More sharing options...
ThisIsVexx Posted September 6, 2014 Report Share Posted September 6, 2014 No I don't :I Link to comment Share on other sites More sharing options...
cen Posted September 6, 2014 Report Share Posted September 6, 2014 check your player_updateGui.sqf file and make sure the file paths inside are correct. If you put the files in a different folder in your mission pbo you'll get that issue. Link to comment Share on other sites More sharing options...
ThisIsVexx Posted September 6, 2014 Report Share Posted September 6, 2014 Lets see, my server restarted right now, and I changed some paths. Link to comment Share on other sites More sharing options...
ThisIsVexx Posted September 6, 2014 Report Share Posted September 6, 2014 It works, don't mind my posts. I am a sucker and did a huge lot of typos. Sorry guys! Link to comment Share on other sites More sharing options...
18com Posted September 6, 2014 Report Share Posted September 6, 2014 cen and 18com 2 Link to comment Share on other sites More sharing options...
kooopa Posted September 6, 2014 Report Share Posted September 6, 2014 Cen did an awesome job on his HUD. Its so easy, but was hard before :D Nice to see how simple you can manipulate the Hud. THX CEN cen 1 Link to comment Share on other sites More sharing options...
Darth_Rogue Posted September 6, 2014 Report Share Posted September 6, 2014 Works good. But where do you define the server restart countdown values? I see where the position data is but there don't seem to be any values where you can edit them to reflect a four hour restart timer. Link to comment Share on other sites More sharing options...
raymix Posted September 6, 2014 Report Share Posted September 6, 2014 Good work, guys. *sub* Link to comment Share on other sites More sharing options...
kooopa Posted September 6, 2014 Report Share Posted September 6, 2014 Maybe some knows this. Ive a script with a publicVariable. publicVariable "SomethingHappens"; Is the PublicVar still accessable from a Monitor? Like: if(SomethingsHappens) then { }; How i make a icon active if this is true, otherwise hide the icon. Like broken legs. Link to comment Share on other sites More sharing options...
Chunk. No Captain Chunk. Posted September 7, 2014 Report Share Posted September 7, 2014 Dont think its working all that well for me... Link to comment Share on other sites More sharing options...
PeterBeer Posted September 7, 2014 Report Share Posted September 7, 2014 Dont think its working all that well for me... thats because you didnt do what it said in the tutrial, do what it says and it will work -.- Link to comment Share on other sites More sharing options...
cen Posted September 7, 2014 Report Share Posted September 7, 2014 Works good. But where do you define the server restart countdown values? I see where the position data is but there don't seem to be any values where you can edit them to reflect a four hour restart timer. player_updateGui.sqf _RestartTime = 120-(round(serverTime/60)); 120 is minutes. iCEtIMed 1 Link to comment Share on other sites More sharing options...
Darth_Rogue Posted September 7, 2014 Report Share Posted September 7, 2014 That was it! Thank you, Cen! cen 1 Link to comment Share on other sites More sharing options...
Ghostrider-GRG Posted September 7, 2014 Report Share Posted September 7, 2014 Works perfectly !! Thanks for the clear tutorial. Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now