New Content - Implemented attempt to eat bento box fails silently

Code:
> create 1 tempura broccoli bento box with inky squid sauce

Verifying ingredients for tempura broccoli bento box with inky squid sauce (1)...
Creating/consuming tempura broccoli bento box with inky squid sauce (1 of 1)...
Requests complete.

The components are removed from inventory until an inventory refresh. The sushi is not consumed.

I then successfully consumed the bento box manually, to see if mafia was encountering some problem with KoL not allowing it.

I do have a sushi mat (without it, I correctly get an error message telling me I cannot create sushi).

I've verified that the CLI create method works with most other sushi, it just seems to be a problem with bento.

On a related note: is there any way to consume sushi via ASH?
 
Last edited:

Veracity

Developer
Staff member
A debug log would be nice.

Use the cli_execute() function to do it via ASH; since sushi are not "items", any ASH function which requires a $item argument cannot use them.
 
Here's a log trying to do it now (although stomach is full for the day) and it looks like it should have worked - response includes kol saying "That looks good, but you're way too full to eat it right now.".

Code:
> create 1 tempura broccoli bento box with inky squid sauce

Verifying ingredients for tempura broccoli bento box with inky squid sauce (1)...
Creating/consuming tempura broccoli bento box with inky squid sauce (1 of 1)...
class net.sourceforge.kolmafia.request.SushiRequest
Connecting to sushi.php...

Requesting: http://www.kingdomofloathing.com/sushi.php?action=Yep.&whichsushi=7&veggie=3689&dippin=6395
3 request properties
Field: Cookie = [appserver=www10; PHPSESSID=i83uocsd6a6beov7e6q2inc233]
Field: User-Agent = [KoLmafia v16.7]
Field: Content-Type = [application/x-www-form-urlencoded]

Retrieving server reply...

Retrieved: http://www.kingdomofloathing.com/sushi.php?action=Yep.&whichsushi=7&veggie=3689&dippin=6395
10 header fields
Field: null = [HTTP/1.1 200 OK]
Field: Cache-Control = [no-store, no-cache, must-revalidate, post-check=0, pre-check=0]
Field: Server = [nginx/1.0.15]
Field: Connection = [keep-alive]
Field: Pragma = [no-cache]
Field: Expires = [Thu, 19 Nov 1981 08:52:00 GMT]
Field: Content-Length = [4183]
Field: Date = [Wed, 11 Feb 2015 16:32:19 GMT]
Field: X-Powered-By = [PHP/5.3.3]
Field: Content-Type = [text/html; charset=UTF-8]

Retrieving server reply
ResponseText has 4183 characters.
<html><head><script language=Javascript><!--if (parent.frames.length == 0) location.href="game.php";//--></script><script language=Javascript src="//images.kingdomofloathing.com/scripts/keybinds.min.2.js"></script><script language=Javascript src="//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 src="//images.kingdomofloathing.com/scripts/jquery-1.3.1.min.js"></script><link rel="stylesheet" type="text/css" href="//images.kingdomofloathing.com/styles.20130904.css"><style type='text/css'>.faded {zoom: 1;filter: alpha(opacity=35);opacity: 0.35;-khtml-opacity: 0.35;-moz-opacity: 0.35;}</style></head><body><center><script language=Javascript><!--function updatedivs() {var picked=document.makesushi.whichsushi.value;if (picked<4) {document.getElementById("topping").style.display='none';document.getElementById("filling1").style.display='none';document.getElementById("veggie").style.display='none';document.getElementById("dipping").style.display='none';} else if (picked==7) {document.getElementById("topping").style.display='none';document.getElementById("filling1").style.display='none';document.getElementById("veggie").style.display='inline';document.getElementById("dipping").style.display='inline';} else {document.getElementById("topping").style.display='inline';document.getElementById("filling1").style.display='inline';document.getElementById("veggie").style.display='none';document.getElementById("dipping").style.display='none';}}//--></script><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>That looks good, but you're way too full to eat it right now.</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>Sushi-Rolling Mat</b></td></tr><tr><td style="padding: 5px; border: 1px solid blue;"><center><table><tr><td><center><table><tr><td><b>You currently have:</b><br>beefy fish meat (14)<br>glistening fish meat (13)<br>slick fish meat (14)<br>white rice (2)<br>seaweed (3)<br>sea salt crystal (110)<br>Mer-kin lunchbox (2)<br>tempura broccoli (2)<br>inky squid sauce (2)<br></td></tr></table><form name=makesushi action=sushi.php method=post><input type=hidden name=action value=Yep.><input type=hidden name=pwd value=17f471b1000011cad4361f3d64a684d6><p>Make Sushi: <select name=whichsushi onChange='updatedivs();'><option value=1 >beefy nigiri (2)</option><option value=2 >glistening nigiri (2)</option><option value=3 >slick nigiri (2)</option><option value=4 >beefy maki (2)</option><option value=5 >glistening maki (2)</option><option value=6 >slick maki (2)</option><option value=7 selected>bento box</option></select><div id=topping style='display: none;'><p>Topping: <select name=whichtopping><option value=0>- select a topping -</option><option value=3495>sea salt crystal (110)</option></select></div><div id=filling1 style='display: none;'><p>Additional Filling: <select name=whichfilling1><option value=0>- select a filling -</option></select></div><div id=veggie style='display: inline;'><p>Vegetable: <select name=veggie><option value=3689>tempura broccoli (2)</option></select></div><div id=dipping style='display: inline;'><p>Dipping Sauce: <select name=dipping><option value=6395>inky squid sauce (2)</option></select></div><p><input class=button type=submit value="Roll and Eat"></form></center><p><center><a href="campground.php">Back to your Campsite</a></center></td></tr></table></center></td></tr><tr><td height=4></td></tr></table></center></body></html>
Processing results...
Requests complete.
 
Last edited:
Ok, here's the result of an alt trying it. Same issue.

Code:
> create 1 tempura broccoli bento box with inky squid sauce

Verifying ingredients for tempura broccoli bento box with inky squid sauce (1)...
Creating/consuming tempura broccoli bento box with inky squid sauce (1 of 1)...
class net.sourceforge.kolmafia.request.SushiRequest
Connecting to sushi.php...

Requesting: http://www.kingdomofloathing.com/sushi.php?action=Yep.&whichsushi=7&veggie=3689&dippin=6395
3 request properties
Field: Cookie = [appserver=www9; PHPSESSID=nn1pkm947e0ith41s945pjn422]
Field: User-Agent = [KoLmafia v16.8]
Field: Content-Type = [application/x-www-form-urlencoded]

Retrieving server reply...

Retrieved: http://www.kingdomofloathing.com/newchatmessages.php?lasttime=1396347483&afk=0
10 header fields
Field: null = [HTTP/1.1 200 OK]
Field: Cache-Control = [no-store, no-cache, must-revalidate, post-check=0, pre-check=0]
Field: Server = [nginx/1.0.15]
Field: Connection = [keep-alive]
Field: Pragma = [no-cache]
Field: Expires = [Thu, 19 Nov 1981 08:52:00 GMT]
Field: Content-Length = [26]
Field: Date = [Wed, 11 Feb 2015 22:01:45 GMT]
Field: X-Powered-By = [PHP/5.3.3]
Field: Content-Type = [text/html; charset=UTF-8]

Retrieving server reply
ResponseText has 26 characters.
<!--lastseen:1396347488-->

Retrieved: http://www.kingdomofloathing.com/sushi.php?action=Yep.&whichsushi=7&veggie=3689&dippin=6395
10 header fields
Field: null = [HTTP/1.1 200 OK]
Field: Cache-Control = [no-store, no-cache, must-revalidate, post-check=0, pre-check=0]
Field: Server = [nginx/1.0.15]
Field: Connection = [keep-alive]
Field: Pragma = [no-cache]
Field: Expires = [Thu, 19 Nov 1981 08:52:00 GMT]
Field: Content-Length = [4051]
Field: Date = [Wed, 11 Feb 2015 22:01:45 GMT]
Field: X-Powered-By = [PHP/5.3.3]
Field: Content-Type = [text/html; charset=UTF-8]

Retrieving server reply
ResponseText has 4051 characters.
<html><head><script language=Javascript><!--if (parent.frames.length == 0) location.href="game.php";top.charpane.location.href="charpane.php";//--></script><script language=Javascript src="//images.kingdomofloathing.com/scripts/keybinds.min.2.js"></script><script language=Javascript src="//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 src="//images.kingdomofloathing.com/scripts/jquery-1.3.1.min.js"></script><link rel="stylesheet" type="text/css" href="//images.kingdomofloathing.com/styles.20130904.css"><style type='text/css'>.faded {zoom: 1;filter: alpha(opacity=35);opacity: 0.35;-khtml-opacity: 0.35;-moz-opacity: 0.35;}</style></head><body><center><script language=Javascript><!--function updatedivs() {var picked=document.makesushi.whichsushi.value;if (picked<4) {document.getElementById("topping").style.display='none';document.getElementById("filling1").style.display='none';document.getElementById("veggie").style.display='none';document.getElementById("dipping").style.display='none';} else if (picked==7) {document.getElementById("topping").style.display='none';document.getElementById("filling1").style.display='none';document.getElementById("veggie").style.display='inline';document.getElementById("dipping").style.display='inline';} else {document.getElementById("topping").style.display='inline';document.getElementById("filling1").style.display='inline';document.getElementById("veggie").style.display='none';document.getElementById("dipping").style.display='none';}}//--></script><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>That's some bad sauce, Harry.</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>Sushi-Rolling Mat</b></td></tr><tr><td style="padding: 5px; border: 1px solid blue;"><center><table><tr><td><center><table><tr><td><b>You currently have:</b><br>beefy fish meat<br>glistening fish meat<br>slick fish meat<br>white rice<br>seaweed<br>Mer-kin lunchbox<br>tempura broccoli<br>inky squid sauce<br></td></tr></table><form name=makesushi action=sushi.php method=post><input type=hidden name=action value=Yep.><input type=hidden name=pwd value=8ce340f92b239bbfd7da05e9b54df583><p>Make Sushi: <select name=whichsushi onChange='updatedivs();'><option value=1 >beefy nigiri</option><option value=2 >glistening nigiri</option><option value=3 >slick nigiri</option><option value=4 >beefy maki</option><option value=5 >glistening maki</option><option value=6 >slick maki</option><option value=7 selected>bento box</option></select><div id=topping style='display: none;'><p>Topping: <select name=whichtopping><option value=0>- select a topping -</option></select></div><div id=filling1 style='display: none;'><p>Additional Filling: <select name=whichfilling1><option value=0>- select a filling -</option></select></div><div id=veggie style='display: inline;'><p>Vegetable: <select name=veggie><option value=3689>tempura broccoli</option></select></div><div id=dipping style='display: inline;'><p>Dipping Sauce: <select name=dipping><option value=6395>inky squid sauce</option></select></div><p><input class=button type=submit value="Roll and Eat"></form></center><p><center><a href="campground.php">Back to your Campsite</a></center></td></tr></table></center></td></tr><tr><td height=4></td></tr></table></center></body></html>
Processing results...
class net.sourceforge.kolmafia.request.ApiRequest
Connecting to api.php...

Requesting: http://www.kingdomofloathing.com/api.php?what=status&for=KoLmafia
3 request properties
Field: Cookie = [appserver=www9; PHPSESSID=nn1pkm947e0ith41s945pjn422]
Field: User-Agent = [KoLmafia v16.8]
Field: Content-Type = [application/x-www-form-urlencoded]

Retrieving server reply...

Retrieved: http://www.kingdomofloathing.com/api.php?what=status&for=KoLmafia
10 header fields
Field: null = [HTTP/1.1 200 OK]
Field: Cache-Control = [no-store, no-cache, must-revalidate, post-check=0, pre-check=0]
Field: Server = [nginx/1.0.15]
Field: Connection = [keep-alive]
Field: Pragma = [no-cache]
Field: Expires = [Thu, 19 Nov 1981 08:52:00 GMT]
Field: Content-Length = [2817]
Field: Date = [Wed, 11 Feb 2015 22:01:46 GMT]
Field: X-Powered-By = [PHP/5.3.3]
Field: Content-Type = [text/html; charset=UTF-8]

Retrieving server reply
ResponseText has 2817 characters.
{"playerid":"2016571","name":"goddam rockstar","hardcore":"0","ascensions":"1","path":"0","sign":"Packrat","roninleft":"0","casual":"0","drunk":"0","full":"0","turnsplayed":"24164","familiar":"18","hp":"1529","mp":"4260","meat":"5439163","adventures":"177","level":"38","rawmuscle":"837422","rawmysticality":"813222","rawmoxie":"2055583","basemuscle":"915","basemysticality":"901","basemoxie":"1433","familiarexp":400,"class":"6","lastadv":{"id":"80","name":"The Valley of Rof L'm Fao","link":"adventure.php?snarfblat=80","container":"mountains.php"},"title":"38","pvpfights":"100","maxhp":1768,"maxmp":4636,"spleen":"0","muscle":1652,"mysticality":1627,"moxie":4386,"famlevel":30,"locked":false,"limitmode":0,"daysthisrun":"1922","equipment":{"hat":"6535","shirt":"5332","pants":"1792","weapon":"7029","offhand":"7019","acc1":"7023","acc2":"5460","acc3":"4116","container":"6337","familiarequip":"1166","fakehands":0,"cardsleeve":0},"stickers":["3512",0,0],"soulsauce":0,"fury":0,"pastathrall":0,"pastathralllevel":1,"folder_holder":["00","00","00","00","00"],"eleronkey":"af46ec3b3048bfc9e8c255c2ab893603","flag_config":{"devskills":0,"shortcharpane":0,"lazyinventory":0,"compactfights":0,"poppvpsearch":0,"questtracker":0,"charpanepvp":0,"australia":0,"fffights":0,"compactchar":0,"noframesize":0,"fullnesscounter":"1","nodevdebug":0,"noquestnudge":0,"nocalendar":0,"alwaystag":0,"clanlogins":0,"quickskills":"1","hprestorers":"1","hidejacko":0,"anchorshelf":"1","showoutfit":0,"wowbar":"1","swapfam":0,"hidefamfilter":0,"invimages":0,"showhandedness":0,"acclinks":"1","invadvancedsort":0,"powersort":"1","autodiscard":0,"unfamequip":0,"invclose":0,"sellstuffugly":0,"oneclickcraft":"1","dontscroll":0,"multisume":0,"threecolinv":0,"profanity":0,"tc_updatetitle":0,"tc_alwayswho":0,"tc_times":0,"tc_combineallpublic":0,"tc_eventsactive":0,"tc_hidebadges":0,"tc_colortabs":0,"tc_modifierkey":0,"tc_tabsonbottom":0,"chatversion":0,"aabosses":0,"compacteffects":0,"slimhpmpdisplay":0,"ignorezonewarnings":0,"whichpenpal":0,"compactmanuel":0,"hideefarrows":0,"questtrackertiny":0,"questtrackerscroll":0,"autoattack":0,"topmenu":0},"recalledskills":0,"freedralph":0,"mcd":"10","pwd":"8ce340f92b239bbfd7da05e9b54df583","rollover":1423711799,"turnsthisrun":21783,"familiar_wellfed":0,"intrinsics":[],"familiarpic":"hat2","pathname":"","effects":{"fe25963fb651fc5d81ed5a098b509030":["Cletus's Canticle of Celerity","5","celerity","skill:6005","62"],"63e73adb3ecfb0cbf544db435eeeaf00":["Fat Leon's Phat Loot Lyric","5","fatleons","skill:6010","67"],"2e5a803cf1be5b3d2aaa897e60f29138":["Stevedave's Shanty of Superiority","5","superiority","skill:6013","70"],"63965c29290f23349477c4199c9b10c3":["Optimist Primal","20","happy","","334"],"70b571b8fe1e18020dd5e0974156807f":["Merry Smithsness","119","sad","item:7004","1476"]}}
Processing result: Mer-kin lunchbox (-1)
Processing result: beefy fish meat (-1)
Processing result: glistening fish meat (-1)
Processing result: slick fish meat (-1)
Processing result: white rice (-1)
Processing result: seaweed (-1)
Processing result: inky squid sauce (-1)
Processing result: tempura broccoli (-1)
Requests complete.

class net.sourceforge.kolmafia.request.ChatRequest
Connecting to newchatmessages.php...

Kol's response is "That's some bad sauce, Harry."
I notice the POST request ends with
Code:
dippin=6395
but the select name is "dipping"
 
Works just fine, thank you.

Code:
> create 1 tempura broccoli bento box with inky squid sauce

Verifying ingredients for tempura broccoli bento box with inky squid sauce (1)...
Creating/consuming tempura broccoli bento box with inky squid sauce (1 of 1)...
You gain 32 Adventures
You acquire an effect: Fishy (duration: 80 Adventures)
You gain 45 Beefiness
You gain 99 Enchantedness
You gain 40 Smarm
Requests complete.
 
Top