loathers / garbage-collector

Script for farming meat (and garbage) in 2003 web RPG Kingdom of Loathing
24 stars 59 forks source link

[BUG] JavaScript exception: Error: Failed to ensure Free Run source #1817

Closed linzinha closed 4 months ago

linzinha commented 4 months ago

Before Reporting Mafia Build version: 27844 Garbo is up to date!

Also, read this.

Describe the bug I run garbo every few days and have never run into this error before, also I adventured manually 0 turns today before running the script. I get an error saying it Failed to ensure Free Run source

To Reproduce Steps to reproduce the behavior:

run garbo with or without arguments

Expected behavior To run garbo successfully without error

Session Log

khlamedaea_20240301.txt

Here is the stacktrace:

JavaScript exception: Error: Failed to ensure Free Run source (file:/Users/lnzna/Library/Application%20Support/KoLmafia/scripts/garbage-collector/garbo.js#5103)
at file:/Users/lnzna/Library/Application%20Support/KoLmafia/scripts/garbage-collector/garbo.js:5103 (ensureFreeRun)
at file:/Users/lnzna/Library/Application%20Support/KoLmafia/scripts/garbage-collector/garbo.js:30545
at file:/Users/lnzna/Library/Application%20Support/KoLmafia/scripts/garbage-collector/garbo.js:38291 (runGregFight)
at file:/Users/lnzna/Library/Application%20Support/KoLmafia/scripts/garbage-collector/garbo.js:38314
at file:/Users/lnzna/Library/Application%20Support/KoLmafia/scripts/garbage-collector/garbo.js:38095 (run)
at file:/Users/lnzna/Library/Application%20Support/KoLmafia/scripts/garbage-collector/garbo.js:41172 (runEmbezzlerFight)
at file:/Users/lnzna/Library/Application%20Support/KoLmafia/scripts/garbage-collector/garbo.js:43021
at file:/Users/lnzna/Library/Application%20Support/KoLmafia/scripts/garbage-collector/garbo.js:40194 (withStash)
at file:/Users/lnzna/Library/Application%20Support/KoLmafia/scripts/garbage-collector/garbo.js:42915 (dailyFights)
at file:/Users/lnzna/Library/Application%20Support/KoLmafia/scripts/garbage-collector/garbo.js:48435
at file:/Users/lnzna/Library/Application%20Support/KoLmafia/scripts/garbage-collector/garbo.js:40215 (withClan)
at file:/Users/lnzna/Library/Application%20Support/KoLmafia/scripts/garbage-collector/garbo.js:40209 (withVIPClan)
at file:/Users/lnzna/Library/Application%20Support/KoLmafia/scripts/garbage-collector/garbo.js:48413
at file:/Users/lnzna/Library/Application%20Support/KoLmafia/scripts/garbage-collector/garbo.js:40194 (withStash)
at file:/Users/lnzna/Library/Application%20Support/KoLmafia/scripts/garbage-collector/garbo.js:48412 (main)

Additional context Have never seen this before - I run garbo frequently, and am still in aftercore since the last time I ran it. I did get the new IOTM but it is still wrapped. I did try closeting any wrapped IOTMs after this log was uploaded but it didn't make a difference. You'll see I've tried a few things including deleting and rerunning the git checkout in the session file!

loryder commented 4 months ago

Experiencing the same issue.

linzinha commented 4 months ago

@loryder do you have BOFA?

loryder commented 4 months ago

@loryder do you have BOFA?

Yes, I do

linzinha commented 4 months ago

Ok so my current theory is that maybe a change was pushed related to the update to free runs/everything looks green that conflicts with Recall Habitats.

If you push through and just run those adventures manually, using whatever free fights you have or just using up the adv, once you get through the Recall Habitats adventures it works just fine. I'm going to use more spooky vhs tapes and sooner next time if this issue is still occurring.

Malibu-Stacey commented 4 months ago

There's an open PR to fix this #1791

zarefore commented 4 months ago

I was able to get the script to run after this error after set _monsterHabitatsRecalled=3 and set _monsterHabitatsFightsLeft=0.

czarWH6 commented 4 months ago

Im still encountering this after setting the stuff zare said

tyrion-the-imp commented 4 months ago

Im still encountering this after setting the stuff zare said

Same here.

ktpolanski commented 4 months ago

As a temporary workaround, I have downloaded this garbo.js and am chugging along.

horrible-little-slime commented 4 months ago

Resolved by the hot new PR