mintypie007 Posted December 4, 2013 Report Share Posted December 4, 2013 So pretty much I have had this error for a long time. It spams the armarpt log with about 50 pages of this. if(_x in (DZE_REPLACE_WEAPONS select 0)) then { _x> 5:27:08 Error position: <DZE_REPLACE_WEAPONS select 0)) then { _x> 5:27:08 Error Undefined variable in expression: dze_replace_weapons 5:27:08 File z\addons\dayz_server\system\server_monitor.sqf, line 200 5:27:08 Error in expression <select 1; _countr = 0; { if(_x in (DZE_REPLACE_WEAPONS select 0)) then { _x> 5:27:08 Error position: <DZE_REPLACE_WEAPONS select 0)) then { _x> 5:27:08 Error Undefined variable in expression: dze_replace_weapons 5:27:09 File z\addons\dayz_server\system\server_monitor.sqf, line 200 5:27:09 Error in expression <select 1; _countr = 0; { I have checked the expression there and it matches up with what I have seen from other posts and also the download for the files. if (count _intentory > 0) then { if (_type in DZE_LockedStorage) then { // Fill variables with loot _object setVariable ["WeaponCargo", (_intentory select 0), true]; _object setVariable ["MagazineCargo", (_intentory select 1), true]; _object setVariable ["BackpackCargo", (_intentory select 2), true]; } else { //Add weapons _objWpnTypes = (_intentory select 0) select 0; _objWpnQty = (_intentory select 0) select 1; _countr = 0; { if(_x in (DZE_REPLACE_WEAPONS select 0)) then { _x = (DZE_REPLACE_WEAPONS select 1) select ((DZE_REPLACE_WEAPONS select 0) find _x); }; _isOK = isClass(configFile >> "CfgWeapons" >> _x); if (_isOK) then { _block = getNumber(configFile >> "CfgWeapons" >> _x >> "stopThis") == 1; if (!_block) then { _object addWeaponCargoGlobal [_x,(_objWpnQty select _countr)]; }; }; _countr = _countr + 1; } forEach _objWpnTypes; I have made edits to the server monitor sqf however never in this section. Link to comment Share on other sites More sharing options...
0 vbawol Posted December 7, 2013 Report Share Posted December 7, 2013 Does DZE_REPLACE_WEAPONS array exist in your variables.sqf? Link to comment Share on other sites More sharing options...
0 mintypie007 Posted December 7, 2013 Author Report Share Posted December 7, 2013 }; if(isNil "DZE_FriendlySaving") then { DZE_FriendlySaving = true; }; DZE_REPLACE_WEAPONS = [["Crossbow","ItemMatchbox","ItemHatchet"],["Crossbow_DZ","ItemMatchbox_DZE","ItemHatchet_DZE"]]; /* if(isNil "dayz_canBuildInCity") then { dayz_canBuildInCity = false; }; */ It does indeed. Still getting the error. It seems to only occur during server start so I assume it would not cause any lag so its a non issue I guess. Still with most recent patch as well. Obviously something else I have running is breaking it. Link to comment Share on other sites More sharing options...
Question
mintypie007
So pretty much I have had this error for a long time. It spams the armarpt log with about 50 pages of this.
if(_x in (DZE_REPLACE_WEAPONS select 0)) then {
_x>
5:27:08 Error position: <DZE_REPLACE_WEAPONS select 0)) then {
_x>
5:27:08 Error Undefined variable in expression: dze_replace_weapons
5:27:08 File z\addons\dayz_server\system\server_monitor.sqf, line 200
5:27:08 Error in expression <select 1;
_countr = 0;
{
if(_x in (DZE_REPLACE_WEAPONS select 0)) then {
_x>
5:27:08 Error position: <DZE_REPLACE_WEAPONS select 0)) then {
_x>
5:27:08 Error Undefined variable in expression: dze_replace_weapons
5:27:09 File z\addons\dayz_server\system\server_monitor.sqf, line 200
5:27:09 Error in expression <select 1;
_countr = 0;
{
I have checked the expression there and it matches up with what I have seen from other posts and also the download for the files.
if (count _intentory > 0) then {
if (_type in DZE_LockedStorage) then {
// Fill variables with loot
_object setVariable ["WeaponCargo", (_intentory select 0), true];
_object setVariable ["MagazineCargo", (_intentory select 1), true];
_object setVariable ["BackpackCargo", (_intentory select 2), true];
} else {
//Add weapons
_objWpnTypes = (_intentory select 0) select 0;
_objWpnQty = (_intentory select 0) select 1;
_countr = 0;
{
if(_x in (DZE_REPLACE_WEAPONS select 0)) then {
_x = (DZE_REPLACE_WEAPONS select 1) select ((DZE_REPLACE_WEAPONS select 0) find _x);
};
_isOK = isClass(configFile >> "CfgWeapons" >> _x);
if (_isOK) then {
_block = getNumber(configFile >> "CfgWeapons" >> _x >> "stopThis") == 1;
if (!_block) then {
_object addWeaponCargoGlobal [_x,(_objWpnQty select _countr)];
};
};
_countr = _countr + 1;
} forEach _objWpnTypes;
I have made edits to the server monitor sqf however never in this section.
Link to comment
Share on other sites
2 answers to this question
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now