Jump to content
Sign in to follow this  
giallustio

=BTC= Logistic Script

Recommended Posts

Ok copy the contenent of =BTC=_Hud.h RscTitles in the description.ext RscTitles

Share this post


Link to post
Share on other sites

Alright that eliminated the errors and I can now drag ammo boxes but I am not getting the option to turn on the lift hud in helicopters. I fear another part of the War in Takistan script may be interfering with it.

Thank you for your help, I don't know if there's anything else you can do about it. I'll go bug code34 about it :D

I did test it out with the example mission and it is a fine script! Wish more mission makers would use it.

Share this post


Link to post
Share on other sites

Thank you Zuff for your kind words :)

I don't know War in Takistan sadly and i can't help you more than that...Make sure that you define the chopper class in the config and the pilot class!

Share this post


Link to post
Share on other sites

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

Edited by UkeFox
Typo correction -_-

Share this post


Link to post
Share on other sites

Has anyone got the Lift part of this to work with Xeno's Domination! 2 as yet ? i can get the cargo / ammo box to work but not the lift prt of the script if anyone has managed this or knows how to make it work can they let us know please.

I think because it has its own lift script it is taken precedence.

Share this post


Link to post
Share on other sites

When I use this script it only seems to work if I create the heli in the editor as a blufor heli (With the units inside and player as pilot). When using an empty heli (tried it with a chinook and blackhawk) it won't work. I have no idea how to fix this; any ideas on what to do?:confused:.

Cheers

Share this post


Link to post
Share on other sites

valax, I take it you mean the lift won't work? If so, do you get this hint: "No lift"?

If you create an empty heli, it only works if you get in as "US_Soldier_Pilot_EP1" ... well, unless you change what BTC_lift_pilot is equal to in the =BTC=_Logistic_init.sqf

Share this post


Link to post
Share on other sites

@panther42

Thank you! That's right ;)

@valax

If it doesn't fix your problem, try to explain better or send me your mission ;)

Share this post


Link to post
Share on other sites

@panther42

Thank you panther! I was getting in as a USMC pilot which was obviously why it didn't work.

@Giallustio

I assume that you could just do "BTC_lift_pilot = ["US_Soldier_Pilot_EP1", "Some_Other_Pilot_Class"];" if you wanted to have multiple pilots be able to lift vehicles?

Edited by valax

Share this post


Link to post
Share on other sites

i got a problem with class rscpicture

in =BTC=_Hud.h

there is a class rscpicture

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;
};

and in me description.ext

there is also a class rscpicture

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="";
};

how can i fix this

if i remove the class RscPicture in description.ext

vehicle towing script dont works

if i remove the class RscPicture in =BTC=_Hud.h then the lift script dont works anymore

Share this post


Link to post
Share on other sites

Hey, trying to get this working on my insurgency mission, but at first I got the RscPicture error, so I deleted that.

Then RscTitles was already defined in common/resources/titles.hpp, so I copy pasted the rsctitles content into that.

Edited btc_lift_pilot to = [] so everyone can use it, tested it with a CH47 and it doesn't work. I don't get the option, it should pop up at the auto-hover, engine off and eject, right?

Share this post


Link to post
Share on other sites

I take that as u didn't understand any of it? :P

I want to use this on Insurgency

When I did all the readme stuff and opened the mission in the editor I got an error about RscPictures. This was mentioned in the comments above and I removed it from description.ext

After that I got an error about RscTitles. This was mentioned in the comments above as well and copied the content of class RscTitles to common/resources/titles.hpp (it conflicted with that) and removed it from =BTC=_Hud.h

After that I got no more errors so I assumed it worked.

My mission has no pilots so I set btc_lift_pilot = [] as described in the hints& tips, so every class can use the lifting script.

I got in a CH-47, which is in the init to lift, but I tried hovering above everything in my base and I didn't get the option to lift.

Share this post


Link to post
Share on other sites

Send me your mission, i'll take a look if i'll find enough time

Share this post


Link to post
Share on other sites

I know it isn't the place, but the drag boxes and load them on vehicles is exactly what i'm looking for, is there a way to make it work in ArmA 3? I'm kind of new to scripting and i can't find anything like this for arma 3

Share this post


Link to post
Share on other sites

Hey, i think this script is what i need for domination 2, i need the chinook to lift tanks..

do i add the files to mpmissions or mpmission/co40_Domination.Takistan

thanks

Share this post


Link to post
Share on other sites

Hey!

I must say it's a great script that works fine, but:) for example when I lift my mobileHQ and if I chrash the chopper the object(mobileHQ) is still attached and in many cases get submerged rather than it would get deattached or/and destroyed. Hope you understand my frustration when HQ is submerged under terrain and it still alive and I can't do nothing about. Hope you'll look in to it.

Thanks

Share this post


Link to post
Share on other sites

Can you port this command to Arma3?

_veh setVehicleInit _text_action;ProcessInitCommands;

Share this post


Link to post
Share on other sites

I've a version ready for A3 but i'm waiting the Beta!

Share this post


Link to post
Share on other sites

Any idea why this works when I test it from editor, but not on a server?

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×