Bot moving between kills; routes away then attacks

For everything NOT server specific support. Do NOT ask for connectivity help here!.

Moderator: Moderators

Message
Author
zCasanova
Noob
Noob
Posts: 19
Joined: 01 Jul 2009, 13:18
Noob?: No

Bot moving between kills; routes away then attacks

#1 Post by zCasanova »

Issue has been mentioned here, http://forums.openkore.com/viewtopic.php?f=16&t=29466, and here, http://forums.openkore.com/viewtopic.php?f=56&t=8560

After kills, when monsters are on screen and available to attack, the bot will move away from said monsters, then move back to attack them. Appears to be an issue with routing taking AI sequence priority over attacking. This does not seem to happen with every kill, but it happens far more often than not; very inefficient movement and screams 'bot' to any onlookers.

User avatar
SkylorD
Moderators
Moderators
Posts: 1167
Joined: 16 Dec 2011, 02:53
Noob?: No
Location: Brazil
Contact:

Re: Bot moving between kills; routes away then attacks

#2 Post by SkylorD »

Could you enable the debug in your config.txt and capture an screenshot of console message ?
Postby c4c1n6kr3m1 » 29 Aug 2014, 05:45

do not catch the "route" after kill a monster
i believe it will solve this problem
just too lazy to do it , because xkore 1 make my client crush
and surely just check if there are monsters in screen. if no, go to route.
Learn rules

zCasanova
Noob
Noob
Posts: 19
Joined: 01 Jul 2009, 13:18
Noob?: No

Re: Bot moving between kills; routes away then attacks

#3 Post by zCasanova »

Happened a few times within the block below.

The routing away before attacking stops occurring if I set the attack flag to always aggressive (2) in mon_control; it also does not seem to happen if a monster is already within attack distance, i.e., the bot does not have to move cells before attacking, which makes this behavior is much more apparent on maps without aggressive monsters.

I have also noticed that the behavior seems to occur more often after the bot kills numerous monsters consecutively; after the attack sequence, the console prints "Target died" several times before beginning its route phase again, following which this behavior seems more likely to occur than if a single monster had been killed – no idea if this is related.

Please let me know if I can provide any further info:

Code: Select all

Route You Solution Ready!
Route You - next step moving to (159, 113), index 15, 25 steps left
Move You - (re)trying
You are now attacking Monster Grand Peco (0)
Target distance 13.0 is >2; moving to target: from (153,105) to (161,97)
You on route to: (): 161, 97
Route You Solution Ready!
Route You - next step moving to (159, 97), index 15, 18 steps left
Move You - (re)trying
You're moving from (153, 105) to (159, 113) - distance 10.0
Move You - (re)trying
You're moving from (156, 108) to (159, 97) - distance 11.4
Move You - done
Route You - trimming down solution (18) by 1 steps
Route You - next step moving to (160, 97), index 15, 17 steps left
Move You - (re)trying
Move You - (re)trying
You're moving from (159, 104) to (160, 97) - distance 7.1
Move You - (re)trying
You're moving from (160, 99) to (160, 97) - distance 2.0
Move You - done
Route You - trimming down solution (17) by 15 steps
Route You - next step moving to (161, 97), index 1, 2 steps left
Move You - (re)trying
Target at (161,95) is now within 2 blocks; stop moving
Ready to attack target (which is 2 blocks away); we're at (160,97)
[100/ 75] You attack Monster Grand Peco (0) (Dmg: 828!) (Delay: 160ms)
Monster Grand Peco has hp 2322/3150 (73.7142857142857%)
[100/ 75] You attack Monster Grand Peco (0) (Dmg: 824!) (Delay: 160ms)
Monster Grand Peco has hp 1498/3150 (47.5555555555556%)
[100/ 75] Monster Grand Peco (0) attacks you (Dmg: Miss!) (Delay: 960ms)
[100/ 75] You attack Monster Grand Peco (0) (Dmg: 833!) (Delay: 160ms)
Monster Disappeared: Goat (1)
Monster Grand Peco has hp 665/3150 (21.1111111111111%)
[100/ 75] You attack Monster Grand Peco (0) (Dmg: 835!) (Delay: 160ms)
Monster Died: Grand Peco (0)
You have gained 1583/1781 (0.04%/0.08%) Exp
You pick up PecoPeco Feather (0)
Item Disappeared: PecoPeco Feather (0)
Target died
Move You - done
Route You - trimming down solution (25) by 3 steps
Route You - movement interrupted: reset route
You are now attacking Monster Grand Peco (3)
Target distance 9.0 is >2; moving to target: from (160,97) to (166,93)
You on route to: (): 166, 93
Route You Solution Ready!
Route You - next step moving to (166, 93), index 11, 12 steps left
Move You - (re)trying
You're moving from (160, 97) to (166, 93) - distance 7.2
Move You - (re)trying
You're moving from (163, 94) to (166, 93) - distance 3.2
Move You - done
Route You - trimming down solution (12) by 7 steps
Route You - next step moving to (166, 93), index 4, 5 steps left
Move You - (re)trying
Monster Disappeared: Goat (1)
Monster Disappeared: Grand Peco (4)
Target at (168,93) is now within 2 blocks; stop moving
Ready to attack target (which is 2 blocks away); we're at (166,93)
[100/ 77] You attack Monster Grand Peco (3) (Dmg: 837!) (Delay: 160ms)
Monster Grand Peco has hp 2313/3150 (73.4285714285714%)
[100/ 77] You attack Monster Grand Peco (3) (Dmg: 574) (Delay: 160ms)
Monster Grand Peco has hp 1739/3150 (55.2063492063492%)
[100/ 77] Monster Grand Peco (3) attacks you (Dmg: Miss!) (Delay: 960ms)
[100/ 77] You attack Monster Grand Peco (3) (Dmg: 835!) (Delay: 160ms)
Monster Grand Peco has hp 904/3150 (28.6984126984127%)
[100/ 77] You attack Monster Grand Peco (3) (Dmg: 574) (Delay: 160ms)
Monster Grand Peco has hp 330/3150 (10.4761904761905%)
[100/ 77] You attack Monster Grand Peco (3) (Dmg: 833!) (Delay: 160ms)
Monster Died: Grand Peco (3)
You have gained 1583/1781 (0.04%/0.08%) Exp
Item added to inventory: PecoPeco Feather (14) x 1 - Event
You pick up PecoPeco Feather (0)
Item Disappeared: PecoPeco Feather (0)
Monster Geographer (2) uses Heal on Unknown #52876 (Gained: 862 hp)
Target died
Route You Solution Ready!
Route You - next step moving to (160, 101), index 15, 38 steps left
Move You - (re)trying
You are now attacking Monster Geographer (2)
Target distance 5.0 is >2; moving to target: from (166,93) to (169,93)
You on route to: (): 169, 93
Route You Solution Ready!
Route You - next step moving to (169, 93), index 4, 5 steps left
Move You - (re)trying
You're moving from (166, 93) to (160, 101) - distance 10.0
Monster Disappeared: Geographer (1)
Move You - (re)trying
You're moving from (162, 97) to (169, 93) - distance 8.1
Move You - done
Route You - trimming down solution (5) by 1 steps
Route You - next step moving to (169, 93), index 3, 4 steps left
Move You - (re)trying
Monster Disappeared: Goat (1)
Move You - (re)trying
You're moving from (167, 93) to (169, 93) - distance 2.0
[100/ 77] Monster Geographer (2) attacks you (Dmg: Miss!) (Delay: 1008ms)
Move You - (re)trying
You're moving from (169, 93) to (169, 93) - distance 0.0
Move You - done
Route You - trimming down solution (4) by 4 steps
You reached the destination.
Ready to attack target (which is 2 blocks away); we're at (169,93)
[100/ 77] You attack Monster Geographer (2) (Dmg: 687!) (Delay: 160ms)
Monster Geographer has hp 3179/3866 (82.2296947749612%)
[100/ 77] You attack Monster Geographer (2) (Dmg: 469) (Delay: 160ms)
Monster Geographer has hp 2710/3866 (70.098292809105%)
[100/ 77] You attack Monster Geographer (2) (Dmg: 695!) (Delay: 160ms)
[100/ 77] Monster Geographer (2) attacks you (Dmg: Miss!!) (Delay: 1008ms)
Monster Geographer has hp 2015/3866 (52.1210553543714%)
[100/ 77] You attack Monster Geographer (2) (Dmg: 690!) (Delay: 160ms)
Monster Geographer has hp 1325/3866 (34.2731505431971%)
[100/ 77] You attack Monster Geographer (2) (Dmg: 481) (Delay: 160ms)
Monster Geographer has hp 844/3866 (21.8313502327988%)
[100/ 77] You attack Monster Geographer (2) (Dmg: 473) (Delay: 160ms)
Monster Geographer has hp 371/3866 (9.59648215209519%)
[100/ 77] You attack Monster Geographer (2) (Dmg: 694!) (Delay: 160ms)
[100/ 79] Monster Geographer (2) attacks you (Dmg: Miss!) (Delay: 1008ms)
Monster Died: Geographer (2)
You have gained 1130/1272 (0.03%/0.05%) Exp
Item added to inventory: Maneater Blossom (19) x 1 - Event
You pick up Maneater Blossom (0)
Item Disappeared: Maneater Blossom (0)
Item added to inventory: Maneater Root (20) x 1 - Event
You pick up Maneater Root (1)
Item Disappeared: Maneater Root (1)
Target died
Move You - done
Route You - trimming down solution (38) by 1 steps
Route You - next step moving to (160, 102), index 15, 37 steps left
Move You - (re)trying
You are now attacking Monster Goat (0)
Target distance 9.0 is >2; moving to target: from (169,93) to (174,88)
You on route to: (): 174, 88
Route You Solution Ready!
Route You - next step moving to (174, 88), index 11, 12 steps left
Move You - (re)trying
You're moving from (169, 93) to (160, 102) - distance 12.7
Monster Disappeared: Grand Peco (2)
Monster Disappeared: Geographer (1)
Monster Disappeared: Grand Peco (2)
Monster Disappeared: Grand Peco (2)
Move You - (re)trying
You're moving from (165, 97) to (174, 88) - distance 12.7
Move You - done
Route You - trimming down solution (12) by 1 steps
Route You - next step moving to (174, 88), index 10, 11 steps left
Move You - (re)trying
Monster Disappeared: Grand Peco (3)
Monster Disappeared: Goat (1)
Move You - (re)trying
You're moving from (170, 92) to (174, 88) - distance 5.7
Move You - (re)trying
You're moving from (173, 89) to (174, 88) - distance 1.4
Move You - done
Route You - trimming down solution (11) by 11 steps
You reached the destination.
Target distance 5.0 is >2; moving to target: from (174,88) to (175,91)
You on route to: (): 175, 91
Route You Solution Ready!
Route You - next step moving to (175, 92), index 6, 7 steps left
Move You - (re)trying
Monster Disappeared: Grand Peco (2)
Move You - (re)trying
You're moving from (174, 88) to (175, 92) - distance 4.1
Move You - (re)trying
Target at (175,93) is now within 2 blocks; stop moving
Ready to attack target (which is 1 blocks away); we're at (175,92)
[100/ 79] You attack Monster Goat (0) (Dmg: 747!) (Delay: 160ms)
Monster Goat has hp 3233/3980 (81.2311557788945%)
[100/ 79] You attack Monster Goat (0) (Dmg: 518) (Delay: 160ms)
[100/ 79] Monster Goat (0) attacks you (Dmg: Miss!) (Delay: 1080ms)
Monster Goat has hp 2715/3980 (68.2160804020101%)
[100/ 79] You attack Monster Goat (0) (Dmg: 751!) (Delay: 160ms)
Monster Goat has hp 1964/3980 (49.3467336683417%)
[100/ 79] You attack Monster Goat (0) (Dmg: 742!) (Delay: 160ms)
Monster Goat has hp 1222/3980 (30.7035175879397%)
[100/ 79] You attack Monster Goat (0) (Dmg: 744!) (Delay: 160ms)
Monster Goat has hp 478/3980 (12.0100502512563%)
[100/ 79] You attack Monster Goat (0) (Dmg: 744!) (Delay: 160ms)
Luck: 78 + 16
Monster Died: Goat (0)
You have gained 2014/2262 (0.05%/0.10%) Exp
Item added to inventory: Antelope Horn (16) x 1 - Event
You pick up Antelope Horn (0)
Item Disappeared: Antelope Horn (0)
Item added to inventory: Antelope Skin (21) x 1 - Event
You pick up Antelope Skin (1)
Item Disappeared: Antelope Skin (1)
Monster Disappeared: Grand Peco (1)
Target died
You use Magnificat on yourself (Lv: 5)
Move You - timeout
Route You - we spent too much time; bailing out.
Calculating random route to: Kiel Hyre's Academy (yuno_fild08): 121, 277
You on route to: Kiel Hyre's Academy(yuno_fild08): 121, 277
You are now attacking Monster Geographer (4)
Target distance 13.0 is >2; moving to target: from (175,92) to (180,82)
You on route to: (): 180, 82
Route You Solution Ready!
Route You - next step moving to (179, 82), index 15, 17 steps left
Move You - (re)trying
You're moving from (175, 92) to (179, 82) - distance 10.8
Move You - done
Route You - trimming down solution (17) by 1 steps
Route You - next step moving to (180, 82), index 15, 16 steps left
Move You - (re)trying
Move You - (re)trying
You're moving from (178, 89) to (180, 82) - distance 7.3
Target at (180,80) is now within 2 blocks; stop moving
Ready to attack target (which is 2 blocks away); we're at (180,82)
Luck: 78 + 46
You use Gloria on yourself (Lv: 5)
Target distance 6.0 is >2; moving to target: from (180,86) to (180,82)
You on route to: (): 180, 82
Route You Solution Ready!
Route You - next step moving to (180, 82), index 5, 6 steps left
Move You - (re)trying
You're moving from (180, 86) to (180, 82) - distance 4.0
Move You - (re)trying
You're moving from (180, 82) to (180, 82) - distance 0.0
Target at (180,80) is now within 2 blocks; stop moving
[100/ 82] You attack Monster Geographer (4) (Dmg: 487) (Delay: 160ms)
Monster Geographer has hp 3379/3866 (87.4030005173306%)
[100/ 82] You attack Monster Geographer (4) (Dmg: 482) (Delay: 160ms)
Monster Geographer has hp 2897/3866 (74.9353336782204%)
[100/ 82] You attack Monster Geographer (4) (Dmg: 687!) (Delay: 160ms)
Monster Geographer has hp 2210/3866 (57.1650284531816%)
[100/ 82] You attack Monster Geographer (4) (Dmg: 687!) (Delay: 160ms)
Monster Geographer has hp 1523/3866 (39.3947232281428%)
[100/ 82] You attack Monster Geographer (4) (Dmg: 690!) (Delay: 160ms)
Monster Geographer has hp 833/3866 (21.5468184169684%)
[100/ 82] You attack Monster Geographer (4) (Dmg: 686!) (Delay: 160ms)
Monster Geographer has hp 147/3866 (3.80237972064149%)
[100/ 82] You attack Monster Geographer (4) (Dmg: 694!) (Delay: 160ms)
Monster Died: Geographer (4)
You have gained 1130/1272 (0.03%/0.05%) Exp
You pick up Maneater Blossom (0)
Item Disappeared: Maneater Blossom (0)
Item added to inventory: Maneater Root (20) x 1 - Event
You pick up Maneater Root (1)
Item Disappeared: Maneater Root (1)
Target died
Route You Solution Ready!
Route You - next step moving to (171, 87), index 15, 362 steps left
Move You - (re)trying
You're moving from (180, 82) to (171, 87) - distance 10.3
Move You - (re)trying
You're moving from (177, 85) to (171, 87) - distance 6.3
Move You - done
Route You - trimming down solution (362) by 10 steps
Route You - next step moving to (168, 94), index 15, 352 steps left
Move You - (re)trying
You are now attacking Monster Grand Peco (0)
Target distance 12.0 is >2; moving to target: from (174,86) to (179,80)
You on route to: (): 179, 80
Route You Solution Ready!
Route You - next step moving to (179, 80), index 12, 13 steps left
Move You - (re)trying
Monster Disappeared: Grand Peco (1)
Monster Disappeared: Grand Peco (5)
Monster Disappeared: Grand Peco (3)
Monster Disappeared: Grand Peco (2)
Move You - (re)trying
You're moving from (172, 87) to (179, 80) - distance 9.9
Move You - done
Route You - trimming down solution (13) by 1 steps
Route You - next step moving to (179, 80), index 11, 12 steps left
Move You - (re)trying
Move You - (re)trying
You're moving from (176, 83) to (179, 80) - distance 4.2
Move You - (re)trying
You're moving from (179, 80) to (179, 80) - distance 0.0
Move You - done
Route You - trimming down solution (12) by 12 steps
You reached the destination.
Ready to attack target (which is 2 blocks away); we're at (179,80)
[100/ 84] You attack Monster Grand Peco (0) (Dmg: 838!) (Delay: 160ms)
Monster Grand Peco has hp 2312/3150 (73.3968253968254%)
[100/ 85] You attack Monster Grand Peco (0) (Dmg: 838!) (Delay: 160ms)
Monster Grand Peco has hp 1474/3150 (46.7936507936508%)
[100/ 85] Monster Grand Peco (0) attacks you (Dmg: Miss!!) (Delay: 960ms)
[100/ 85] You attack Monster Grand Peco (0) (Dmg: 833!) (Delay: 160ms)
Monster Grand Peco has hp 641/3150 (20.3492063492063%)
[100/ 85] You attack Monster Grand Peco (0) (Dmg: 833!) (Delay: 160ms)
Monster Died: Grand Peco (0)
You have gained 1583/1781 (0.04%/0.08%) Exp
Target died
Monster Disappeared: Grand Peco (2)
Move You - done
Route You - trimming down solution (352) by 1 steps
Route You - movement interrupted: reset route
Route You Solution Ready!
Route You - next step moving to (172, 87), index 15, 363 steps left
Move You - (re)trying
You're moving from (179, 80) to (172, 87) - distance 9.9
Monster Disappeared: Grand Peco (3)
Monster Disappeared: Grand Peco (4)
Monster Disappeared: Grand Peco (5)
Move You - (re)trying
You're moving from (176, 83) to (172, 87) - distance 5.7
Monster Disappeared: Grand Peco (1)
Move You - (re)trying
Move You - timeout
Route You - trimming down solution (363) by 15 steps
Route You - next step moving to (165, 95), index 15, 348 steps left
Move You - (re)trying
You're moving from (172, 87) to (165, 95) - distance 10.6
Move You - (re)trying
You're moving from (169, 90) to (165, 95) - distance 6.4
Monster Disappeared: Grand Peco (2)
Move You - done
Route You - trimming down solution (348) by 8 steps
Route You - next step moving to (161, 99), index 15, 340 steps left
Move You - (re)trying
Monster Disappeared: Grand Peco (0)
Move You - (re)trying
You're moving from (165, 95) to (161, 99) - distance 5.7
Move You - done
Route You - trimming down solution (340) by 7 steps
Route You - next step moving to (159, 104), index 15, 333 steps left
Move You - (re)trying

User avatar
SkylorD
Moderators
Moderators
Posts: 1167
Joined: 16 Dec 2011, 02:53
Noob?: No
Location: Brazil
Contact:

Re: Bot moving between kills; routes away then attacks

#4 Post by SkylorD »

Learn rules

zCasanova
Noob
Noob
Posts: 19
Joined: 01 Jul 2009, 13:18
Noob?: No

Re: Bot moving between kills; routes away then attacks

#5 Post by zCasanova »

Dropped attack distance from 2 to 1 and still seeing the issue; I do not believe that I have any of the user settings improperly configured.

troypogs777
Plain Yogurt
Plain Yogurt
Posts: 61
Joined: 31 Jan 2017, 10:18
Noob?: Yes
Location: Mars
Contact:

Re: Bot moving between kills; routes away then attacks

#6 Post by troypogs777 »

turn ON check LOS.

zCasanova
Noob
Noob
Posts: 19
Joined: 01 Jul 2009, 13:18
Noob?: No

Re: Bot moving between kills; routes away then attacks

#7 Post by zCasanova »

troypogs777 wrote:turn ON check LOS.
Same result with check LOS on; even so, there are no obstacles between the bot and the monster when this behavior occurs. Many monsters are only a few cells away from the bot when it routes away prior to attacking.

Mortimal
Developers
Developers
Posts: 389
Joined: 01 Nov 2008, 15:31
Noob?: No

Re: Bot moving between kills; routes away then attacks

#8 Post by Mortimal »

my opinion u use incorrect settings for ur server... sooo this error occure
Please use pin function for uploading your file contents!

zCasanova
Noob
Noob
Posts: 19
Joined: 01 Jul 2009, 13:18
Noob?: No

Re: Bot moving between kills; routes away then attacks

#9 Post by zCasanova »

Mortimal wrote:my opinion u use incorrect settings for ur server... sooo this error occure
I am playing on official iRO Chaos; are the default server settings provided by OpenKore incorrect?

zCasanova
Noob
Noob
Posts: 19
Joined: 01 Jul 2009, 13:18
Noob?: No

Re: Bot moving between kills; routes away then attacks

#10 Post by zCasanova »

I noticed this issue was posted on git by another user: https://github.com/OpenKore/openkore/issues/841

It seems others are experiencing this issue, as well.

Post Reply