AI get stuck

This place is for Closed bug reports only. NOT for asking help!

Moderators: Moderators, Developers

Bibian
Perl Monk
Perl Monk
Posts: 416
Joined: 04 Apr 2008, 03:08

AI get stuck

#1 Post by Bibian »

In some cases kore will get stuck, as in it wont move or anything, but i wil attack but ONLY if attacked (it will not initiate the attack)... This ONLY happens if your AI sequence is "ai_seq (auto) = skill_use items_take attack route"
I don't know why it gets stuck, but even using 'ai clear' doesn't fix it, the only way to fix it is to teleport or respawn.

Code: Select all

# ai ai_v
{
useSelf_skill_3_time=>'1219354178.18194',useSelf_skill_1_time=>'1219354259.8477',
useSelf_skill_2_time=>'1219354177.27853',AI_last_finished=>'1219354259.91467',inventory_time=>'1219354145.83171',
useSelf_skill_0_time=>'1219352807.08998',
useSelf_item_3_time=>'1219354096.93483',temp=>{ai_route_index=>'0',ai_route_attackOnRoute=>'',found=>''},
useSelf_item_1_time=>'1219354173.79323',cart_time=>'1219354145.83172',
autoConfChange_0_timeout=>'0',npc_talk=>{talk=>'close',time=>'1219352220.87675'}}
# aiv
ai_seq (auto) = skill_use items_take attack route
Active tasks: -
Inactive tasks: -
After 'ai clear' it is still stuck and trying to use a skill

Code: Select all

ai clear
AI sequences cleared
aiv
ai_seq (auto) = skill_use
Active tasks: -
Inactive tasks: -
ai ai_v
{
useSelf_skill_3_time=>'1219354178.18194',
useSelf_skill_1_time=>'1219354543.35171',
useSelf_skill_2_time=>'1219354177.27853',AI_last_finished=>'1219354543.42006',inventory_time=>'1219354145.83171',
useSelf_skill_0_time=>'1219352807.08998',
useSelf_item_3_time=>'1219354096.93483',useSelf_item_1_time=>'1219354173.79323',cart_time=>'1219354145.83172',
autoConfChange_0_timeout=>'0',npc_talk=>{talk=>'close',time=>'1219352220.87675'}}
sli
Perl Monk
Perl Monk
Posts: 810
Joined: 04 Apr 2008, 17:26
Noob?: No

Re: AI get stuck

#2 Post by sli »

Why do you post reports for bugs you intend on fixing?
cs : ee : realist
Bibian
Perl Monk
Perl Monk
Posts: 416
Joined: 04 Apr 2008, 03:08

Re: AI get stuck

#3 Post by Bibian »

so that someone else can try to fix it :P
sli
Perl Monk
Perl Monk
Posts: 810
Joined: 04 Apr 2008, 17:26
Noob?: No

Re: AI get stuck

#4 Post by sli »

Fix your grammar, first (AI get stuck, macro's).
cs : ee : realist
Bibian
Perl Monk
Perl Monk
Posts: 416
Joined: 04 Apr 2008, 03:08

Re: AI get stuck

#5 Post by Bibian »

shuddup... i am above grammar
Cozzie
Spam Generator
Spam Generator
Posts: 499
Joined: 04 Apr 2008, 09:30
Noob?: No
Location: Melbourne, City of beer and awful sushis

Re: AI get stuck

#6 Post by Cozzie »

title does not confirm to template =( fix it before I suspend your posting privileges =P
Make Openkore Awesome. Join the team.
Bibian
Perl Monk
Perl Monk
Posts: 416
Joined: 04 Apr 2008, 03:08

Re: AI get stuck

#7 Post by Bibian »

die cozzie...

anyway, it seems kore gets stuck the most when attacking immobile targets like Mandragora, plants, mushrooms, etc
Bibian
Perl Monk
Perl Monk
Posts: 416
Joined: 04 Apr 2008, 03:08

Re: AI get stuck

#8 Post by Bibian »

some debug info when the bot is stuck:

Code: Select all

Route - trimming down solution (2) by 2 steps
Destination reached.
Target distance 3.0 is >2.5; moving to target: from (115,113) to (115,112)
On route to: Prontera Field(prt_fild10): 115, 112
Route Solution Ready!
Route - next step moving to (115, 113), index 1, 2 steps left
Move - (re)trying
Sent move to: 115, 113
Received packet: 0087 Handler: character_moves
You're moving from (115, 113) to (115, 113) - distance 0.0, unknown 136
Move - done
Route - trimming down solution (2) by 2 steps
Destination reached.
Target distance 3.0 is >2.5; moving to target: from (115,113) to (115,112)
On route to: Prontera Field(prt_fild10): 115, 112
Route Solution Ready!
Route - next step moving to (115, 113), index 1, 2 steps left
Move - (re)trying
Sent move to: 115, 113
Received packet: 0087 Handler: character_moves
You're moving from (115, 113) to (115, 113) - distance 0.0, unknown 136
Move - done
Route - trimming down solution (2) by 2 steps
Destination reached.
Target distance 3.0 is >2.5; moving to target: from (115,113) to (115,112)
On route to: Prontera Field(prt_fild10): 115, 112
Route Solution Ready!
Route - next step moving to (115, 113), index 1, 2 steps left
Move - (re)trying
Sent move to: 115, 113
Received packet: 0087 Handler: character_moves
You're moving from (115, 113) to (115, 113) - distance 0.0, unknown 136
Move - done
Route - trimming down solution (2) by 2 steps
Destination reached.
Target distance 3.0 is >2.5; moving to target: from (115,113) to (115,112)
On route to: Prontera Field(prt_fild10): 115, 112
Route Solution Ready!
Route - next step moving to (115, 113), index 1, 2 steps left
Move - (re)trying
Sent move to: 115, 113
Received packet: 0087 Handler: character_moves
You're moving from (115, 113) to (115, 113) - distance 0.0, unknown 136
Move - done
Route - trimming down solution (2) by 2 steps
Destination reached.
Target distance 3.0 is >2.5; moving to target: from (115,113) to (115,112)
On route to: Prontera Field(prt_fild10): 115, 112
Route Solution Ready!
Route - next step moving to (115, 113), index 1, 2 steps left
Move - (re)trying
Sent move to: 115, 113
Received packet: 0087 Handler: character_moves
You're moving from (115, 113) to (115, 113) - distance 0.0, unknown 136
Move - done
Route - trimming down solution (2) by 2 steps
Destination reached.
Target distance 3.0 is >2.5; moving to target: from (115,113) to (115,112)
On route to: Prontera Field(prt_fild10): 115, 112
Route Solution Ready!
Route - next step moving to (115, 113), index 1, 2 steps left
Move - (re)trying
Sent move to: 115, 113
Received packet: 0087 Handler: character_moves
You're moving from (115, 113) to (115, 113) - distance 0.0, unknown 136
Move - done
Route - trimming down solution (2) by 2 steps
Destination reached.
Target distance 3.0 is >2.5; moving to target: from (115,113) to (115,112)
On route to: Prontera Field(prt_fild10): 115, 112
Route Solution Ready!
Route - next step moving to (115, 113), index 1, 2 steps left
Move - (re)trying
Sent move to: 115, 113
disguise
Noob
Noob
Posts: 11
Joined: 15 Dec 2008, 17:57
Noob?: No
Location: :noitacoL

Re: AI get stuck

#9 Post by disguise »

I'm facing this problem right now... :| ... Fix it please... :|
Image
Technology
Super Moderators
Super Moderators
Posts: 801
Joined: 06 May 2008, 12:47
Noob?: No

Re: AI get stuck

#10 Post by Technology »

unable to reproduce this 1 year old bug, it might be fixed, anyways closed.
One ST0 to rule them all? One PE viewer to find them!
One ST_kRO to bring them all and in the darkness bind them...

Mount Doom awaits us, fellowship of OpenKore!