loathers / garbage-collector

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

[BUG] Garbo does not handle unexpected Choice adventures (Violet Fog flashbacks/TT) during dailies. Tasks do not fail despite being trapped in Choice. #2154

Open ianknowles opened 1 month ago

ianknowles commented 1 month ago

Violet Fog

At some point between free beach walks and checking the NEP quest, garbo finds itself instead in the Violet Fog (my astral mushroom usage is high enough to trigger flashbacks). Many of the daily tasks continue despite being in failure states due to being stuck in the Fog. Garbo only errors out when failing to maximize. Having the other daily tasks recognise their failure state, or error out because of fog would be a good first step.

Our rare tile is combed, but we found some rough sand. So I guess there's that.
Combing square 3,1 (6232 minutes down the beach)
Preference _freeBeachWalksUsed changed from 10 to 11
You acquire an item: sea avocado
You acquire grain of sand (3)
Preference _concoctionDatabaseRefreshes changed from 1364 to 1365
Submitting option 5 for choice 1388
No spading data has been collected yet. Please try again later.
=== RESULTS ===
-Found 0 meat
-Found 28 grain of sand
-Found 1 sea cucumber
-Found 1 sea avocado
-Found 2 cyan seashell
-Found 2 kelp
-Found 1 bunch of sea grapes
-Found 1 driftwood pants
-Found 1 driftwood bracelet

Executing Daily/Clan Fortune Buff
Autoattack is disabled.
Visiting Fortune Teller in clan VIP lounge
You acquire an effect: Meet the Meat (100)
Preference _clanFortuneBuffUsed changed from false to true

Executing Daily/Glenn's golden dice
Autoattack is disabled.
Using 1 Glenn's golden dice...
You acquire an effect: Energized (10)
You acquire an effect: Cinnamouth (10)
You acquire an effect: Eggs-tra Sensory Perception (10)
You acquire an effect: Nasty Hand (10)
You acquire an effect: Hyphemariffic (10)
Preference _glennGoldenDiceUsed changed from false to true
Finished using 1 Glenn's golden dice.

Executing Daily/Clan pool table
Autoattack is disabled.
Approaching pool table with an aggressive stance.
You acquire an effect: Billiards Belligerence (10)
Preference _poolGames changed from 0 to 1
You lost. Boo hoo.

Executing Daily/Clan pool table
Autoattack is disabled.
Approaching pool table with an aggressive stance.
You acquire an effect: Billiards Belligerence (10)
Preference _poolGames changed from 1 to 2
You lost. Boo hoo.

Executing Daily/Clan pool table
Autoattack is disabled.
Approaching pool table with an aggressive stance.
You acquire an effect: Billiards Belligerence (10)
Preference _poolGames changed from 2 to 3
You lost. Boo hoo.

Executing Daily/Witchess Puzzle Champ
Autoattack is disabled.
Preference lastAdventure changed from The Shore, Inc. Travel Agency to None
Preference nextAdventure changed from Barf Mountain to None

[498] Your Witchess Set
Preference lastEncounter changed from Comb the Beach (6232 minutes down the beach) to Witchess Puzzles
Encounter: Witchess Puzzles
You acquire an effect: Puzzle Champ (25)
Preference _witchessBuff changed from false to true
Preference lastAdventure changed from None to The Shore, Inc. Travel Agency

Executing Daily/Friar's Blessing
Autoattack is disabled.
Visiting the Deep Fat Friars...
You acquire an effect: Brother Corsican's Blessing (20)
Preference friarsBlessingReceived changed from false to true
You've been blessed.

Executing Daily/The Legendary Beat
Autoattack is disabled.
Using 1 The Legendary Beat...
You acquire an effect: Clyde's Blessing (20)
Preference _legendaryBeat changed from false to true
Finished using 1 The Legendary Beat.

Executing Daily/portable steam unit
Autoattack is disabled.
Using 1 portable steam unit...
You acquire an effect: Steamed Sinuses (30)
Preference _portableSteamUnitUsed changed from false to true
Finished using 1 portable steam unit.

Executing Daily/Clan Fortune Consults
Autoattack is disabled.
Visiting Fortune Teller in clan VIP lounge
Preference _clanFortuneConsultUses changed from 0 to 1
You enter your answers and wait for 3690803
Countdown: 10 seconds...
Countdown: 5 seconds...
Countdown: 4 seconds...
Preference _concoctionDatabaseRefreshes changed from 1365 to 1366
New message received from [OnlyFax](https://github.com/loathers/garbage-collector/issues/showplayer.php?who=3690803).

Countdown: 3 seconds...
Countdown: 2 seconds...
Countdown: 1 second...
Waiting completed.

Executing Daily/Clan Fortune Consults
Autoattack is disabled.
Visiting Fortune Teller in clan VIP lounge
Preference _clanFortuneConsultUses changed from 1 to 2
You enter your answers and wait for 3690803
Countdown: 10 seconds...
Preference _concoctionDatabaseRefreshes changed from 1366 to 1367
New message received from [OnlyFax](https://github.com/loathers/garbage-collector/issues/showplayer.php?who=3690803).

Countdown: 5 seconds...
Countdown: 4 seconds...
Countdown: 3 seconds...
Countdown: 2 seconds...
Countdown: 1 second...
Waiting completed.

Executing Daily/Clan Fortune Consults
Autoattack is disabled.
Visiting Fortune Teller in clan VIP lounge
Preference _clanFortuneConsultUses changed from 2 to 3
You enter your answers and wait for 3690803
Countdown: 10 seconds...
Preference _concoctionDatabaseRefreshes changed from 1367 to 1368
New message received from [OnlyFax](https://github.com/loathers/garbage-collector/issues/showplayer.php?who=3690803).

Countdown: 5 seconds...
Countdown: 4 seconds...
Countdown: 3 seconds...
Countdown: 2 seconds...
Countdown: 1 second...
Waiting completed.

Executing Daily/Summon Demon
Autoattack is disabled.
Summoning Ze'Voxchak...
You acquire an effect: Preternatural Greed (30)
Preference demonSummoned changed from false to true

Executing Daily/Mad Tea Party Buff
Removing items from closet...
You acquire an item: filthy knitted dread sack
Preference _concoctionDatabaseRefreshes changed from 1368 to 1369
Using 1 "DRINK ME" potion...
Preference pendingMapReflections changed from 0 to 1
You acquire an effect: Down the Rabbit Hole (20)
Finished using 1 "DRINK ME" potion.
Autoattack is disabled.
Putting on Daylight Shavings Helmet...
Equipment changed.
Getting Dances with Tweedles (+40% Meat from Monsters) from the Mad Tea Party...

Visiting the Mad Tea Party
Preference lastEncounter changed from Witchess Puzzles to The Mad Tea Party
Encounter: The Mad Tea Party
You acquire an effect: Dances with Tweedles (30)
Preference _madTeaParty changed from false to true
Taking off Daylight Shavings Helmet...
Equipment changed.

Executing Daily/Set Mind Control Device
Autoattack is disabled.
Resetting mind control device...

Visiting the Super-Secret Canadian Mind Control Device
Mind control device reset.

Executing Daily/Implement [glitch season reward name]
Autoattack is disabled.
Using 1 [glitch season reward name]...
Preference _glitchItemImplemented changed from false to true
Preference glitchItemImplementationCount changed from 3 to 4
Preference glitchItemImplementationLevel changed from 2 to 3
Finished using 1 [glitch season reward name].

Executing Daily/Use BittyCar MeatCart
Autoattack is disabled.
Stash access is disabled. Ignoring request to borrow "BittyCar MeatCar" from clan stash.
Using 1 BittyCar MeatCar...
Preference _bittycar changed from to meatcar
Finished using 1 BittyCar MeatCar.

Executing Daily/Check Neverending Party Quest
Taking off June cleaver...
Equipment changed.
Autoattack is disabled.
Preference lastAdventure changed from The Shore, Inc. Travel Agency to The Neverending Party
Preference nextAdventure changed from None to The Neverending Party

[498] The Neverending Party
Preference lastEncounter changed from The Mad Tea Party to Violet Fog
Encounter: Violet Fog
Submitting option 2 for choice 48
Encounter: Violet Fog
Preference violetFogLayout changed from to 0,51,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0

Executing Daily/Check Barf Mountain Quest
Autoattack is disabled.

Visiting the Employee Assignment Kiosk
Preference violetFogLayout changed from 0,51,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0 to 0,51,0,-1,0,0,0,-1,0,0,0,-1,0,51,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0

Executing Daily/Configure Snojo
Autoattack is disabled.

Visiting Snojo Control Console
Submitting option 2 for choice 51
Encounter: Violet Fog

Executing Daily/Retrieve Items
Autoattack is disabled.
You are currently in a choice.
You are currently in a choice.
You are currently in a choice.

Executing Daily/Volcano Quest
Autoattack is disabled.
Checking volcano quest

Visiting The WLF Bunker
Preference violetFogLayout changed from 0,51,0,-1,0,0,0,-1,0,0,0,-1,0,51,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0 to 0,51,0,-1,0,0,0,-1,0,0,0,-1,0,51,0,-1,0,0,0,-1,0,0,0,-1,0,54,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0,-1,0,0,0

Executing Daily/Free Volcoino
Maximizer: disco style
Maximizing...
280 combinations checked, best score 6.00
You are currently in a choice.
You are currently in a choice.
Updating inventory...
Preference _concoctionDatabaseRefreshes changed from 1369 to 1370
Maximizer: disco style
Maximizing...
280 combinations checked, best score 6.00
You are currently in a choice.
You are currently in a choice.
logPreferenceChangeFilter => _beachCombing,_beachLayout,_beachMinutes,_lastCombatStarted,combo_lastTileCombed,garboEmbezzlerCount,garboEmbezzlerDate,garboEmbezzlerSources,garboTargetCount,garboTargetDate,garboTargetSources,libram_savedMacro,maximizerMRUList,spadingData,testudinalTeachings
Preference logPreferenceChangeFilter changed from _beachCombing,_beachLayout,_beachMinutes,_lastCombatStarted,combo_lastTileCombed,garboEmbezzlerCount,garboEmbezzlerDate,garboEmbezzlerSources,libram_savedMacro,maximizerMRUList,spadingData,testudinalTeachings to _beachCombing,_beachLayout,_beachMinutes,_lastCombatStarted,combo_lastTileCombed,garboEmbezzlerCount,garboEmbezzlerDate,garboEmbezzlerSources,garboTargetCount,garboTargetDate,garboTargetSources,libram_savedMacro,maximizerMRUList,spadingData,testudinalTeachings
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.
No spading data has been collected yet. Please try again later.
logPreferenceChangeFilter => _beachCombing,_beachLayout,_beachMinutes,_lastCombatStarted,combo_lastTileCombed,garboEmbezzlerCount,garboEmbezzlerDate,garboEmbezzlerSources,libram_savedMacro,maximizerMRUList,spadingData,testudinalTeachings
Preference logPreferenceChangeFilter changed from _beachCombing,_beachLayout,_beachMinutes,_lastCombatStarted,combo_lastTileCombed,garboEmbezzlerCount,garboEmbezzlerDate,garboEmbezzlerSources,garboTargetCount,garboTargetDate,garboTargetSources,libram_savedMacro,maximizerMRUList,spadingData,testudinalTeachings to _beachCombing,_beachLayout,_beachMinutes,_lastCombatStarted,combo_lastTileCombed,garboEmbezzlerCount,garboEmbezzlerDate,garboEmbezzlerSources,libram_savedMacro,maximizerMRUList,spadingData,testudinalTeachings
Preference customCombatScript changed from garbo to default
CCS set to default
hpAutoRecoveryTarget => 1
Preference hpAutoRecoveryTarget changed from 0.0 to 1
mpAutoRecoveryTarget => 0.65
Preference mpAutoRecoveryTarget changed from 0.0 to 0.65
allowNonMoodBurning => false
Preference allowNonMoodBurning changed from true to false
valueOfInventory => 2
Preference valueOfInventory changed from 2.0 to 2
choiceAdventure1108 => 1
Preference choiceAdventure1108 changed from 3 to 1
You fought 0 Witchess Bishop at the beginning of the day, and an additional 0 digitized Witchess Bishop throughout the day. Good work, probably!
Including this, you have fought 5 across all ascensions today
Extreme Items:
3 FunFunds™ worth 15660 total
2 mini kiwi aioli worth 11405 total
1 sea cucumber worth 350 total
-1 pocket wish worth -44100 total
-1 box of Familiar Jacks worth -26091 total
-1 potion of the field gar worth -25814 total
Preference garboResultsMeat changed from 2089266 to 1699343
Preference garboResultsItems changed from 2959211 to 2831778
This run of garbo, across 0 turns you generated -517,356 meat, with -389,923 raw meat and -127,433 from items
So far today, across 703 turns you generated 4,531,121 meat, with 1,699,343 raw meat and 2,831,778 from items
JavaScript exception: Error: Failed to maximize properly! (file:/G:/mafia/scripts/garbage-collector/garbo.js#25907)
at file:/G:/mafia/scripts/garbage-collector/garbo.js:25907 (_dress)
at file:/G:/mafia/scripts/garbage-collector/garbo.js:25905 (_dress)
at file:/G:/mafia/scripts/garbage-collector/garbo.js:25974 (dress)
at file:/G:/mafia/scripts/garbage-collector/garbo.js:26496 (dress)
at file:/G:/mafia/scripts/garbage-collector/garbo.js:45874
at file:/G:/mafia/scripts/garbage-collector/garbo.js:45936 (dress)
at file:/G:/mafia/scripts/garbage-collector/garbo.js:26372 (execute)
at file:/G:/mafia/scripts/garbage-collector/garbo.js:45874
at file:/G:/mafia/scripts/garbage-collector/garbo.js:45956 (execute)
at file:/G:/mafia/scripts/garbage-collector/garbo.js:26312 (run)
at file:/G:/mafia/scripts/garbage-collector/garbo.js:45999 (runQuests)
at file:/G:/mafia/scripts/garbage-collector/garbo.js:46005 (runSafeGarboQuests)
at file:/G:/mafia/scripts/garbage-collector/garbo.js:46013 (dailySetup)
at file:/G:/mafia/scripts/garbage-collector/garbo.js:46445
at file:/G:/mafia/scripts/garbage-collector/garbo.js:37467 (withClan)
at file:/G:/mafia/scripts/garbage-collector/garbo.js:37461 (withVIPClan)
at file:/G:/mafia/scripts/garbage-collector/garbo.js:46435
at file:/G:/mafia/scripts/garbage-collector/garbo.js:37446 (withStash)
at file:/G:/mafia/scripts/garbage-collector/garbo.js:46434 (main)
ianknowles commented 1 month ago

Also extends to TT adventures

Executing Daily/Check Neverending Party Quest
Autoattack is disabled.
Preference lastAdventure changed from Barf Mountain to The Neverending Party
Preference nextAdventure changed from None to The Neverending Party

[955] The Neverending Party
Preference lastEncounter changed from The Mad Tea Party to Even Tamer Than Usual
Encounter: Even Tamer Than Usual
Submitting option 2 for choice 942
Encounter: Even Tamer Than Usual

Executing Daily/Check Barf Mountain Quest
Autoattack is disabled.

Visiting the Employee Assignment Kiosk

Executing Daily/Configure Snojo
Autoattack is disabled.

Visiting Snojo Control Console
Submitting option 2 for choice 942
Encounter: Even Tamer Than Usual

Executing Daily/Closet Items
Autoattack is disabled.
You are currently in a choice.

Executing Daily/Volcano Quest
Autoattack is disabled.
Checking volcano quest

Visiting The WLF Bunker

Executing Daily/Free Volcoino
Maximizer: disco style
Maximizing (1st time may take a while)...
280 combinations checked, best score 6.00
You are currently in a choice.
You are currently in a choice.
Updating inventory...
Preference _concoctionDatabaseRefreshes changed from 164 to 165
Maximizer: disco style
Maximizing...
280 combinations checked, best score 6.00
You are currently in a choice.
You are currently in a choice.
logPreferenceChangeFilter => _beachCombing,_beachLayout,_beachMinutes,_lastCombatStarted,combo_lastTileCombed,garboEmbezzlerCount,garboEmbezzlerDate,garboEmbezzlerSources,garboTargetCount,garboTargetDate,garboTargetSources,libram_savedMacro,maximizerMRUList,spadingData,testudinalTeachings
Preference logPreferenceChangeFilter changed from _beachCombing,_beachLayout,_beachMinutes,_lastCombatStarted,combo_lastTileCombed,garboEmbezzlerCount,garboEmbezzlerDate,garboEmbezzlerSources,libram_savedMacro,maximizerMRUList,spadingData,testudinalTeachings to _beachCombing,_beachLayout,_beachMinutes,_lastCombatStarted,combo_lastTileCombed,garboEmbezzlerCount,garboEmbezzlerDate,garboEmbezzlerSources,garboTargetCount,garboTargetDate,garboTargetSources,libram_savedMacro,maximizerMRUList,spadingData,testudinalTeachings
hpAutoRecoveryTarget => 0
Preference hpAutoRecoveryTarget changed from 0.0 to 0
mpAutoRecoveryTarget => 0
Preference mpAutoRecoveryTarget changed from 0.0 to 0
Preference customCombatScript changed from grimoire_macro to garbo
CCS set to garbo
Autoattack is disabled.
No spading data has been collected yet. Please try again later.
logPreferenceChangeFilter => _beachCombing,_beachLayout,_beachMinutes,_lastCombatStarted,combo_lastTileCombed,garboEmbezzlerCount,garboEmbezzlerDate,garboEmbezzlerSources,libram_savedMacro,maximizerMRUList,spadingData,testudinalTeachings
Preference logPreferenceChangeFilter changed from _beachCombing,_beachLayout,_beachMinutes,_lastCombatStarted,combo_lastTileCombed,garboEmbezzlerCount,garboEmbezzlerDate,garboEmbezzlerSources,garboTargetCount,garboTargetDate,garboTargetSources,libram_savedMacro,maximizerMRUList,spadingData,testudinalTeachings to _beachCombing,_beachLayout,_beachMinutes,_lastCombatStarted,combo_lastTileCombed,garboEmbezzlerCount,garboEmbezzlerDate,garboEmbezzlerSources,libram_savedMacro,maximizerMRUList,spadingData,testudinalTeachings
Preference customCombatScript changed from garbo to default
CCS set to default
hpAutoRecoveryTarget => 1
Preference hpAutoRecoveryTarget changed from 0.0 to 1
mpAutoRecoveryTarget => 0.65
Preference mpAutoRecoveryTarget changed from 0.0 to 0.65
valueOfInventory => 2
Preference valueOfInventory changed from 2.0 to 2
choiceAdventure1108 => 1
Preference choiceAdventure1108 changed from 3 to 1
Preference garboTargetDate changed from 20241009 to 20241010
Preference garboTargetCount changed from 9 to 0
Preference garboTargetSources changed from Unknown Source,Backup,Unknown Source,Unknown Source,Unknown Source,Unknown Source,Unknown Source,Unknown Source,Unknown Source to
You fought 0 Witchess Bishop at the beginning of the day, and an additional 0 digitized Witchess Bishop throughout the day. Good work, probably!
Including this, you have fought 0 across all ascensions today
Preference garboResultsDate changed from 20241009 to 20241010
Preference garboResultsMeat changed from 3346980 to 0
Preference garboResultsItems changed from 5623420 to 0
Preference garboResultsTurns changed from 1158 to 0
Extreme Items:
3 FunFunds™ worth 15660 total
1 mini kiwi aioli worth 5552 total
2 sand dollar worth 898 total
-1 pocket wish worth -44099 total
-6 Yeast of Boris worth -37800 total
-7 transdermal smoke patch worth -28898 total
Preference garboResultsMeat changed from 0 to -394299
Preference garboResultsItems changed from 0 to -169283
This run of garbo, across 0 turns you generated -563,582 meat, with -394,299 raw meat and -169,283 from items
So far today, across 0 turns you generated -563,582 meat, with -394,299 raw meat and -169,283 from items
JavaScript exception: Error: Failed to maximize properly! (file:/G:/mafia/scripts/garbage-collector/garbo.js#25907)
at file:/G:/mafia/scripts/garbage-collector/garbo.js:25907 (_dress)
at file:/G:/mafia/scripts/garbage-collector/garbo.js:25905 (_dress)
at file:/G:/mafia/scripts/garbage-collector/garbo.js:25974 (dress)
at file:/G:/mafia/scripts/garbage-collector/garbo.js:26496 (dress)
at file:/G:/mafia/scripts/garbage-collector/garbo.js:45874
at file:/G:/mafia/scripts/garbage-collector/garbo.js:45936 (dress)
at file:/G:/mafia/scripts/garbage-collector/garbo.js:26372 (execute)
at file:/G:/mafia/scripts/garbage-collector/garbo.js:45874
at file:/G:/mafia/scripts/garbage-collector/garbo.js:45956 (execute)
at file:/G:/mafia/scripts/garbage-collector/garbo.js:26312 (run)
at file:/G:/mafia/scripts/garbage-collector/garbo.js:45999 (runQuests)
at file:/G:/mafia/scripts/garbage-collector/garbo.js:46005 (runSafeGarboQuests)
at file:/G:/mafia/scripts/garbage-collector/garbo.js:46013 (dailySetup)
at file:/G:/mafia/scripts/garbage-collector/garbo.js:46445
at file:/G:/mafia/scripts/garbage-collector/garbo.js:37467 (withClan)
at file:/G:/mafia/scripts/garbage-collector/garbo.js:37461 (withVIPClan)
at file:/G:/mafia/scripts/garbage-collector/garbo.js:46435
at file:/G:/mafia/scripts/garbage-collector/garbo.js:37446 (withStash)
at file:/G:/mafia/scripts/garbage-collector/garbo.js:46434 (main)