micovery / ArmA3_Wasteland.Altis

A3Wasteland is a harsh survival sandbox mission for Arma 3 where two teams and independent players fight for survival. This is a collaboration between GoT, TPG, KoS, 404Games, and others.
GNU Affero General Public License v3.0
4 stars 14 forks source link

Undefined variable in "Storage" #51

Closed Cael817 closed 9 years ago

Cael817 commented 9 years ago

There seems to be an undefined variable in ps_functions.sqf, could be me doing something wrong thou but one of my admins reported the same issue.

12:25:39 Error in expression <box = [player, ps_container_class] call p_recreateStorageBox;

if (isNil "_box")> 12:25:39 Error position: <p_recreateStorageBox;

if (isNil "_box")> 12:25:39 Error Undefined variable in expression: p_recreatestoragebox 12:25:39 File mpmissions__CUR_MP.Altis\addons\storage\ps_functions.sqf, line 139

micovery commented 9 years ago

Hmm, I don't have that error. Which branch are you using? Also, verify in your RPT, that the following messages appear:

23:20:46 "pFunctions.sqf loading ..."
23:20:46 "pFunctions.sqf loading complete"

Sometimes, in SQF if there is some mismatched curly brace, or square bracket, it causes a file to not be fully parsed... without any errors or anything.

Cael817 commented 9 years ago

Maybe my bad, i think i took down extDB_beta_addons up to 1426 commits, ill look again

micovery commented 9 years ago

Np, also check that you have this function:

https://github.com/micovery/ArmA3_Wasteland.Altis/blob/8124e03943adbb3a196c0815cd298c878e7d8a36/persistence/players/pFunctions.sqf#L408-L482

Cael817 commented 9 years ago

Yup, that's it, i missed the update of that one. Sorry! Closing

Entirely my fault as in keep insisting on using ownerName instead of ownerN, think have to change my mind =). Wonder if spawnbeacons get both variables as they use ownerName in vanilla...