carl101 Posted January 12, 2015 Report Share Posted January 12, 2015 just started receiving this error in the rpt that i could do with help on 22:17:53 Error in expression <Inventory",[]]); if (str(_inventory) != _previous) then { _object setVariable["l> 22:17:53 Error position: <_previous) then { _object setVariable["l> 22:17:53 Error Undefined variable in expression: _previous 22:17:53 File z\addons\dayz_server\compile\server_updateObject.sqf, line 110 this is on a Overpochins server that has a few scripts that use the inventorie's Door managment plot manamgent origins buildings masterkey my server_updateobject http://pastebin.com/AxGLdxJC thanks for any help in looking into this thanks for any hep in helping me sort this Link to comment Share on other sites More sharing options...
0 carl101 Posted January 13, 2015 Author Report Share Posted January 13, 2015 It says undefined variable, now I know nothing about variables but would it be a case of adding _previous into the lines at the top of the sqf? Link to comment Share on other sites More sharing options...
0 carl101 Posted January 25, 2015 Author Report Share Posted January 25, 2015 bump any info is good info Link to comment Share on other sites More sharing options...
0 Silence4All Posted January 25, 2015 Report Share Posted January 25, 2015 I had this pop up when installing a mod (forget which 1). Deleting the " };" from line 107 stopped the error for me. Im not a scripter but it's worth a shot. Link to comment Share on other sites More sharing options...
0 carl101 Posted January 26, 2015 Author Report Share Posted January 26, 2015 il give that ago because plot managment does infact add a extra }; il try it and report back, so long as inventories still work after ect then i suppose it will work as should Link to comment Share on other sites More sharing options...
0 shootingblanks Posted January 26, 2015 Report Share Posted January 26, 2015 the undefined variable _previous is because the line it is set to a value is in error _previous = str(_object getVariable["lastInventory",[]]); So it is getting the "lastinventory" variable from the object and should be inserting an empty array [] if that variable does not exist. So _previous SHOULD either be inventory or [] . To see what is happening with that value, insert this line of code and then run the server and see what your arma2oaserver.rpt log says ... diag_log format["----------- _PREVIOUS = %1 -----------------",_previous]; right below where _previous is defined .. so on line 13 _object_inventory = { private["_inventory","_previous","_key"]; _inventory = [ getWeaponCargo _object, getMagazineCargo _object, getBackpackCargo _object /*ZSC*/ , _object getVariable["bankMoney",0] /*ZSC*/ ]; _previous = str(_object getVariable["lastInventory",[]]); if (str(_inventory) != _previous) then { _object setVariable["lastInventory",_inventory]; if (_objectID == "0") then { _key = format["CHILD:309:%1:%2:",_uid,_inventory]; } else { _key = format["CHILD:303:%1:%2:",_objectID,_inventory]; }; //diag_log ("HIVE: WRITE: "+ str(_key)); _key call server_hiveWrite; }; }; Link to comment Share on other sites More sharing options...
0 carl101 Posted January 26, 2015 Author Report Share Posted January 26, 2015 I had this pop up when installing a mod (forget which 1). Deleting the " };" from line 107 stopped the error for me. Im not a scripter but it's worth a shot. tried this, although no errors came up, inventories wherent updating. the undefined variable _previous is because the line it is set to a value is in error _previous = str(_object getVariable["lastInventory",[]]); So it is getting the "lastinventory" variable from the object and should be inserting an empty array [] if that variable does not exist. So _previous SHOULD either be inventory or [] . To see what is happening with that value, insert this line of code and then run the server and see what your arma2oaserver.rpt log says ... diag_log format["----------- _PREVIOUS = %1 -----------------",_previous]; right below where _previous is defined .. so on line 13 _object_inventory = { private["_inventory","_previous","_key"]; _inventory = [ getWeaponCargo _object, getMagazineCargo _object, getBackpackCargo _object /*ZSC*/ , _object getVariable["bankMoney",0] /*ZSC*/ ]; _previous = str(_object getVariable["lastInventory",[]]); if (str(_inventory) != _previous) then { _object setVariable["lastInventory",_inventory]; if (_objectID == "0") then { _key = format["CHILD:309:%1:%2:",_uid,_inventory]; } else { _key = format["CHILD:303:%1:%2:",_objectID,_inventory]; }; //diag_log ("HIVE: WRITE: "+ str(_key)); _key call server_hiveWrite; }; }; thanks il give this ago now cheers guys Link to comment Share on other sites More sharing options...
0 shootingblanks Posted January 27, 2015 Report Share Posted January 27, 2015 I had this pop up when installing a mod (forget which 1). Deleting the " };" from line 107 stopped the error for me. Im not a scripter but it's worth a shot. i had not seen this post before i posted mine. this is easy to check using notepad++ because if you click,on one } it will highlight the matching brace. so just check them and make sure the correct brace is highlighted Link to comment Share on other sites More sharing options...
0 carl101 Posted January 30, 2015 Author Report Share Posted January 30, 2015 Ok its just done the error, weird that it dont do it all the time. Altho its thrown abit more out this time too 16:20:33 "infiSTAR.de fnc_AdminFirstReq: [-2,B 1-1-I:1 (A Bambi) REMOTE,53383040# 1022178: gnt_c185.p3d]" 16:20:33 "infiSTAR.de fnc_AdminReqProceed: [-2,B 1-1-I:1 (A Bambi) REMOTE,53383040# 1022178: gnt_c185.p3d]" 16:20:33 "DELETE: 76561198007421583 Deleted by UID: 997541864480161" 16:20:33 "infiSTAR.de PVAH_WriteLog: B 1-1-I:1 (A Bambi) REMOTE A Bambi (76561198007421583) deleted GNT_C185 @099064 - characterID any - objectID: 0 - objectUID: 997541864480161" 16:20:34 Error in expression <eWest and !(locked _object)) then { if (_objectID == "0" && _uid == "0") then { > 16:20:34 Error position: <_objectID == "0" && _uid == "0") then { > 16:20:34 Error Undefined variable in expression: _objectid 16:20:34 File z\addons\dayz_server\compile\server_updateObject.sqf, line 38 16:20:34 "----------- _PREVIOUS = -----------------" 16:20:34 Error in expression <----- _PREVIOUS = %1 -----------------",_previous]; if (str(_inventory) != _prev> 16:20:34 Error position: <_previous]; if (str(_inventory) != _prev> 16:20:34 Error Undefined variable in expression: _previous 16:20:34 File z\addons\dayz_server\compile\server_updateObject.sqf, line 110 16:20:34 Error in expression <iable ["ObjectUID","0"]; if ((typeName _objectID != "string") || (typeName _uid> 16:20:34 Error position: <_objectID != "string") || (typeName _uid> 16:20:34 Error Undefined variable in expression: _objectid 16:20:34 File z\addons\dayz_server\compile\server_updateObject.sqf, line 30 16:20:34 "----------- _PREVIOUS = [[[],[]],[[],[]],[[],[]]] -----------------" 16:20:34 "----------- _PREVIOUS = [[[],[]],[[],[]],[[],[]]] -----------------" 16:20:34 "----------- _PREVIOUS = [[[],[]],[[],[]],[[],[]]] -----------------" 16:20:34 "----------- _PREVIOUS = [] -----------------" 16:20:34 "----------- _PREVIOUS = [[[],[]],[[],[]],[[],[]]] -----------------" 16:20:34 "----------- _PREVIOUS = [[[],[]],[[],[]],[[],[]]] -----------------" 16:20:34 "----------- _PREVIOUS = [[[],[]],[[],[]],[[],[]]] -----------------" 16:20:34 "----------- _PREVIOUS = [[[],[]],[[],[]],[[],[]]] -----------------" 34:31 Server: Object 27:5 not found (message 89) 18:34:31 "----------- _PREVIOUS = [[["MP5A5"],[1]],[["20Rnd_762x51_DMR"],[3]],[["DZ_Backpack_EP1"],[2]]] -----------------" 18:34:48 "----------- _PREVIOUS = [[[],[]],[[],[]],[[],[]]] -----------------" 18:34:52 "----------- _PREVIOUS = [] -----------------" 18:34:52 "----------- _PREVIOUS = -----------------" 18:34:52 Error in expression <----- _PREVIOUS = %1 -----------------",_previous]; if (str(_inventory) != _prev> 18:34:52 Error position: <_previous]; if (str(_inventory) != _prev> 18:34:52 Error Undefined variable in expression: _previous 18:34:52 File z\addons\dayz_server\compile\server_updateObject.sqf, line 110 18:34:55 "----------- _PREVIOUS = [[[],[]],[[],[]],[[],[]]] -----------------" 18:34:58 "TIME SYNC: Local Time set to [2013,8,3,12,34]" 18:35:03 "----------- _PREVIOUS = [[[],[]],[[],[]],[[],[]]] -----------------" 18:35:03 "----------- _PREVIOUS = [[[],[]],[[],[]],[[],[]]] -----------------" 18:35:04 "----------- _PREVIOUS = [[[],[]],[[],[]],[[],[]]] -----------------" 19:39:06 [DZMS]: Minor SM4 Crash Site Mission has Ended. 19:39:07 "----------- _PREVIOUS = [[["ItemSledge","RH_star21","vil_RPK74M","ItemGPS","RH_hk416sd","RH_m1steot","BAF_L85A2_RIS_Holo","vil_AEK1"],[1,1,1,1,1,1,1,1]],[["ItemWire","FoodCanBakedBeans","PartWheel","ItemJerrycan","PartGeneric","20Rnd_762x51_DMR","ItemWoodLadder","ItemWoodStairsSupport","PartGlass","cinder_garage_kit","ItemWoodWallWithDoorLg","ItemWoodWallWithDoor","30Rnd_556x45_Stanag","FoodCanSardines","FoodCanPasta","FoodrabbitCooked","ItemTunaCooked","ItemAntibiotic","ItemBloodbag","ItemMorphine","Skin_GUE_Soldier_CO_DZ","PartEngine","fuel_pump_kit","RH_20Rnd_762x51_SD_hk417"],[2,1,1,2,2,7,2,1,2,2,1,1,2,1,2,1,1,1,1,1,1,1,1,1]],[["DZ_Assault_Pack_EP1","DZ_LargeGunBag_EP1"],[1,1]]] -----------------" 19:39:08 "----------- _PREVIOUS = [[["ItemKeyRed655"],[1]],[[],[]],[[],[]]] -----------------" 19:39:11 "----------- _PREVIOUS = [[[],[]],[[],[]],[[],[]]] -----------------" 19:39:15 "----------- _PREVIOUS = -----------------" 19:39:15 Error in expression <----- _PREVIOUS = %1 -----------------",_previous]; if (str(_inventory) != _prev> 19:39:15 Error position: <_previous]; if (str(_inventory) != _prev> 19:39:15 Error Undefined variable in expression: _previous 19:39:15 File z\addons\dayz_server\compile\server_updateObject.sqf, line 110 19:39:17 Server: Object 32:79 not found (message 132) this is the instances where the error occured thanks Link to comment Share on other sites More sharing options...
0 carl101 Posted February 1, 2015 Author Report Share Posted February 1, 2015 Bump Link to comment Share on other sites More sharing options...
Question
carl101
just started receiving this error in the rpt that i could do with help on
this is on a Overpochins server that has a few scripts that use the inventorie's
Door managment
plot manamgent
origins buildings
masterkey
my server_updateobject http://pastebin.com/AxGLdxJC
thanks for any help in looking into this
thanks for any hep in helping me sort this
Link to comment
Share on other sites
9 answers to this question
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now