Page 1 of 1
Harvesting converter for yGather?
Posted: Sat Sep 12, 2009 6:43 am
by mithandir
Is anybody able to convert the coordinates created by
yGather so that we can use them as waypoint and harvesting point inside the bot? So we could create a hugh path from one harvest point to the nearest other one.
Re: Harvesting converter for yGather?
Posted: Sat Sep 12, 2009 6:48 am
by GurdyMan
It would take a lot of work to organize those points and make it so you don't get stuck. It's probably more efficient to just make a path, walk it a while and then remake the path.
Re: Harvesting converter for yGather?
Posted: Sat Sep 12, 2009 2:18 pm
by mithandir
I have a working solution for sorting a list of random waypoints so that you go to the nearest harvesting point. In combination with RomMultiHack you can take the direct connections when enabling "Wallclimb".
Actual process:
I take the createpath.lua and create harvesting points in random order. My Java Programm calculates the best direct route of all points I took. In a testrun the combination of build-in unstuck and "wallclimb" worked very well.
Its sure that you should not use you main account for that as you are using wallclimb ...
Does anybody know how the coordinates from yGather can be converted to the waypoints used by the bot? Its the only thing missing ...
Tomorrow I will add a UI in my Java program and then I will release it so everybody can take advantage of it.
Re: Harvesting converter for yGather?
Posted: Sat Sep 12, 2009 7:39 pm
by GurdyMan
You'll have to make a parser to pull the info from the SaveVariables.lua file.
Find out who programmed it and send him an email for info on the tags he uses. Or read the files to see if he left comments.
Re: Harvesting converter for yGather?
Posted: Sat Sep 12, 2009 9:54 pm
by Avaryan
It would be nice if we had something like yGather that would not only collect the infomation, but also return the information to a central database when you exit the client. Then, on log in, add those coordinates to your map.
Wishful thinking though.
Re: Harvesting converter for yGather?
Posted: Sun Sep 13, 2009 2:26 am
by mithandir
Structure SavedVariables: [zone] -> [id] -> [newidx]
Example:
Code: Select all
[2] = {
[1002] = {
[1] = {
["y"] = 879.81,
["x"] = 396.56,
},
},
[1004] = {
[2] = {
["y"] = 319.2,
["x"] = 492.45,
},
[3] = {
["y"] = 260.79,
["x"] = 377.39,
},
[1] = {
["y"] = 879.81,
["x"] = 396.56,
},
[4] = {
["y"] = 434.49,
["x"] = 621.21,
},
[5] = {
["y"] = 515.14,
["x"] = 574.08,
},
},
The question is not how to parse them, but how to convert e.g. 515.14 / 575.08 to xxxx / xxxx so that we can use this in the bot.
Re: Harvesting converter for yGather?
Posted: Sun Sep 13, 2009 3:19 am
by droppen
Hmm, interesting, does ygather have the database of all flower's sticks and stones? i don't think its possible to make wayponts that do not get stuck, unless you make a waypoint system that learns.
Re: Harvesting converter for yGather?
Posted: Sun Sep 13, 2009 3:31 am
by mithandir
Quote myself: "I take the createpath.lua and create harvesting points in random order. My Java Programm calculates the best direct route of all points I took. In a testrun the combination of build-in unstuck and "wallclimb" (-> MultiHack) worked very well.
Its sure that you should not use you main account for that as you are using wallclimb ..."
I'm running a bot since yesterday evening with a waypoint file generated this way.
Re: Harvesting converter for yGather?
Posted: Sun Sep 13, 2009 5:07 am
by droppen
Right, but i don't want to hack or use any other software on top of micromacro.
Re: Harvesting converter for yGather?
Posted: Sun Sep 13, 2009 9:09 am
by mithandir
The tool is available here:
http://rapidshare.com/files/279508739/c ... points.zip
A readme is included.
What the tool does is:
1) Take a unsorted waypoint file as input
2) Sort the file by going from each point to the nearest other point
3) Save the new version as "xxx_optimized.xml" in the same path the sourcefile was found
4) Then you can run the new file as normal