UkeFox
Member-
Content Count
1 -
Joined
-
Last visited
-
Medals
Community Reputation
1 NeutralAbout UkeFox
-
Rank
Newbie
-
=BTC= Logistic Script
UkeFox replied to giallustio's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
Hi, I decided I'd try out your script in Guru Abdul's DayZ Private server mission... and well for the life of me I can't seem to figure out what's wrong. I even went to far as to add in the helicopter used in DayZ(UH1H_DZ). At first I had the same issue with RscPicture as a couple of others were having but I fixed that by deleting this from =BTC=_Hud.h: class RscPicture { type = CT_STATIC; idc = -1; style = ST_PICTURE; colorBackground[] = {0, 0, 0, 0}; colorText[] = {1, 1, 1, 1}; font = "Bitstream"; //Typeface sizeEx = 0; }; I then had an issue with "Class RscPicture" Hasn't been declared so I moved #include "=BTC=_Logistic\=BTC=_Lift\=BTC=_Hud.h" to just below the class RscPicture in dayZ's description.ext. This cleared up the reeoes I'd get on loading the mission, but I am unable to get the HUD. I don't know about dragging ammoboxes as they aren't in the mod. Here is the description file as it appears now: respawn = "BASE"; respawndelay = 5; onLoadMission= "DayZ Test"; OnLoadIntro = "Thank you for helping"; OnLoadIntroTime = False; OnLoadMissionTime = False; disabledAI = true; disableChannels[]={0,2,6}; enableItemsDropping = 0; 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=""; }; #include "=BTC=_Logistic\=BTC=_Lift\=BTC=_Hud.h" 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}; }; }; }; Also here is what I've modded in the =BTC=_Logistic_Init.sqf file: BTC_lift_pilot = ["Survivor2_DZ"]; and: case "UH1H_DZ" : {_array = ["Motorcycle","ReammoBox","Car","StaticWeapon","Static","Truck"];}; I'm fresh out of ideas, any suggestions, tips, or tricks? From the vids I've seen this script looks pretty awesome and it'd be neat to give the people in my server the ability to airlift repaired vehicles to people in need or steal a vehicle right out from under someone :D