Bug Numberology with max stats

xKiv

Active member
Looks like, unless something changed, on a character with all stats 65535, displayed level is 255 - but numberlogy (calculate universe) gives results as if my level is actually 256.
This leads to kolmafia's numberlogy command not doing what it's told to do.
I noticed this when seeing garbo looping the numberlogy command with nothing happening (it should have given +3 advs, but instead kept giving "you can't find the number in the chart").
This might be a kol bug, but I don't see it being ever fixed considering that nothing in the game says that "advancement" is always equal to displayed level.
I don't know when (at which stat/substat amount) this starts. I am guessing 65029 mainstat, which is where the breakpoint for level 256 would be if 255 wasn't the max.
 
Update: actually I think kol reports my level as 256, but mafia resets its idea of what my level is to 255 later ...
I just did:
1) log in - mafia show my level as 255
2) open relay browser - left pane in browser says level 256 *and* mafia now also shows my level as 256
3) cli "numberology 69" correctly gives me 3 adventures ... but mafia then "updates" my level to 255
4) cli "numberology 69" says "... is not currently available but will be in 3 turns or 2 spleen."
5) reload relay browser ... mafia now again says level 256
6) cli "numberology 69" says "... is not currently available but will be in 3 turns or 1 spleen."

So mafia is, somewhere, incorrectly assuming that max level is 255?
Did the max level (kol-side) change at some point?
 
No, the max level has been 256 for some time.

I suspect that the new logic re: level parsing in r28391 broke this.

edit: or possibly r28372.
 
Last edited:
Ah, yes, r28372 would have done it -- logged into a char with max stats, and api.php shows level 255. Meanwhile r28391 is fighting with it every time charpane.php is loaded, which detects the level as 256, but the next load of api.php resets the level back to 255 again.
 
Of course, the character I'm testing with doesn't have charpane.php with the default UI detect the level (custom title or not), since we apparently only handle the cases of compact charpane and regular charpane with a custom title that doesn't contain %L (where the level renders after the title as "(Level X)").
 
Of course, the character I'm testing with doesn't have charpane.php with the default UI detect the level (custom title or not), since we apparently only handle the cases of compact charpane and regular charpane with a custom title that doesn't contain %L (where the level renders after the title as "(Level X)").
I'll save a charpane from a character with no custom title and will adjust the regexp and add a test. :)

 
Thanks! I suppose there's still a secondary bug where we flip back and forth between two values due to KoL reporting an incorrect level in api.php.

We're also still not detecting level from charpane.php for the titles that embed %L and don't actually mention the word "level", although I am not sure we can do anything about that.
 
Just saw a similar numberology error but at the other end, level 1 hardcore PM. Seems also based on the new xp/level changes based around the new special path.

Ran the following:

cast 1 Calculate the Universe
[1] numberology 89
You gain 98 Mysteriousness
You gain some Mysticality points!
You gain some Levels!

cast 1 Calculate the Universe
[1] numberology 89
You gain 97 Wizardliness
You gain some Mysticality points!
You gain a Level!

cast 1 Calculate the Universe
[1] numberology 69

[1] Calculate the Universe
Encounter: Gnollish Gearhead
Round 0: kazgar wins initiative!
Round 1: kazgar executes a macro!
Round 1: kazgar casts SAUCESTORM!
Round 2: Gnollish Gearhead takes 64 damage.
Round 2: Gnollish Gearhead takes 72 damage.
Round 2: kazgar wins the fight!
You gain 40 Meat
After Battle: Did you know that the Gnollish Gearhead has a very particular flavor? Go ahead, give it a try!
You acquire an effect: Ooh, Sour! (10)
You acquire an item: Gnollish toolbox
After Battle: You gain 3 Muscleboundness
You gain a Muscle point!
After Battle: You gain 10 Enchantedness
After Battle: You gain 1 Cheek
After Battle: You flap your bat wings gustily and launch yourself to your next adventure in an instant.
This combat did not cost a turn

But according to the "numberology" command, the third cast was supposed to be +3 adventures. I think Mafia hadn't fully realized I'd gone to level 4 with the second command, and presented the level 3 options. Maybe if i'd done something between it might have sorted itself out, but would assume it should calculate correctly?
 
Yeah, this is something different. After my change, we only update level when the charpane or API status refresh. I thought the latter happened a lot more often than it seems to.

The easiest fix might be to revert my change and only calculate level that way for zootomist. The alternative is to access the API after every stat update, assuming we can find where that happens.
 
Back
Top