zarqon
Well-known member
It's my understanding that available_choice_options() is intended to return non-empty results only when you are currently in a choice and those choices are available. If that is incorrect, please disregard this report.
In KoE, when leaving the Council (which redirects to place.php), available_choice_options() still returns the choices that were available to you in the Council, even though you are now looking at the main map and can no longer make those choices.
I discovered this because one of my scripts has a clear_status() function which attempts to complete any combats or choices you were stuck in when beginning the script, and this was causing it to make its maximum number of attempts before failing. I've worked around it for now by simply excluding that particular choice.
In case it helps, this is what the redirect looks like:
In KoE, when leaving the Council (which redirects to place.php), available_choice_options() still returns the choices that were available to you in the Council, even though you are now looking at the main map and can no longer make those choices.
I discovered this because one of my scripts has a clear_status() function which attempts to complete any combats or choices you were stuck in when beginning the script, and this was causing it to make its maximum number of attempts before failing. I've worked around it for now by simply excluding that particular choice.
In case it helps, this is what the redirect looks like:
Code:
Submitting option 25 for choice 1389
class net.sourceforge.kolmafia.session.ChoiceManager$1
Connecting to choice.php...
Requesting: https://www.kingdomofloathing.com/choice.php?whichchoice=1389&option=25&pwd
4 request properties
Field: Cookie = [PHPSESSID=2i24m1kftk9t6f8j745a917m85; AWSALB=B6JlV2iz9cf4w7MBnracNGK3hbeQ8WJqpu3D4OtZYwX00aJ1OdHoe1jdfCYUv+kVtEIEaW+fImkP6mvbExMVUGh/sppUTjBywNDR4OwKXpFKcCw8MNEJIOlTlfXy]
Field: User-Agent = [KoLmafia v19.11]
Field: Accept-Encoding = [gzip]
Field: Content-Type = [application/x-www-form-urlencoded]
Retrieving server reply...
Retrieved: https://www.kingdomofloathing.com/choice.php?whichchoice=1389&option=25&pwd
12 header fields
Field: Transfer-Encoding = [chunked]
Field: null = [HTTP/1.1 302 Moved Temporarily]
Field: Cache-Control = [no-store, no-cache, must-revalidate, post-check=0, pre-check=0]
Field: Server = [nginx/1.10.3]
Field: Connection = [keep-alive]
Field: Set-Cookie = [AWSALB=T/qHC4left6Vc2WeOTM1rF3GbBMZ7rprbI+7NdaTkKDhXz7qky5ylpv/fw0qhJo2Dv+N3gEq7C4dxPUm6FvxeSTb9HmP+6mA3sd/8iqXEfjcUs1gFWX95Sr5+eWx; Expires=Wed, 27 Nov 2019 13:37:34 GMT; Path=/]
Field: Pragma = [no-cache]
Field: Expires = [Thu, 19 Nov 1981 08:52:00 GMT]
Field: Date = [Wed, 20 Nov 2019 13:37:34 GMT]
Field: Location = [place.php?whichplace=exploathing]
Field: X-Powered-By = [PHP/5.3.29]
Field: Content-Type = [text/html]
class net.sourceforge.kolmafia.request.GenericRequest
Connecting to place.php...
Requesting: https://www.kingdomofloathing.com/place.php?whichplace=exploathing
4 request properties
Field: Cookie = [PHPSESSID=2i24m1kftk9t6f8j745a917m85; AWSALB=T/qHC4left6Vc2WeOTM1rF3GbBMZ7rprbI+7NdaTkKDhXz7qky5ylpv/fw0qhJo2Dv+N3gEq7C4dxPUm6FvxeSTb9HmP+6mA3sd/8iqXEfjcUs1gFWX95Sr5+eWx]
Field: User-Agent = [KoLmafia v19.11]
Field: Accept-Encoding = [gzip]
Field: Content-Type = [application/x-www-form-urlencoded]
Retrieving server reply...
Retrieved: https://www.kingdomofloathing.com/place.php?whichplace=exploathing
13 header fields
Field: Transfer-Encoding = [chunked]
Field: null = [HTTP/1.1 200 OK]
Field: Server = [nginx/1.10.3]
Field: Connection = [keep-alive]
Field: Pragma = [no-cache]
Field: Date = [Wed, 20 Nov 2019 13:37:34 GMT]
Field: Cache-Control = [no-store, no-cache, must-revalidate, post-check=0, pre-check=0]
Field: Content-Encoding = [gzip]
Field: Vary = [Accept-Encoding]
Field: Set-Cookie = [AWSALB=qrJE0WNeVyQYEFagomep9lwrVpcCRHzvC20hHxOHlfhVEnvGFeseqqpdOfOj6xfIGlxbyuHtTylb0Ut3WZqE9oI/VWlrqaEv6DV9w8iJ7FPKxiyT5Z7O371Faqj3; Expires=Wed, 27 Nov 2019 13:37:34 GMT; Path=/]
Field: Expires = [Thu, 19 Nov 1981 08:52:00 GMT]
Field: X-Powered-By = [PHP/5.3.29]
Field: Content-Type = [text/html; charset=UTF-8]
Retrieving server reply
ResponseText has 13669 characters.
<html><head><script language=Javascript><!--if (parent.frames.length == 0) location.href="game.php";//--></script><script language=Javascript src="https://s3.amazonaws.com/images.kingdomofloathing.com/scripts/keybinds.min.2.js"></script><script language=Javascript src="https://s3.amazonaws.com/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="https://s3.amazonaws.com/images.kingdomofloathing.com/scripts/jquery-1.3.1.min.js"></script><script type="text/javascript" src="https://s3.amazonaws.com/images.kingdomofloathing.com/scripts/pop_query.20130705.js"></script><script type="text/javascript"> function pop_ircm(clicked) { return false; } </script> <link rel="stylesheet" type="text/css" href="https://s3.amazonaws.com/images.kingdomofloathing.com/styles.20151006.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><table width=95% cellspacing=0 cellpadding=0><tr><td style="color: white;" align=center bgcolor=blue><b>The Kingdom of Exploathing</b></td></tr><tr><td style="padding: 5px; border: 1px solid blue;"><center><table><tr><td><center><div id=background style='position: relative; width:700px;height:1400px' ><img src="https://s3.amazonaws.com/images.kingdomofloathing.com/otherimages/exploathing/exploathingbg.gif" width=700 height=1400 border=0><div id=expl_bathole style=' position: absolute; top: 600; left: 562; height: 90; width: 90;'><a href=place.php?whichplace=bathole><img src="https://s3.amazonaws.com/images.kingdomofloathing.com/otherimages/exploathing/bathole.gif" width=90 height=90 border=0 alt="The Bat Hole" title="The Bat Hole"></a></div><div id=expl_battlefield style=' position: absolute; top: 867; left: 26; height: 90; width: 90;'><a href=adventure.php?snarfblat=533><img src="https://s3.amazonaws.com/images.kingdomofloathing.com/otherimages/exploathing/battlefield.gif" width=90 height=90 border=0 alt="The Exploaded Battlefield (1)" title="The Exploaded Battlefield (1)"></a></div><div id=expl_beach style=' position: absolute; top: 729; left: 167; height: 90; width: 90;'><a href=place.php?whichplace=exploathing_beach><img src="https://s3.amazonaws.com/images.kingdomofloathing.com/otherimages/exploathing/desertbeach.gif" width=90 height=90 border=0 alt="Exploaded Beach" title="Exploaded Beach"></a></div><div id=expl_blackforest style=' position: absolute; top: 563; left: 263; height: 90; width: 90;'><a href=adventure.php?snarfblat=405><img src="https://s3.amazonaws.com/images.kingdomofloathing.com/otherimages/exploathing/blackforest.gif" width=90 height=90 border=0 alt="The Black Forest (1)" title="The Black Forest (1)"></a></div><div id=expl_blackmarket style=' position: absolute; top: 555; left: 360; height: 90; width: 90;'><a href=shop.php?whichshop=blackmarket><img src="https://s3.amazonaws.com/images.kingdomofloathing.com/otherimages/exploathing/blackmarket.gif" width=90 height=90 border=0 alt="The Black Market" title="The Black Market"></a></div><div id=expl_campaway style=' position: absolute; top: 1229; left: 203; height: 90; width: 90;'><a href=place.php?whichplace=campaway><img src="https://s3.amazonaws.com/images.kingdomofloathing.com/otherimages/exploathing/campaway.gif" width=90 height=90 border=0 alt="Getaway Campsite" title="Getaway Campsite"></a></div><div id=expl_campground style=' position: absolute; top: 236; left: 20; height: 90; width: 90;'><a href=campground.php><img src="https://s3.amazonaws.com/images.kingdomofloathing.com/otherimages/exploathing/campsite.gif" width=90 height=90 border=0 alt="Your Campsite" title="Your Campsite"></a></div><div id=expl_castle style=' position: absolute; top: 1067; left: 24; height: 90; width: 90;'><a href=place.php?whichplace=giantcastle><img src="https://s3.amazonaws.com/images.kingdomofloathing.com/otherimages/exploathing/castle.gif" width=90 height=90 border=0 alt="The Castle in the Clouds in... Space" title="The Castle in the Clouds in... Space"></a></div><div id=expl_chasm style=' position: absolute; top: 855; left: 412; height: 90; width: 90;'><a href=place.php?whichplace=orc_chasm><img src="https://s3.amazonaws.com/images.kingdomofloathing.com/otherimages/exploathing/chasm.gif" width=90 height=90 border=0 alt="The Orc Chasm" title="The Orc Chasm"></a></div><div id=expl_copperhead style=' position: absolute; top: 973; left: 571; height: 90; width: 90;'><a href=place.php?whichplace=town_wrong><img src="https://s3.amazonaws.com/images.kingdomofloathing.com/otherimages/exploathing/wrongside.gif" width=90 height=90 border=0 alt="The Wrong Side of the Tracks" title="The Wrong Side of the Tracks"></a></div><div id=expl_cosmicrays style=' position: absolute; top: 198; left: 200; height: 90; width: 90;'><a href=shop.php?whichshop=exploathing><img src="https://s3.amazonaws.com/images.kingdomofloathing.com/otherimages/exploathing/cosmicrays.gif" width=90 height=90 border=0 alt="Cosmic Ray's Bazaar" title="Cosmic Ray's Bazaar"></a></div><div id=expl_council style=' position: absolute; top: 124; left: 63; height: 90; width: 90;'><a href=place.php?whichplace=exploathing&action=expl_council><img src="https://s3.amazonaws.com/images.kingdomofloathing.com/otherimages/exploathing/council.gif" width=90 height=90 border=0 alt="The Council" title="The Council"></a></div><div id=expl_cyrpt style=' position: absolute; top: 431; left: 560; height: 90; width: 90;'><a href=crypt.php><img src="https://s3.amazonaws.com/images.kingdomofloathing.com/otherimages/exploathing/cyrpt.gif" width=90 height=90 border=0 alt="The Cyrpt" title="The Cyrpt"></a></div><div id=expl_dailydungeon style=' position: absolute; top: 668; left: 32; height: 90; width: 90;'><a href=adventure.php?snarfblat=325><img src="https://s3.amazonaws.com/images.kingdomofloathing.com/otherimages/exploathing/dailydungeon.gif" width=90 height=90 border=0 alt="The Daily Dungeon (1)" title="The Daily Dungeon (1)"></a></div><div id=expl_friars style=' position: absolute; top: 429; left: 24; height: 90; width: 90;'><a href=friars.php><img src="https://s3.amazonaws.com/images.kingdomofloathing.com/otherimages/exploathing/friars.gif" width=90 height=90 border=0 alt="The Deep Fat Friars' Grove" title="The Deep Fat Friars' Grove"></a></div><div id=expl_generalstore style=' position: absolute; top: 1233; left: 464; height: 90; width: 90;'><a href=shop.php?whichshop=generalstore><img src="https://s3.amazonaws.com/images.kingdomofloathing.com/otherimages/exploathing/generalstore.gif" width=90 height=90 border=0 alt="The General Store" title="The General Store"></a></div><div id=expl_hiddencity style=' position: absolute; top: 1061; left: 431; height: 90; width: 90;'><a href=place.php?whichplace=hiddencity><img src="https://s3.amazonaws.com/images.kingdomofloathing.com/otherimages/exploathing/hiddencity.gif" width=90 height=90 border=0 alt="The Hidden City" title="The Hidden City"></a></div><div id=expl_highlands style=' position: absolute; top: 798; left: 535; height: 90; width: 90;'><a href=place.php?whichplace=highlands><img src="https://s3.amazonaws.com/images.kingdomofloathing.com/otherimages/exploathing/highlands.gif" width=90 height=90 border=0 alt="The Highlands" title="The Highlands"></a></div><div id=expl_holeinthesky style=' position: absolute; top: 198; left: 461; height: 90; width: 90;'><a href=adventure.php?snarfblat=83><img src="https://s3.amazonaws.com/images.kingdomofloathing.com/otherimages/exploathing/theholeinthesky.gif" width=90 height=90 border=0 alt="The Hole in the Sky (1)" title="The Hole in the Sky (1)"></a></div><div id=expl_invader style=' position: absolute; top: 27; left: 242; height: 90; width: 90;'><a href=adventure.php?snarfblat=534><img src="https://s3.amazonaws.com/images.kingdomofloathing.com/otherimages/exploathing/invader.gif" width=90 height=90 border=0 alt="The Invader (1)" title="The Invader (1)"></a></div><div id=expl_knob style=' position: absolute; top: 1266; left: 63; height: 90; width: 90;'><a href=cobbsknob.php><img src="https://s3.amazonaws.com/images.kingdomofloathing.com/otherimages/exploathing/cobbsknob.gif" width=90 height=90 border=0 alt="Cobb's Knob" title="Cobb's Knob"></a></div><div id=expl_mclargehuge style=' position: absolute; top: 466; left: 431; height: 90; width: 90;'><a href=place.php?whichplace=mclargehuge><img src="https://s3.amazonaws.com/images.kingdomofloathing.com/otherimages/exploathing/mclargehuge.gif" width=90 height=90 border=0 alt="Mt. McLargeHuge" title="Mt. McLargeHuge"></a></div><div id=expl_other style='text-align: center; position: absolute; top: 101; left: 586; height: 100; width: 100;'><a style='text-decoration: none; font-size: 11px; padding: 10px; display: block' href=place.php?whichplace=exploathing_other><div class="pp"><div><img alt="Other Stuff" title="Other Stuff" src="https://s3.amazonaws.com/images.kingdomofloathing.com/otherimages/zonefont/O.gif" height="10" border="0" /><img alt='' src="https://s3.amazonaws.com/images.kingdomofloathing.com/otherimages/zonefont/t.gif" height="10" border="0" /><img alt='' src="https://s3.amazonaws.com/images.kingdomofloathing.com/otherimages/zonefont/h.gif" height="10" border="0" /><img alt='' src="https://s3.amazonaws.com/images.kingdomofloathing.com/otherimages/zonefont/e.gif" height="10" border="0" /><img alt='' src="https://s3.amazonaws.com/images.kingdomofloathing.com/otherimages/zonefont/r.gif" height="10" border="0" style="margin-right: 4px"/></div><div><img alt='' src="https://s3.amazonaws.com/images.kingdomofloathing.com/otherimages/zonefont/S.gif" height="10" border="0" /><img alt='' src="https://s3.amazonaws.com/images.kingdomofloathing.com/otherimages/zonefont/t.gif" height="10" border="0" /><img alt='' src="https://s3.amazonaws.com/images.kingdomofloathing.com/otherimages/zonefont/u.gif" height="10" border="0" /><img alt='' src="https://s3.amazonaws.com/images.kingdomofloathing.com/otherimages/zonefont/f.gif" height="10" border="0" /><img alt='' src="https://s3.amazonaws.com/images.kingdomofloathing.com/otherimages/zonefont/f.gif" height="10" border="0" /></div></div></a></div><div id=expl_palindome style=' position: absolute; top: 703; left: 307; height: 90; width: 90;'><a href=place.php?whichplace=palindome><img src="https://s3.amazonaws.com/images.kingdomofloathing.com/otherimages/exploathing/palindome.gif" width=90 height=90 border=0 alt="The Palindome" title="The Palindome"></a></div><div id=expl_tavern style=' position: absolute; top: 340; left: 171; height: 90; width: 90;'><a href=tavern.php><img src="https://s3.amazonaws.com/images.kingdomofloathing.com/otherimages/exploathing/tavern.gif" width=90 height=90 border=0 alt="The Typical Tavern" title="The Typical Tavern"></a></div><div id=expl_temple style=' position: absolute; top: 1098; left: 301; height: 90; width: 90;'><a href=adventure.php?snarfblat=280><img src="https://s3.amazonaws.com/images.kingdomofloathing.com/otherimages/exploathing/temple.gif" width=90 height=90 border=0 alt="The Hidden Temple (1)" title="The Hidden Temple (1)"></a></div><div id=expl_tower style=' position: absolute; top: 966; left: 227; height: 90; width: 90;'><a href=place.php?whichplace=nstower><img src="https://s3.amazonaws.com/images.kingdomofloathing.com/otherimages/exploathing/nslair.gif" width=90 height=90 border=0 alt="The Lair of the Naughty Sorceress" title="The Lair of the Naughty Sorceress"></a></div><div id=expl_townright style=' position: absolute; top: 1112; left: 580; height: 90; width: 90;'><a href=place.php?whichplace=town_right><img src="https://s3.amazonaws.com/images.kingdomofloathing.com/otherimages/exploathing/rightside.gif" width=90 height=90 border=0 alt="The Right Side of the Tracks" title="The Right Side of the Tracks"></a></div><div id=expl_woods style=' position: absolute; top: 233; left: 328; height: 90; width: 90;'><a href=adventure.php?snarfblat=15><img src="https://s3.amazonaws.com/images.kingdomofloathing.com/otherimages/exploathing/spookyforest.gif" width=90 height=90 border=0 alt="The Spooky Forest (1)" title="The Spooky Forest (1)"></a></div><div id=expl_zeppelin style=' position: absolute; top: 68; left: 424; height: 90; width: 90;'><a href=place.php?whichplace=zeppelin><img src="https://s3.amazonaws.com/images.kingdomofloathing.com/otherimages/exploathing/zeppelin.gif" width=90 height=90 border=0 alt="The Red Zeppelin's Mooring" title="The Red Zeppelin's Mooring"></a></div></div><p></center></td></tr></table></center></td></tr><tr><td height=4></td></tr></table></center></body></html>
Processing results...
Unhandled redirect to place.php?whichplace=exploathing