Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix seals, prevent issue with koolo closing entirely (crash) #657

Merged
merged 3 commits into from
Feb 5, 2025

Conversation

elobo91
Copy link
Contributor

@elobo91 elobo91 commented Feb 3, 2025

Seals:
Prevent bot from teleporting up to 5 time on seals before interacting.

  • change to ClearThroughpath :
    Increasing step.MoveTo(dest, step.WithDistanceToFinish(7) as option prevent not being to able to finish movement if our destination is center of a large object like Seal in diablo run. is used only for pathing, attack.go or pathfinder will use default DistanceToFinishMoving (4) .

  • Change to interaction.go :
    Is similar to solution from ClearThroughPath :
    if InteractObject with a Seal, we increase DistanceToFinish so it will consider in range at this distance. With default 4 it wont be able to reach destination and bounce back on seal since its further then 4 and we dont pass to step.InteractObject until we are in range.

Koolo crash

  • change to attack.go :
    Proper cleanup of checkMonsterDamage to prevent Koolo from closing(crashing) with random fatal error.

code cleanup

  • change to bot.go action.InRunReturnRoutine() :

We dont need retry mechanism here, High priority loop will automatically retry shortly after

Prevent bot from teleporting up to 5 time on seals before interacting.

change to ClearThroughpath : Increasing step.MoveTo(dest, step.WithDistanceToFinish(7) as option prevent not being to able to finish movement if our destination is center of a large object like Seal in diablo run. is used only for pathing, attack.go or pathfinder will use default DistanceToFinishMoving (4) .

Change to interaction.go :
Is similar to solution from ClearThroughPath :
if InteractObject with a Seal,  we increase DistanceToFinish so it will consider in range at this distance.  With default 4 it wont be able to reach destination and bounce back on seal since its further then 4 and we dont pass to step.InteractObject until we are in range.
Proper cleanup of checkMonsterDamage to prevent Koolo from closing(crashing) with random fatal error.
We dont need retry mechanism here,  High priority loop will automatically retry shortly after
@artosimonyan artosimonyan merged commit f19a0db into hectorgimenez:main Feb 5, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants