Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

Sign up now!

Implemented QueryList.reverse()

Author of MaxiBots
Joined
Dec 3, 2013
Messages
6,868
I think this would be a good addition. I'm currently trying to get the 2nd nearest rock by using sortByDistance but that sorts it in decreasing distance so it would be nice to be able to reverse the list
@Cloud
 
Engineer
Joined
Jul 28, 2013
Messages
2,776
I think this would be a good addition. I'm currently trying to get the 2nd nearest rock by using sortByDistance but that sorts it in decreasing distance so it would be nice to be able to reverse the list
@Cloud
what do you mean in decreasing distance? The first entry should be the nearest one too you.
 
Author of MaxiBots
Joined
Dec 3, 2013
Messages
6,868
what do you mean in decreasing distance? The first entry should be the nearest one too you.
It wasn't when I was testing it :/ it kept hovering a rock around 5tiles away when there was a rock diagonal to me and one 2-3 tiles away
 
The only thing Alpha about me is my bots
Joined
Sep 22, 2014
Messages
618
That happened for me too with my granite miner. It seemed so detectable that I took it out of my script.
 
Engineer
Joined
Jul 28, 2013
Messages
2,776
Well I've added reverse to it in the next release and I'm currently checking in to the distance thing.
 
Engineer
Joined
Jul 28, 2013
Messages
2,776
okay I did a test and when I stood next to a tree and painted the nearest object according to the chaining methods it did draw the tree so I'm almost entirely sure that the sorting I'm applying for distance is working fine...
 
Author of MaxiBots
Joined
Dec 3, 2013
Messages
6,868
I
okay I did a test and when I stood next to a tree and painted the nearest object according to the chaining methods it did draw the tree so I'm almost entirely sure that the sorting I'm applying for distance is working fine...
lll get you to tv me when i get home and show you what's happening and the code I'm using
 
Top