Forum Jump :

Author Message


Posts: 13
Rank:


Level: Member

Country: fr
Location:
Occupation:
Age:
In-game name:

 
#1 Posted at 2018-02-27 15:13        
     
Hi
As title says I recently got into this error with A3\functions fn_randomPos.sqf.
Mission is now all broken... everyone spawns in the sky...
I thought it might have something to do with script handler / processor busyness ?
Google couldn't help, hopefully one of you wise scripters will.

15:26:24 Error in expression <aceIsWater _posCandidate})
)
&&
{
{if (_posCandidate inArea _x) exitWith {1}} c>
15:26:24   Error position: <_posCandidate inArea _x) exitWith {1}} c>
15:26:24   Error Variable indéfinie dans une expression: _poscandidate
15:26:24 File A3\functions_f\Map\fn_randomPos.sqf [BIS_fnc_randomPos], line 94
15:26:24 Error in expression < {1}} count _blackListClean == 0
}
&&
{_posCandidate call _condition}
) 
exitWi>
15:26:24   Error position: <_posCandidate call _condition}
) 
exitWi>
15:26:24   Error Variable indéfinie dans une expression: _poscandidate
15:26:24 File A3\functions_f\Map\fn_randomPos.sqf [BIS_fnc_randomPos], line 98



Author Message


Posts: 151
Rank:


Level: Member

Country: us
Location: Pennsylvania
Occupation:
Age:
In-game name: Xian

 
#2 Posted at 2018-02-27 23:00        
     
can you post the whole script? Seems like we're missing important parts to find the issue.


Advertisement


Author Message


Posts: 13
Rank:


Level: Member

Country: fr
Location:
Occupation:
Age:
In-game name:

 
#3 Posted at 2018-02-28 08:08        
     
Hi Xian,

It's missing the end... well it looks like my main script's too long for this forum :-X
Btw I can zip you the whole thing if you wish.

From this line in my first post
_PlayerResp = [_worldCenter, 0, 80000, 0, 0, 0, 0,spawnBlacklist] call BIS_fnc_findSafePos;
// _PlayerResp = [center, minDist, maxDist, objDist, waterMode, maxGrad, shoreMode, blacklistPos, defaultPos] call BIS_fnc_findSafePos;

On statis I get this
_worldCenter : [4096,4096] > Ok
_PlayerResp : any > ?

According to BIS wiki (https://community.bistudio.com/wiki/BIS_fnc_findSafePos)
maxGrad is set to 0 by default & defaultPos is optional.

I don't remember changing these values anyway and it worked fine a few days ago.
Would an overload prevent BIS_fnc_findSafePos to work properly ?
From what I've understood, everything is queued and should be processed normally...

Edit : Resolved. I changed a variable pos array value into a marker just before BIS_fnc_findSafePos...
_worldCenter = [(currentWorldSize/2),(currentWorldSize/2)];
//few lines below...
_worldCenter = createMarker ["worldCenter", [(_worldCenter select 0), (_worldCenter select 1)]];
lost a couple hours on this one, haha :)

This post was edited by BurnToAshes (2018-03-09 00:51, 282 days ago)