loathers / garbage-collector

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

[BUG] Script exception: Bad item value: #1835

Closed ggvgiu closed 5 months ago

ggvgiu commented 5 months ago

I am getting this today every time I run garbo, yesterday it ran all good.

The error is just this: Script exception: Bad item value:

It gave a stack trace only one time, I didn't manage to save it, but the first line for the stack trace was 35026

The error whatever it is should be inside this part of the log I believe... but nothing pops out, the moment that seems to be taking a long time is just after the Search complete. line after the possessed sugar cube, could be the error is right after that.

Took Pantsgiving from stash in Brally's Basement.
Refreshing stash contents...
Stash list retrieved.
Refreshing stash contents...
Stash list retrieved.
You are currently a member of Hyrule
Preference _concoctionDatabaseRefreshes changed from 675 to 676
Skipping fancy chocolate sculpture; too expensive (94500 > 30000).
Searching for "possessed sugar cube"...
Search complete.
allowNonMoodBurning => false
Preference allowNonMoodBurning changed from true to false
Preference customCombatScript changed from garbo to grimoire_macro
CCS set to grimoire_macro

Executing Daily Familiars/Moveable feast
CCS set to grimoire_macro
Autoattack is disabled.
You are currently a member of Brally's Basement
Preference _concoctionDatabaseRefreshes changed from 676 to 677
Refreshing stash contents...
Stash list retrieved.
You are currently a member of Hyrule
Preference _concoctionDatabaseRefreshes changed from 677 to 678

Executing Daily/Refresh Latte
Autoattack is disabled.

Executing Daily/Check Barf Mountain Quest
Autoattack is disabled.

Visiting the Employee Assignment Kiosk
hpAutoRecoveryTarget => 0
Preference hpAutoRecoveryTarget changed from 0.0 to 0
mpAutoRecoveryTarget => 0
Preference mpAutoRecoveryTarget changed from 0.0 to 0
allowNonMoodBurning => true
Preference allowNonMoodBurning changed from false to true
Preference customCombatScript changed from grimoire_macro to garbo
CCS set to garbo
Autoattack is disabled.
You are currently a member of Brally's Basement
Preference _concoctionDatabaseRefreshes changed from 678 to 679
Refreshing stash contents...
Stash list retrieved.
Dropping items into stash...
Returned Pantsgiving to stash in Brally's Basement.
awaiko commented 5 months ago

Same (similar?) issue: Mafia is update at r27878 garbo version returns Local Version: cdadc6a3524b3836c86277166c66bde4215db13f (built from main@b2fe09e778a31e470e3f77c339d24014e7c3b61b)

Initially I was just getting 'bad item value`, latest error is:

JavaScript exception: JavaException: net.sourceforge.kolmafia.textui.ScriptException: Bad item value: (file:/E:/Dropbox/Gaming/Mafia/scripts/garbage-collector/garbo.js#35026) at file:/E:/Dropbox/Gaming/Mafia/scripts/garbage-collector/garbo.js:35026 (f) at file:/E:/Dropbox/Gaming/Mafia/scripts/garbage-collector/garbo.js:35657 at file:/E:/Dropbox/Gaming/Mafia/scripts/garbage-collector/garbo.js:30896 (withLocation) at file:/E:/Dropbox/Gaming/Mafia/scripts/garbage-collector/garbo.js:35590 (potionSetup) at file:/E:/Dropbox/Gaming/Mafia/scripts/garbage-collector/garbo.js:42973 (embezzlerSetup) at file:/E:/Dropbox/Gaming/Mafia/scripts/garbage-collector/garbo.js:43097 at file:/E:/Dropbox/Gaming/Mafia/scripts/garbage-collector/garbo.js:40371 (withStash) at file:/E:/Dropbox/Gaming/Mafia/scripts/garbage-collector/garbo.js:43094 (dailyFights) at file:/E:/Dropbox/Gaming/Mafia/scripts/garbage-collector/garbo.js:48618 at file:/E:/Dropbox/Gaming/Mafia/scripts/garbage-collector/garbo.js:40392 (withClan) at file:/E:/Dropbox/Gaming/Mafia/scripts/garbage-collector/garbo.js:40386 (withVIPClan) at file:/E:/Dropbox/Gaming/Mafia/scripts/garbage-collector/garbo.js:48596 at file:/E:/Dropbox/Gaming/Mafia/scripts/garbage-collector/garbo.js:40371 (withStash) at file:/E:/Dropbox/Gaming/Mafia/scripts/garbage-collector/garbo.js:48595 (main)

zweq commented 5 months ago

Here's another log excerpt (Garbo and Mafia are up to date):

> Local Version: cdadc6a3524b3836c86277166c66bde4215db13f (built from main@b2fe09e778a31e470e3f77c339d24014e7c3b61b)
> Garbo is up to date!
> Collecting garbage!
Preference customCombatScript changed from grimoire_macro to garbo
Preference hpAutoRecoveryTarget changed from 0.0 to 0
Preference mpAutoRecoveryTarget changed from 0.0 to 0
Preference valueOfInventory changed from 2.0 to 2
> Stash access is disabled. Ignoring request to borrow "repaid diaper, Buddy Bjorn, Crown of Thrones, Pantsgiving, mafia pointer finger ring" from clan stash.
> Skipping fancy chocolate sculpture; too expensive (94500 > 40000).
mallsearch "possessed sugar cube"
Preference nextAdventure changed from Shadow Rift (The Nearby Plains) to Barf Mountain
Preference customCombatScript changed from garbo to grimoire_macro
> 
> Executing Daily Familiars/Prepare Shorter-Order Cook
> CCS: [default]\n ";"

Equip Shorter-Order Cook with blue plate
> 
> Executing Daily/Refresh Latte
> CCS: [default]\n ";"

main.php?latte=1
> 
> Executing Daily/Check Barf Mountain Quest
> CCS: [default]\n ";"

Visiting the Employee Assignment Kiosk
> Barf Quests Available:
> Guest Sustenance Assurance
> Bear Removal
> No suitable Barf Quests available.
> 
> Executing Daily/Configure Snojo
> CCS: [default]\n ";"

Visiting Snojo Control Console
Took choice 1118/2: mysticality training
choice.php?whichchoice=1118&option=2&pwd
Preference hpAutoRecoveryTarget changed from 0.0 to 0
Preference mpAutoRecoveryTarget changed from 0.0 to 0
Preference customCombatScript changed from grimoire_macro to garbo
Preference customCombatScript changed from garbo to grimoire_macro
Preference hpAutoRecoveryTarget changed from 0.0 to 0
Preference mpAutoRecoveryTarget changed from 0.0 to 0
Preference valueOfInventory changed from 2.0 to 2
> You fought 0 Knob Goblin Embezzler at the beginning of the day, and an additional 0 digitized Knob Goblin Embezzler throughout the day. Good work, probably!
> Including this, you have fought 0 across all ascensions today
> Extreme Items:
> This run of garbo, across 0 turns you generated 0 meat, with 0 raw meat and 0 from items
> So far today, across 0 turns you generated 138,105 meat, with -471,868 raw meat and 609,973 from items
**Script exception: Bad item value:**
> Garbo failed
ggvgiu commented 5 months ago

/scripts/garbage-collector/garbo.js#35026) at file:/E:/Dropbox/Gaming/Mafia/scripts/garbage-collector/garbo.js:35026 (f) at

yes, this is the stack trace I got the one time it logged the full trace as well

maybe something to do with 1st of april "salad" strings?

pstalcup commented 5 months ago

The issue at hand is that Mafia is failing to parse Rufus's shadow phone item quest because of salad on April Fool's day. I am trying to force mafia to check the quest log to figure out which item is actually being requested, but in the meantime if you need to make forward progress you can either:

ggvgiu commented 5 months ago

Didn't do exactly that... but now that you mentioned, I think the first time it failed today was in the NC for the shadow rift actually, and I had to exit the NC manually... after several attempts I guess I finally got lucky because now it seems to be running

horrible-little-slime commented 5 months ago

🥗