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

[ebounty] ebounty may repeatedly invoke bigshot while resting #1476

Open
gs4-Mertyn opened this issue Apr 23, 2024 · 1 comment
Open

[ebounty] ebounty may repeatedly invoke bigshot while resting #1476

gs4-Mertyn opened this issue Apr 23, 2024 · 1 comment

Comments

@gs4-Mertyn
Copy link
Contributor

gs4-Mertyn commented Apr 23, 2024

Script Name

ebounty

Bug Report

Occasionally I'll see ebounty repeatedly invoking bigshot in loop while the character should be resting. I encounter this under these conditions:

  1. The character just turned in a bounty so his mind is currently Saturated
  2. The character just grabbed a new bounty for a creature which is not listed in the Profiles tab
  3. EBounty "Keep Hunting" is enabled

The crux of the issue is that the command ";bigshot single" returns immediately since the mind is Saturated. Then, it seems that the loop in EBounty.keep_hunting() will just spin and repeatedly invoke bigshot over and over again.

Expected Behavior

No response

Current Behavior

No response

Possible Solution

One possibility would be to change ";bigshot single" so that it would first let the character fully rest, then complete a hunt, prior to exiting.

Alternatively, ebounty could wait until the character is rested before launching bigshot in the first place.

@gs4-Mertyn
Copy link
Contributor Author

gs4-Mertyn commented Apr 28, 2024

This isn't a problem only with keep_hunting() and ";bigshot single". I run into the same issue when I'm am saturated and have a new creature bounty that is listed in my Profiles tab. EBounty gets stuck in a repeating loop of invoking ";bigshot bounty". In this case, "bigshot bounty" finishes immediately because the character's mind is fried. I had settings[:exp_pause] disabled at the time, so should_hunt?() was not checking for my percentmind(), and EBounty.data.wait was false. So in this case it seems like should_hunt?() was returning true, then "bigshot bounty" would run and immediately exit with "Exiting: Bounty mode - fried", then the cycle would repeat.

Not sure yet if both cases are the same root cause or not. It seems like the keep_hunting() case isn't checking should_hunt?() at all in the first place.

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

No branches or pull requests

1 participant