Blockland Forums > Suggestions & Requests
[ADMIN TOOL] Teleport to Brickgroup
<< < (2/2)
Lugnut:
i don't know how to do this in an algorithm...

lets simplify the problem

suppose you have a 2d array of points - excuse me while i make one


how do we algorithmicly determine the fact that a larger amount of points are in the top right corner?
my math knowledge isn't great enough yet - can we use some kind of regression or even just simple averaging? suppose you were to calculate the average position of the first three points in the plane. then, as you add in the other points, recalculate the averages. if it skews the average too much, assume that brick isn't part of the group

barnabas, to my knowledge, this is what they call a 'hard' computer problem. humans can look at the graph and say pretty confidently that most of the points are in the top right corner - computers are not so lucky.
Truce:
Suddenly scripts from years ago are relevant: http://blockland.basically.gg/Script_HilightWarp.zip

It turns that "hilight" button on the clear bricks menu into a button that teleports you to the brick group's most recently created brick (server-sided). Unless you find yourself using the default hilight feature unlike myself, this add-on might satisfy your request. You could also change it to a random brick in their group* so you could do it multiple times to check for scattered bricks if necessary, and statistically you would appear where the highest density is the majority of the time.

*If desired, change line 38 in server.cs to:

--- Code: ---%brk = %obj.getObject(getRandom(0,%cnt - 1));
--- End code ---

Thinking back on it, ghost bricks might be included? Regardless, this is the script NWB had and used.
Barnabas:
I think that's what I was looking for Truce. Thanks for the script! Next time I restart the server I will make sure to have it enabled! Thanks once again!
Navigation
Message Index
Previous page

Go to full version