Bug mcd command failing in gCLI

MCroft

Developer
Staff member
I think KoL has switched to not returning a reply when you change the ML with the mcd command.

Rich (BB code):
> mcd 9

Resetting mind control device...
You failed to set the mind control device

Rich (BB code):
> mcd 9

Resetting mind control device...
class net.sourceforge.kolmafia.request.MindControlRequest
Connecting to gnomes.php...

Requesting: https://www.kingdomofloathing.com/gnomes.php?action=changedial&whichlevel=9
4 request properties
Field: Accept-Encoding = [gzip]
Field: Content-Type = [application/x-www-form-urlencoded]
Field: Cookie = [PHPSESSID=OMITTED; AWSALB=...r; AWSALBCORS=...]
Field: User-Agent = [KoLmafia r27701-M]

Retrieving server reply...

Retrieved: https://www.kingdomofloathing.com/gnomes.php?action=changedial&whichlevel=9
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 = [Thu, 30 Nov 2023 16:19:42 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=...; Expires=Thu, 07 Dec 2023 16:19:42 GMT; Path=/, AWSALBCORS=...; Expires=Thu, 07 Dec 2023 16:19:42 GMT; Path=/; SameSite=None; Secure]
Field: vary = [Accept-Encoding]
Field: x-powered-by = [PHP/5.3.29]

Retrieving server reply
ResponseText has 0 characters.

Processing results...
You failed to set the mind control device


We are looking for a string, but getting back a 200 with an empty string. We do get this.level, so we could check that we were getting the value we set...
1701375860092.png
Java:
@Override
public void processResults() {
if (this.responseText.contains("the radio")
|| this.responseText.contains("You switch the dial")) {
KoLmafia.updateDisplay("Mind control device reset.");
KoLCharacter.setMindControlLevel(this.level);
} else {
KoLmafia.updateDisplay(MafiaState.ERROR, "You failed to set the mind control device");
}
}
 

MCroft

Developer
Staff member
On further review, I now think this happens when you use the Spoon to tune your sign after getting a MCD device in the store.

So, rare, but not impossible. I will experiment more with this the next time I ascend (after Crimbo).
 
Top