Bug - Cannot Reproduce Mafia can't find "sweat out"

devjoe

New member
Daily build 28541.
This is part of a personal .ash script that has worked for ages, and it worked yesterday in the same daily build. It's run after doing various morning prep that includes preparing the designer sweatpants, usually to 100 sweat:

boolean doCLI(string cmd)
{
try{ cli_execute(cmd); }
finally {return true;}
return false;
}
...
doCLI("outfit barfsweat");
doCLI("familiar jill-of-all-trades");
doCLI("equip familiar flaming familiar doppelganger");
doCLI("bjornify coffee pixie");
if (get_property("sweat").to_int()>=75) {
if (my_mp()<50) { use(1, $item[magical mystery juice]); }
doCLI("cast ode to booze");
doCLI("cast sweat out");
doCLI("cast sweat out");
doCLI("cast sweat out");
doCLI("acquire perfect negroni");
doCLI("drink perfect negroni");
doCLI("outfit barf");
doCLI("eat affirmation cookie");
print("Finished consuming. Finish barf fights.");
} else {
print("NOT ENOUGH SWEAT! CURRENT SWEAT LEVEL");
print(get_property("sweat"));
print("Do barf adventures until you have 75 and then latedrink.");
}

Today:
Could not find a known, usable skill of yours uniquely matching "sweat out"
Could not find a known, usable skill of yours uniquely matching "sweat out"
Could not find a known, usable skill of yours uniquely matching "sweat out"

And then I aborted the drinking.
Immediately afterward in the chat, "/cast sweat out" three times worked.
 
Same. Been running r28541 for a week so I expect this is caused by KoL.
1748453549490.png

Code I was running is

Code:
    while (my_inebriety() > 0 && get_property("sweat").to_int() > 24 && get_property("_sweatOutSomeBoozeUsed").to_int() < 3) {
      use_skill(1, $skill[Sweat Out Some Booze]);
    }
 
Same, except not a .ash script. /cast sweat manually typed into the gCLI did work, though.
Fails for me


Code:
> cast 3 sweat out

Could not find a known, usable skill of yours uniquely matching "3 sweat out"
Putting on designer sweatpants...
Equipment changed.

> cast 3 sweat out

Could not find a known, usable skill of yours uniquely matching "3 sweat out"
 
Fails for me


Code:
> cast 3 sweat out

Could not find a known, usable skill of yours uniquely matching "3 sweat out"
Putting on designer sweatpants...
Equipment changed.

> cast 3 sweat out

Could not find a known, usable skill of yours uniquely matching "3 sweat out"
snooty was talking about "/cast", which just sends the chat macro straight to kol; the cast cli command is indeed failing for me as well, unable to match a skill even when I just do "cast sweat out some booze"

EDIT: as another data point, I didn't encounter this post-ascension.
 
Last edited:
Today my same script didn't have any problem casting sweat out. Don't know why this bug is so off-and-on.
 
It appears that this was a KoL thing that got fixed as this is no longer giving errors, marking as closed.
 
I do not understand this issue, but for now you can get around it by using a visit_url() instead of using the Mafia skill command

So use
Code:
visit_url("runskillz.php?action=Skillz&quantity=1&whichskill="+to_int($skill[Sweat Out Some Booze]));

Instead of
Code:
use_skill(1,$skill[Sweat Out Some Booze]);
 
Had the same issue as well on 28717. It seems to be looking for "1 Sweat Out Some Booze." Using older version of mafia (28714) had no issues.
 
Had the same issue as well on 28717. It seems to be looking for "1 Sweat Out Some Booze." Using older version of mafia (28714) had no issues.

I looked at what was changed since 28714 and explaining how any of those changes could have effected this is beyond me.

If there are git hosted scripts involved then perhaps changing how the scripts are fetched changed a script.

There is a daily preference that is used to limit casts to 3. If a preference file got corrupted that might be a factor, at least until mafia tried to reset it after rollover. I think there is also one dealing with sweat level.

"1 Sweat Out Some Booze." makes me wonder if there is some fuzzy matching going on and Sweat no longer identifies a unique skill.

I'm clueless but sometimes my musings trigger something for someone else.
 
I think this was a KoL issue, not a Mafia issue.
With r28715 it did not work this morning.
Logging out and logging back in this afternoon casting those sweat skills work fine. <shrug>
 
I will run a debugger against it in a little and try to see if I can find anything out additional and post the results here (if the bug occurs)
 
Yeah same issue using 28717 (that's the 5th time using this version I had the error). On version 28714 I had no issues.
Sweatpants have 76% booze, and skill is available.

DEBUG below:

class net.sourceforge.kolmafia.request.ApiRequest
Connecting to api.php...

Requesting: https://www.kingdomofloathing.com/api.php?what=status&for=KoLmafia
4 request properties
Field: Accept-Encoding = [gzip]
Field: Content-Type = [application/x-www-form-urlencoded]
Field: Cookie = [PHPSESSID=OMITTED; AWSALB=lnH2dzSt73CX8fW8i3MZC8HJbncHJZ6k1qXlWko9Sey0DgNmfgYqIMhP1a/xl7I1ot7h9qFc2tioCOYE/96mjL/yDLxALKxGkIFfHJ9PNdStmmroEJ610el/CWsf; AWSALBCORS=lnH2dzSt73CX8fW8i3MZC8HJbncHJZ6k1qXlWko9Sey0DgNmfgYqIMhP1a/xl7I1ot7h9qFc2tioCOYE/96mjL/yDLxALKxGkIFfHJ9PNdStmmroEJ610el/CWsf]
Field: User-Agent = [KoLmafia r28717]

Retrieving server reply...

Retrieved: https://www.kingdomofloathing.com/api.php?what=status&for=KoLmafia
9 header fields
Field: :status = [200]
Field: cache-control = [no-store, no-cache, must-revalidate, post-check=0, pre-check=0]
Field: content-type = [application/json; charset=utf-8]
Field: date = [Tue, 23 Sep 2025 22:07:40 GMT]
Field: expires = [Thu, 19 Nov 1981 08:52:00 GMT]
Field: pragma = [no-cache]
Field: server = [nginx/1.18.0]
Field: set-cookie = [AWSALB=dzcYH0yzoVqh+NJarS/0kx9R4aI1m9/dSUdUjMsm2FKOkMESy7zCvh45ROuwOh5TLb3/MZCOynZoAjvdIzFUiM6YILRVIXWWELrsAgynCgZvnmrLIBc7TYIbW3FQ; Expires=Tue, 30 Sep 2025 22:07:40 GMT; Path=/, AWSALBCORS=dzcYH0yzoVqh+NJarS/0kx9R4aI1m9/dSUdUjMsm2FKOkMESy7zCvh45ROuwOh5TLb3/MZCOynZoAjvdIzFUiM6YILRVIXWWELrsAgynCgZvnmrLIBc7TYIbW3FQ; Expires=Tue, 30 Sep 2025 22:07:40 GMT; Path=/; SameSite=None; Secure]
Field: x-powered-by = [PHP/5.3.29]

Retrieving server reply
ResponseText has 4005 characters.
{"playerid":"1534471","name":"Crimbo Spirit","hardcore":"0","ascensions":"8","path":"0","sign":"Opossum","roninleft":"0","casual":"0","drunk":"19","full":"14","turnsplayed":"80041","familiar":"52","hp":"1217","mp":"404","meat":"55682005","adventures":"438","level":"29","rawmuscle":"569265","rawmysticality":"681144","rawmoxie":"457065","basemuscle":"754","basemysticality":"825","basemoxie":"676","familiarexp":"43","class":"3","lastadv":{"id":"442","name":"Barf Mountain","link":"adventure.php?snarfblat=442","container":"place.php?whichplace=airport_stench"},"title":"29","pvpfights":"101","maxhp":2238,"maxmp":1268,"spleen":"14","muscle":1787,"mysticality":845,"moxie":2202,"famlevel":36,"locked":false,"limitmode":0,"daysthisrun":"31","equipment":{"hat":"10804","shirt":"9960","pants":"8229","weapon":"10920","offhand":"8435","acc1":"11415","acc2":"5460","acc3":"4846","familiarequip":"7581","fakehands":0,"cardsleeve":0},"stickers":[0,0,0],"soulsauce":0,"fury":0,"pastathrall":"6","pastathralllevel":10,"folder_holder":["00","00","00","00","00"],"eleronkey":"9ca598b358cb84e2d49befd46c9660f4","flag_config":{"noinvpops":0,"fastdecking":0,"seenewaccts":0,"modprotection":0,"devskills":0,"shortcharpane":0,"lazyinventory":0,"compactfights":0,"poppvpsearch":0,"questtracker":0,"charpanepvp":0,"australia":0,"fffights":0,"compactchar":0,"noframesize":0,"fullnesscounter":"1","nodevdebug":0,"noquestnudge":0,"nocalendar":"1","alwaystag":0,"clanlogins":0,"quickskills":0,"hprestorers":0,"hidejacko":0,"anchorshelf":0,"showoutfit":0,"wowbar":0,"swapfam":0,"hidefamfilter":0,"nonpixelimages":0,"invimages":0,"showhandedness":0,"acclinks":0,"invadvancedsort":0,"powersort":0,"autodiscard":0,"unfamequip":0,"invclose":0,"sellstuffugly":0,"oneclickcraft":0,"dontscroll":0,"multisume":0,"threecolinv":0,"profanity":0,"tc_updatetitle":0,"tc_alwayswho":0,"tc_times":0,"tc_combineallpublic":0,"tc_eventsactive":0,"tc_hidebadges":0,"tc_colortabs":0,"tc_modifierkey":0,"tc_tabsonbottom":0,"chatversion":0,"chatsize":0,"aabosses":0,"compacteffects":0,"slimhpmpdisplay":0,"ignorezonewarnings":"1","whichpenpal":0,"compactmanuel":0,"hideefarrows":0,"questtrackertiny":0,"questtrackerscroll":0,"disablelovebugs":0,"eternalmrj":0,"boringdarts":0,"nocyberview":0,"autoattack":0,"topmenu":0},"recalledskills":1,"freedralph":1,"mcd":"11","pwd":"dbdca41fd1c45d2563f6e271c3428fa8","rollover":1758684600,"turnsthisrun":9149,"familiar_wellfed":0,"intrinsics":[],"familiarpic":"ghobo","pathname":"","coolitems":"airport3,piraterealm,burningleaves,cyberrealm","daynumber":"8261","noncomforcers":[],"effects":{"a8b9e71de7ccf5a87e20ac8f29289238":["Kicked in the Sinuses",508,"horseradish","","2090"],"9538e8a3970b62c2d184c0517c1ab071":["Your Days Are Numbed","9","tvscreen","","2976"],"074e5435520828037e01f4059da13cf7":["Wreathed in Merriment","10","scook1","item:4906","76"],"4052b13b7b1351690476fc4f1ccd6025":["Friendly Chops","11","dsstache10","","2675"],"68f5db3381fc8c2ed57b23360bcd6331":["Bone Homie","20","skullicon","item:4757","788"],"f51578e6c4ff07634d3a21699d5cd38b":["How to Scam Tourists","33","book2","item:8208","1819"],"638c1fadfcec6c52ff921d5c1e7da66b":["Shadow Waters","34","shadowvenom","","2806"],"2f8fc15a821f5a33769bc2d36e07d055":["Carbonated","37","bubbles","","2746"],"aa4b43321ec247f1848c461c606b5432":["Pajama Party","40","atpants","","1822"],"9f03022717f7b13fef44b5dab8289bba":["Pretty Delicious","50","bbat_casserole","","2739"],"130015724843d272c093e0d86e16de80":["Red Menace","50","lavalamp","","1923"],"812f77b37b25d9d6826a3592ebdf3338":["Resined","85","al_resin","item:11349","2849"],"2d6d3ab04b40e1523aa9c716a04b3aab":["Leash of Linguini",1088,"string","skill:3010","16"],"e33d30b60699ac4c23024b93b06e5310":["Antiantifrozen","14916","celestoil","","2841"],"83695b70e0470a36125feca3198a16b4":["Sugar Rush",10,"hoppedup",null,17],"2d3e34beda54e4b52e1366d5aa78d540":["Inspired Chef",150,"bbat_bread",null,"2730"],"d06828cf01ba0801ac138a504c05eedc":["Lost Stomach","30","stomach","skill:7467","2831"]}}
Could not find a known, usable skill of yours uniquely matching "1 Sweat Out Some Booze"
Could not find a known, usable skill of yours uniquely matching "1 Sweat Out Some Booze"
Could not find a known, usable skill of yours uniquely matching "1 Sweat Out Some Booze"
 
Last edited:
And here is it working on 28714.

Requesting: https://www.kingdomofloathing.com/runskillz.php?action=Skillz&whichskill=7414&ajax=1&quantity=1&pwd
3 request properties
Field: Accept-Encoding = [gzip]
Field: Cookie = [PHPSESSID=OMITTED; AWSALB=pxj3cL/2vrDJX9hpC1+R7Ol/jaNK+YnYaQ4oeOJgVUbz482hW0nBPb9ThOzMtIOiIwS+Le8filscqsnfauAeU0AYzuuRYrzDKUXErZBxyYsYynMzlweFeRiqz7LE; AWSALBCORS=pxj3cL/2vrDJX9hpC1+R7Ol/jaNK+YnYaQ4oeOJgVUbz482hW0nBPb9ThOzMtIOiIwS+Le8filscqsnfauAeU0AYzuuRYrzDKUXErZBxyYsYynMzlweFeRiqz7LE]
Field: User-Agent = [KoLmafia r28714]

Retrieving server reply...

Retrieved: https://www.kingdomofloathing.com/runskillz.php?action=Skillz&whichskill=7414&ajax=1&quantity=1&pwd
11 header fields
Field: :status = [200]
Field: cache-control = [no-store, no-cache, must-revalidate, post-check=0, pre-check=0]
Field: content-encoding = [gzip]
Field: content-type = [text/html; charset=UTF-8]
Field: date = [Tue, 23 Sep 2025 22:22:05 GMT]
Field: expires = [Thu, 19 Nov 1981 08:52:00 GMT]
Field: pragma = [no-cache]
Field: server = [nginx/1.8.1]
Field: set-cookie = [AWSALB=+0hcY8N8QjCpPUCWlLg+TDDPkbspG2p6v1xxI57ka1O/1eireKxo1r7KyeC+/ZymaOzxAlEB70Ri3+0ji5NFTnVucYLaNaOtCEIxBPJQUMf709KC0PWdfsiHFjDm; Expires=Tue, 30 Sep 2025 22:22:05 GMT; Path=/, AWSALBCORS=+0hcY8N8QjCpPUCWlLg+TDDPkbspG2p6v1xxI57ka1O/1eireKxo1r7KyeC+/ZymaOzxAlEB70Ri3+0ji5NFTnVucYLaNaOtCEIxBPJQUMf709KC0PWdfsiHFjDm; Expires=Tue, 30 Sep 2025 22:22:05 GMT; Path=/; SameSite=None; Secure]
Field: vary = [Accept-Encoding]
Field: x-powered-by = [PHP/5.3.29]

Retrieving server reply
ResponseText has 894 characters.
<script type="text/javascript">top.charpane.location.href="charpane.php";</script><script type="text/javascript">if (window.updateInv) updateInv([])</script><script type="text/javascript">if (!window.updateInv && parent.mainpane.updateInv) parent.mainpane.updateInv([])</script><center><table width=95% cellspacing=0 cellpadding=0><tr><td style="background-color: blue" align=center ><b style="color: white">Results:</b></td></tr><tr><td style="padding: 5px; border: 1px solid blue;"><center><table><tr><td>You run in place until you've sweated out some of the booze you drank earlier. The heat of this exertion causes a lot of sweat to evaporate from your pants.<center><table><tr><td>You lose 1 Drunkenness.</td></tr></table></center><center><table><tr><td>You get 25% less Sweaty.</td></tr></table></center></td></tr></table></center></td></tr><tr><td height=4></td></tr></table></center>
Processing results...
Parsing result: You lose 1 Drunkenness
You lose 1 Drunkenness
Processing result: Drunk: -1

Preference sweat changed from 51 to 26
Preference _sweatOutSomeBoozeUsed changed from 1 to 2
Sweat Out Some Booze was successfully cast.
class net.sourceforge.kolmafia.request.ApiRequest
Connecting to api.php...
 
if you can cast, you can use the chat command "/cast sweat out" to always cast it if KoL thinks you can.

Sometimes Mafia becomes of the opinion that you don't have the skill, for conditional skills -- I don't know what causes this.
 
A few days after the sweat skills were invisible to mafia last time the same thing happened to the skills from the cinch. Curiously, today I find the cinch skills are not castable by mafia. I too was unable to cast sweat skills a couple of days back, across several accounts, but didn't have anything useful to add so kept it to myself. Not sure how useful this observation is either, but there it is. A very weird bug.
 
Back
Top