loathers / garbage-collector

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

[BUG] Garbo Failing to determine diet - Invalid weight -1 for august scepter #1865

Closed dizzydis closed 4 months ago

dizzydis commented 4 months ago

Before Reporting Ensure that KoLMafia and garbo are both up to date before reporting a bug. If you have installed mafia in a weird or non-standard way, let us know any details about that here. But also, if you've installed mafia in a weird or non-standard way, I'm telling you right now that that's your bug. Also, check existing github issues to see if this has already been reported. If it has, consider leaving a comment with any additional information you can give on that issue, instead of making a new one.

Also, read this.

Describe the bug When running garbo, it errors with the message: Error: Invalid weight -1 for august scepter

To Reproduce Steps to reproduce the behavior: Unsure - for me I just run garbo. VOA is set to 6100.

Expected behavior Garbo runs

Session Log

> garbo

Using adventure value 6100.
Local Version: 231866834f58629a0f692dcca58257c7b908be35 (built from main@2909e3ba66d60e0896c8758ac28b6e23347e9d3a)
Garbo is up to date!
Scanning store inventories...
Page (2 of 267)...
Page (3 of 267)...
Page (4 of 267)...
Page (5 of 267)...
Page (6 of 267)...
Page (7 of 267)...
Page (8 of 267)...
Page (9 of 267)...
Page (10 of 267)...
Page (11 of 267)...
Page (12 of 267)...
Page (13 of 267)...
Page (14 of 267)...
Page (15 of 267)...
Page (16 of 267)...
Page (17 of 267)...
Page (18 of 267)...
Page (19 of 267)...
Page (20 of 267)...
Page (21 of 267)...
Page (22 of 267)...
Page (23 of 267)...
Page (24 of 267)...
Page (25 of 267)...
Page (26 of 267)...
Page (27 of 267)...
Page (28 of 267)...
Page (29 of 267)...
Page (30 of 267)...
Page (31 of 267)...
Page (32 of 267)...
Page (33 of 267)...
Page (34 of 267)...
Page (35 of 267)...
Page (36 of 267)...
Page (37 of 267)...
Page (38 of 267)...
Page (39 of 267)...
Page (40 of 267)...
Page (41 of 267)...
Page (42 of 267)...
Page (43 of 267)...
Page (44 of 267)...
Page (45 of 267)...
Page (46 of 267)...
Page (47 of 267)...
Page (48 of 267)...
Page (49 of 267)...
Page (50 of 267)...
Page (51 of 267)...
Page (52 of 267)...
Page (53 of 267)...
Page (54 of 267)...
Page (55 of 267)...
Page (56 of 267)...
Page (57 of 267)...
Page (58 of 267)...
Page (59 of 267)...
Page (60 of 267)...
Page (61 of 267)...
Page (62 of 267)...
Page (63 of 267)...
Page (64 of 267)...
Page (65 of 267)...
Page (66 of 267)...
Page (67 of 267)...
Page (68 of 267)...
Page (69 of 267)...
Page (70 of 267)...
Page (71 of 267)...
Page (72 of 267)...
Page (73 of 267)...
Page (74 of 267)...
Page (75 of 267)...
Page (76 of 267)...
Page (77 of 267)...
Page (78 of 267)...
Page (79 of 267)...
Page (80 of 267)...
Page (81 of 267)...
Page (82 of 267)...
Page (83 of 267)...
Page (84 of 267)...
Page (85 of 267)...
Page (86 of 267)...
Page (87 of 267)...
Page (88 of 267)...
Page (89 of 267)...
Page (90 of 267)...
Page (91 of 267)...
Page (92 of 267)...
Page (93 of 267)...
Page (94 of 267)...
Page (95 of 267)...
Page (96 of 267)...
Page (97 of 267)...
Page (98 of 267)...
Page (99 of 267)...
Page (100 of 267)...
Page (101 of 267)...
Page (102 of 267)...
Page (103 of 267)...
Page (104 of 267)...
Page (105 of 267)...
Page (106 of 267)...
Page (107 of 267)...
Page (108 of 267)...
Page (109 of 267)...
Page (110 of 267)...
Page (111 of 267)...
Page (112 of 267)...
Page (113 of 267)...
Page (114 of 267)...
Page (115 of 267)...
Page (116 of 267)...
Page (117 of 267)...
Page (118 of 267)...
Page (119 of 267)...
Page (120 of 267)...
Page (121 of 267)...
Page (122 of 267)...
Page (123 of 267)...
Page (124 of 267)...
Page (125 of 267)...
Page (126 of 267)...
Page (127 of 267)...
Page (128 of 267)...
Page (129 of 267)...
Page (130 of 267)...
Page (131 of 267)...
Page (132 of 267)...
Page (133 of 267)...
Page (134 of 267)...
Page (135 of 267)...
Page (136 of 267)...
Page (137 of 267)...
Page (138 of 267)...
Page (139 of 267)...
Page (140 of 267)...
Page (141 of 267)...
Page (142 of 267)...
Page (143 of 267)...
Page (144 of 267)...
Page (145 of 267)...
Page (146 of 267)...
Page (147 of 267)...
Page (148 of 267)...
Page (149 of 267)...
Page (150 of 267)...
Page (151 of 267)...
Page (152 of 267)...
Page (153 of 267)...
Page (154 of 267)...
Page (155 of 267)...
Page (156 of 267)...
Page (157 of 267)...
Page (158 of 267)...
Page (159 of 267)...
Page (160 of 267)...
Page (161 of 267)...
Page (162 of 267)...
Page (163 of 267)...
Page (164 of 267)...
Page (165 of 267)...
Page (166 of 267)...
Page (167 of 267)...
Page (168 of 267)...
Page (169 of 267)...
Page (170 of 267)...
Page (171 of 267)...
Page (172 of 267)...
Page (173 of 267)...
Page (174 of 267)...
Page (175 of 267)...
Page (176 of 267)...
Page (177 of 267)...
Page (178 of 267)...
Page (179 of 267)...
Page (180 of 267)...
Page (181 of 267)...
Page (182 of 267)...
Page (183 of 267)...
Page (184 of 267)...
Page (185 of 267)...
Page (186 of 267)...
Page (187 of 267)...
Page (188 of 267)...
Page (189 of 267)...
Page (190 of 267)...
Page (191 of 267)...
Page (192 of 267)...
Page (193 of 267)...
Page (194 of 267)...
Page (195 of 267)...
Page (196 of 267)...
Page (197 of 267)...
Page (198 of 267)...
Page (199 of 267)...
Page (200 of 267)...
Page (201 of 267)...
Page (202 of 267)...
Page (203 of 267)...
Page (204 of 267)...
Page (205 of 267)...
Page (206 of 267)...
Page (207 of 267)...
Page (208 of 267)...
Page (209 of 267)...
Page (210 of 267)...
Page (211 of 267)...
Page (212 of 267)...
Page (213 of 267)...
Page (214 of 267)...
Page (215 of 267)...
Page (216 of 267)...
Page (217 of 267)...
Page (218 of 267)...
Page (219 of 267)...
Page (220 of 267)...
Page (221 of 267)...
Page (222 of 267)...
Page (223 of 267)...
Page (224 of 267)...
Page (225 of 267)...
Page (226 of 267)...
Page (227 of 267)...
Page (228 of 267)...
Page (229 of 267)...
Page (230 of 267)...
Page (231 of 267)...
Page (232 of 267)...
Page (233 of 267)...
Page (234 of 267)...
Page (235 of 267)...
Page (236 of 267)...
Page (237 of 267)...
Page (238 of 267)...
Page (239 of 267)...
Page (240 of 267)...
Page (241 of 267)...
Page (242 of 267)...
Page (243 of 267)...
Page (244 of 267)...
Page (245 of 267)...
Page (246 of 267)...
Page (247 of 267)...
Page (248 of 267)...
Page (249 of 267)...
Page (250 of 267)...
Page (251 of 267)...
Page (252 of 267)...
Page (253 of 267)...
Page (254 of 267)...
Page (255 of 267)...
Page (256 of 267)...
Page (257 of 267)...
Page (258 of 267)...
Page (259 of 267)...
Page (260 of 267)...
Page (261 of 267)...
Page (262 of 267)...
Page (263 of 267)...
Page (264 of 267)...
Page (265 of 267)...
Page (266 of 267)...
Page (267 of 267)...
Search complete.
Updating mallprices.txt with 7899 prices.
Updating display case...
Collecting garbage!

Autoattack is disabled.
Preference customCombatScript changed from Weapon Only to garbo
CCS set to garbo
hpAutoRecoveryTarget => 0
Preference hpAutoRecoveryTarget changed from 0.5 to 0
mpAutoRecoveryTarget => 0
Preference mpAutoRecoveryTarget changed from 1.0 to 0
hpAutoRecoveryItems => medicinal herb's medicinal herbs;scroll of drastic healing;cannelloni cocoon;tongue of the walrus;lasagna bandages
Preference hpAutoRecoveryItems changed from rest at your campground;medicinal herb's medicinal herbs;scroll of drastic healing;cannelloni cocoon;tongue of the walrus;lasagna bandages to medicinal herb's medicinal herbs;scroll of drastic healing;cannelloni cocoon;tongue of the walrus;lasagna bandages
spadingScript => excavator.js
Preference spadingScript changed from to excavator.js
Refreshing stash contents...
Stash list retrieved.
Pulling items from stash...
You acquire an item: repaid diaper
Took repaid diaper from stash
Refreshing stash contents...
Stash list retrieved.
Refreshing stash contents...
Stash list retrieved.
Refreshing stash contents...
Stash list retrieved.
Refreshing stash contents...
Stash list retrieved.
Skipping fancy chocolate sculpture; too expensive (78000 > 35500).
Dropping items into stash...
Returned repaid diaper to stash
No spading data has been collected yet. Please try again later.
Preference customCombatScript changed from garbo to Weapon Only
CCS set to Weapon Only
hpAutoRecoveryTarget => 0.5
Preference hpAutoRecoveryTarget changed from 0.0 to 0.5
mpAutoRecoveryTarget => 1
Preference mpAutoRecoveryTarget changed from 0.0 to 1
hpAutoRecoveryItems => rest at your campground;medicinal herb's medicinal herbs;scroll of drastic healing;cannelloni cocoon;tongue of the walrus;lasagna bandages
Preference hpAutoRecoveryItems changed from medicinal herb's medicinal herbs;scroll of drastic healing;cannelloni cocoon;tongue of the walrus;lasagna bandages to rest at your campground;medicinal herb's medicinal herbs;scroll of drastic healing;cannelloni cocoon;tongue of the walrus;lasagna bandages
valueOfInventory => 2
Preference valueOfInventory changed from 2.0 to 2
spadingScript =>
Preference spadingScript changed from excavator.js to
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 -159,765 meat, with -38,652 raw meat and -121,113 from items
JavaScript exception: Error: Invalid weight -1 for august scepter (file:.../scripts/garbage-collector/garbo.js#19288)
at file:.../scripts/garbage-collector/garbo.js:19288
at file:.../scripts/garbage-collector/garbo.js:19285 (knapsack)
at file:.../scripts/garbage-collector/garbo.js:19922 (planOrgan)
at file:.../scripts/garbage-collector/garbo.js:19939
at file:.../scripts/garbage-collector/garbo.js:19937 (planOrgans)
at file:.../scripts/garbage-collector/garbo.js:19962 (planOrgansWithTrials)
at file:.../scripts/garbage-collector/garbo.js:19987 (planOrgansWithTrials)
at file:.../scripts/garbage-collector/garbo.js:19987 (planOrgansWithTrials)
at file:.../scripts/garbage-collector/garbo.js:19987 (planOrgansWithTrials)
at file:.../scripts/garbage-collector/garbo.js:19987 (planOrgansWithTrials)
at file:.../scripts/garbage-collector/garbo.js:19622 (planDiet)
at file:.../scripts/garbage-collector/garbo.js:20169 (plan)
at file:.../scripts/garbage-collector/garbo.js:32974
at file:.../scripts/garbage-collector/garbo.js:32966 (balanceMenu)
at file:.../scripts/garbage-collector/garbo.js:32993
at file:.../scripts/garbage-collector/garbo.js:33267
at file:.../scripts/garbage-collector/garbo.js:40934 (withClan)
at file:.../scripts/garbage-collector/garbo.js:40928 (withVIPClan)
at file:.../scripts/garbage-collector/garbo.js:33235 (runDiet)
at file:.../scripts/garbage-collector/garbo.js:49270
at file:.../scripts/garbage-collector/garbo.js:40934 (withClan)
at file:.../scripts/garbage-collector/garbo.js:40928 (withVIPClan)
at file:.../scripts/garbage-collector/garbo.js:49264
at file:.../scripts/garbage-collector/garbo.js:40913 (withStash)
at file:.../scripts/garbage-collector/garbo.js:49263 (main)

Additional context First time seeing this. Noticed there was a libram update to Garbo - and I see this check occurs in knapsack. Autoscend finished a HC Standard S run, I pulled everything from Hangks, updated all scripts and ran garbo. Before submitting the bug, I also made sure Mafia was up-to-date. Encountered this on both versions:

I did get the new IOTM, bound it, and used it earlier before kicking off autoscend for the day.

capncastom commented 4 months ago

my version of this error is:

JavaScript exception: Error: Invalid weight -1 for synthetic dog hair pill

Encountered when already full and re-running the script. It was running just fine today since this morning prior to git update I ran moments ago.

Running garbo nodiet seems to avoid the issue

WCandy8 commented 4 months ago

I had the same error message as OP, then filled up on everything (food/drink/spleen), now get this message

JavaScript exception: Error: Invalid weight -1 for distention pill

Arashmin commented 4 months ago

Arashmin_20240502.txt for session log with this issue.

Even if I try to put away all items that can potentially modify my diet into my collection case, I then start getting the negative weight error on cuppa Voraci tea, since those are able to be purchased and used - never mind that I did use one in my diet already.

shavbi commented 4 months ago

my version is:

JavaScript exception: Error: Invalid weight -1 for designer sweatpants

gausie commented 4 months ago

Fixed by https://github.com/loathers/garbage-collector/pull/1867