Bug - Fixed Not recognizing changes to familiar gear

Bale

Minion
I suspect that this problem derives from the recent change causing equipment not to be changed in mafia unless KoL's response tells you to change them. Note that familiar gear is changed although KoLmafia doesn't recognize that fact. KoLmafia recognizes the gear when I do a refresh status.

Important thing to note is that the following bug only occurs if the equip command is issued issued ChIT by my clicking on a link in the charpane which is <a href="/KoLmafia/sideCommand?cmd=equip+familiar+tiny+bowler&pwd=X">. I suspect that sideCommand simply doesn't check KoLmafia's returned page? Except that it works just fine for changing other equipment; only familiar gear changes are not recognized.

I'm attaching a debug log to help you figure it out although 95% of that debug log is just ChIT.

Code:
[COLOR="olive"]> equip familiar tiny bowler[/COLOR]

Putting on tiny bowler...
Equipment changed.

[COLOR="olive"]> ashq equipped_item($slot[familiar]).print()[/COLOR]

none

[COLOR="olive"]> refresh status[/COLOR]

Loading character status...

Name: bale
Class: Turtle Tamer

Lv: 12
HP: 454 / 464
MP: 32 / 199

Mus: 225 (127), tnp = 245
Mys: 108 (89), tnp = 130
Mox: 113 (89), tnp = 48

Advs: 140
Meat: 6,739

Full: 15 / 15
Drunk: 8 / 14
Spleen: 12 / 15

Requests complete.

[COLOR="olive"]> ashq equipped_item($slot[familiar]).print()[/COLOR]

tiny bowler
 

Attachments

  • DEBUG_20131114.zip
    397.5 KB · Views: 27
Last edited:

Veracity

Developer
Staff member
A sidecommand just turns into a CLI command, which executes requests and looks at responses as normal. Your sdecommand was the equivalent of this:

equip familiar tiny bowler

In fact, if you look at the debug log, you see exactly that:

> equip familiar tiny bowler

Putting on tiny bowler...

Requesting: http://www.kingdomofloathing.com/inv_equip.php?which=2&ajax=1&action=equip&whichitem=6702
Retrieved: http://www.kingdomofloathing.com/inv_equip.php?which=2&ajax=1&action=equip&whichitem=6702

HTML:
<script type="text/javascript">top.charpane.location.href="charpane.php";</script><script type="text/javascript">if (window.updateInv) updateInv({"6702":-1})</script><center><table  width=95%  cellspacing=0 cellpadding=0><tr><td style="color: white;" align=center bgcolor=blue><b>Results:</b></td></tr><tr><td style="padding: 5px; border: 1px solid blue;"><center><table><tr><td><p><center><table><tr><td align=right><img src='http://images.kingdomofloathing.com/itemimages/organgoblin.gif' class=hand style='vertical-align: middle'> Todd equips an item:</td><td><img style='vertical-align: middle' class=hand src='http://images.kingdomofloathing.com/itemimages/tinybowler.gif' onclick='descitem(631717654)'> <b>tiny bowler</b></td></tr></table></center><!-- slot: familiarequip --></td></tr></table></center></td></tr><tr><td height=4></td></tr></table></center>

Processing results...
Equipment changed.
 
Top