Bug - Fixed Baby Bugged Bugbear visits the arena...

Spiny

Member
Per the wiki, when visiting the arena with the Baby Bugged Bugbear:

Code:
    * When entering the arena for the first time each day (awards bugged beanie only): 

    Congratulations on your %arenawins arena win. You've earned a prize from the Arena Goodies Sack! 
    You acquire an item: bugged beanie 

    Warning: Parse error (function not found) in arena.php line 2225 

    You acquire an item: lead necklace 

    Warning: Parse error (function not found) in arena.php line 2225 

    You acquire an item: lead necklace 

    Warning: Parse error (function not found) in arena.php line 2225 

    You acquire an item: lead necklace 

    Warning: Parse error (function not found in arûñáabort

While it is true that you get the bugged beanie, the 3 lead necklace acquisitions are false messages. Mafia currently believes them to be accurate and adds 3 lead necklaces to inventory count.

Note that I don't have this familiar and cannot personally test this, but this was the case as reported to me by my friend earlier today using r8378.
 

HippoKing

Member
Registers lead necklaces when sent to arena with Bugged Bugbear

When you visit the arena with the bugbear, you get the "bugged" messages and receive your bugged beanie.

The page also used to say "You acquire an item: Lead Necklace" three times, although now that text is no longer visible and the page looks like this:
arena.png

In the gCLI log:
Code:
> You acquire an item: bugged beanie
You acquire an item: lead necklace
You acquire an item: lead necklace
You acquire an item: lead necklace

Here is the HTML of the arena page (as seen by firefox) from the above request, which weirdly doesn't show the lead necklaces now. Is mafia stripping them from the HTML before it reaches the browser but after it's parsed for items?
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.js?date=20090915"></script>
<script language="javascript">function chatFocus(){if(top.chatpane.document.chatform.graf) top.chatpane.document.chatform.graf.focus();}
defaultBind(47, CTRL, chatFocus); defaultBind(190, CTRL, chatFocus);defaultBind(191, CTRL, chatFocus); defaultBind(47, META, chatFocus);defaultBind(190, META, chatFocus); defaultBind(191, META, chatFocus);</script><link rel="stylesheet" type="text/css" href="http://images.kingdomofloathing.com/styles.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=blue><b>The Cake-Shaped Arena</b></td></tr><tr><td style="padding: 5px; border: 1px solid blue;"><center><table><tr><td>Congratulations on your %arenawins arena win. You've earned a prize from the Arena Goodies Sack!
			<p>
			You acquire an item: <b>bugged beanie</b> <font size=1>[<a href="inv_equip.php?which=2&action=equip&whichitem=4575&pwd=8c9b6dd47e23e8105449612bcd92648f"><span style='position: relative;' onMouseOver="document.getElementById('whatif0').style.visibility='visible';" onMouseOut="document.getElementById('whatif0').style.visibility='hidden';"><table border=2 id='whatif0' style='background-color: white; visibility: hidden; position: absolute; right: 0px; top: 1.2em;'><tr><td>Familiar Weight</td><td>15.0 (+10.0)</td></tr></table>equip</span></a>]</font></td><td valign=center>Hello there, and welcome to the Cake-Shaped Arena.  I'm Susie, the Arena Master.  I mean, Mistress.</td></tr></table></center><p>In the Arena, your familiars can compete in a variety of events, against the House Familiars, for experience, prestige, and fabulous prizes.  To enter your familiar in an event costs 100 Meat, and takes 1 Adventure.<p>You have won 0 times. Only 10 wins left until your next prize!<form name=compete action=arena.php method=post><input type=hidden name=action value="go"><center><b>Today's Competitors:</b><table><tr><td colspan=3 bgcolor=black height=1></td></tR><tr><td valign=center><input type=radio  checked name=whichopp value=15></td><td valign=center><img src="http://images.kingdomofloathing.com/itemimages/familiar15.gif" width=30 height=30></td><td class=small><b>Selena Farenheit</b> the Baby Gravy Fairy<br>28 lbs., 173,520 wins, 1,419,625 losses.</td></tr><tr><td colspan=3 bgcolor=black height=1></td></tR><tr><td valign=center><input type=radio  name=whichopp value=106></td><td valign=center><img src="http://images.kingdomofloathing.com/itemimages/familiar6.gif" width=30 height=30></td><td class=small><b>Baby's New Shoes</b> the Fuzzy Dice<br>19 lbs., 229,606 wins, 1,956,761 losses.</td></tr><tr><td colspan=3 bgcolor=black height=1></td></tR><tr><td valign=center><input type=radio  name=whichopp value=108></td><td valign=center><img src="http://images.kingdomofloathing.com/itemimages/familiar8.gif" width=30 height=30></td><td class=small><b>Cursed Asian</b> the Barrrnacle<br>14 lbs., 167,424 wins, 1,104,929 losses.</td></tr><tr><td colspan=3 bgcolor=black height=1></td></tR><tr><td valign=center><input type=radio  name=whichopp value=117></td><td valign=center><img src="http://images.kingdomofloathing.com/itemimages/familiar17.gif" width=30 height=30></td><td class=small><b>Hershey</b> the Star Starfish<br>5 lbs., 209,983 wins, 2,029,943 losses.</td></tr><tr><td colspan=3 bgcolor=black height=1></td></tR><tr><td valign=center><input type=radio  name=whichopp value=118></td><td valign=center><img src="http://images.kingdomofloathing.com/itemimages/hat2.gif" width=30 height=30></td><td class=small><b>Au Lait</b> the Hovering Sombrero<br>11 lbs., 168,987 wins, 1,952,857 losses.</td></tr><tr><td colspan=3 bgcolor=black height=1></td></tR></table><p><b>Events:</b><table><tr><td height=1 bgcolor=black></td></tr><tr><td><input type=radio name=event value=1 checked>Ultimate Cage Match<br><input type=radio name=event value=2 >Scavenger Hunt<br><input type=radio name=event value=3 >Obstacle Course<br><input type=radio name=event value=4 >Hide and Seek</td></tr><tr><td height=1 bgcolor=black></td></tr></table><p><input class=button type=submit value="Compete! (1)"><p><center><a href="plains.php">Go Back to the Nearby Plains</a></center></td></tr></table></center></td></tr><tr><td height=4></td></tr></table></center></body><script src="/onfocus.js"></script></html>

Anyway, I tried again using another account (thanks BCC) with the debug log running to see what happened. This is rather more bloated than it needs to be since I made the arena.php call with an ASH script and printed the HTML to a file (I didn't want to lose any HTML data, completely forgot it'd be in the debug log). It also means there is no debug info on HTML changes made to that page. Sorry about that.
Code:
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
             KoLmafia r8389, Windows 7, Java 1.6.0_17
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Please note: do not post this log in the KoLmafia thread. If you
 would like the dev team to look at it, please write a bug report
 at kolmafia.us. Include specific information about what you were 
 doing when you made this and include the log as an attachment.
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Timestamp: Fri Apr 16 18:13:39 BST 2010
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=



> call scripts\test.ash

<SCOPE>
   <TYPES>
   <VARIABLES>
   <FUNCTIONS>
   <COMMANDS>
   <MAIN>
      <FUNC void main>
         <SCOPE>
            <TYPES>
            <VARIABLES>
               <VAR buffer [int] dongs>
            <FUNCTIONS>
            <COMMANDS>
               <ASSIGN dongs>
                  <VALUE buffer [int] [<initial value>]>
               <ASSIGN dongs[]>
                  <KEY>
                     <VALUE int [0]>
                  <CALL visit_url>
                     <VALUE string [arena.php]>
               <CALL map_to_file>
                  <VARREF> dongs
                  <VALUE string [loldongs.html]>
Executing top-level commands
Executing main function
   [NORMAL] <- void
      Eval: visit_url()
         Param #1: "arena.php"
         [NORMAL] <- "arena.php"
         Entering function visit_url
class net.sourceforge.kolmafia.request.GenericRequest
Connecting to arena.php...

Requesting: http://www4.kingdomofloathing.com/arena.php
2 request properties

Field: Cookie = [PHPSESSID=g9mqrdrm2bsvj6cgbj8pobq3b7]
Field: User-Agent = [KoLmafia v14.0]

Retrieving server reply...

Retrieved: http://www4.kingdomofloathing.com/arena.php

10 header fields
Field: null = [HTTP/1.1 200 OK]
Field: Date = [Fri, 16 Apr 2010 17:13:49 GMT]
Field: Content-Length = [4858]
Field: Expires = [Thu, 19 Nov 1981 08:52:00 GMT]
Field: Connection = [close]
Field: Content-Type = [text/html; charset=UTF-8]
Field: Server = [Apache/2.2.3 (Red Hat)]
Field: X-Powered-By = [PHP/5.1.6]
Field: Cache-Control = [no-store, no-cache, must-revalidate, post-check=0, pre-check=0]
Field: Pragma = [no-cache]

<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="http://images.kingdomofloathing.com/scripts/keybinds.min.2.js"></script><script language=Javascript src="http://images.kingdomofloathing.com/scripts/window.js?date=20090915"></script><script language="javascript">function chatFocus(){if(top.chatpane.document.chatform.graf) top.chatpane.document.chatform.graf.focus();}defaultBind(47, CTRL, chatFocus); defaultBind(190, CTRL, chatFocus);defaultBind(191, CTRL, chatFocus); defaultBind(47, META, chatFocus);defaultBind(190, META, chatFocus); defaultBind(191, META, chatFocus);</script><link rel="stylesheet" type="text/css" href="http://images.kingdomofloathing.com/styles.css"></head><body><centeR><table  width=95%  cellspacing=0 cellpadding=0><tr><td style="color: white;" align=center bgcolor=blue><b>The Cake-Shaped Arena</b></td></tr><tr><td style="padding: 5px; border: 1px solid blue;"><center><table><tr><td>Congratulations on your %arenawins arena win. You've earned a prize from the Arena Goodies Sack!<p>You acquire an item: <b>bugged beanie</b><p><b>Warning:</b> Parse error (function not found) in arena.php line 2225<p>You acquire an item: <b>lead necklace</b><p><b>Warning:</b> Parse error (function not found) in arena.php line 2225<p>You acquire an item: <b>lead necklace</b><p><b>Warning:</b> Parse error (function not found) in arena.php line 2225<p>You acquire an item: <b>lead necklace</b><p><b>Warning:</b> Parse error (function not found in arûñá<b>abort</b><p>[ûñá]<center><Table width=90%><td><img src="http://images.kingdomofloathing.com/otherimages/arenamaster.gif" width=60 height=100 alt="Susie, the Arena Mistress"></td><td valign=center>Hello there, and welcome to the Cake-Shaped Arena.  I'm Susie, the Arena Master.  I mean, Mistress.</td></tr></table></center><p>In the Arena, your familiars can compete in a variety of events, against the House Familiars, for experience, prestige, and fabulous prizes.  To enter your familiar in an event costs 100 Meat, and takes 1 Adventure.<p>You have won 0 times. Only 10 wins left until your next prize!<form name=compete action=arena.php method=post><input type=hidden name=action value="go"><center><b>Today's Competitors:</b><table><tr><td colspan=3 bgcolor=black height=1></td></tR><tr><td valign=center><input type=radio  checked name=whichopp value=15></td><td valign=center><img src="http://images.kingdomofloathing.com/itemimages/familiar15.gif" width=30 height=30></td><td class=small><b>Selena Farenheit</b> the Baby Gravy Fairy<br>28 lbs., 173,522 wins, 1,419,628 losses.</td></tr><tr><td colspan=3 bgcolor=black height=1></td></tR><tr><td valign=center><input type=radio  name=whichopp value=106></td><td valign=center><img src="http://images.kingdomofloathing.com/itemimages/familiar6.gif" width=30 height=30></td><td class=small><b>Baby's New Shoes</b> the Fuzzy Dice<br>19 lbs., 229,607 wins, 1,956,761 losses.</td></tr><tr><td colspan=3 bgcolor=black height=1></td></tR><tr><td valign=center><input type=radio  name=whichopp value=108></td><td valign=center><img src="http://images.kingdomofloathing.com/itemimages/familiar8.gif" width=30 height=30></td><td class=small><b>Cursed Asian</b> the Barrrnacle<br>14 lbs., 167,425 wins, 1,104,929 losses.</td></tr><tr><td colspan=3 bgcolor=black height=1></td></tR><tr><td valign=center><input type=radio  name=whichopp value=117></td><td valign=center><img src="http://images.kingdomofloathing.com/itemimages/familiar17.gif" width=30 height=30></td><td class=small><b>Hershey</b> the Star Starfish<br>5 lbs., 209,984 wins, 2,030,044 losses.</td></tr><tr><td colspan=3 bgcolor=black height=1></td></tR><tr><td valign=center><input type=radio  name=whichopp value=118></td><td valign=center><img src="http://images.kingdomofloathing.com/itemimages/hat2.gif" width=30 height=30></td><td class=small><b>Au Lait</b> the Hovering Sombrero<br>11 lbs., 168,993 wins, 1,952,923 losses.</td></tr><tr><td colspan=3 bgcolor=black height=1></td></tR></table><p><b>Events:</b><table><tr><td height=1 bgcolor=black></td></tr><tr><td><input type=radio name=event value=1 checked>Ultimate Cage Match<br><input type=radio name=event value=2 >Scavenger Hunt<br><input type=radio name=event value=3 >Obstacle Course<br><input type=radio name=event value=4 >Hide and Seek</td></tr><tr><td height=1 bgcolor=black></td></tr></table><p><input class=button type=submit value="Compete! (1)"><p><center><a href="plains.php">Go Back to the Nearby Plains</a></center></td></tr></table></center></td></tr><tr><td height=4></td></tr></table></center></body></html>
Processing results...
You acquire an item: bugged beanie
Processing result: bugged beanie
You acquire an item: lead necklace
Processing result: lead necklace
You acquire an item: lead necklace
Processing result: lead necklace
You acquire an item: lead necklace
Processing result: lead necklace
class net.sourceforge.kolmafia.request.CharPaneRequest
Connecting to charpane.php...

Requesting: http://www4.kingdomofloathing.com/charpane.php
2 request properties

Field: Cookie = [PHPSESSID=g9mqrdrm2bsvj6cgbj8pobq3b7]
Field: User-Agent = [KoLmafia v14.0]

Retrieving server reply...

Retrieved: http://www4.kingdomofloathing.com/charpane.php

10 header fields
Field: null = [HTTP/1.1 200 OK]
Field: Date = [Fri, 16 Apr 2010 17:13:49 GMT]
Field: Content-Length = [6753]
Field: Expires = [Thu, 19 Nov 1981 08:52:00 GMT]
Field: Connection = [close]
Field: Content-Type = [text/html; charset=UTF-8]
Field: Server = [Apache/2.2.3 (Red Hat)]
Field: X-Powered-By = [PHP/5.1.6]
Field: Cache-Control = [no-store, no-cache, must-revalidate, post-check=0, pre-check=0]
Field: Pragma = [no-cache]

<html><head><link rel="stylesheet" type="text/css" href="http://images.kingdomofloathing.com/styles.css"></head><script src="http://images.kingdomofloathing.com/scripts/window.js"></script><script type="text/javascript" src="http://images.kingdomofloathing.com/scripts/jquery-1.3.1.min.js"></script><script type="text/javascript">var todo = [];function nextAction() {var next_todo = todo.shift();if (next_todo) {eval(next_todo);}}function dojax(dourl, afterFunc, hoverCaller, failureFunc) {$.ajax({type: 'GET', url: dourl, cache: false,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(); }return;}			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(); }}});}var FAMILIARFAVES = [["Gort","He-Boulder","heboulder",113],["Gonald","Frumious Bandersnatch","bandersnatch",105],["Gog","Slimeling","slimeling",112],["Trort","Baby Sandworm","babyworm",111],["Gort","Green Pixie","pictsie",70] ];</script><script type="text/javascript" src="http://images.kingdomofloathing.com/scripts/familiarfaves.20100115.js"></script><script type="text/javascript" src="http://images.kingdomofloathing.com/scripts/cookie.js?date=20100120"></script><script>var turnsplayed = 98734;var turnsthisrun = 121;var rollover = 1271475000;var rightnow = 1271438031;var pwdhash = "9873f83e8a8064eb3e19f4601aa26743";</script><script language=Javascript src="http://images.kingdomofloathing.com/scripts/charpane.4.js"></script><body bgcolor=white text=black link=black alink=black vlink=black onload='startup();'><center id='rollover' class=tiny style='color: red; cursor: pointer;' onClick='doc("maintenance");'></center><center><table align=center><tr><td><a target=mainpane href="charsheet.php"><img src="http://images.kingdomofloathing.com/otherimages/pastamancer_f.gif" width=60 height=100 border=0></a></td><td valign=center><center><a target=mainpane href="charsheet.php"><b>bumcheekcity</b></a><br>Level 5<br>Carbohydrate Cognoscenti<table title='98 / 441' cellpadding=0 cellspacing=0 style='border: 1px solid #5A5A5A'><tr><td height=5 width=22 bgcolor=#5A5A5A></td><td width=78 bgcolor=white></td></tr></table></td></tr></table><table align=center><tr><td align=right>Muscle:</td><td align=left><b><font color=blue>20</font> (17)</b><table title='5 / 35' cellpadding=0 cellspacing=0 style='border: 1px solid #5A5A5A'><tr><td height=3 width=7 bgcolor=#5A5A5A></td><td width=43 bgcolor=white></td></tr></table></td></tr><tr><td align=right>Mysticality:</td><td align=left><b><font color=blue>35</font> (22)</b><table title='14 / 45' cellpadding=0 cellspacing=0 style='border: 1px solid #5A5A5A'><tr><td height=3 width=15 bgcolor=#5A5A5A></td><td width=35 bgcolor=white></td></tr></table></td></tr><tr><td align=right>Moxie:</td><td align=left><b><font color=blue>30</font> (17)</b><table title='14 / 35' cellpadding=0 cellspacing=0 style='border: 1px solid #5A5A5A'><tr><td height=3 width=20 bgcolor=#5A5A5A></td><td width=30 bgcolor=white></td></tr></table></td></tr></table><table cellpadding=3 align=center><tr><td align=center><img src="http://images.kingdomofloathing.com/itemimages/hp.gif" class=hand onclick='doc("hp");'><br><span class=black>22 / 23</span></td><td align=center><img src="http://images.kingdomofloathing.com/itemimages/mp.gif" class=hand onclick='doc("mp");'><br><span class=black>40 / 108</span></td></tr><tr><td align=center><img src="http://images.kingdomofloathing.com/itemimages/meat.gif" class=hand onclick='doc("meat");'><br><span class=black>8,678</span></td><td align=center><img src="http://images.kingdomofloathing.com/itemimages/hourglass.gif" class=hand onclick='doc("adventures");'><br><span class=black>75</span></td></tr></table><font size=2><b>Hardcore</b></font><br><br><font size=2><b><a onclick='if (top.mainpane.focus) top.mainpane.focus();' class=nounder href="plains.php" target=mainpane>Last Adventure:</a></b></font><br><center><table cellspacing=0 cellpadding=0><tr><td><font size=2><a onclick='if (top.mainpane.focus) top.mainpane.focus();' target=mainpane href="adventure.php?snarfblat=114">The Outskirts of Cobb's Knob</a><br></font></td></tr></table></center><p><table width=90%><tr><td colspan=2 align=center><font size=2><b>Familiar:</b></font></td></tr><tr><td align=center valign=center><a target=mainpane href="familiar.php" class="familiarpick"><img src="http://images.kingdomofloathing.com/itemimages/babybugbug.gif" width=30 height=30 border=0></a></td><td valign=center align=left><a target=mainpane href="familiar.php" class="familiarpick"><b><font size=2>snɔɐʇɹɐdS</a></b>, the  <b>6</b> pound Baby Bugged Bugbear<table title='0 / 4' cellpadding=0 cellspacing=0 style='border: 1px solid #5A5A5A'><tr><td height=3 width=0 bgcolor=#5A5A5A></td><td width=100 bgcolor=white></td></tr></table></font></td></tr></table></center><center><p><b><font size=2>Effects:</font></b><br></center><center><table><tr><td><img src="http://images.kingdomofloathing.com/itemimages/madrigal.gif" class=hand onClick='eff("c77eb3298c1bcba5e0147eba77a5a802");' oncontextmenu='return shrug(61, "The Moxious Madrigal");'></td><td valign=center><font size=2>The Moxious Madrigal (4)</font><br></td></tr><tr><td><img src="http://images.kingdomofloathing.com/itemimages/mojomusc.gif" class=hand onClick='eff("80224f21d262123e7e370d440ce36937");' oncontextmenu='return shrug(64, "The Magical Mojomuscular Melody");'></td><td valign=center><font size=2>The Magical Mojomuscular Melody (4)</font><br></td></tr><tr><td><img src="http://images.kingdomofloathing.com/itemimages/fusilli.gif" class=hand onClick='eff("bb44871dd165d4dc9b4d35daa46908ef");'></td><td valign=center><font size=2>Springy Fusilli (10)</font><br></td></tr></table></center></body></html>
         Function visit_url returned: <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="http://images.kingdomofloathing.com/scripts/keybinds.min.2.js"></script>
<script language=Javascript src="http://images.kingdomofloathing.com/scripts/window.js?date=20090915"></script>
<script language="javascript">function chatFocus(){if(top.chatpane.document.chatform.graf) top.chatpane.document.chatform.graf.focus();}
defaultBind(47, CTRL, chatFocus); defaultBind(190, CTRL, chatFocus);defaultBind(191, CTRL, chatFocus); defaultBind(47, META, chatFocus);defaultBind(190, META, chatFocus); defaultBind(191, META, chatFocus);</script><link rel="stylesheet" type="text/css" href="http://images.kingdomofloathing.com/styles.css">
</head>

<body>
<centeR><table  width=95%  cellspacing=0 cellpadding=0><tr><td style="color: white;" align=center bgcolor=blue><b>The Cake-Shaped Arena</b></td></tr><tr><td style="padding: 5px; border: 1px solid blue;"><center><table><tr><td>Congratulations on your %arenawins arena win. You've earned a prize from the Arena Goodies Sack!
			<p>
			You acquire an item: <b>bugged beanie</b>
			<p>
			<b>Warning:</b> Parse error (function not found) in arena.php line 2225
			<p>
			You acquire an item: <b>lead necklace</b>
			<p>
			<b>Warning:</b> Parse error (function not found) in arena.php line 2225
			<p>
			You acquire an item: <b>lead necklace</b>
			<p>
			<b>Warning:</b> Parse error (function not found) in arena.php line 2225
			<p>
			You acquire an item: <b>lead necklace</b>
			<p>
			<b>Warning:</b> Parse error (function not found in arûñá<b>abort</b>
			<p>
			[ûñá]<center><Table width=90%><td><img src="http://images.kingdomofloathing.com/otherimages/arenamaster.gif" width=60 height=100 alt="Susie, the Arena Mistress"></td><td valign=center>Hello there, and welcome to the Cake-Shaped Arena.  I'm Susie, the Arena Master.  I mean, Mistress.</td></tr></table></center><p>In the Arena, your familiars can compete in a variety of events, against the House Familiars, for experience, prestige, and fabulous prizes.  To enter your familiar in an event costs 100 Meat, and takes 1 Adventure.<p>You have won 0 times. Only 10 wins left until your next prize!<form name=compete action=arena.php method=post><input type=hidden name=action value="go"><center><b>Today's Competitors:</b><table><tr><td colspan=3 bgcolor=black height=1></td></tR><tr><td valign=center><input type=radio  checked name=whichopp value=15></td><td valign=center><img src="http://images.kingdomofloathing.com/itemimages/familiar15.gif" width=30 height=30></td><td class=small><b>Selena Farenheit</b> the Baby Gravy Fairy<br>28 lbs., 173,522 wins, 1,419,628 losses.</td></tr><tr><td colspan=3 bgcolor=black height=1></td></tR><tr><td valign=center><input type=radio  name=whichopp value=106></td><td valign=center><img src="http://images.kingdomofloathing.com/itemimages/familiar6.gif" width=30 height=30></td><td class=small><b>Baby's New Shoes</b> the Fuzzy Dice<br>19 lbs., 229,607 wins, 1,956,761 losses.</td></tr><tr><td colspan=3 bgcolor=black height=1></td></tR><tr><td valign=center><input type=radio  name=whichopp value=108></td><td valign=center><img src="http://images.kingdomofloathing.com/itemimages/familiar8.gif" width=30 height=30></td><td class=small><b>Cursed Asian</b> the Barrrnacle<br>14 lbs., 167,425 wins, 1,104,929 losses.</td></tr><tr><td colspan=3 bgcolor=black height=1></td></tR><tr><td valign=center><input type=radio  name=whichopp value=117></td><td valign=center><img src="http://images.kingdomofloathing.com/itemimages/familiar17.gif" width=30 height=30></td><td class=small><b>Hershey</b> the Star Starfish<br>5 lbs., 209,984 wins, 2,030,044 losses.</td></tr><tr><td colspan=3 bgcolor=black height=1></td></tR><tr><td valign=center><input type=radio  name=whichopp value=118></td><td valign=center><img src="http://images.kingdomofloathing.com/itemimages/hat2.gif" width=30 height=30></td><td class=small><b>Au Lait</b> the Hovering Sombrero<br>11 lbs., 168,993 wins, 1,952,923 losses.</td></tr><tr><td colspan=3 bgcolor=black height=1></td></tR></table><p><b>Events:</b><table><tr><td height=1 bgcolor=black></td></tr><tr><td><input type=radio name=event value=1 checked>Ultimate Cage Match<br><input type=radio name=event value=2 >Scavenger Hunt<br><input type=radio name=event value=3 >Obstacle Course<br><input type=radio name=event value=4 >Hide and Seek</td></tr><tr><td height=1 bgcolor=black></td></tr></table><p><input class=button type=submit value="Compete! (1)"><p><center><a href="plains.php">Go Back to the Nearby Plains</a></center></td></tr></table></center></td></tr><tr><td height=4></td></tr></table></center></body></html>
      Set: <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="http://images.kingdomofloathing.com/scripts/keybinds.min.2.js"></script>
<script language=Javascript src="http://images.kingdomofloathing.com/scripts/window.js?date=20090915"></script>
<script language="javascript">function chatFocus(){if(top.chatpane.document.chatform.graf) top.chatpane.document.chatform.graf.focus();}
defaultBind(47, CTRL, chatFocus); defaultBind(190, CTRL, chatFocus);defaultBind(191, CTRL, chatFocus); defaultBind(47, META, chatFocus);defaultBind(190, META, chatFocus); defaultBind(191, META, chatFocus);</script><link rel="stylesheet" type="text/css" href="http://images.kingdomofloathing.com/styles.css">
</head>

<body>
<centeR><table  width=95%  cellspacing=0 cellpadding=0><tr><td style="color: white;" align=center bgcolor=blue><b>The Cake-Shaped Arena</b></td></tr><tr><td style="padding: 5px; border: 1px solid blue;"><center><table><tr><td>Congratulations on your %arenawins arena win. You've earned a prize from the Arena Goodies Sack!
			<p>
			You acquire an item: <b>bugged beanie</b>
			<p>
			<b>Warning:</b> Parse error (function not found) in arena.php line 2225
			<p>
			You acquire an item: <b>lead necklace</b>
			<p>
			<b>Warning:</b> Parse error (function not found) in arena.php line 2225
			<p>
			You acquire an item: <b>lead necklace</b>
			<p>
			<b>Warning:</b> Parse error (function not found) in arena.php line 2225
			<p>
			You acquire an item: <b>lead necklace</b>
			<p>
			<b>Warning:</b> Parse error (function not found in arûñá<b>abort</b>
			<p>
			[ûñá]<center><Table width=90%><td><img src="http://images.kingdomofloathing.com/otherimages/arenamaster.gif" width=60 height=100 alt="Susie, the Arena Mistress"></td><td valign=center>Hello there, and welcome to the Cake-Shaped Arena.  I'm Susie, the Arena Master.  I mean, Mistress.</td></tr></table></center><p>In the Arena, your familiars can compete in a variety of events, against the House Familiars, for experience, prestige, and fabulous prizes.  To enter your familiar in an event costs 100 Meat, and takes 1 Adventure.<p>You have won 0 times. Only 10 wins left until your next prize!<form name=compete action=arena.php method=post><input type=hidden name=action value="go"><center><b>Today's Competitors:</b><table><tr><td colspan=3 bgcolor=black height=1></td></tR><tr><td valign=center><input type=radio  checked name=whichopp value=15></td><td valign=center><img src="http://images.kingdomofloathing.com/itemimages/familiar15.gif" width=30 height=30></td><td class=small><b>Selena Farenheit</b> the Baby Gravy Fairy<br>28 lbs., 173,522 wins, 1,419,628 losses.</td></tr><tr><td colspan=3 bgcolor=black height=1></td></tR><tr><td valign=center><input type=radio  name=whichopp value=106></td><td valign=center><img src="http://images.kingdomofloathing.com/itemimages/familiar6.gif" width=30 height=30></td><td class=small><b>Baby's New Shoes</b> the Fuzzy Dice<br>19 lbs., 229,607 wins, 1,956,761 losses.</td></tr><tr><td colspan=3 bgcolor=black height=1></td></tR><tr><td valign=center><input type=radio  name=whichopp value=108></td><td valign=center><img src="http://images.kingdomofloathing.com/itemimages/familiar8.gif" width=30 height=30></td><td class=small><b>Cursed Asian</b> the Barrrnacle<br>14 lbs., 167,425 wins, 1,104,929 losses.</td></tr><tr><td colspan=3 bgcolor=black height=1></td></tR><tr><td valign=center><input type=radio  name=whichopp value=117></td><td valign=center><img src="http://images.kingdomofloathing.com/itemimages/familiar17.gif" width=30 height=30></td><td class=small><b>Hershey</b> the Star Starfish<br>5 lbs., 209,984 wins, 2,030,044 losses.</td></tr><tr><td colspan=3 bgcolor=black height=1></td></tR><tr><td valign=center><input type=radio  name=whichopp value=118></td><td valign=center><img src="http://images.kingdomofloathing.com/itemimages/hat2.gif" width=30 height=30></td><td class=small><b>Au Lait</b> the Hovering Sombrero<br>11 lbs., 168,993 wins, 1,952,923 losses.</td></tr><tr><td colspan=3 bgcolor=black height=1></td></tR></table><p><b>Events:</b><table><tr><td height=1 bgcolor=black></td></tr><tr><td><input type=radio name=event value=1 checked>Ultimate Cage Match<br><input type=radio name=event value=2 >Scavenger Hunt<br><input type=radio name=event value=3 >Obstacle Course<br><input type=radio name=event value=4 >Hide and Seek</td></tr><tr><td height=1 bgcolor=black></td></tr></table><p><input class=button type=submit value="Compete! (1)"><p><center><a href="plains.php">Go Back to the Nearby Plains</a></center></td></tr></table></center></td></tr><tr><td height=4></td></tr></table></center></body></html>
      AREF: aggregate buffer [int]
         Key #1: 0
         [NORMAL] <- 0
      ASET: ""
   [NORMAL] <- void
      Param #1: dongs
      [NORMAL] <- aggregate buffer [int]
      Param #2: "loldongs.html"
      [NORMAL] <- "loldongs.html"
      Entering function map_to_file
      Function map_to_file returned: true
   [NORMAL] <- true

For completeness, this file looks like this:
arena2.png

Again, not sure whether to tag "bug" or "feature" since you need to realise that the game is lying.
 
Last edited:

Bale

Minion
As HippoKing says, mafia modifies the web page so that it doesn't mention the non-existent lead necklaces. However, those same necklaces still (wrongly) show up in inventory. This is backwards and makes the joke more confusing than if mafia does nothing.

I feel that this bug has been missed. Do none of the devs have a bugged bugbear?
 

jasonharper

Developer
r8461 should ignore the bogus lead necklaces.

The removal of the bogus drops from the relay browser page isn't intentional - the actual bugged beanie drop is bugged (in the sense that it doesn't quite match how any other item drop in the game is formatted), causing the regex that finds where to insert [use] links to match too much text. Given that this is purely cosmetic, I'm not inclined to spend any time fixing it.
 

Fluxxdog

Active member
Reopened 8465

Using version 8465, visited the Arena with my BBB, got the beanie and mafia also added 3 lead necklaces to my inventory as well. Sorry, but this one still perstists. Hmm, ever wonder if Jick tossed the BBB in to bug outside programs? Doubt it, but it would be a heck of a prank.
 

Raijinili

Member
In CakeArenaManager:
Integer.valueOf( matcher.group( 1 ) ).intValue()

I don't fully understand matcher yet (I figured out how to actually use groups by reading this code), but I looked up valueOf, and it looks like it's equivalent to calling new Integer(Integer.parseInt(blah)), so why isn't that just Integer.parseInt( matcher.group( 1 ) )?

(Yes, I'm kind of anal about writing more code than I have to... >.>)

Anyway, this is the first time I've looked at Mafia's code without running away from how much there is. (I've never really looked at a big project before.)

Anyway anyway, the attempted fix in ResultsProcessor:
if ( lastToken.equals( " Parse error (function not found) in arena.php line 2225" ) )
Was this done with knowledge of the HTML? No one in /hc is sending me the page source for the drop.
 

Veracity

Developer
Staff member
Revision 8990 should fix this. I say "should" because this is untested. At least not successfully tested. I went to the arena with my bugbear today and got nothing. There must be additional conditions for getting the free drop that I am unaware of.

If anyone can test this, I will be appreciative.
 

lostcalpolydude

Developer
Staff member
The fix works. You need to not already have the familiar equipment, so the simplest thing is to autosell it and then visit the arena. You can do that now and get it even after already visiting (and not getting the equipment).
 
Top