loathers / garbage-collector

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

[BUG] Crash with "Failed to ensure Free Run source" despite having access to Spring Shoes #1834

Closed plinknato closed 4 months ago

plinknato commented 4 months ago

Version Mafia is on current main:

$ git status On branch main Your branch is up to date with 'origin/main'.

Garbo is up to date:

Updating project Loathing-Associates-Scripting-Society-garbage-collector-release Pull No changes

OS: Mac M1 Sonoma IDE: IntelliJ IDEA 2023.3.2

Describe the bug Garbo fights one Knob Goblin Embezzler then crashes with a java script exception:

JavaScript exception: Error: Failed to ensure Free Run source (file:/Users/myuser/Library/Application%20Support/KoLmafia/scripts/garbage-collector/garbo.js#5103) at file:/Users/myuser/Library/Application%20Support/KoLmafia/scripts/garbage-collector/garbo.js:5103 (ensureFreeRun) at file:/Users/myuser/Library/Application%20Support/KoLmafia/scripts/garbage-collector/garbo.js:30585 (ltbRun) at file:/Users/myuser/Library/Application%20Support/KoLmafia/scripts/garbage-collector/garbo.js:38645 (runGregFight) at file:/Users/myuser/Library/Application%20Support/KoLmafia/scripts/garbage-collector/garbo.js:38668 at file:/Users/myuser/Library/Application%20Support/KoLmafia/scripts/garbage-collector/garbo.js:38449 (run) at file:/Users/myuser/Library/Application%20Support/KoLmafia/scripts/garbage-collector/garbo.js:41341 (runEmbezzlerFight) at file:/Users/myuser/Library/Application%20Support/KoLmafia/scripts/garbage-collector/garbo.js:43193 at file:/Users/myuser/Library/Application%20Support/KoLmafia/scripts/garbage-collector/garbo.js:40363 (withStash) at file:/Users/myuser/Library/Application%20Support/KoLmafia/scripts/garbage-collector/garbo.js:43086 (dailyFights) at file:/Users/myuser/Library/Application%20Support/KoLmafia/scripts/garbage-collector/garbo.js:48610 at file:/Users/myuser/Library/Application%20Support/KoLmafia/scripts/garbage-collector/garbo.js:40384 (withClan) at file:/Users/myuser/Library/Application%20Support/KoLmafia/scripts/garbage-collector/garbo.js:40378 (withVIPClan) at file:/Users/myuser/Library/Application%20Support/KoLmafia/scripts/garbage-collector/garbo.js:48588 at file:/Users/myuser/Library/Application%20Support/KoLmafia/scripts/garbage-collector/garbo.js:40363 (withStash) at file:/Users/myuser/Library/Application%20Support/KoLmafia/scripts/garbage-collector/garbo.js:48587 (main)

To Reproduce Steps to reproduce the behavior:

  1. Login and run breakfast, equip fight gear, one time access 70's Volcano, fight for pocket wishes
  2. Aquire amulet coin for Cornbeefadon from 'Cake Shaped Arena'
  3. Open CLI and run 'garbo nobarf' which fails to eat
  4. Run 'CONSUME ALL'
  5. Rerun 'garbo nobarf'
  6. Garbo crashes with above error

Expected behavior Garbo is expected to fight more Knob Goblin's without crashing

Session Log Plinknato_20240328.txt

Additional context I have an alt that does not crash with the same IoTM PlinknatoAlt_20240328.txt

horrible-little-slime commented 4 months ago

From the FAQ

Garbo is failing to buy items from the mall?

Increase autoBuyPriceLimit by typing set autoBuyPriceLimit = 1234 where 1234 is the new value you need.

plinknato commented 4 months ago

This fixed. Thanks for the quick reply.