Bug - Won't Fix Familiar experience tracking capping at 400

Saklad5

Member
My familiar script tries to get the Pocket Professor up to 600 experience, which is enough to use “Deliver your Thesis” without going below 20 pounds. Unfortunately, KoLmafia stops updating familiar experience post-combat once you hit 400, and only fixes itself when visiting familiar.php. I have not been able to figure out why it is doing that, but I have been able to replicate it repeatedly.

Interestingly, even after getting the correct amount of experience from familiar.php, KoLmafia sets familiar experience back to 400 after combat if it is over that amount.

I am using r19618, the latest revision, though the issue predates it.
 

Veracity

Developer
Staff member
That's a bug in api.php.

Code:
[color=green]> ashq visit_url( "familiar.php" )[/color]

[color=green]> ash my_familiar().experience[/color]

Returned: 656

[color=green]> refresh status[/color]

Loading character status...
...stuff...
Requests complete.

[color=green]> ash my_familiar().experience[/color]

Returned: 400
Here is what api.php shows:

Code:
"familiar":"206",...,"familiarexp":400,
 

Saklad5

Member
Well, that explains why I couldn’t identify the cause of the bug. Consider this one closed, as far as KoLmafia is concerned. Thanks for the quick response.
 
Last edited:
Top