Jump to content

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.

 

Share this post


Link to post
Share on other sites

15 answers to this question

Recommended Posts

  • 0
Guest

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

Share this post


Link to post
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?

Share this post


Link to post
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.....

Share this post


Link to post
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

Share this post


Link to post
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.

Share this post


Link to post
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

Share this post


Link to post
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

Share this post


Link to post
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!

Share this post


Link to post
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?

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

  • Similar Content

    • By mudzereli
      Outdated, does not work with Epoch 1.0.7
      DEPLOYABLE BIKE 2.8.2
      all of this information is available in an easier-to-read format on github pages>>
      version 2.8.2 updates the code to work with Epoch Mod 1.0.6. Thanks @ebaydayz!
      version 2.8.1 should hopefully fix the long-standing non-moving-bike problem! Thanks @SchwEde!
      FYI: 2.8.0 adds the _condition and _ammo parameters to the config array so you will need to add a value for these parameter in each record of the DZE_DEPLOYABLES_CONFIG array in the appropriate spot if you are upgrading from 2.6
       
      Out of the box, it adds a deployable bike with a right click action on a toolbox and a couple other neat deployables.
      Really, it can be used to deploy just about anything. See the configuration section below.
      For some samples of what it can do, check out this gallery on imgur
       
      Installation
      download the files extract the addons and overwrites folder from the downloaded zip file into your mission file root find this line in your mission file init.sqf (warning: if you have a custom compiles file, find that line instead of the one below!) call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\compiles.sqf"; place this line directly after the line you found call compile preprocessFileLineNumbers "addons\bike\init.sqf"; edit addons\bike\config.sqf to change some options or add different deployables (see configuration section for more info) Warning:
      due to the way the way arma handles numbers and the way addon is coded, using the save-to-database option may not allow you to re-pack some objects if you have Character ID's over 500,000 (which I don't think will be an issue for 99.99% of people).  
      Adding Your Own Custom Actions
      If you use another right click method like extra_rc.hpp and want to switch to my method, see my click actions configuration github page.
      The click actions script is included in the deploy script as part of the core, so you don't need to download anything, just follow the instructions for adding your own actions.
      * note: before attempting to troubleshoot issues with adding your own actions, make sure you are using the most recent version of the addon.
       
      Configuration
      This addon is highly configurable, you can deploy just about anything, not just bikes.
      open addons\bike\config.sqf and edit the array to add your own deployables.
       
      DZE_DEPLOYABLES_CONFIG format -- (note no comma after last array entry)
      DZE_DEPLOYABLES_CONFIG = [ [_clickItem,_deployOffset,_packDistance,_damageLimit,_packAny,_cargo,_hive,_plot,_simulation,_deployables,_near,_parts], [_clickItem,_deployOffset,_packDistance,_damageLimit,_packAny,_cargo,_hive,_plot,_simulation,_deployables,_near,_parts], [...more stuff here...] ]; DZE_DEPLOYABLES_CONFIG array values (view on github to read easier):
      parameter | description | type | example --------------|---------------------------------------------------------------------|--------|-------- _clickItem | class name of the item to click on | string | "ItemToolbox" _deployOffset | [_side,_front,_up] array to offset the deployable when buiding | array | [0,2,1] _packDistance | how close does the packer need to be to pack the object? | number | 5 _damageLimit | item can't be repacked if damage is > this. (-1 = no re-packing) | number | 0.1 _packAny | can anyone repack the deployable? | bool | false _cargo | clear the cargo of the deployable? | bool | false _ammo | should vehicle ammo be cleared? (does not persist through restart) | bool | true _hive | write deployable to database? | bool | false _plot | require a plot from the owner to build the deployable? | bool | false _simulation | enable simulation (movement/damage) for the object? (true for cars) | bool | true _road | enable road building for this object? | bool | true _deployables | array of class names that can be deployed with this method | array | ["MMT_Civ"] _near | array of items required nearby to build (workshop/fire/fueltank) | array | [] _parts | array of parts required to build (will be taken from player) | array | ["ItemToolbox"] _condition | string of code to evaluate to determine whether action is shown | string | "!(isNull player) && {(getPlayerUID player) in DZE_DEPLOYABLE_ADMINS}" DZE_DEPLOYABLE_NAME_MAP array -- allows you to rename the deployable (on the right click/messages)
      format (note no comma after last array entry)
      DZE_DEPLOYABLE_NAME_MAP = [ [_class,_name], [_class,_name], [... more ...] ];  array parameters
      parameter    | description                                                         |  type  | example --------------|---------------------------------------------------------------------|--------|-------- _class        | class name of the item you want to replace the name of              | string | "Notebook" _name         | new name to display when right clicking                             | string | "Macbook Pro" Change Log
      version | change --------|------- 2.8.2 | updates for 1.0.6! Thanks @ebaydayz! 2.8.1 | fix from SchwEde that should fix bike not moving. Thanks @SchwEde! 2.8.0 | option to clear vehicle ammo 2.7.1 | better exit reasons 2.7.0 | option to add condition for showing action in config 2.6.1 | fix for unrideable bikes 2.6.0 | road building options, deployable name mapping 2.5.1  | fix a bug where preview items would sometimes disappear  2.5.0  | now uses a modified epoch building system to deploy the objects  2.4.3  | better click actions build conflict detection  2.4.2  | updated for new click actions handler build  2.4.1  | fixed deployables spawning in locked after restart  2.4.0  | multi-part deployables. yay!  2.3.1  | big fix on packing temp objects  2.3.0  | optional saving to database with post-restart memory of deployed items (see warning below about this) | configurable damage limits on re-packing | admin list for packing/deploying instantly & being able to remove all deployables  2.2.1  | positioning fix for deployed items  2.2.0  | option for clearing cargo of spawned items  2.1.0  | change way dependency call is made, only one line needed in init.sqf now for setup  2.0.0  | major update, allow multiple deployables, pretty much any class  1.1.0  | configuration options / code optimization  1.0.0  | release Issues/FAQ
      1) people are getting kicked for createvehicle restriction when building a stone wall
      open your battleye filter createvehicle.txt and change this line
      5 "Fort_" !="Fort_RazorWire" !="Fort_RazorWirePreview" to this:
      5 "Fort_" !="Fort_RazorWire" !="Fort_RazorWirePreview" != "Fort_StoneWall_EP1" 2) I am using "A Plot For Life" and this is not working!
    • By salival
      Hi,
      Here's my version of  @OtterNas3 vehicle key changer.  It was subsequently modified by @Grahame for epoch 1.0.6. Updated for 1.0.7.
      This adds support for briefcases, gems and coins as well as using the epoch vehicle upgrade system to do the key changing/claiming.
      * original discussion url: https://epochmod.com/forum/topic/5972-release-vehicle-key-changer-for-making-masterkey-v-14-updated-06152014/
      * updated discussion url: https://epochmod.com/forum/topic/43048-release-vehicle-key-changer-for-making-masterkey-v-141-updated-for-epoch-106/
      Github link with install directions: https://github.com/oiad/vkc
      **EDIT* Link to a working locate Vehicle script that is able to find multiple vehicles per key: 
       
      **** For Epoch 1.0.6.2 only **** >> Download <<
      Visit this link: https://github.com/oiad/vkc/tree/vkc-Epoch-1.0.6.2
    • By salival
      Hi guys,
      Here's my version of the bury/butcher body script. Focus'd on optimization and cleanliness.
      * Tested as working on a blank Epoch 1.0.7 server
      * Contains a server side scheduler module to clean up old weapon crates, graves and crosses after 25 minutes.
      * Removes the flies sound when body is buried for performance.
       
      To download: https://github.com/oiad/buryBodies
       
      **** For Epoch 1.0.6.2 only **** >> Download <<
      Visit this link: https://github.com/oiad/buryBodies/tree/Epoch_1.0.6.2
    • By salival
      Hi,
      Since Zabn is MIA I have updated his Take Clothes script to 1.0.7 compatible.
      Github with install instructions and download location: https://github.com/oiad/TakeClothes
       
       
      **** For Epoch 1.0.6.2 only **** >> Download <<
      Visit this link: https://github.com/oiad/TakeClothes/tree/Epoch_1.0.6.2
      (original install url: http://opendayz.net/threads/release-zabns-take-clothes-2-0.19290/)
      (original discussion url: http://opendayz.net/threads/help-discussion-zabns-take-clothes.13198/)
       
    • By salival
      Hi,
      With Axe Cops permission I am releasing my updated version of his amazing Service Points script. 
      This includes support for original briefcases, gems (from epoch 1.0.7) and coins.
          (original github url: https://github.com/vos/dayz/tree/master/service_point)
          (original install/discussion url: https://epochmod.com/forum/topic/3935-release-vehicle-service-point-refuel-repair-rearm-script/)
          
      **** *REQUIRES DAYZ EPOCH 1.0.7* ****
          
      Major Changes:
          This version adds support for both single currency and gems (from the epoch 1.0.6 update) as well as the original epoch briefcase currency system. 
          Instead of pricing things like the original way, prices are now done on a "worth" similar to how coins are done. The price value of items are below.
          If you are using coins, I would recommend using the _currencyModifier variable since coins typically are 10x the value of briefcase based currency (1 brief == 100,000 coins)
          (You can either set this _currencyModifier variable to 1 then set the proper value or use the modifier, the modifier is mainly for dual currency servers)
          1 silver = 1 worth
          1 10oz silver = 10 worth
          1 gold = 100 worth
          1 10oz gold = 1,000 worth
          1 briefcase = 10,000 worth
          Please see dayz_code\configVariables.sqf for the value of gems (DZE_GemWorthArray) and their relevant worth if they are enabled.
          Example config settings for _refuel_costs, _repair_costs and _rearm_costs:
          All 3 sections can either be made free, disabled or a specifc price with the following examples:
          ["Air","free"] will make the vehicle config class of "Air" free for the specific action.
          ["Air","disabled"] will make the vehicle config class of "Air" disabled for the specific action.
          ["Air",2000] will make the vehicle config class of "Air" have a worth of 2000 for the specific action.
          ["Armored_SUV_PMC",2000] will make the specific vehicle have a worth of 2000 for the specific action.
          ["Armored_SUV_PMC","free"] will make the specific vehicle be free for the specific action.
          ["Armored_SUV_PMC","disabled"] will make the specific vehicle be disabled for the specific action.
          Valid vehicle config classes as an example: "Air", "AllVehicles", "All", "APC", "Bicycle", "Car", "Helicopter", "Land", "Motorcycle", "Plane", "Ship", "Tank"
      Visit my Github page to download and read the README.MD : https://github.com/oiad/service_points
      Old Epoch 1.0.6.2 Version can be found here: https://github.com/oiad/service_points/archive/refs/tags/Epoch_1.0.6.2.zip
  • Advertisement
  • Supporters
  • Discord

×
×
  • Create New...