Jump to content
  • 0

ReDBaroN

Question

Since upgrading arma2oa to 11255, I started getting this error in my rpt:

 

==============================================================================
18:12:56 Error in expression <;
_weapon = weaponState _attacker;
if (_weapon select 0 == "Throw") then 
{
_we>
18:12:56   Error position: <_weapon select 0 == "Throw") then 
{
_we>
18:12:56   Error Undefined variable in expression: _weapon
18:12:56 File z\addons\dayz_server\compile\fnc_plyrHit.sqf, line 11
==============================================================================
 
I was hoping it would go away with the Epoch upgrade to 105 and then 1051 but it didn't. Then I hoped it would go with the arma2oa upgrade to 125402 but it didn't. However, it did change slightly from Epoch 1042 to 105:
 
==============================================================================
20:19:24 Error in expression <;
_weapon = weaponState _attacker;
if (_weapon select 0 == "Throw") then 
{
_we>
20:19:24   Error position: <_weapon select 0 == "Throw") then 
{
_we>
20:19:24   Error Undefined variable in expression: _weapon
20:19:24 File z\addons\dayz_server\compile\fnc_plyrHit.sqf, line 12
==============================================================================
 
This is the only error in my rpt apart from the usual client/server: object not found spam.
 
I'm running quite a few scripts including:
WAI, DZMS, Set View Distance, Free Refuel Repair & Rearm, Lift & Tow, Safe Zones, Building Snapping, Additional Buildings, Lights, Deployable Bike, Take Clothes, Suicide & infiSTAR.
 
Is anyone else seeing this? Can anyone help?
 
Any help would be greatly appreciated.

 

Link to comment
Share on other sites

15 answers to this question

Recommended Posts

  • 0

Yeah I'm getting the same error:

 

15:15:21 Error in expression <;
 
_weapon = weaponState _attacker;
if (_weapon select 0 == "Throw") then 
{
_we>
15:15:21   Error position: <_weapon select 0 == "Throw") then 
{
_we>
15:15:21   Error Undefined variable in expression: _weapon
15:15:21 File z\addons\dayz_server\compile\fnc_plyrHit.sqf, line 12
Link to comment
Share on other sites

  • 0

Thanks Piggd for the tip but, I have now checked all my crates and configs for both the mission systems I run, DZMS & WAI and everything is in the right place and in the right category i.e. cargoglobal & weaponglobal.

 

Any other suggestions?

Link to comment
Share on other sites

  • 0

 

Since upgrading arma2oa to 11255, I started getting this error in my rpt:

 

==============================================================================
18:12:56 Error in expression <;
_weapon = weaponState _attacker;
if (_weapon select 0 == "Throw") then 
{
_we>
18:12:56   Error position: <_weapon select 0 == "Throw") then 
{
_we>
18:12:56   Error Undefined variable in expression: _weapon
18:12:56 File z\addons\dayz_server\compile\fnc_plyrHit.sqf, line 11
==============================================================================
 
I was hoping it would go away with the Epoch upgrade to 105 and then 1051 but it didn't. Then I hoped it would go with the arma2oa upgrade to 125402 but it didn't. However, it did change slightly from Epoch 1042 to 105:
 
==============================================================================
20:19:24 Error in expression <;
_weapon = weaponState _attacker;
if (_weapon select 0 == "Throw") then 
{
_we>
20:19:24   Error position: <_weapon select 0 == "Throw") then 
{
_we>
20:19:24   Error Undefined variable in expression: _weapon
20:19:24 File z\addons\dayz_server\compile\fnc_plyrHit.sqf, line 12
==============================================================================
 
This is the only error in my rpt apart from the usual client/server: object not found spam.
 
I'm running quite a few scripts including:
WAI, DZMS, Set View Distance, Free Refuel Repair & Rearm, Lift & Tow, Safe Zones, Building Snapping, Additional Buildings, Lights, Deployable Bike, Take Clothes, Suicide & infiSTAR.
 
Is anyone else seeing this? Can anyone help?
 
Any help would be greatly appreciated.

 

I have noticed a trend with this error I'm still getting, it only appears when players are either hit by a vehicle or shot using the vehicles weapon.

 

Hope this may help anyone who may be interested in helping me.....

Link to comment
Share on other sites

  • 0

 

Since upgrading arma2oa to 11255, I started getting this error in my rpt:

 

==============================================================================
18:12:56 Error in expression <;
_weapon = weaponState _attacker;
if (_weapon select 0 == "Throw") then 
{
_we>
18:12:56   Error position: <_weapon select 0 == "Throw") then 
{
_we>
18:12:56   Error Undefined variable in expression: _weapon
18:12:56 File z\addons\dayz_server\compile\fnc_plyrHit.sqf, line 11
==============================================================================
 
I was hoping it would go away with the Epoch upgrade to 105 and then 1051 but it didn't. Then I hoped it would go with the arma2oa upgrade to 125402 but it didn't. However, it did change slightly from Epoch 1042 to 105:
 
==============================================================================
20:19:24 Error in expression <;
_weapon = weaponState _attacker;
if (_weapon select 0 == "Throw") then 
{
_we>
20:19:24   Error position: <_weapon select 0 == "Throw") then 
{
_we>
20:19:24   Error Undefined variable in expression: _weapon
20:19:24 File z\addons\dayz_server\compile\fnc_plyrHit.sqf, line 12
==============================================================================
 
This is the only error in my rpt apart from the usual client/server: object not found spam.
 
I'm running quite a few scripts including:
WAI, DZMS, Set View Distance, Free Refuel Repair & Rearm, Lift & Tow, Safe Zones, Building Snapping, Additional Buildings, Lights, Deployable Bike, Take Clothes, Suicide & infiSTAR.
 
Is anyone else seeing this? Can anyone help?
 
Any help would be greatly appreciated.

 

Giving this a bit of a bump to see if anyone can help as I'm still getting this error.

 

I'm also getting a new error since updating to Steam 125548:

18:24:20 Error in expression < getVariable["actionSet", false];
 
if (!_actionSet) then {
s_player_holderPickup>
18:24:20   Error position: <_actionSet) then {
s_player_holderPickup>
18:24:20   Error Undefined variable in expression: _actionset
18:24:20 File z\addons\dayz_code\init\object_BackpackAction.sqf, line 13
 
Anyone else seeing this?
 
Thanks
Link to comment
Share on other sites

  • 0

Having still the same error.

i`m on arma 125548 with epoch 1.0.5.1 chernarus.

 

Wai Mission, Animated Crashsites (fixed), Indestructibel Items, SnapPro with vectorbuildung,Service point.

 

I think these are the scripts which COULD cause this error.

Hi edhunter, which one are you still getting out of my errors above?

 

I have managed to fix both:

 

For the error with fnc_plyrHit.sqf, line 12 I solved by pulling the 1052 file from github and dropping it into my dayz_server/compiles folder.

 

and the error with object_BackpackAction.sqf, line 13 I deleted the following line from any mission system's ai_killed.sqf file that try to remove AI gear when they are run over:

removeBackpack _unit;

Then just give them an average backpack or, turn the option off to remove gear from AI run being over altogether.

 

I found the fix for this here:

 

Hope this helps...

 

EDIT: I only didn't post my fixes as no one had replied to my thread so, thought no one else was experiencing the problems...

Edited by ReDBaroN
Link to comment
Share on other sites

  • 0

Hi edhunter, which one are you still getting out of my errors above?

 

I have managed to fix both:

 

For the error with fnc_plyrHit.sqf, line 12 I solved by pulling the 1052 file from github and dropping it into my dayz_server/compiles folder.

 

and the error with object_BackpackAction.sqf, line 13 I deleted the following line from any mission system's ai_killed.sqf file that try to remove AI gear when they are run over:

removeBackpack _unit;

Then just give them an average backpack or, turn the option off to remove gear from AI run being over altogether.

 

I found the fix for this here:

 

Hope this helps...

 

EDIT: I only didn't post my fixes as no one had replied to my thread so, thought no one else was experiencing the problems...

What do you mean by the 1052 file? Where can I get it to fix this issue with the PlyrHit file

Link to comment
Share on other sites

  • 0

Sub, I think this is the link; https://github.com/vbawol/DayZ-Epoch/tree/master/Server%20Files

 

However it appears the server files re from an older Epoch release.  I compared my plyhit to the one on the site, exactly the same. ReD, any chance you could point us in the right direction??? I too would like to fix this before the next release. Many thanks!

Link to comment
Share on other sites

  • 0

This might not be connected, but it seems very coincidental. After I searched for this error and found this thread, I replaced the fnc_playerHit.sqf with the one in the github, and since then if you are killed by a vehicle your corpse instantly disappears. There is no error in the RPT. Any ideas?

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Discord

×
×
  • Create New...