Bug - Fixed 'Problem' using the Speakeasy in AoSP

Hey, gang. Here is an odd one. Every day in a hardcore (possibly softcore, too) run in AoSP, in order for Mafia to see that I can have Speakeasy drinks, I need to go to the Speakeasy, then they show up in the Item Manager. However, it does 'reset' itself the next day. Not a big deal, but it is something I would like corrected if possible. I always use the latest build of Mafia, and I am running Java 7b65. Please let me know if you need any other information or if I can do anything (since I am betting not a lot of people are doing AoSp runs).
 

Bale

Minion
One question: Do you switch clans during the course of day, for instance to you rollover in a different clan than the one you stay in while adventuring?
 

Bale

Minion
Oh, I forgot. Are you using the new iconic menu. That is currently causing some difficulty for KoLmafia to recognize clans. Did this problem occur before the new top menu was implemented, or is it recent.
 
I use the old text style, as I have not had time to play with the new features. I think they may have happened around the same time, now that you mention it.
 

Darzil

Developer
How is it in r14350 ? Looks like Mafia was getting confused if you did a profile request of another player (eg using checkprofile <player> or attack <player> command), but should be no longer.
 
Sorry, I just thought to look for the status of this. Both characters I play, as of r14359, still need to go daily to the clan in order for the Item Manager to be able to see the Speakeasy.

Please let me know if you need me to try anything.
 

Darzil

Developer
When starting up, do you see something like the below in the CLI, the final bits of refreshing session data?

Code:
Examining Meat and pulls in storage...
Updating storage...
You are currently a member of El Chupacabra
Visiting Hot Dog Stand in clan VIP lounge
Visiting Speakeasy in clan VIP lounge
 
I had already 'activated it for the day, but I will check tomorrow. it seems to keep it between logins per day, but loses it at rollover. I will verify this tomorrow.
 
Okay, so this is weird. My multi, who has not ascended in a while was not able to see the Speakeasy right away is now able to. My main, who constantly ascends (lately into hardcore AOSP runs) cannot see the Speakeasy without visiting it first. Here is what he sees.

Installing default certificate validation...
Validating login server (www.kingdomofloathing.com)...
Using data override: data/mallprices.txt
675 players online.
Sending login request...
Initializing session for Nikadaemus...
Refreshing session data...
Synchronizing moon data...
Loading character status...
Retrieving character data...
Updating inventory...
Examining Meat in closet...
Updating closet...
Retrieving quest data...
Retrieving familiar data...
Retrieving campground data...
Examining Meat and pulls in storage...
Updating storage...
You are currently a member of Bandit's Outpost
Visiting Hot Dog Stand in clan VIP lounge
Visiting Speakeasy in clan VIP lounge
Session data refreshed.

So, is it hardcore? Is it the path, due to the weird booze changes? Is it me, because I am ridiculously good looking but cursed?

EDIT-When I click on the VIP lounge to 'open' the Speakeasy, I also get this:

Visiting Crimbo Tree in clan VIP lounge
Visiting Speakeasy in clan VIP lounge
 
I also want to add that within the same session I went from my hardcore AoSP run, to aftercore, to ascending again into hardcore AoSP, and I once again had to enter the Speakeasy to see drinks. Something is resetting it for me. I have not heard if anyone else has this issue.
 

Veracity

Developer
Staff member
Turn on the debug log
Visit the Speakeasy
Turn off the debug log
Post it here

I can only conjecture that the text is different if you are in a Sneaky Pete run. Not being in such a run (and never again, probably), I won't be able to see for myself.
 
This is my main, who just ended the run last night, but still has to activate the Speakeasy. I was able to start this from the beginning of login so hopefully it might help.
 

Attachments

  • DEBUG_20140820-1.txt
    738 KB · Views: 256

Veracity

Developer
Staff member
OK. I added a "verbose" option to the method which parses the clan speakeasy and added a "test speakeasy" command.

- I logged in with a character who not only is in a clan with no speakeasy, but does not even have a VIP key.
- I see no speakeasy drinks in the Item Manager.

> test load speakeasy.html

Read 16,332 bytes into a 16,332 character string

> test speakeasy

Found speakeasy drink #1 (glass of "milk") and concoction.
Found speakeasy drink #2 (cup of "tea") and concoction.
Found speakeasy drink #3 (thermos of "whiskey") and concoction.
Found speakeasy drink #4 (Lucky Lindy) and concoction.
Found speakeasy drink #5 (Bee's Knees) and concoction.
Found speakeasy drink #6 (Sockdollager) and concoction.
Found speakeasy drink #8 (Hot Socks) and concoction.
Found speakeasy drink #9 (Phonus Balonus) and concoction.
Found speakeasy drink #10 (Flivver) and concoction.
Total speakeasy drinks found: 9
(speakeasy.html was YOUR response text.)

- In the Item Manager, all of the available speakeasy drinks immediately appeared.

I have no idea why it doesn't work that way for you.

Revision 14460 adds the "test speakeasy" command.
 
Sorry, I am so tired from a teething 9 month old. What do you mean by my response text? I ran the test load speakeasy.html command and it said I had no HTML file.
 

Veracity

Developer
Staff member
Sorry, I am so tired from a teething 9 month old. What do you mean by my response text? I ran the test load speakeasy.html command and it said I had no HTML file.
You gave me a DEBUG log. The "response text" is the "text" that KoL sends as a "response" to a request that we send it. In this case, the request to look at the speakeasy in the clan lounge.

I extracted that response from your DEBUG log and put it in speakeasy.html in KoLmafia's "data" directory, which is where "test load" looks for it. If you want to try it yourself, put the following into a file in your "data" directory.

Code:
<html><head><script language=Javascript><!--if (parent.frames.length == 0) location.href="game.php";//--></script><script language=Javascript src="http://images.kingdomofloathing.com/scripts/keybinds.min.2.js"></script><script language=Javascript src="http://images.kingdomofloathing.com/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">function updateParseItem(iid, field, info) {var tbl = $('#ic'+iid);var data = parseItem(tbl);if (!data) return;data[field] = info;var out = [];for (i in data) {if (!data.hasOwnProperty(i)) continue;out.push(i+'='+data[i]);}tbl.attr('rel', out.join('&'));}function parseItem(tbl) {tbl = $(tbl);var rel = tbl.attr('rel');var data = {};if (!rel) return data;var parts = rel.split('&');for (i in parts) {if (!parts.hasOwnProperty(i)) continue;var kv = parts[i].split('=');tbl.data(kv[0], kv[1]);data[kv[0]] = kv[1];}return data;}</script><script language=Javascript src="http://images.kingdomofloathing.com/scripts/jquery-1.3.1.min.js"></script><script type="text/javascript" src="http://images.kingdomofloathing.com/scripts/pop_query.20130705.js"></script><script type="text/javascript" src="http://images.kingdomofloathing.com/scripts/ircm.20120523.js"></script><script type="text/javascript">function pop_ircm_contents(i, some) {var contents = '',shown = 0,da = ' <a href="#" rel="?" class="small dojaxy">[some]</a> <a href="#" rel="',db = '" class="small dojaxy">[all]</a>',dc = '<div style="width:100%; padding-bottom: 3px;" rel="',dd = '<a href="#" rel="1" class="small dojaxy">[';one = 'one'; ss=some;if (i.d==1 && i.s>0) { shown++;contents += dc + 'sellstuff.php?action=sell&ajax=1&type=quant&whichitem%5B%5D=IID&howmany=NUM&pwd=ef08d358b1c03bb9f4bc1d12edcd5262" id="pircm_'+i.id+'"><b>Auto-Sell ('+i.s+' meat):</b> '+dd+one+']</a>';if (ss) { contents += da + i.n + db;}contents += '</div>';}one = 'one'; ss=some;if (i.q==0) { shown++;contents += dc + 'inventory.php?action=closetpush&ajax=1&whichitem=IID&qty=NUM&pwd=ef08d358b1c03bb9f4bc1d12edcd5262" id="pircm_'+i.id+'"><b>Closet:</b> '+dd+one+']</a>';if (ss) { contents += da + i.n + db;}contents += '</div>';}one = 'one'; ss=some;if (i.q==0 && i.g==0 && i.t==1) { shown++;contents += dc + 'managestore.php?action=additem&qty1=NUM&item1=IID&price1=&limit1=&ajax=1&pwd=ef08d358b1c03bb9f4bc1d12edcd5262" id="pircm_'+i.id+'"><b>Stock in Mall:</b> '+dd+one+']</a>';if (ss) { contents += da + i.n + db;}contents += '</div>';}one = 'one'; ss=some;if (i.q==0) { shown++;contents += dc + 'managecollection.php?action=put&ajax=1&whichitem1=IID&howmany1=NUM&pwd=ef08d358b1c03bb9f4bc1d12edcd5262" id="pircm_'+i.id+'"><b>Add to Display Case:</b> '+dd+one+']</a>';if (ss) { contents += da + i.n + db;}contents += '</div>';}one = 'one'; ss=some;if (i.q==0 && i.t==1) { shown++;contents += dc + 'clan_stash.php?action=addgoodies&ajax=1&item1=IID&qty1=NUM&pwd=ef08d358b1c03bb9f4bc1d12edcd5262" id="pircm_'+i.id+'"><b>Contribute to Clan:</b> '+dd+one+']</a>';if (ss) { contents += da + i.n + db;}contents += '</div>';}one = 'one'; ss=some;if (i.q==0 && i.p==0 && i.u=="q" && i.d==1 && i.t==1) { shown++;contents += dc + 'craft.php?action=pulverize&ajax=1&smashitem=IID&qty=NUM&pwd=ef08d358b1c03bb9f4bc1d12edcd5262" id="pircm_'+i.id+'"><b>Pulverize:</b> '+dd+one+']</a>';if (ss) { contents += da + i.n + db;}contents += '</div>';}return [contents, shown];}var todo = [];function nextAction() {var next_todo = todo.shift();if (next_todo) {eval(next_todo);}}function dojax(dourl, afterFunc, hoverCaller, failureFunc, method, params) {$.ajax({type: method || 'GET', url: dourl, cache: false,data: params || null,global: false,success: function (out) {nextAction();if (out.match(/no\|/)) {var parts = out.split(/\|/);if (failureFunc) failureFunc(parts[1]);else $('#ChatWindow').append('<font color="green">Oops!  Sorry, Dave, you appear to be ' + parts[1] + '.</font><br />' + "\n");return;}if (hoverCaller)  {float_results(hoverCaller, out);if (afterFunc) { afterFunc(out); }return;}$(top.mainpane.document).find("#effdiv").remove(); if(!window.dontscroll || (window.dontscroll && dontscroll==0)) { window.scroll(0,0);}var $eff = $(top.mainpane.document).find('#effdiv');if ($eff.length == 0) {var d = top.mainpane.document.createElement('DIV');d.id = 'effdiv';var b = top.mainpane.document.body;if ($('#content_').length > 0) {b = $('#content_ div:first')[0];}b.insertBefore(d, b.firstChild);$eff = $(d);}$eff.find('a[name="effdivtop"]').remove().end().prepend('<a name="effdivtop"></a><center>' + out + '</center>').css('display','block');if (!window.dontscroll || (window.dontscroll && dontscroll==0)) {top.mainpane.document.location = top.mainpane.document.location + "#effdivtop";}if (afterFunc) { afterFunc(out); }}});}</script><link rel="stylesheet" type="text/css" href="http://images.kingdomofloathing.com/styles.20130904.css"><style type='text/css'>.faded {zoom: 1;filter: alpha(opacity=35);opacity: 0.35;}</style></head><body><center><table  width=95%  cellspacing=0 cellpadding=0><tr><td style="color: white;" align=center bgcolor=blue><b>Results:</b></td></tr><tr><td style="padding: 5px; border: 1px solid blue;"><center><table><tr><td><center><table width=60%><tr><td>You step into the phone booth.  The phone rings, and you answer it.  "Welcome, Sir," says the voice on the other end, the voice of a posh respectable gentleman.  "Please consult the phone book and tell me what you'd like."<p>You open the book, and sure enough, it's a cocktail menu.<p>(You can have 3 more drinks from the speakeasy today.)</td></tr></table><table><tr><td><img  style="cursor: pointer" onclick="descitem(261919502)" src="//images.kingdomofloathing.com/itemimages/milk.gif" height="30" width="30" alt="glass of "milk"" /></td><td onclick="descitem(261919502)">glass of "milk"</td><td><img src="//images.kingdomofloathing.com/itemimages/meat.gif" height="30" width="30" alt="250 Meat" /></td><td>250</td><td><form style="display: inline" method="post" action="clan_viplounge.php"><input type="hidden" name="preaction" value="speakeasydrink"><input type="hidden" name="drink" value="1" /><input type="hidden" name="pwd" value="ef08d358b1c03bb9f4bc1d12edcd5262" /><input type="submit" class="button" value="Drink!" /></form></td></tr><tr><td><img  style="cursor: pointer" onclick="descitem(608728555)" src="//images.kingdomofloathing.com/itemimages/coffeecup.gif" height="30" width="30" alt="cup of "tea"" /></td><td onclick="descitem(608728555)">cup of "tea"</td><td><img src="//images.kingdomofloathing.com/itemimages/meat.gif" height="30" width="30" alt="250 Meat" /></td><td>250</td><td><form style="display: inline" method="post" action="clan_viplounge.php"><input type="hidden" name="preaction" value="speakeasydrink"><input type="hidden" name="drink" value="2" /><input type="hidden" name="pwd" value="ef08d358b1c03bb9f4bc1d12edcd5262" /><input type="submit" class="button" value="Drink!" /></form></td></tr><tr><td><img  style="cursor: pointer" onclick="descitem(712543371)" src="//images.kingdomofloathing.com/itemimages/thermos.gif" height="30" width="30" alt="thermos of "whiskey"" /></td><td onclick="descitem(712543371)">thermos of "whiskey"</td><td><img src="//images.kingdomofloathing.com/itemimages/meat.gif" height="30" width="30" alt="250 Meat" /></td><td>250</td><td><form style="display: inline" method="post" action="clan_viplounge.php"><input type="hidden" name="preaction" value="speakeasydrink"><input type="hidden" name="drink" value="3" /><input type="hidden" name="pwd" value="ef08d358b1c03bb9f4bc1d12edcd5262" /><input type="submit" class="button" value="Drink!" /></form></td></tr><tr><td><img  style="cursor: pointer" onclick="descitem(370494914)" src="//images.kingdomofloathing.com/itemimages/fruity.gif" height="30" width="30" alt="Lucky Lindy" /></td><td onclick="descitem(370494914)">Lucky Lindy</td><td><img src="//images.kingdomofloathing.com/itemimages/meat.gif" height="30" width="30" alt="500 Meat" /></td><td>500</td><td><form style="display: inline" method="post" action="clan_viplounge.php"><input type="hidden" name="preaction" value="speakeasydrink"><input type="hidden" name="drink" value="4" /><input type="hidden" name="pwd" value="ef08d358b1c03bb9f4bc1d12edcd5262" /><input type="submit" class="button" value="Drink!" /></form></td></tr><tr><td><img  style="cursor: pointer" onclick="descitem(323267882)" src="//images.kingdomofloathing.com/itemimages/martini.gif" height="30" width="30" alt="Bee's Knees" /></td><td onclick="descitem(323267882)">Bee's Knees</td><td><img src="//images.kingdomofloathing.com/itemimages/meat.gif" height="30" width="30" alt="500 Meat" /></td><td>500</td><td><form style="display: inline" method="post" action="clan_viplounge.php"><input type="hidden" name="preaction" value="speakeasydrink"><input type="hidden" name="drink" value="5" /><input type="hidden" name="pwd" value="ef08d358b1c03bb9f4bc1d12edcd5262" /><input type="submit" class="button" value="Drink!" /></form></td></tr><tr><td><img  style="cursor: pointer" onclick="descitem(820266043)" src="//images.kingdomofloathing.com/itemimages/rocks.gif" height="30" width="30" alt="Sockdollager" /></td><td onclick="descitem(820266043)">Sockdollager</td><td><img src="//images.kingdomofloathing.com/itemimages/meat.gif" height="30" width="30" alt="500 Meat" /></td><td>500</td><td><form style="display: inline" method="post" action="clan_viplounge.php"><input type="hidden" name="preaction" value="speakeasydrink"><input type="hidden" name="drink" value="6" /><input type="hidden" name="pwd" value="ef08d358b1c03bb9f4bc1d12edcd5262" /><input type="submit" class="button" value="Drink!" /></form></td></tr><tr><td><img  style="cursor: pointer" onclick="descitem(727300012)" src="//images.kingdomofloathing.com/itemimages/rocks_f.gif" height="30" width="30" alt="Hot Socks" /></td><td onclick="descitem(727300012)">Hot Socks</td><td><img src="//images.kingdomofloathing.com/itemimages/meat.gif" height="30" width="30" alt="5,000 Meat" /></td><td>5,000</td><td><form style="display: inline" method="post" action="clan_viplounge.php"><input type="hidden" name="preaction" value="speakeasydrink"><input type="hidden" name="drink" value="8" /><input type="hidden" name="pwd" value="ef08d358b1c03bb9f4bc1d12edcd5262" /><input type="submit" class="button" value="Drink!" /></form></td></tr><tr><td><img  style="cursor: pointer" onclick="descitem(846180998)" src="//images.kingdomofloathing.com/itemimages/hurricane.gif" height="30" width="30" alt="Phonus Balonus" /></td><td onclick="descitem(846180998)">Phonus Balonus</td><td><img src="//images.kingdomofloathing.com/itemimages/meat.gif" height="30" width="30" alt="10,000 Meat" /></td><td>10,000</td><td><form style="display: inline" method="post" action="clan_viplounge.php"><input type="hidden" name="preaction" value="speakeasydrink"><input type="hidden" name="drink" value="9" /><input type="hidden" name="pwd" value="ef08d358b1c03bb9f4bc1d12edcd5262" /><input type="submit" class="button" value="Drink!" /></form></td></tr><tr><td><img  style="cursor: pointer" onclick="descitem(761660391)" src="//images.kingdomofloathing.com/itemimages/celloshot.gif" height="30" width="30" alt="Flivver" /></td><td onclick="descitem(761660391)">Flivver</td><td><img src="//images.kingdomofloathing.com/itemimages/meat.gif" height="30" width="30" alt="20,000 Meat" /></td><td>20,000</td><td><form style="display: inline" method="post" action="clan_viplounge.php"><input type="hidden" name="preaction" value="speakeasydrink"><input type="hidden" name="drink" value="10" /><input type="hidden" name="pwd" value="ef08d358b1c03bb9f4bc1d12edcd5262" /><input type="submit" class="button" value="Drink!" /></form></td></tr></table><form  method="post" action="clan_viplounge.php"><input type="hidden" name="preaction" value="speakeasypw"><input type="hidden" name="drink" value="12" /><input type="hidden" name="pwd" value="ef08d358b1c03bb9f4bc1d12edcd5262" /><p>Tell the bartender a drink password: <input type="text" name="pw" /><input type="submit" class="button" value="Speak, Easily!" /></form></center></td></tr></table></center></td></tr><tr><td height=4></td></tr></table><table  width=95%  cellspacing=0 cellpadding=0><tr><td style="color: white;" align=center bgcolor=blue><b>Clan VIP Lounge</b></td></tr><tr><td style="padding: 5px; border: 1px solid blue;"><center><table><tr><td><center><b><a href="clan_hall.php">Bandit's Outpost</a></b><p></center><table cellpadding=0 cellspacing=0><tr><td rowspan=5 width=25 height=300><img src="http://images.kingdomofloathing.com/otherimages/clanhall/newvipleft.gif" width=25 height=500></td><td colspan=3 width=300 height=100><img src="http://images.kingdomofloathing.com/otherimages/clanhall/viptop.gif" width=300 height=100></td><td rowspan=5 width=25 height=300><img src="http://images.kingdomofloathing.com/otherimages/clanhall/newvipright.gif" width=25 height=500></td></tr><tr><td width=100 height=100><a href=clan_viplounge.php?action=lookingglass><img src="http://images.kingdomofloathing.com/otherimages/clanhall/lookingglass.gif" width=100 height=100 border=0 alt="A Looking Glass" title="A Looking Glass"></a></td><td width=100 height=100><a href=clan_viplounge.php?action=faxmachine><img src=http://images.kingdomofloathing.com/otherimages/clanhall/faxmachine.gif width=100 height=100 border=0 alt="A Fax Machine" title="A Fax Machine"></a></td><td width=100 height=100><A href="clan_viplounge.php?action=crimbotree"><img src="http://images.kingdomofloathing.com/otherimages/clanhall/tree5nopressie.gif" width=100 height=100 border=0 alt="A Crimbo Tree (with no present under it.)" title="A Crimbo Tree (with no present under it.)"></a></td></tr><tr><td width=100 height=100><a href=clan_viplounge.php?action=shower><img src="http://images.kingdomofloathing.com/otherimages/clanhall//aprilshower.gif" width=100 height=100 alt="April Shower" title="April Shower" border=0></a></td><td width=100 height=100><a href=clan_viplounge.php?action=pooltable><img src="http://images.kingdomofloathing.com/otherimages/clanhall/pooltable.gif" width=100 height=100 border=0 alt="A Pool Table" title="A Pool Table"></a></td><td width=100 height=100><a href=clan_viplounge.php?action=swimmingpool><img src="http://images.kingdomofloathing.com/otherimages/clanhall/vippool.gif" width=100 height=100 border=0 alt="An Olympic-Sized Swimming Pool" title="An Olympic-Sized Swimming Pool"></a></td></tr><tr><td width=100 height=100><a href=clan_viplounge.php?action=speakeasy><img src="http://images.kingdomofloathing.com/otherimages/clanhall//speakeasy.gif" width=100 height=100 border=0 alt="A Speakeasy" title="A Speakeasy"></a></td><td width=100 height=100><a href=clan_viplounge.php?action=hotdogstand><img src="http://images.kingdomofloathing.com/otherimages/clanhall//hotdogstand.gif" width=100 height=100 border=0 alt="A Hot Dog Stand" title="A Hot Dog Stand"></a></td><td width=100 height=100></td></tr><tr><td width=100 height=100><a href=clan_viplounge.php?action=hottub><img src="http://images.kingdomofloathing.com/otherimages/clanhall//hottub5.gif" width=100 height=100 border=0 alt="A Relaxing Hot Tub (5 uses left today)" title="A Relaxing Hot Tub (5 uses left today)"></a></td><td width=100 height=100></td><td width=100 height=100><a href=clan_viplounge.php?action=klaw><img src="http://images.kingdomofloathing.com/otherimages/clanhall//mrklaw2.gif" width=100 height=100 border=0 alt="Deluxe Mr. Klaw "Skill" Crane Game" title="Deluxe Mr. Klaw "Skill" Crane Game"></a></td></tr><tr><td colspan=5 width=300 height=93><a href="clan_hall.php"><img src="http://images.kingdomofloathing.com/otherimages/clanhall/rumpbottom.gif" width=350 height=93 border=0></a></td></tr></table><p><Center><A href="clan_hall.php">Back to Clan Hall</a></center></td></tr></table></center></td></tr><tr><td height=4></td></tr></table></center></body></html>
 
Something has kicked in because they both see it consistently now. I was worried about my main for a second, but then realized I did not have enough money to buy anything. It shows up though. Thank you for your help and most importantly, your patience!
 
Top