Mafia displaying incorrect number of Adventures Remaining...?

So one of my characters is showing 563556 adventures remaining. When i reach "0" adventures, it gets stuck in a loop telling me that I am out of adventures, but does not execute my end of day script and continues to display a ridiculous number of adventure. If I then refresh my Mafia, it briefly displays "0" adventures and continues with my end of day script normally.

I tried deleting all of the data files associated with the character and starting fresh, but I must have missed one because it has been ineffective.
 
yep! I should have mentioned that this has been going on for a month....

it has no ill effects other than that I can't tell how many adventures I have remaining.
 

Bale

Minion
Is mafia automatically running adventures with a script, through the GUI or what? What sequence of events creates this issue?
 
I do use all kinds of auto-adventuring and CLI scripting, but the adventures-remaining glitch occurs during manual adventuring as well. Both the script failure and the incorrect adventure reporting happened at the same time though, so I would guess that the issues are related and stem from whatever is causing the Adv: 730556.

I wasn't entirely accurate earlier, LostCal: however many adventures I actually have when I log out, Mafia displays when I log back in, but after 1 adventure it reverts to 730556 again. This number seems to persist both when I log out and log back in, and also when I completely close Mafia and restart. The number does change, although I'm not sure exactly when or why (it was, as I typed earlier, 563556). I should also mention that I automatically update to the latest build every time I start.
 

Winterbay

Active member
Is this an old non-ascended character? Could the number being displayed be the total number of turns played on said account? (throwing out crazy ideas)
 

fronobulax

Developer
Staff member
I have a never ascended character who has played 663462+ turns and I have never seen anything like this. Without looking at the code, I wonder if one of the account settings that changes the KoL generated HTML is involved? Set one way for biggus and something else for most of the rest of the world?
 
it currently reads 613557.

I've poked around quite a bit, Winterbay, and I can't see any obvious relationship between that number and any other number. I haven't been able to find it by using FIND in any of the data files (which makes sense since it is unaffected if I delete them).

Frono, I thought the same thing, but that seems really far-fetched. how would it even come to be? I'm really stumped.

Nope, Slyz. And the number of characters in the names of my familiars don't come CLOSE to adding up to that number! *snicker
 

fronobulax

Developer
Staff member
Frono, I thought the same thing, but that seems really far-fetched. how would it even come to be? I'm really stumped.

Darn. Last time I grasped at straws I got lucky. Slight veer - a lot of commercial software companies have an information gathering tool that they will ask you to run on your system so they can identify environmental problems. I wonder if a similar option for KoLmafia would be useful? We know how to get OS and Java version and character specific info is logged so what seems to be missing are the account related settings that effect HTML served up by KoL. If we had that kind of feature then we could at least identify how the account settings differ.
 
That would be fantastic! now to find a bottled genie.... haha

This is just really strange. The mystery number only shows up in the main Mafia window, but not in the mini browser.
 

HasteBro

Member
I'm just throwing an idea here... I honestly doubt it has anything to do with the problem, but I noticed that all the numbers are 6 digit long, so I put them in a hex color checker, they all come out as shades of purple.

So my thoughts is that there might be a script or something of the sort that is somehow injecting hex color codes into the HTML and Mafia is picking it up, much like what slyz suggested.

Just a possiblity, highly unlikely though.
 
Well, the number today was 566, so that can't be it.

I started a completely new install of KoLMafia in a new folder, logged on with the character, and had 566 as the adventures remaining. I refreshed and it was 68 adventures (the actual amount). Is there any way that this ISN'T a server-side issue?
 
Ok, I still haven't figured out what is going on, but I DO know what the numbers are related to.

the number of adventures remaining is my modified muscle and my base muscle as one number. if my muscle is unmodified, my adventures remaining will be my base muscle (currently a 3-digit number). if it is modified, my adventures remaining will be a 6 digit number (with my standard gear and buffs).

Well, now that I have found the relationship (still not sure how I missed that...), any guesses as to how I can fix the issue? What could cause a crossover between my ADV display and my MUS display?
 
Post the HTML of your Char Sheet.

this is the html from the relay browser character sheet. If you want a non-mafia login, I can post that as well.

Wow...that sure is messy.....


Code:
<html><head>
<script language=Javascript>
<!--
if (parent.frames.length == -1) location.href="game.php";
//-->
</script>
<script language=Javascript src="/images/scripts/keybinds.min.2.js"></script>
<script language=Javascript src="/images/scripts/window.20111231.js"></script>
<script language="javascript">function chatFocus(){if(top.chatpane.document.chatform.graf) top.chatpane.document.chatform.graf.focus();}
if (typeof defaultBind != 'undefined') { defaultBind(47, 2, chatFocus); defaultBind(190, 2, chatFocus);defaultBind(191, 2, chatFocus); defaultBind(47, 8, chatFocus);defaultBind(190, 8, chatFocus); defaultBind(191, 8, chatFocus); }</script><script language=Javascript src="/images/scripts/core.js"></script>
<script language=Javascript src="/images/scripts/jquery-1.3.1.min.js"></script>
<link rel="stylesheet" type="text/css" href="http://images.kingdomofloathing.com/styles.20120512.css">

<script language="Javascript" src="/basics.js"></script><link rel="stylesheet" href="/basics.css" /></head>

<body>
<centeR><table  width=95%  cellspacing=0 cellpadding=0><tr><td style="color: white;" align=center bgcolor="#cc0000"><b>The Generic Adventurer</b></td></tr><tr><td style="padding: 5px; border: 1px solid #cc0000;"><center><table><tr><td><center><img src="http://images.kingdomofloathing.com/otherimages/discobandit.gif" width=60 height=100 alt="An Adventurer is You!"><center><b><a class=nounder href="showplayer.php?who=2298437">The Generic Adventurer</a></b> (#2298437)<br>Level 33<br> Disco Bandit<p><b>Statistics:</b><br><table><tr><td colspan=2 height=1 bgcolor=black></td></tr><tr><td align=right>Current Hit Points:</td><td align=left><b>21</b></td></tr><tr><td align=right>Maximum Hit Points:</td><td align=left><b>678</b></td></tr><tr><td colspan=2 height=1 bgcolor=black></td></tr><tr><td align=right>Current Mojo Points:</td><td align=left><b>754</b></td></tr><tr><td align=right>Maximum Mojo Points:</td><td align=left><b>754</b></td></tr><tr><td colspan=2 height=1 bgcolor=black></td></tr><tr><td align=right>Muscle:</td><td><table><tr><td><b>655</b></td><td valign=center><table cellpadding=0 cellspacing=0 style="border: 1px solid black"><tr><td height=10 width=82 bgcolor=black></td><td width=18 bgcolor=white></td></tr></table></td><td valign=center><font size=2>(<b>1083</b>/<b>1311</b>)</font></td></tr></table></td></tR><tr><td align=right>Mysticality:</td><td><table><tr><td><b>734</b></td><td valign=center><table cellpadding=0 cellspacing=0 style="border: 1px solid black"><tr><td height=10 width=68 bgcolor=black></td><td width=32 bgcolor=white></td></tr></table></td><td valign=center><font size=2>(<b>1005</b>/<b>1469</b>)</font></td></tr></table><tr><td align=right>Moxie:</td><td><table><tr><td><b>1206</b> (base: 1040)</td><td valign=center><table cellpadding=0 cellspacing=0 style="border: 1px solid black"><tr><td height=10 width=15 bgcolor=black></td><td width=85 bgcolor=white></td></tr></table></td><td valign=center><font size=2>(<b>320</b>/<b>2081</b>)</font></td></tr></table><tr><td align=right>Slime Protection:</td><td><b>Very Low (1)</b></td></tr><tr><td align=right>Fullness:</td><td><b>15</b></td></tr><tr><td align=right>Inebriety:</td><td><b>19</b> (pretty drunk)</td></tr><tr><td align=right>Adventures remaining:</td><td><b>0</b></td></tr><tr><td align=right>Meat:</td><td><b>222,404</b></td></tr><tr><td align=right><a class=nounder href="showconsumption.php">Favorite Food:</a></td><td><b>spooky lo mein</b></td></tr><tr><td align=right><a class=nounder href="showconsumption.php#booze">Favorite Booze:</a></td><td><b>thistle wine</b></td></tr><tr><td colspan=2 height=1 bgcolor=black></tr><tr><td align=right>Account Created:</td><td><b>December 03, 2011</b></td></tr><tr><td align=right><a class=nounder href="ascensionhistory.php?back=self&who=2298437">Ascensions:</a></td><td><b>5</b></td></tr><tr><td align=right>Turns Played (total):</td><td><b>74,575</b></td></tr><tr><td align=right>Days Played (total):</td><td><b>546</b></td></tr><tr><td align=right>Turns Played (this run):</td><td><b>43,416</b></td></tr><tr><td align=right>Days Played (this run):</td><td><b>222</b></td></tr><tr><td align=right>Sign:</td><td><b>The Vole</b></td></tr><tr><td colspan=2 height=1 bgcolor=black></tr></table><p><b>Advancement:</b><br><table><tr><td height=1 bgcolor=black></td></tr><tr><td align=center>You must gain 53 Moxie to advance to level 34.</td></tr><tr><td height=1 bgcolor=black></td></tr></table><p><center><b>Equipment:</b></center><table><tr><td colspan=2 height=1 bgcolor=black></td></tr><tr><td width=30 height=30><img src="http://images.kingdomofloathing.com/itemimages/ancientshelm.gif" class=hand onClick='descitem(666719587)'></td><td valign=center><b>ancient turtle shell helmet</b></td></tr><tr><td width=30 height=30><img src="http://images.kingdomofloathing.com/itemimages/smjacket.gif" class=hand onClick='descitem(229924188)'></td><td valign=center><b>General Sage's Lonely Diamonds Club Jacket</b></td></tr><tr><td width=30 height=30><img src="http://images.kingdomofloathing.com/itemimages/coily.gif" class=hand onClick='descitem(998607445)'></td><td valign=center><b>Coily™</b></td></tr><tr><td width=30 height=30><img src="http://images.kingdomofloathing.com/itemimages/ragskirt.gif" class=hand onClick='descitem(200038599)'></td><td valign=center><b>poodle skirt</b></td></tr><tr><td width=30 height=30><img src="http://images.kingdomofloathing.com/itemimages/jpneck.gif" class=hand onClick='descitem(552153163)'></td><td valign=center><b>pulled porquoise pendant</b></td></tr><tr><td width=30 height=30><img src="http://images.kingdomofloathing.com/itemimages/blueascot.gif" class=hand onClick='descitem(659726228)'></td><td valign=center><b>natty blue ascot</b></td></tr><tr><td width=30 height=30><img src="http://images.kingdomofloathing.com/itemimages/blueascot.gif" class=hand onClick='descitem(659726228)'></td><td valign=center><b>natty blue ascot</b></td></tr><tr><td colspan=2 height=1 bgcolor=black></td></tr></table><centeR><p><table><tr><td height=1 bgcolor=black></td></tr><tr><td>You own a <b><A class=nounder href="managestore.php">Store</a></b> in the Mall of Loathing</td></tr><tr><td height=1 bgcolor=black></td></tr></table><center><p><b>Effects:</b><br></center><center><table><tr><td colspan=2 height=1 bgcolor=black></td></tr><tr><td><img src="http://images.kingdomofloathing.com/itemimages/empathy.gif" width=30 height=30 border=0 class=hand onClick='eff("ac32e95f470a7e0999863fa0db58d808")'></td><td valign=center>Empathy (12229) <font size=1>[<A href="charsheet.php?pwd=8106bdd617aaaf82477433c97f038523&action=unbuff&whichbuff=50">shrug off</a>]</font><br></td></tr><tr><td><img src="http://images.kingdomofloathing.com/itemimages/plenty.gif" width=30 height=30 border=0 class=hand onClick='eff("c26a911b8ec2c57f7eef57f9ff5fdc24")'></td><td valign=center>Polka of Plenty (12229) <font size=1>[<A href="charsheet.php?pwd=8106bdd617aaaf82477433c97f038523&action=unbuff&whichbuff=63">shrug off</a>]</font><br></td></tr><tr><td><img src="http://images.kingdomofloathing.com/itemimages/fatleons.gif" width=30 height=30 border=0 class=hand onClick='eff("63e73adb3ecfb0cbf544db435eeeaf00")'></td><td valign=center>Fat Leon's Phat Loot Lyric (12229) <font size=1>[<A href="charsheet.php?pwd=8106bdd617aaaf82477433c97f038523&action=unbuff&whichbuff=67">shrug off</a>]</font><br></td></tr><tr><td><img src="http://images.kingdomofloathing.com/itemimages/pins.gif" width=30 height=30 border=0 class=hand onClick='eff("df3e73633630d0b3f3e96a910beff6ba")'></td><td valign=center>On Pins and Needles (20)<br></td></tr><tr><td colspan=2 height=1 bgcolor=black></td></tr></table><b><p>Skills:</b><br><font size=1>(click the skill name for a description)</font><br><table><tr><td height=1 bgcolor=black></td></tr><tr><td><a onClick='javascript:poop("desc_skill.php?whichskill=1&self=true","skill", 350, 300)'>Liver of Steel</a><br><a onClick='javascript:poop("desc_skill.php?whichskill=2&self=true","skill", 350, 300)'>Chronic Indigestion</a><br><a onClick='javascript:poop("desc_skill.php?whichskill=10&self=true","skill", 350, 300)'>Powers of Observatiogn</a> (P)<br><a onClick='javascript:poop("desc_skill.php?whichskill=11&self=true","skill", 350, 300)'>Gnefarious Pickpocketing</a> (P)<br><a onClick='javascript:poop("desc_skill.php?whichskill=12&self=true","skill", 350, 300)'>Torso Awaregness</a> (P)<br><a onClick='javascript:poop("desc_skill.php?whichskill=15&self=true","skill", 350, 300)'>CLEESH</a><br><a onClick='javascript:poop("desc_skill.php?whichskill=5000&self=true","skill", 350, 300)'>Disco Aerobics</a><br><a onClick='javascript:poop("desc_skill.php?whichskill=5004&self=true","skill", 350, 300)'>Nimble Fingers</a> (P)<br><a onClick='javascript:poop("desc_skill.php?whichskill=5006&self=true","skill", 350, 300)'>Mad Looting Skillz</a> (P)<br><a onClick='javascript:poop("desc_skill.php?whichskill=5007&self=true","skill", 350, 300)'>Disco Nap</a><br><a onClick='javascript:poop("desc_skill.php?whichskill=5010&self=true","skill", 350, 300)'>Overdeveloped Sense of Self Preservation</a><br><a onClick='javascript:poop("desc_skill.php?whichskill=5011&self=true","skill", 350, 300)'>Disco Power Nap</a> (P)<br><a onClick='javascript:poop("desc_skill.php?whichskill=5014&self=true","skill", 350, 300)'>Advanced Cocktailcrafting</a> (P)<br><a onClick='javascript:poop("desc_skill.php?whichskill=5015&self=true","skill", 350, 300)'>Ambidextrous Funkslinging</a><br><a onClick='javascript:poop("desc_skill.php?whichskill=5018&self=true","skill", 350, 300)'>Superhuman Cocktailcrafting</a> (P)<br><a onClick='javascript:poop("desc_skill.php?whichskill=5021&self=true","skill", 350, 300)'>Suckerpunch</a><br></td></tr><tr><td height=1 bgcolor=black></td></tr><tr><td>(P) = Permanent skill</td></tr><tr><td height=1 bgcolor=black></td></tr></table><b><p>Current Familiar:</b><br><table><tr><td colspan=2 bgcolor=black height=1></td></tr><tr><td align=center valign=center><a href="familiar.php"><img src="http://images.kingdomofloathing.com/itemimages/familiar2.gif" width=30 height=30 border=0></a></td><td valign=center align=left><b>Trobert</b>, the 25-pound Leprechaun (33,112 experience, 38,190 kills)</td></tr><tr><td colspan=2 bgcolor=black height=1></td></tr></table></center></td></tr></table></center></td></tr><tr><td height=4></td></tr></table></center><div id='menu' class='rcm'></div></body><script language="Javascript"> var actions = { }; </script><script language="Javascript" src="/images/scripts/rcm.2.js"></script><script src="/onfocus.js"></script></html>
 

Bale

Minion
Are you using some sort of relay override or greasemonkey script to change your charpane?
 

lostcalpolydude

Developer
Staff member
The character's name is The Generic Adventurer. It wouldn't surprise me if that messes with some regex looking for "Adv" or "Adventure". Making the A lowercase would probably get things working for now.
 

Veracity

Developer
Staff member
We should fix our parsing of the char sheet to be immune to the character's name, but I am glad lost found a workaround for you until that happens.
 
Top