Harvesting with the bot - How To For Dummies

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Message
Author
breiker1
Posts: 1
Joined: Tue Feb 16, 2010 12:16 am

Re: Harvesting with the bot - How To For Dummies

#61 Post by breiker1 » Tue Feb 16, 2010 12:19 am

May I ask what program do you use for this bot?im kinda confuse...sorry im new

marnitako

Re: Harvesting with the bot - How To For Dummies

#62 Post by marnitako » Fri Feb 19, 2010 12:12 pm

How can I configure the bot for only harvest? I dont want to gain lvl, only harvest on the colony, thanks

User avatar
Administrator
Site Admin
Posts: 5306
Joined: Sat Jan 05, 2008 4:21 pm

Re: Harvesting with the bot - How To For Dummies

#63 Post by Administrator » Fri Feb 19, 2010 7:16 pm

marnitako wrote:How can I configure the bot for only harvest? I dont want to gain lvl, only harvest on the colony, thanks
By only using travel and harvest waypoints in your waypoint creation. That's it.

jason404
Posts: 29
Joined: Fri Feb 19, 2010 10:11 am

Re: Harvesting with the bot - How To For Dummies

#64 Post by jason404 » Tue Feb 23, 2010 10:32 am

So i've made a harvest script to change channels after completing a full lap but I was wondering how would i make it wait 28 seconds before going onto the next waypoint?

d003232
Posts: 1252
Joined: Wed Jun 03, 2009 4:27 pm

Re: Harvesting with the bot - How To For Dummies

#65 Post by d003232 » Tue Feb 23, 2010 12:12 pm

jason404 wrote:So i've made a harvest script to change channels after completing a full lap but I was wondering how would i make it wait 28 seconds before going onto the next waypoint?
Add the wait command into your waypoint file. Directly after you switch the channel. See the wiki for the possible wait commands or use

Code: Select all

yrest(28000)
The RoM Bot Online Wiki needs your help!

jason404
Posts: 29
Joined: Fri Feb 19, 2010 10:11 am

Re: Harvesting with the bot - How To For Dummies

#66 Post by jason404 » Tue Feb 23, 2010 1:04 pm

thank you very much

smokyru
Posts: 31
Joined: Fri Dec 18, 2009 9:02 am

Re: Harvesting with the bot - How To For Dummies

#67 Post by smokyru » Wed Feb 24, 2010 12:00 am

Could you please post the part with the channel switching? I think i'd use that, and it would probably help some other random people :)

bye


Edit: Erf, just found the answer in my own old topic:
http://solarstrike.net/phpBB3/viewtopic.php?f=21&t=1027

(can delete this useful post :lol: )

2shae
Posts: 1
Joined: Mon Mar 01, 2010 4:36 pm

Re: Harvesting with the bot - How To For Dummies

#68 Post by 2shae » Mon Mar 01, 2010 4:51 pm

hi there

just downloaded the bot today and tried the scripts which were in the package and they work

when i try to set waypoints for gathering using micromacro it goes well, it tells me that waypoints created (it creates a *.xml file) when i copy it to a lua file and try to run it micromacro saids unexpexted character next to "<" at lua:1

so i tried with space and without and so on

then i've read that some ppl had the same problem, but even though they've figured it out they did not post a solution. i could really use some help...

Code: Select all

< waypoints >
	<!-- # 1 --><waypoint x="474" z="-6561">player:harvest();</waypoint>
	<!-- # 2 --><waypoint x="597" z="-6775">player:harvest();</waypoint>
	<!-- # 3 --><waypoint x="442" z="-7511">player:harvest();</waypoint>
	<!-- # 4 --><waypoint x="334" z="-7601"></waypoint>
	<!-- # 5 --><waypoint x="320" z="-7832">player:harvest();</waypoint>
</waypoints>

User avatar
Administrator
Site Admin
Posts: 5306
Joined: Sat Jan 05, 2008 4:21 pm

Re: Harvesting with the bot - How To For Dummies

#69 Post by Administrator » Mon Mar 01, 2010 7:31 pm

Read the instructions and stop making up steps. Theres absolutely no reason you should even consider running an XML file as a Lua file.

panicx
Posts: 7
Joined: Sat Mar 27, 2010 9:23 am

Re: Harvesting with the bot - How To For Dummies

#70 Post by panicx » Mon Mar 29, 2010 12:17 pm

d003232 wrote:
yellow wrote:but it's possible to enlarge the area of the cursor to scan the windows ?
Yes. There are some expert profile options for doing that:

Code: Select all

	<option name="HARVEST_SCAN_WIDTH" value="15" />   	-- steps horizontal
	<option name="HARVEST_SCAN_HEIGHT" value="10" />  	-- steps vertical
	<option name="HARVEST_SCAN_STEPSIZE" value="22" />	-- wide of every step
	<option name="HARVEST_SCAN_TOPDOWN" value="false" />	-- true = top->down  false = botton->up
	<option name="HARVEST_SCAN_YREST" value="7" />		-- scanspeed
	<option name="HARVEST_SCAN_YMOVE" value="1.1" />	-- move scan area top/down ( 1 middle of screen )

Where in my profile do I add this ?
I added it to the end and got a error.

d003232
Posts: 1252
Joined: Wed Jun 03, 2009 4:27 pm

Re: Harvesting with the bot - How To For Dummies

#71 Post by d003232 » Mon Mar 29, 2010 12:24 pm

panicx wrote:
d003232 wrote:
yellow wrote:but it's possible to enlarge the area of the cursor to scan the windows ?
Yes. There are some expert profile options for doing that:

Code: Select all

	<option name="HARVEST_SCAN_WIDTH" value="15" />   	-- steps horizontal
	<option name="HARVEST_SCAN_HEIGHT" value="10" />  	-- steps vertical
	<option name="HARVEST_SCAN_STEPSIZE" value="22" />	-- wide of every step
	<option name="HARVEST_SCAN_TOPDOWN" value="false" />	-- true = top->down  false = botton->up
	<option name="HARVEST_SCAN_YREST" value="7" />		-- scanspeed
	<option name="HARVEST_SCAN_YMOVE" value="1.1" />	-- move scan area top/down ( 1 middle of screen )

Where in my profile do I add this ?
I added it to the end and got a error.
You should put it there where all the other options within your profile are. I thought that's self-explanatory. :-)
The RoM Bot Online Wiki needs your help!

Starrider
Posts: 164
Joined: Sat May 01, 2010 7:04 am
Location: Germany

Re: Harvesting with the bot - How To For Dummies

#72 Post by Starrider » Mon May 17, 2010 2:12 pm

is it still necessary to have the windo with the harvesting bot in foreground, or does harvesting also work in background windows?

filipsworks
Posts: 53
Joined: Mon May 10, 2010 10:37 am

Re: Harvesting with the bot - How To For Dummies

#73 Post by filipsworks » Fri May 28, 2010 7:29 am

I have waypoint file from other (pay2use:/) bot and I have it converted and working on RoM Bot.

In original WP file on top of that was written value of max distance to Harvest Vain (there was 50)

Question 1) Is there any method to calculate value of radius distance from 0=player point (here r=25 or d=50)... to parameters for HARVEST_SCAN_WIDTH and HARVEST_SCAN_HEIGHT at 45 camera angle?

Question 2) (UBER MOST IMPORTANT): If bot (executing player:harvest();) "see" a vain what is on some distance from player then he try to move player closer to vain. In 80% of that, bot doing too much steps, and passing vain, and when it rescans (with player:harvest();'s mouse) he is unable to find vain (cuz pass it, and go to much forward what is cause of that the vain is out of screen)... Is there any way to decrease amount of steps when bot trying to move closer to vain?

User avatar
Administrator
Site Admin
Posts: 5306
Joined: Sat Jan 05, 2008 4:21 pm

Re: Harvesting with the bot - How To For Dummies

#74 Post by Administrator » Fri May 28, 2010 8:27 am

filipsworks wrote: Question 1) Is there any method to calculate value of radius distance from 0=player point (here r=25 or d=50)... to parameters for HARVEST_SCAN_WIDTH and HARVEST_SCAN_HEIGHT at 45 camera angle?
I don't understand.
Question 2) (UBER MOST IMPORTANT): If bot (executing player:harvest();) "see" a vain what is on some distance from player then he try to move player closer to vain. In 80% of that, bot doing too much steps, and passing vain, and when it rescans (with player:harvest();'s mouse) he is unable to find vain (cuz pass it, and go to much forward what is cause of that the vain is out of screen)... Is there any way to decrease amount of steps when bot trying to move closer to vain?
That really shouldn't be an issue. It uses the same movement to get to harvest points as it does for moving to attack enemies or walk to waypoints.

You could, however, try recalculating a waypoint in front of the harvest node with some simple math. Find this section:

Code: Select all

		if( dist > 35 and dist < 150 ) then
			printf(language[80]);		-- Move in
			self:moveTo( CWaypoint(mousePawn.X, mousePawn.Z), true );
			yrest(200);
			foundHarvestNode, nodeMouseX, nodeMouseY = scan();
		end
Change to:

Code: Select all

		if( dist > 35 and dist < 150 ) then
			local angle, nx, nz;
			local offset = 35; -- change this to set the distance away from the node to move to
			angle = math.atan2(mousePawn.Z - self.Z, mousePawn.X - self.X)
			nx = self.X + math.cos(angle) * (distance - offset);
			nz = self.Z + math.sin(angle) * (distance - offset);
			printf(language[80]);		-- Move in
			self:moveTo( CWaypoint(nx, nz), true );
			yrest(200);
			foundHarvestNode, nodeMouseX, nodeMouseY = scan();
		end

filipsworks
Posts: 53
Joined: Mon May 10, 2010 10:37 am

Re: Harvesting with the bot - How To For Dummies

#75 Post by filipsworks » Fri May 28, 2010 9:26 am

Administrator wrote:
filipsworks wrote: Question 1) Is there any method to calculate value of radius distance from 0=player point (here r=25 or d=50)... to parameters for HARVEST_SCAN_WIDTH and HARVEST_SCAN_HEIGHT at 45 camera angle?
I don't understand.
I have on mind situation like on the
1.PNG
What values have to be in "HARVEST_SCAN_WIDTH" and HARVEST_SCAN_HEIGHT to scan equivalent of 50 in-game units form top view? (if player "z" (3rd dimension) is the same as vain (on flat region))... Is any way to recalculate it (taking into account camera angle (game client view angle from flat (0° position))?

Or if this ll be more understoodable: Is there any way to convert data from
1.PNG
"Top View" (distances) to area what have to be scanned by mouse-cursor in game client window?



Sorry for freakin' out ;)

User avatar
Administrator
Site Admin
Posts: 5306
Joined: Sat Jan 05, 2008 4:21 pm

Re: Harvesting with the bot - How To For Dummies

#76 Post by Administrator » Fri May 28, 2010 5:07 pm

So, given a point (the node(s)), and the camera position and angle, you want to calculate where the node is on the screen? You'd probably have to project a ray from the camera to the node, then do some calculations based on that. About the only thing you'd be missing for this calculation would be the field of view, I think.

Here's an example of how it's done: http://stackoverflow.com/questions/5191 ... coordinate

filipsworks
Posts: 53
Joined: Mon May 10, 2010 10:37 am

Re: Harvesting with the bot - How To For Dummies

#77 Post by filipsworks » Sat May 29, 2010 7:52 am

Issue 4 field of view is:
fragmentation of full circle (360) to at least 3 parts and scan each separately...

Script from link works fine... Thx 4 solution :).

EDIT:
Question 2) (UBER MOST IMPORTANT): If bot (executing player:harvest();) "see" a vain what is on some distance from player then he try to move player closer to vain. In 80% of that, bot doing too much steps, and passing vain, and when it rescans (with player:harvest();'s mouse) he is unable to find vain (cuz pass it, and go to much forward what is cause of that the vain is out of screen)... Is there any way to decrease amount of steps when bot trying to move closer to vain?
It was caused by SHIFT+0 hotkey for one of spells... - Now it works fine (when "dummy" macro is on 0 slot then using hotkey SHIFT+0 while harvesting cause that problems)...

Restler
Posts: 12
Joined: Tue Jun 22, 2010 11:14 am

Re: Harvesting with the bot - How To For Dummies

#78 Post by Restler » Wed Jun 30, 2010 8:59 am

Release 465/466.... You did a GREAT job ladies and gentlemen !!!!!


THANK YOU VERY MUCH !!!



And toghether with congratulations - the question....

Situation - bot found resource node, approach it, start harvest first run, caught aggro.... harvest was stopped.
After fight, loot collected, resource node forgotten.
Question
Is any way to push the bot to repeate scan resource or not? (by entering some variable at the beginnig harvest and resetting at the end of harvest...but how to distinguish is node empty or harvest inerrupted...it is of cause not critical..but it is human-like
Thank you

PS.

waypointfile command

Code: Select all

player:harvest(112976)
not working any more(but only in 466). bot report "No nearby harvestables found"
because there is no release 465 in SVR....i rollback manually to 465...it is working.

User avatar
Administrator
Site Admin
Posts: 5306
Joined: Sat Jan 05, 2008 4:21 pm

Re: Harvesting with the bot - How To For Dummies

#79 Post by Administrator » Wed Jun 30, 2010 5:21 pm

The new harvesting system is still being worked on. Both of those issued will be resolved.

Deadlifer
Posts: 4
Joined: Sun Jun 13, 2010 9:55 am

Re: Harvesting with the bot - How To For Dummies

#80 Post by Deadlifer » Fri Jul 02, 2010 3:43 pm

I tried that, but dont work:
-----------------------------------------------------------------------
<waypoints type="TRAVEL">
<!-- # 1 --><waypoint x="-4499" z="6658"> </waypoint>
player:harvest();
</waypoint>
<!-- # 2 --><waypoint x="-4772" z="6555"> </waypoint>
player:harvest();
</waypoint>


</waypoints>
----------------------------------------------------------------------
sorry, dont know how to make the list.

i have made something wrong? my char don't move.. that launch that error:
"...acro/micromacro/scripts/rom/classes/waypointlist.lua:21: XML Parse Error.
File: ...micromacro/micromacro/scripts/rom/waypoints/try2.xml
Line: 4
Column: 3
Pos: 103
Message: mismatched tag"

(try2.xml is the name of the waypoint created)

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 32 guests