Page 1 of 1

Coordinates

Posted: Sun Dec 05, 2010 12:39 am
by Drake430
So just went through making a waypoint file, got all of my coordinates and then ran it...and found out they were the wrong coordinates due to me using the ones below the mini map...Where do i get the coordinates that I need to use?

Re: Coordinates

Posted: Sun Dec 05, 2010 1:44 am
by Administrator
Why are you not using rom/createpath.lua to create your waypoints?

Re: Coordinates

Posted: Sun Dec 05, 2010 5:26 pm
by Drake430
I was, but when i viewed the file there were no coordinates shown so I thought I needed to use my own. Are they already there or something?

Re: Coordinates

Posted: Sun Dec 05, 2010 5:34 pm
by Administrator
The coordinates are added by createpath.lua automatically.

Re: Coordinates

Posted: Sun Dec 05, 2010 5:58 pm
by Drake430
Oh well that makes it alot easier then lol. Thank you.

Re: Coordinates

Posted: Mon Dec 06, 2010 7:09 pm
by Germangold
hi admin :)
is there a possibility to create an external addon to overlay those waypoint files over a graphical map of the corresponding area?

Re: Coordinates

Posted: Mon Dec 06, 2010 9:00 pm
by jduartedj
Germangold wrote:hi admin :)
is there a possibility to create an external addon to overlay those waypoint files over a graphical map of the corresponding area?
If you can create a function that gets the area map from RoM folder and place the dots in the right place.

Re: Coordinates

Posted: Mon Dec 20, 2010 1:59 pm
by Douky
how can i convert rom coordinates into rombot coordinates. I'm writing an programm to draw my waypoints on a map. i need to know where the 0 x 0 z cords for the rombot on the map are.

Re: Coordinates

Posted: Mon Dec 20, 2010 5:58 pm
by rock5
Douky wrote:how can i convert rom coordinates into rombot coordinates. I'm writing an programm to draw my waypoints on a map. i need to know where the 0 x 0 z cords for the rombot on the map are.
I created a function awhile back. I did a search, here it is,
http://www.solarstrike.net/phpBB3/viewt ... 897#p10897
It converts rombot coords to rom world coords. Does that help?

I think, though, the new and old continent have overlapping coordinates. This function was for the old map. i don't think it works for the new continent. Which means you would need to know which continent you want to convert for and use different values.

Re: Coordinates

Posted: Mon Dec 20, 2010 9:20 pm
by jduartedj
Are YGather coordinates the same as the minimap coordinates??

I wonder if it would be plausible to do a function (a .xml WP) that takes YGather information and just goes around the ygather points gathering.

Re: Coordinates

Posted: Mon Dec 20, 2010 10:06 pm
by lisa
ygather coords look like this

Code: Select all

		[1] = {
			[3001] = {
				[1] = {
					[1] = 531.39,
					[2] = 492.23,
					[3] = 266575.65625,
				[2] = {
					[1] = 457.63,
					[2] = 710.51,
					[3] = 266980.875,
out of that is which map, exact resource type and coords.

Re: Coordinates

Posted: Mon Dec 20, 2010 11:57 pm
by deveyus
Follow that with TSP/ACO with clustering equal to the radius, and a moderate granularity blacklisting system for collision avoidance and you have everything you need to turn yGather data into working profiles.
Here is the edit that has the data regarding such.

This WoW addon represents doing the calculations for TSP/ACO with clustering in Lua. It also demonstrates Taboo regions which would be important for helping us set up areas we don't want the bot to venture into.
http://www.wowinterface.com/downloads/i ... outes.html

For a blacklisting system, we change the current 'unstick' procedure to take the current point the bot is at and create a square bounding box representing the area 5 or so units ahead of itself. (Ideally this will be inside of the object we got stuck on.) The when the bot goes to go to the next waypoint it uses the following link to check if it intersects any of the edges of the blacklist bounding box, if so, it dynamically creates a waypoint at the nearest safe spot to the point of intersection in an attempt to path around it. These new values should most likely be hashed to a table to prevent having to recalculate them each time.

For finding if the line segment between where you are and where you are going intersects with a blacklisted zone:
http://mathforum.org/library/drmath/view/53254.html

It may also be a good idea to be able to output a new version of the file after the bot had completed a full circuit representing the blacklisted areas being corrected for.

Re: Coordinates

Posted: Tue Dec 21, 2010 5:23 am
by jduartedj
WOW this seems a big project to take on after all but at least There is a lot of info / work done on it.

Re: Coordinates

Posted: Thu Dec 23, 2010 3:05 am
by deveyus
jduartedj wrote:WOW this seems a big project to take on after all but at least There is a lot of info / work done on it.
Somewhat, yes, but I basically gave a blueprint with all the conceptual information needed, it should be adaptable by those who know the bot. I'm not there yet,I'm still studying .. there's a lot of code making up our precious little bot.