Jump to content

Recommended Posts

First: Thank you for this great script, cant play without it anymore!

When players die in the air (inside a heli) they also respawn in the air and bounce up and down, making it impossible to revive. It looks funny, but we can't win a war this way ;)

Anyone else encountered this problem? Also I can't download the 0.93 version? Link is down?

Share this post


Link to post
Share on other sites

Are all the problem reported related to the stable or to the dev version?

Share this post


Link to post
Share on other sites

Dev version for me (respawns in the air) I also get the headgear error mentioned some posts above me, btw.

Share this post


Link to post
Share on other sites
this error has been reported

Just add this line :

BTC_back_pack_weap = _gear select 6;

before :

if (count (BTC_back_pack_weap select 0) > 0) then

It's better replace it with:

(_gear select 6)

Problem reported by Metaball:

'...erPos BTC_respawn_marker;
deleteVehicle |#|_obj;
};
if (BTC_black_screen == 0 || BT...'
Error Undefined variable in expression: _obj

Just delete the line 559:

BTC_player_respawn =
{
BTC_respawn_cond = true;
if (BTC_active_lifes == 1) then {BTC_lifes = BTC_lifes - 1;};
if (BTC_active_lifes == 1 && BTC_lifes == 0) exitWith BTC_out_of_lifes;
deTach player;
player setVariable ["BTC_need_revive",0,true];
if (BTC_black_screen == 0) then {titleText ["", "BLACK OUT"];};
sleep 0.2;
if (BTC_black_screen == 0) then {titleText ["", "BLACK FADED"];};
if (vehicle player != player) then {unAssignVehicle player;player action ["eject", vehicle player];};
player setPos getMarkerPos BTC_respawn_marker;
sleep 1;
player setDamage 0;
player switchMove "amovpercmstpslowwrfldnon";
player switchMove "";
if (BTC_respawn_time > 0) then
{
	player enableSimulation false;
	player setpos [0,0,6000];
	player setVelocity [0,0,0];
	sleep 1;
	private ["_n"];
	for [{_n = BTC_respawn_time}, {_n != 0}, {_n = _n - 1}] do
	{
		private ["_msg"];
		player enableSimulation false;
		player setpos [0,0,6000];
		player setVelocity [0,0,0];
		titleText [format ["Respawn in %1",_n], "BLACK FADED"];
		sleep 1;
	};
	player enableSimulation true;
	deTach player;
	player setVelocity [0,0,0];
	player switchMove "amovpercmstpslowwrfldnon";
	player setPos getMarkerPos BTC_respawn_marker;
};
if (BTC_black_screen == 0 || BTC_respawn_time > 0) then 
{	
	titleText ["", "BLACK IN"];
	sleep 2;
	titleText ["", "PLAIN"];
};
player setVariable ["BTC_need_revive",0,true];
BTC_respawn_cond = false;
if (BTC_black_screen == 1 && BTC_respawn_time == 0) then {titleText ["", "BLACK IN"];sleep 2;titleText ["", "PLAIN"];};
};

Working on the new version!

Share this post


Link to post
Share on other sites

Giallustio

before :

if (count (BTC_back_pack_weap select 0) > 0) then

after ?

if (count (_gear select 6) > 0) then

Share this post


Link to post
Share on other sites
Are all the problem reported related to the stable or to the dev version?

The issues I've reported occurred on the Stable (0.74) build.

Share this post


Link to post
Share on other sites
It's better replace it with:

(_gear select 6)

Replace what exactly? Can you post the lines of code how they should look like to fix the error?

Problem reported by Metaball:

'...erPos BTC_respawn_marker;
deleteVehicle |#|_obj;
};
if (BTC_black_screen == 0 || BT...'
Error Undefined variable in expression: _obj

Just delete the line 559:

There you deleted the line 560 for me which is:

deleteVehicle _obj;

Is that correct?

Another problem I had in a coop mission was this:

BTC_need_first_aid = 1;//You need a first aid kit to revive (1 = yes, 0 = no)

This didn't work for us, everyone was able to revive at any time.

Thank you for the work you put into the script, it's really great!

Share this post


Link to post
Share on other sites

When a player is killed

Error in expression <Headgear (_gear select 3);};
if (count (BTC_back_pack_weap select 0) > 0) then 
>
 Error position: <BTC_back_pack_weap select 0) > 0) then 
>
 Error Undefined variable in expression: btc_back_pack_weap

Is there a fix for this error please :) I Don't really understand the previous references to it sorry.

Giallustio ty for such good scripts much appreciated.

Share this post


Link to post
Share on other sites

@DaSkunck

=BTC=_functions.sqf

Line 156:

if (count (BTC_back_pack_weap select 0) > 0) then 
{
	for "_i" from 0 to (count (BTC_back_pack_weap select 0) - 1) do
	{
		(unitBackpack _unit) addweaponCargoGlobal [(BTC_back_pack_weap select 0) select _i,(BTC_back_pack_weap select 1) select _i];
	};			
};

Amend to:

BTC_back_pack_weap = (_gear select 6);
if (!isNil "BTC_back_pack_weap") then {
	if (count (BTC_back_pack_weap select 0) > 0) then 
	{
		for "_i" from 0 to (count (BTC_back_pack_weap select 0) - 1) do
		{
			(unitBackpack _unit) addweaponCargoGlobal [(BTC_back_pack_weap select 0) select _i,(BTC_back_pack_weap select 1) select _i];
		};			
	};
};

Edited by [KH]Jman

Share this post


Link to post
Share on other sites

excellent Jman ... that fixed it ...

now I have No entry config.bin/CfgWeapons.'.

Any ideas on that one ?

Share this post


Link to post
Share on other sites

It doesn't fix the error. You have to replace the variable with (_gear select6) as posted before. Check it because i'm on the phone ;)

Share this post


Link to post
Share on other sites

Hey Gia, one request for the next version whenever you get around to it that I'm not even sure if it's possible.

With BTC_disable_respawn set to 1, and BTC_black_screen set to 0, players can still 'see' the area around them, which is great. One thing I've noticed is that no matter what I set the BTC_action_respawn to, players can still use the action wheel menu.

Is there any way that it's possible to allow the players to see the area about them (no black screen), but lose the capability to see/use the action menu completely?

Thanks for all the hard work so far...your mod is a huge part of what makes my mission work well. :)

Share this post


Link to post
Share on other sites
It doesn't fix the error. You have to replace the variable with (_gear select6) as posted before. Check it because i'm on the phone ;)

Amended my post. Apologies ;)

You can ignore the No entry config.bin/CfgWeapons if you like it'll only appear the first time you respawn.

Share this post


Link to post
Share on other sites

Using that fix has created more issues I think I will wait for the new version ty for trying to help though :)

Share this post


Link to post
Share on other sites

What issue do you mean?

That original code I posted just suppressed the error if the variable was empty, Giallustio pointed out that the variable must contain (_gear select 6) so that all I have updated?

Edited by [KH]Jman

Share this post


Link to post
Share on other sites

this is from the rpt file... when I die i just respawn next to my old body.

rror in expression <player addEventHandler ["HandleDamage", BTC_fnc_handledamage];};
player addEvent>
 Error position: <BTC_fnc_handledamage];};
player addEvent>
 Error Undefined variable in expression: btc_fnc_handledamage
Error in expression <rag_pveh" addPublicVariableEventHandler BTC_fnc_PVEH;
"BTC_carry_pveh" addPublic>
 Error position: <BTC_fnc_PVEH;
"BTC_carry_pveh" addPublic>
 Error Undefined variable in expression: btc_fnc_pveh
Error in expression <C_3d_can_see) > 0) then {_3d = [] spawn BTC_3d_markers;};

BTC_revive_started = >
 Error position: <BTC_3d_markers;};

BTC_revive_started = >
 Error Undefined variable in expression: btc_3d_markers
Error in expression <ile_civ_str;};
};
};
BTC_gear = [] call BTC_get_gear;
if (BTC_loop_check == 1) t>
 Error position: <BTC_get_gear;
if (BTC_loop_check == 1) t>
 Error Undefined variable in expression: btc_get_gear

Share this post


Link to post
Share on other sites

Hello Giallustio,

I just used the BTC_back_pack_weap = (_gear select 6); fix and it's worked a treat thanks ;)

I've only got one error now, the one I mentioned before (below). Do you know how I get rid of that?

Thanks.

I'm using the 0.93. Game is stable build.

I always get this error at the start.... http://members.westnet.com.au/scott_k/not%20much/BTC.jpg

Sorry I can't post the whole error up, I don't know what you do to see the whole thing so I just took a screen shot of it.

Anyway to get rid of the error?

Share this post


Link to post
Share on other sites

Not sure what I have done wrong, but I get the following when I respawn:

Error in expression <erPos BTC_respawn_marker;
deleteVehicle _obj;
};
if (BTC_black_screen == 0 || BT>
 Error position: <_obj;
};
if (BTC_black_screen == 0 || BT>
 Error Undefined variable in expression: _obj
Ref to nonnetwork object Agent 0x66548040

everything seems to work thou

Share this post


Link to post
Share on other sites
Not sure what I have done wrong, but I get the following when I respawn:

Error in expression <erPos BTC_respawn_marker;
deleteVehicle _obj;
};
if (BTC_black_screen == 0 || BT>
 Error position: <_obj;
};
if (BTC_black_screen == 0 || BT>
 Error Undefined variable in expression: _obj
Ref to nonnetwork object Agent 0x66548040

everything seems to work thou

Fix for that is discussed in a previous post.

http://forums.bistudio.com/showthread.php?148085-BTC-Revive&p=2458241&viewfull=1#post2458241

Also believe that's fixed in the .93 version.

Share this post


Link to post
Share on other sites

thanks Meatball, think I have the latest version, but I need to check it tomorrow.

Share this post


Link to post
Share on other sites

I've found the area of text in the functions file that is giving the error for me...

_mags   = magazines player;
_magd   = magazinesDetail player;
//diag_log text format ["%1",_r_mag_d];
if (_r_mag != "" && _r_mag_d != "") then {_mags = _mags + [_r_mag];_magd = _magd + [_r_mag_d];};
if (_h_mag != "" && _r_mag_d != "") then {_mags = _mags + [_h_mag];_magd = _magd + [_h_mag_d];};
BTC_compile_count = 0;
_mags_g = [];
_array_class  = [];
_array_bullet = [];
{

But I have absolutely no idea what's wrong with it. I may as well be reading an alien language.

I don't know if Giallustio is around or away on hols so does anyone have any idea on what needs amending?

Thanks.

Share this post


Link to post
Share on other sites

Hi Giallustio, looks great but i'm having issues.

I was just implementing your scripts into a mission I'm working on and i get this error message when i load up the preview in the editor:

'...getDir _veh;

waitUntil {sleep1; !Alive |#|_veh};

_veh setVariable [_set,0,true];

s...'

Error Undefined variables in expression: _veh

any idea what this means? I get the error message at the exact same moment that the hint tells me "mobile_west_0 is available!", then it stays up on the screen. I haven't tested much past that point yet, i couldnt solve it though any input would be appreciated.

edit - tried it in MP and it all seems to work, just that message wont go away.

/And wow stevieboy weird eh, we were living the same situation at the same instant in time, in different places! lol strange

Edited by Drow09

Share this post


Link to post
Share on other sites

I am still working through the latest version and the demo supplied. now on the screen is the following which does not disappear.

I had an error with flag checked no longer exists error and changed that in the mission to a flag pole which stopped the error, but now the below appears

'...getDir _veh;

waituntil {sleep 1; !Alive !*!_veh};

_veh setvariable [_set,0,true]:

s...'

Error Underfined variable in the expression;_Veh

any ideas much appreciated

well blow me down with a feather, I posted and immediately saw the above post. I must have found my gaming twin

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

×