loathers / autoscend

An ascension script for KoLMafia
Other
45 stars 65 forks source link

Autoscend aborts although resting was successful when charging cinch #1420

Closed polynoman closed 4 months ago

polynoman commented 5 months ago

Prerequisites

Context

Expected/Desired Behavior

Autoscend continues after a successful rest, when charging cinch

Current Behavior

Autoscend is aborting, although resting was successful.

Failure Information (for bugs)

Current situation: I am running in the smol path (which is out of standard), using my chateau mantegna for sleeping).

Free rests are used to charge cinch, and autoscend checks the pref timesRested to check if resting works.

In my case preference timesRested is re-set (increased and decreased again by mafia) because mafia did not track all free rests available. That means it is not reliable to check for a resting success.

My recommendation is to also check whether cinch has increased or not. PR is coming.

Failure Logs

Here an excerpt from the log (if there is more output than usual it is because i have added some prints):

[DEBUG] Check if we have a free rest available:
true
[DEBUG] How many times have we rested today so far?
8
We are resting now, what is our result?
Saving outfit: Backup
Outfit saved
Maximizer: Moxie experience percent,
Maximizing...
294 combinations checked, best score 10.00

[180] Rest in your bed in the Chateau
You gain 1 Mojo Point
You gain 110 Chutzpah
Preference _cinchUsed changed from 75 to 70
Preference _cinchoRests changed from 10 to 11
Preference timesRested changed from 8 to 9
Preference timesRested changed from 9 to 8
false
Returning resting result
Failed to rest to charge cincho
Stack trace:
  at auto_getCinch (mr2023.ash:367)
  at _auto_forceNextNoncombat (auto_util.ash:4012)
  at _auto_forceNextNoncombat (auto_util.ash:4067)
  at auto_forceNextNoncombat (auto_util.ash:4077)
  at LX_getLadySpookyravensPowderPuff (level_11.ash:696)
  at LX_spookyravenManorSecondFloor (level_11.ash:711)
  at process_tasks (autoscend.ash:1658)
  at doTasks (autoscend.ash:1887)
  at auto_begin (autoscend.ash:2000)