I fount that call getMap().getResourceMapSpotsPositions(metal) is dangerous on this map (too many points).
I test this map by call getResourceNearest(), but found next bug: sometime Y(Z) position is far from start check point.
I check near position for metal around commander:
Code: Select all
METAL TEST >pos=8319.0:8976.0 result k=8296.0:1336.0
>d=7640.0347
>d fix=23.0
METAL TEST >pos=8295.188:9057.096 result k=8296.0:1336.0
>d=7721.0957
>d fix=0.81152344
METAL TEST >pos=8231.3125:9112.444 result k=8248.0:1336.0
>d=7776.4624
>d fix=16.6875
...
METAL TEST >pos=8231.3125:8839.556 result k=8248.0:1336.0
>d=7503.574
>d fix=16.6875
METAL TEST PARAM. pos=8169.0:8976.0 Avg k=129.5752 nApprox=10 dLmax=23.0 extractorR=20.0
This is a map with metal field. Average k=17.97876