Jump to content
  • 0

Server errors


ViktorReznov

Question

Having errors with code from files I most definitely did not ,edit.

clientside .rpt

Spoiler

Error in expression <nt = ((_this select 2) select 3);


if (_calorieCount > 0) then {
_hungerCount =>
  Error position: <_calorieCount > 0) then {
_hungerCount =>
  Error Undefined variable in expression: _caloriecount
File z\addons\dayz_code\init\compiles.sqf, line 305

File z\addons\dayz_code\init\compiles.sqf, line 305
Error in expression <wTruck","_isTowing","_hasToolbox"];

if(DZE_ActionInProgress) exitWith { cutText>
  Error position: <DZE_ActionInProgress) exitWith { cutText>
  Error Undefined variable in expression: dze_actioninprogress
File mpmissions\__CUR_MP.Chernarus\Logistic\mf-tow\tow_DetachTow.sqf, line 12

 

 

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0
44 minutes ago, ViktorReznov said:

Having errors with code from files I most definitely did not ,edit.

clientside .rpt

  Hide contents

Error in expression <nt = ((_this select 2) select 3);


if (_calorieCount > 0) then {
_hungerCount =>
  Error position: <_calorieCount > 0) then {
_hungerCount =>
  Error Undefined variable in expression: _caloriecount
File z\addons\dayz_code\init\compiles.sqf, line 305

File z\addons\dayz_code\init\compiles.sqf, line 305
Error in expression <wTruck","_isTowing","_hasToolbox"];

if(DZE_ActionInProgress) exitWith { cutText>
  Error position: <DZE_ActionInProgress) exitWith { cutText>
  Error Undefined variable in expression: dze_actioninprogress
File mpmissions\__CUR_MP.Chernarus\Logistic\mf-tow\tow_DetachTow.sqf, line 12

 

 

https://github.com/EpochModTeam/DayZ-Epoch/blob/master/Documents/1.0.6 Variable Name Changes.txt has the list of variables that have changed

I'm guessing for your first error that you just changed the function name from dayz_HungerThirst --> dayz_NutritionSystem without changing how it calls it.

i.e: https://github.com/matt-d-rat/mf-tow/blob/master/init.sqf#L63 is the old dayz_hungerThirst

https://github.com/EpochModTeam/DayZ-Epoch/blob/master/SQF/dayz_code/init/compiles.sqf#L289-L302 is the new dayz_NutritionSystem so it has additional arguments i.e:

["Working",0,[20,40,15,0]] call dayz_NutritionSystem;

For the second one, see this line: https://github.com/EpochModTeam/DayZ-Epoch/blob/master/Documents/1.0.6 Variable Name Changes.txt#L25

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
  • Advertisement
  • Discord

×
×
  • Create New...