Bug - Fixed Character Pane intermittently doesn't display

Darzil

Developer
Worked for me today. I noticed that the displayed stats didn't include the Muscle I'd just gained, so I guess the character pane isn't updating after the automation.
 

Veracity

Developer
Staff member
Huh. I just tried this and, indeed - the charpane did not update. I'll turn on debug logging and see what's happening.

Edit: in the final response text of the choice chain, I see a reference to charpane.php, which should be enough for the browser to request a refresh. And I do see a charpane refresh, but it is a CharPaneRequest, not a RelayRequest, so it looks like it was requested by KoLmafia, not the browser. And, in fact, the green sidepane has a correctly updated adventure count and stats, but the Browser's charpane is not updated.

Edit 2: analysis:
I click "Go to Goal". The Browser submits:

POST /KoLmafia/specialCommand?cmd=choice-goal&pwd=xxx HTTP/1.1

We respond:

PHP:
<html><head><meta http-equiv="refresh" content="1; URL=/KoLmafia/specialCommand?cmd=wait&pwd=xxx"></head><body><a href="/KoLmafia/specialCommand?cmd=wait&pwd=xxx">Automating (see CLI for details, click to refresh)...</a><p></p></body></html>

We execute the "choice-goal" command, which executes the choice chain using ChoiceManager.CHOICE_HANDLER (a PasswordHashRequest)

class net.sourceforge.kolmafia.request.PasswordHashRequest
Requesting: http://www.kingdomofloathing.com/choice.php?whichchoice=91&option=1&pwd
Retrieved: http://www.kingdomofloathing.com/choice.php?whichchoice=91&option=1&pwd
class net.sourceforge.kolmafia.request.PasswordHashRequest
Requesting: http://www.kingdomofloathing.com/choice.php?whichchoice=92&option=2&pwd
Retrieved: http://www.kingdomofloathing.com/choice.php?whichchoice=92&option=2&pwd
class net.sourceforge.kolmafia.request.PasswordHashRequest
Requesting: http://www.kingdomofloathing.com/choice.php?whichchoice=97&option=2&pwd
Retrieved: http://www.kingdomofloathing.com/choice.php?whichchoice=97&option=2&pwd
class net.sourceforge.kolmafia.request.PasswordHashRequest
Requesting: http://www.kingdomofloathing.com/choice.php?whichchoice=101&option=3&pwd

Browser submits:

GET /KoLmafia/specialCommand?cmd=wait&pwd=xxx HTTP/1.1

We respond:

PHP:
<html><head><meta http-equiv="refresh" content="1; URL=/KoLmafia/specialCommand?cmd=wait&pwd=xxx"></head><body><a href="/KoLmafia/specialCommand?cmd=wait&pwd=xxx">Automating (see CLI for details, click to refresh)...</a><p></p></body></html>

Retrieved: http://www.kingdomofloathing.com/choice.php?whichchoice=101&option=3&pwd

This contains the final result and a call to charpane.php

PHP:
<script language=Javascript><!--if (parent.frames.length == 0) location.href="game.php";top.charpane.location.href="charpane.php";//--></script>

Processing results...
Parsing result: You gain 300 Strongness
You gain 300 Strongness
Processing result: Substats: 300 / 0 / 0

We submit our own charpane request

class net.sourceforge.kolmafia.request.CharPaneRequest
Requesting: http://www.kingdomofloathing.com/charpane.php
Retrieved: http://www.kingdomofloathing.com/charpane.php

The green sidepane and the gCLI are now updated with the results of the choice chain

The Browser submits:

GET /KoLmafia/specialCommand?cmd=wait&pwd=xxx HTTP/1.1

We reply with the special command response. In it, I see this:

PHP:
<script language=Javascript><!--if (parent.frames.length == 0) location.href="/game.php";top.charpane.location.href="/charpane.phpsrc="http://images.kingdomofloathing.com/scripts/jquery-1.5.1.jssrc="http://images.kingdomofloathing.com/scripts/keybinds.min.2.jssrc="http://images.kingdomofloathing.com/scripts/window.20111231.jssrc="http://images.kingdomofloathing.com/scripts/pop_query.20090915.jshref="http://images.kingdomofloathing.com/styles.css";//--></script>

That's pretty corrupted.
 
Last edited:
Top