Batfellow problems

Ethelred

Member
After updating to KoLmafia-20246.jar, I started having problems with CheeseCookie's batfellow.ash script. Here's what I get when it finally gets to the final(?) battle with the Jokester:

Code:
{1 h. 59 m.} JokesterCo
Encounter: JokesterCo HQ
Encounter: JokesterCo HQ
Encounter: The Smokester, The Midnight Tokester
Encounter: The Smokester, The Midnight Tokester
Encounter: The Jokester
Round 0: Batfellow wins initiative!
Encounter: The Jokester
Bat action:::: fight.php?action=skill&whichskill=7261
Batction! kickball
Encounter: The Jokester
Encounter: The Jokester
Encounter: The Jokester
Encounter: The Jokester
Loading character status...
Retrieving character data...
charsheet.php: redirected to a fight page.
account_manageoutfits.php: redirected to a fight page.
familiar.php: redirected to a fight page.
Encounter: The Jokester
Encounter: The Jokester
Encounter: The Jokester
Encounter: The Jokester

Since I don't run batfellow.ash ash everyday, the problem may have started with an earlier mafia update. I looked thru the script casually, but my coding fu isn't strong enough to figure out where or how that battle is handled.

I finish the battle manually by using kickballs to defeat the Jokester, then click through the remaining choices to end the task. That makes it kind of slow and tedious. I would really appreciate any help/tips on how to fix this problem so I can return to letting mafia play the game for me. Thanks in advance.

Edit:
OS: Mac OS X Mojave 10.14
Java: java version "1.8.0_201"
 
Last edited:

xKiv

Active member
My batfellow installation is from svn://svn.code.sf.net/p/ccascend/code/batfellow

(ETA: and I have the same problem, which is a problem because I have dozens of magazines to go through and each takes many minutes of real time)
 
Last edited:

Veracity

Developer
Staff member
With a 15 MB DEBUG log, I see this:

Code:
Requesting: https://www.kingdomofloathing.com/choice.php?forceoption=0
{1 h. 25 m.} JokesterCo
Encounter: JokesterCo HQ

Requesting: https://www.kingdomofloathing.com/adventure.php?snarfblat=473
Field: Location = [choice.php]
Requesting: https://www.kingdomofloathing.com/choice.php

{1 h. 25 m.} JokesterCo
Encounter: JokesterCo HQ

Requesting: https://www.kingdomofloathing.com/choice.php?forceoption=0
Encounter: JokesterCo HQ

Requesting: https://www.kingdomofloathing.com/choice.php?whichchoice=1149&option=1&pwd
Encounter: The Smokester, The Midnight Tokester

Requesting: https://www.kingdomofloathing.com/choice.php?whichchoice=1169&option=1&pwd
Encounter: The Smokester, The Midnight Tokester

Requesting: https://www.kingdomofloathing.com/choice.php?whichchoice=1169&option=1&pwd
Field: Location = [fight.php?ireallymeanit=1595100889]
Requesting: https://www.kingdomofloathing.com/fight.php?ireallymeanit=1595100889
Encounter: The Jokester
Round 0: Batfellow wins initiative!

Requesting: https://www.kingdomofloathing.com/adventure.php?snarfblat=473
Field: Location = [fight.php]
Requesting: https://www.kingdomofloathing.com/fight.php
(You twiddle your thumbs.)
Encounter: The Jokester
<font color="green">Bat action:::: fight.php?action=skill&whichskill=7261</font>
<font color="green">Batction! kickball</font>

Requesting: https://www.kingdomofloathing.com/choice.php?whichchoice=1170&option=1&pwd
Field: Location = [fight.php]
Requesting: https://www.kingdomofloathing.com/fight.php
(You twiddle your thumbs.)
Encounter: The Jokester

Requesting: https://www.kingdomofloathing.com/choice.php?whichchoice=1170&option=1&pwd
Field: Location = [fight.php]
Requesting: https://www.kingdomofloathing.com/fight.php
(You twiddle your thumbs.)
Encounter: The Jokester

Requesting: https://www.kingdomofloathing.com/choice.php?whichchoice=1170&option=1&pwd
Field: Location = [fight.php]
Requesting: https://www.kingdomofloathing.com/fight.php
(You twiddle your thumbs.)
Encounter: The Jokester

Retrieved: https://www.kingdomofloathing.com/choice.php?whichchoice=1168&option=1&pwd
Field: Location = [fight.php]
Requesting: https://www.kingdomofloathing.com/fight.php
(You twiddle your thumbs.)
Encounter: The Jokester

Loading character status...
Requesting:
https://www.kingdomofloathing.com/api.php?what=status&for=KoLmafia
Retrieving character data...

Requesting: https://www.kingdomofloathing.com/charsheet.php
Field: Location = [fight.php]
charsheet.php: redirected to a fight page.
Requesting: https://www.kingdomofloathing.com/api.php?what=inventory&for=KoLmafia

Requesting: https://www.kingdomofloathing.com/account_manageoutfits.php
Field: Location = [fight.php]
account_manageoutfits.php: redirected to a fight page.

Requesting: https://www.kingdomofloathing.com/familiar.php
Field: Location = [fight.php]
familiar.php: redirected to a fight page.

Requesting: https://www.kingdomofloathing.com/campground.php?action=inspectdwelling
Field: Location = [fight.php]
Requesting: https://www.kingdomofloathing.com/fight.php
(You twiddle your thumbs.)
Encounter: The Jokester

Requesting: https://www.kingdomofloathing.com/campground.php?action=inspectkitchen
Field: Location = [fight.php]
Requesting: https://www.kingdomofloathing.com/fight.php
(You twiddle your thumbs.)
Encounter: The Jokester

Requesting: https://www.kingdomofloathing.com/campground.php?action=workshed
Field: Location = [fight.php]
Requesting: https://www.kingdomofloathing.com/fight.php
(You twiddle your thumbs.)
Encounter: The Jokester

Requesting: https://www.kingdomofloathing.com/campground.php?action=bookshelf
Field: Location = [fight.php]
Requesting: https://www.kingdomofloathing.com/fight.php
(You twiddle your thumbs.)
Encounter: The Jokester
I see a lot of thumb twiddling - because we submit choice.php options while in a fight - and also when we apparently do a "refresh", which calls char sheet, terrarium, etc. - perhaps because things are not progressing?

I'll take a look at what the script is expecting which is not being met, apparently, that makes it submit choice options, rather than fight actions.
 

Veracity

Developer
Staff member
Well, as coded, a choice redirects to a fight (and the response text is saved) and then it forces a twiddle, in order to fetch the response text.
I could fix that in the script.

Alternatively, I could adjust KoLmafia's twiddle handling to reset the current round from what the fight page says, which will fix this issue without a script change.

Yeah, that worked. Try revision 20258.
 
Top