<waypoints type="RUN">

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Message
Author
raff
Posts: 96
Joined: Thu Jan 22, 2009 10:46 am

Re: <waypoints type="RUN">

#21 Post by raff » Sun Dec 13, 2009 9:04 am

Hm, I changed all my repair and return paths to RUN and throught it works correctly. But after awhile I just noticed that one of my char again says
Waypoint type RUN, we don't stop and don't fight back

Code: Select all

Moving to waypoint #10, (-16695, 5084)
Engaging enemy [Highland Iguana] in combat.
Use 1: SCOUT_VAMPIRE_ARROWS=>   Highland Iguana (4539/4539)
Use 8: SCOUT_COMBO_SHOT    =>   Highland Iguana (3438/4539)
Use 2: SCOUT_SHOT          =>   Highland Iguana (1855/4539)
Use 6: PRIEST_REGENERATE   =>   Highland Iguana (1487/4539)
Use 4: SCOUT_AUTOSHOT      =>   Highland Iguana (1487/4539)
Use 3: SCOUT_WIND_ARROWS   =>   Highland Iguana (369/4539)
Use F3: SCOUT_NECK_STRIKE   =>   Highland Iguana (0/4539)
Fight finished. Killed 29 Highland Iguana. (fight #228 / runtime 104 minutes)
Durability:0.56052631578947
Use MACRO: Looting target in distance 32.
We didn't move to the loot!? Root buff? Missing 'click to move' option?
Use MACRO: Looting target in distance 32.
Clearing target.
Waypoint type RUN, we don't stop and don't fight back
Moving to waypoint #11, (-16796, 5561)
Use 6: PRIEST_REGENERATE   =>   Black Rock Scorpion (4386/4386)
Use 5: PRIEST_URGENT_HEAL  =>   Black Rock Scorpion (4386/4386)
Engaging enemy [Black Rock Scorpion] in combat.
Aggro during first strike/cast, abort that cast/target: Black Rock Scorpion
Clearing target.
Current fight aborted.
Durability:0.54736842105263
Waypoint type RUN, we don't stop and don't fight back
Moving to waypoint #12, (-16789, 5879)
Use 6: PRIEST_REGENERATE   =>   Stingtail Scorpion (4539/4539)
Engaging enemy [Stingtail Scorpion] in combat.
Aggro during first strike/cast, abort that cast/target: Stingtail Scorpion
Clearing target.
Current fight aborted.
Durability:0.54736842105263
Waypoint type RUN, we don't stop and don't fight back
Moving to waypoint #13, (-16634, 6039)
Moving to waypoint #14, (-16683, 6306)
Moving to waypoint #15, (-16873, 6430)
the first mob was killed correctly, but at the next mobs, the bot will try to run away again :/

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

Re: <waypoints type="RUN">

#22 Post by Administrator » Sun Dec 13, 2009 3:27 pm

Did you change WPT_RUN to WPT_TRAVEL like i mentioned in that previous post?

raff
Posts: 96
Joined: Thu Jan 22, 2009 10:46 am

Re: <waypoints type="RUN">

#23 Post by raff » Sun Dec 13, 2009 4:18 pm

Administrator wrote:Did you change WPT_RUN to WPT_TRAVEL like i mentioned in that previous post?
Yes, this is how it looks:

Code: Select all

	if( self.Battling and
		 waypoint.Type ~= WPT_TRAVEL ) then
		self:waitForAggro();
	end

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

Re: <waypoints type="RUN">

#24 Post by Administrator » Sun Dec 13, 2009 5:01 pm

I think it's just because of how the game's in combat/out of combat state works. It only triggers after getting hit. So, if the first monster didn't hit you, it would think it wasn't aggressive towards you. Nothing can be done about that.

raff
Posts: 96
Joined: Thu Jan 22, 2009 10:46 am

Re: <waypoints type="RUN">

#25 Post by raff » Mon Dec 14, 2009 12:14 pm

Administrator wrote:I think it's just because of how the game's in combat/out of combat state works. It only triggers after getting hit. So, if the first monster didn't hit you, it would think it wasn't aggressive towards you. Nothing can be done about that.
Ah, okay, that makes sense. Thanks for your help anyways.

secretacc
Posts: 1
Joined: Mon Dec 14, 2009 1:38 pm

Re: <waypoints type="RUN">

#26 Post by secretacc » Mon Dec 14, 2009 1:47 pm

I changed two files of the bot to get the waypoint type TRAVEL and RUN to work as they formerly did.

So RUN is really running without attacking a single monster...

TRAVEL is not attacking monsters BUT defends if being attacked.

At least it looks working to me :-P

You`ve got to exchange the two attached files. (player.lua is located in the classes folder)
bot.lua
(28.42 KiB) Downloaded 112 times
player.lua
(73.07 KiB) Downloaded 100 times
If you are using Tortoise SVN you may look at the changes with starting "diff" in the context menu.

Maybe somebody can put the changes to the SVN-Download...

Or blame me for sending a "not working" copy :-P (It really should work though)

raff
Posts: 96
Joined: Thu Jan 22, 2009 10:46 am

Re: <waypoints type="RUN">

#27 Post by raff » Tue Dec 15, 2009 6:05 am

secretacc wrote:I changed two files of the bot to get the waypoint type TRAVEL and RUN to work as they formerly did.

So RUN is really running without attacking a single monster...

TRAVEL is not attacking monsters BUT defends if being attacked.

At least it looks working to me :-P

You`ve got to exchange the two attached files. (player.lua is located in the classes folder)
bot.lua
player.lua
If you are using Tortoise SVN you may look at the changes with starting "diff" in the context menu.

Maybe somebody can put the changes to the SVN-Download...

Or blame me for sending a "not working" copy :-P (It really should work though)
I have tested it, and it works like it did before for me, with TRAVEL :). Thank you for this!

raff
Posts: 96
Joined: Thu Jan 22, 2009 10:46 am

Re: <waypoints type="RUN">

#28 Post by raff » Fri Jul 16, 2010 2:12 am

Hi,

its a long time ago, since I used the rom bot. Many new improvements and new features :), thanks for this!

But I have the problem with the waypoint type travel again. I tried to let tortoise to merge the files from secretacc with the newest, but without success.

So, at my TRAVEL waypoints, it seems, the bot think he is on a RUN waypoint, and after a few seconds he will fight back. The problem is, that he runs into more monsters, before he fight back the first one.

Code: Select all

Moving to waypoint #14, (-23237, -9628)
Moving to waypoint #15, (-23157, -9322)
Moving to waypoint #16, (-22574, -8917)
Use 6: PRIEST_REGENERATE   =>   <UNKNOWN> (1000/1000)
Clearing target.
Waypoint type RUN, we don't stop and don't fight back
Moving to waypoint #17, (-22210, -8970)
Engaging enemy [Tusked Ice Plain Mammoth] in combat.

User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: <waypoints type="RUN">

#29 Post by rock5 » Fri Jul 16, 2010 7:02 am

raff wrote:Hi,

its a long time ago, since I used the rom bot. Many new improvements and new features :), thanks for this!

But I have the problem with the waypoint type travel again. I tried to let tortoise to merge the files from secretacc with the newest, but without success.

So, at my TRAVEL waypoints, it seems, the bot think he is on a RUN waypoint, and after a few seconds he will fight back. The problem is, that he runs into more monsters, before he fight back the first one.

Code: Select all

Moving to waypoint #14, (-23237, -9628)
Moving to waypoint #15, (-23157, -9322)
Moving to waypoint #16, (-22574, -8917)
Use 6: PRIEST_REGENERATE   =>   <UNKNOWN> (1000/1000)
Clearing target.
Waypoint type RUN, we don't stop and don't fight back
Moving to waypoint #17, (-22210, -8970)
Engaging enemy [Tusked Ice Plain Mammoth] in combat.
There's been so much changed since December you should really consider deleting your rom folder and starting again.

After backing up your profiles and waypoint files;
1. Delete the rom folder
2. Recreate the rom folder
3. Right-click it and select 'SVN Checkout'.
4. Enter this url and click 'ok':
http://rom-bot.googlecode.com/svn/trunk/rom
5. Restore your profiles and waypoint files.
6. Run micromacro and run this command;
'rom/update'.

Your ready to go.
  • Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
  • I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
  • How to: copy and paste in micromacro
    ________________________
    Quote:
    • “They say hard work never hurt anybody, but I figure, why take the chance.”
          • Ronald Reagan

raff
Posts: 96
Joined: Thu Jan 22, 2009 10:46 am

Re: <waypoints type="RUN">

#30 Post by raff » Sat Jul 17, 2010 7:39 pm

Thanks, it seems I had some old files, now its working :). But can you rename:

Code: Select all

<skill name="SCOUT_NECK_SHOT" concentration="30" range="50" cooldown="30" type="buff" target="enemy" />
to

Code: Select all

<skill name="SCOUT_NECK_STRIKE" concentration="30" range="50" cooldown="30" type="buff" target="enemy" />
in database/skills.xml

Thats the right name of the skill.

http://romdata.getbuffed.com/?s=490438

raff
Posts: 96
Joined: Thu Jan 22, 2009 10:46 am

Re: <waypoints type="RUN">

#31 Post by raff » Tue Jul 20, 2010 10:11 pm

Hi,

sorry I made a hasty decision, but today I had more time to observe my bot. It happend again :/

Code: Select all

Moving to return path waypoint #20, (-1355, -4327)
Waypoint type RUN, we don't stop and don't fight back
Moving to return path waypoint #21, (-1714, -4155)
and I have definitely

Code: Select all

<waypoints type="TRAVEL" >
in my waypoint file.

I downloaded the bot new from SVN and copied all my profiles and waypoints.

Oh, and I just see that in the default.xml there are:

Code: Select all

<![CDATA[
]]
in onskillcast for example. I dont have this in my profiles, this is the only difference I can see atm. I will add this to my profiles and test it later.

User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: <waypoints type="RUN">

#32 Post by rock5 » Wed Jul 21, 2010 12:00 am

raff wrote:Hi,

sorry I made a hasty decision, but today I had more time to observe my bot. It happend again :/

Code: Select all

Moving to return path waypoint #20, (-1355, -4327)
Waypoint type RUN, we don't stop and don't fight back
Moving to return path waypoint #21, (-1714, -4155)
and I have definitely

Code: Select all

<waypoints type="TRAVEL" >
I you have

Code: Select all

<waypoints type="TRAVEL" >
then there are other places 'type' can be changed.

It can be changed at a waypoint eg.

Code: Select all

	<!-- # 20 --><waypoint x="-1355" z="-4327" type="RUN"></waypoint>
And it can be changed with a command eg.

Code: Select all

__WPL:setForcedWaypointType("RUN");
These are not likely if you created the waypoint file yourself as you would know about it but maybe you copied it from someone else.
  • Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
  • I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
  • How to: copy and paste in micromacro
    ________________________
    Quote:
    • “They say hard work never hurt anybody, but I figure, why take the chance.”
          • Ronald Reagan

raff
Posts: 96
Joined: Thu Jan 22, 2009 10:46 am

Re: <waypoints type="RUN">

#33 Post by raff » Wed Jul 21, 2010 12:52 am

Hi,

thanks for your answer. I know these commands to change the type, but I dont have them in my waypoint files. I made all my waypoint files myself. Very strange :/. I took a look in the bot.lua and player.lua from secretacc. He comment this out in player.lua

Code: Select all

	 	if( self.Battling and 				-- we have aggro
	 	    self.Fighting == false  and		-- we are not coming from the fight routines (bec. as melee we should move in fight)
	 	    waypoint.Type ~= WPT_RUN  and	-- only stop if not waypoint type RUN
			-- waypoint.Type ~= WPT_TRAVEL and
-- waypoint.Type ~= WPT_TRAVEL and

and in bot.lua:

Code: Select all

			if( player.Current_waypoint_type == WPT_RUN ) then -- or
				--player.Current_waypoint_type == WPT_TRAVEL ) then	-- runing mode, don't wait for target
				cprintf(cli.green, language[113]);	-- we don't stop and don't fight back
				break;
--player.Current_waypoint_type == WPT_TRAVEL )

This worked perfect for me in the past. But if I change this now with the newer revesion of the bot I get a endless loop and the bot will just stand and heal.

User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: <waypoints type="RUN">

#34 Post by rock5 » Wed Jul 21, 2010 1:08 am

raff wrote: I took a look in the bot.lua and player.lua from secretacc.
Who's secretacc?
raff wrote:He comment this out in player.lua

Code: Select all

	 	if( self.Battling and 				-- we have aggro
	 	    self.Fighting == false  and		-- we are not coming from the fight routines (bec. as melee we should move in fight)
	 	    waypoint.Type ~= WPT_RUN  and	-- only stop if not waypoint type RUN
			-- waypoint.Type ~= WPT_TRAVEL and
-- waypoint.Type ~= WPT_TRAVEL and

and in bot.lua:

Code: Select all

			if( player.Current_waypoint_type == WPT_RUN ) then -- or
				--player.Current_waypoint_type == WPT_TRAVEL ) then	-- runing mode, don't wait for target
				cprintf(cli.green, language[113]);	-- we don't stop and don't fight back
				break;
--player.Current_waypoint_type == WPT_TRAVEL )
I can't comment on an edited version of the bot from a third party. In the official version those lines aren't commented out and it works. Maybe you should take it up with secretacc or use the official version?
  • Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
  • I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
  • How to: copy and paste in micromacro
    ________________________
    Quote:
    • “They say hard work never hurt anybody, but I figure, why take the chance.”
          • Ronald Reagan

raff
Posts: 96
Joined: Thu Jan 22, 2009 10:46 am

Re: <waypoints type="RUN">

#35 Post by raff » Wed Jul 21, 2010 1:12 am

Hi,

no I meant it worked in december with this modification, but now I cant use this modification, so I use the official again. I only tried it with the edited lines, because it worked with the older revision.

Oh and "secretacc" posted in this thread the files, look a few posts above

User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: <waypoints type="RUN">

#36 Post by rock5 » Wed Jul 21, 2010 4:49 am

raff wrote:Hi,

no I meant it worked in december with this modification, but now I cant use this modification, so I use the official again. I only tried it with the edited lines, because it worked with the older revision.

Oh and "secretacc" posted in this thread the files, look a few posts above
So does the official version work now? I think it's safe to assume that a problem that existed way back in December is probably not relevant anymore.
  • Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
  • I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
  • How to: copy and paste in micromacro
    ________________________
    Quote:
    • “They say hard work never hurt anybody, but I figure, why take the chance.”
          • Ronald Reagan

raff
Posts: 96
Joined: Thu Jan 22, 2009 10:46 am

Re: <waypoints type="RUN">

#37 Post by raff » Wed Jul 21, 2010 12:50 pm

Hi,

no, it wont work with the official for me. I know it sounds very weird, but I have no clue why I have this problem. I downloaded the rombot fresh from SVN.
- copied my profiles and waypoints
- added one skill in the skills.xml in database folder
- added one include(""); to bot.lua for a function to get the current player class

and I use a loadwaypoint system, I created a loadwaypoints.lua, and I wrote in every profile in the onload section "include("loadwaypoints.lua");"

this will load the right waypoint and profile, based on zone, class and level, so I dont have to worrie about where to start my bot

Code: Select all

...
elseif( (player.Level > 9) and (zone == 1) and (player.Class2 == CLASS_PRIEST)) then
player = CPlayer.new();
settings.load();
settings.loadProfile("lvl10-30");
loadPaths("howling_to_silverspring.xml");

elseif( (player.Level > 9) and (zone == 2 ) ) then
player = CPlayer.new();
settings.load();
settings.loadProfile("lvl10-30");
loadPaths("goto10.xml");

elseif( player.Level > 7 and player.Class2 == CLASS_SCOUT) then
player = CPlayer.new();
settings.load();
settings.loadProfile("priest");
loadPaths("goto8.xml");
...
apart from this, I have no modifications. But I dont think my loadwaypoints.lua has something to do with this, because its only for the start, and I got "Waypoint type RUN, we don't stop and don't fight back", also when my bot switch the waypoints for repair or return if he dies.

I wonder myself why I am the only one who is getting this :P, but thanks anyway!

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

Re: <waypoints type="RUN">

#38 Post by Administrator » Wed Jul 21, 2010 2:13 pm

Since this is an old threat, it's hard to say whether this is accurate information or not. I know in one of these threads, I had mistaken the purpose of RUN and TRAVEL. Just to make sure this isn't another case of a mix-up, can you re-state exactly what your problem is?

Oh, and by the way, you could have just created a new file named "userfunctions.lua" in the rom folder and put all your custom stuff there. The bot will automatically include that stuff so you don't have to modify any of the files.

raff
Posts: 96
Joined: Thu Jan 22, 2009 10:46 am

Re: <waypoints type="RUN">

#39 Post by raff » Wed Jul 21, 2010 2:30 pm

Administrator wrote:Since this is an old threat, it's hard to say whether this is accurate information or not. I know in one of these threads, I had mistaken the purpose of RUN and TRAVEL. Just to make sure this isn't another case of a mix-up, can you re-state exactly what your problem is?

Oh, and by the way, you could have just created a new file named "userfunctions.lua" in the rom folder and put all your custom stuff there. The bot will automatically include that stuff so you don't have to modify any of the files.
Hi,

my problem is actually, every of my return and repair path's begins with:

Code: Select all

<waypoints type="TRAVEL" >
	<!-- #  1 --><waypoint x="-9406" z="1434">	</waypoint>
...
</waypoints>
But the bot thinks he is on a RUN path

Code: Select all

Moving to waypoint #63, (-10263, -2900)
Waypoint type RUN, we don't stop and don't fight back
Moving to waypoint #64, (-10211, -3083)
Use 6: PRIEST_REGENERATE   =>   Giant Antler Reindeer (3142/3142)
Use F3: SCOUT_NECK_STRIKE   =>   Giant Antler Reindeer (3142/3142)
Distance break.
Waypoint type RUN, we don't stop and don't fight back
Moving to waypoint #64, (-10211, -3083)
Waypoint type RUN, we don't stop and don't fight back
Moving to waypoint #65, (-10119, -3237)
Waypoint type RUN, we don't stop and don't fight back
Moving to waypoint #66, (-9989, -3303)
Use 6: PRIEST_REGENERATE   =>   Giant Antler Reindeer (3142/3142)
Waypoint type RUN, we don't stop and don't fight back
Moving to waypoint #67, (-9905, -3463)
Clearing target.
Waypoint type RUN, we don't stop and don't fight back
Moving to waypoint #68, (-9817, -3667)
Oh, and by the way, you could have just created a new file named "userfunctions.lua" in the rom folder and put all your custom stuff there. The bot will automatically include that stuff so you don't have to modify any of the files.
Ah, okay, I will test this.

sorry for a bit off topic, but what is this code for in default.xml?

Code: Select all

<![CDATA[
]]

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

Re: <waypoints type="RUN">

#40 Post by Administrator » Wed Jul 21, 2010 2:42 pm

I'll look into the RUN/TRAVEL thing. That could just be a display problem. Is it acting like a RUN path, or is it acting as you expect?

The CDATA tags in XML are so that you can use reserved symbols (such as < and >) without confusing the parser. They aren't necessary in most cases, but can cause issues if you don't use them for certain things. It's recommended if you're using Lua code in between tags.

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 5 guests