loathers / autoscend

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

Heavy Rains: crash while preparing for final boss fight #1470

Closed txster closed 2 weeks ago

txster commented 2 weeks ago

Context

Expected/Desired Behavior

Fight the Rain King at the end of the path

Current Behavior

The script crashes while preparing to fight the Rain King, the final boss of the path

Failure Information (for bugs)

The session log was missing the first line of this, which I copied from the gCLI window:

Effect (Blessing of the War Snapper) is not known to us. Beep. Stack trace:   at buffMaintain (auto_buff.ash:859)   at buffMaintain (auto_buff.ash:1051)   at buffMaintain (auto_buff.ash:1056)   at effectAblativeArmor (auto_util.ash:4258)   at L13_heavyrains_towerFinal (heavy_rains.ash:296)   at L13_towerNSFinal (level_13.ash:1694)   at L13_towerAscent (level_13.ash:1911)   at process_tasks (autoscend.ash:1689)   at doTasks (autoscend.ash:1921)

The error message and stack trace do explain exactly what happens. The custom L13_xxx scripts for Heavy Rains is the only place where effectAblativeArmor() is called, to add a lot of cheap buffs since the boss removes one per round, which in turns calls buffMaintain(). There's no definition for 'Blessing of the War Snapper' in buffMaintain().

Stack trace occurs at line 3465 in the log. To finish the run I commented out the call to buffMaintain() around auto_util.ash:4258 and restarted autoscend. This is the rest of the session log file.

Failure Logs

txster_20240708 - Copy for bug report.txt

Please include any relevant log snippets or files here. You should still attach the full KoLMafia session log if possible.

txster commented 2 weeks ago

I can work on fixing this, need to wait after next RO for a real test, currently sitting at the tower before the final fight.