New Content - Implemented r14761 - Failing on making coffee pixie stick

Fluxxdog

Active member
Code:
> ash item_amount($item[Game Grid Ticket])

Returned: 10

> create coffee pixie stick

Verifying ingredients for coffee pixie stick (1)...
Purchasing coffee pixie stick (1 @ 10 tickets)...
Visiting the Arcade Ticket Counter...
Arcade Ticket Counter successfully looted!
[COLOR="#FF0000"]Creation failed, no results detected.[/COLOR]

> ash item_amount($item[Game Grid Ticket])

Returned: 10

> ash item_amount($item[coffee pixie stick])

Returned: 0
Looks like KoL changed the arcade from arcade.php to place.php and shop.php. Debug log shows a redirect which was the likely source of the fail. Probably have more changes coming. HTML for the shop is below:
HTML:
<table  width=95%  cellspacing=0 cellpadding=0><tr><td style="color: white;" align=center bgcolor=blue><b>Ticket Redemption Counter</b></td></tr><tr><td style="padding: 5px; border: 1px solid blue;"><center><table><tr><td><table><tr><td valign=top><img src=/images/otherimages/boredteen.gif width=60 height=100 alt="Bored Teen" title="Bored Teen"></td><td valign=top><center><b>Bored Teen</b></center><p>The surly, bored teenager behind the ticket counter regards you with a blank stare.</td></tr></table><form name=bigform action=shop.php method=post><input type=hidden name=pwd value=xxx><input type=hidden name=whichshop value="arcade"><input type=hidden name=action value=buyitem><center><table cellpadding=2><tr><td></td><td colspan=2 align=center><b>Item:</b> (click for description)</td><td colspan=10 align=center><b>Price:</b></td></tr><tr rel="4627"><td valign=center><input type=radio name=whichrow value=359></td><td><img src="/images/itemimages/fingertrap.gif" class=hand onClick='javascript:descitem(761041299)'></td><td valign=center><a onClick='javascript:descitem(761041299)'><b>finger cuffs</b>    </a></td><td><img src=/images/itemimages/ggticket.gif width=30 height=30 onClick='javascript:descitem(798956435)' alt="Game Grid ticket" title="Game Grid ticket"></td><td><b>1</b>  </td><td></td><td>  </td><td></td><td>  </td><td></td><td>  </td><td></td><td>  </td><td valign=center><input class="button doit multibuy" type=button rel='shop.php?whichshop=arcade&action=buyitem&quantity=1&whichrow=359&pwd=xxx' value='Buy'></td></tr><tr rel="4628"><td valign=center><input type=radio name=whichrow value=360></td><td><img src="/images/itemimages/paraguy.gif" class=hand onClick='javascript:descitem(185244129)'></td><td valign=center><a onClick='javascript:descitem(185244129)'><b>little parachute guy</b>    </a></td><td><img src=/images/itemimages/ggticket.gif width=30 height=30 onClick='javascript:descitem(798956435)' alt="Game Grid ticket" title="Game Grid ticket"></td><td><b>2</b>  </td><td></td><td>  </td><td></td><td>  </td><td></td><td>  </td><td></td><td>  </td><td valign=center><input class="button doit multibuy" type=button rel='shop.php?whichshop=arcade&action=buyitem&quantity=1&whichrow=360&pwd=xxx' value='Buy'></td></tr><tr rel="4626"><td valign=center><input type=radio name=whichrow value=361></td><td><img src="/images/itemimages/superball.gif" class=hand onClick='javascript:descitem(574320533)'></td><td valign=center><a onClick='javascript:descitem(574320533)'><b>superduperball</b>    </a></td><td><img src=/images/itemimages/ggticket.gif width=30 height=30 onClick='javascript:descitem(798956435)' alt="Game Grid ticket" title="Game Grid ticket"></td><td><b>5</b>  </td><td></td><td>  </td><td></td><td>  </td><td></td><td>  </td><td></td><td>  </td><td valign=center><input class="button doit multibuy" type=button rel='shop.php?whichshop=arcade&action=buyitem&quantity=1&whichrow=361&pwd=xxx' value='Buy'></td></tr><tr rel="4625"><td valign=center><input type=radio name=whichrow value=363></td><td><img src="/images/itemimages/cpstick.gif" class=hand onClick='javascript:descitem(936288573)'></td><td valign=center><a onClick='javascript:descitem(936288573)'><b>coffee pixie stick</b>    </a></td><td><img src=/images/itemimages/ggticket.gif width=30 height=30 onClick='javascript:descitem(798956435)' alt="Game Grid ticket" title="Game Grid ticket"></td><td><b>10</b>  </td><td></td><td>  </td><td></td><td>  </td><td></td><td>  </td><td></td><td>  </td><td valign=center><input class="button doit multibuy" type=button rel='shop.php?whichshop=arcade&action=buyitem&quantity=1&whichrow=363&pwd=xxx' value='Buy'></td></tr><tr rel="4629"><td valign=center><input type=radio name=whichrow value=364></td><td><img src="/images/itemimages/spiderring.gif" class=hand onClick='javascript:descitem(987547828)'></td><td valign=center><a onClick='javascript:descitem(987547828)'><b>plastic spider ring</b>    </a></td><td><img src=/images/itemimages/ggticket.gif width=30 height=30 onClick='javascript:descitem(798956435)' alt="Game Grid ticket" title="Game Grid ticket"></td><td><b>25</b>  </td><td></td><td>  </td><td></td><td>  </td><td></td><td>  </td><td></td><td>  </td><td valign=center><input class="button doit multibuy" type=button rel='shop.php?whichshop=arcade&action=buyitem&quantity=1&whichrow=364&pwd=xxx' value='Buy'></td></tr><tr rel="4630"><td valign=center><input type=radio name=whichrow value=366></td><td><img src="/images/itemimages/kazoo.gif" class=hand onClick='javascript:descitem(776689112)'></td><td valign=center><a onClick='javascript:descitem(776689112)'><b>cheap plastic kazoo</b>    </a></td><td><img src=/images/itemimages/ggticket.gif width=30 height=30 onClick='javascript:descitem(798956435)' alt="Game Grid ticket" title="Game Grid ticket"></td><td><b>100</b>  </td><td></td><td>  </td><td></td><td>  </td><td></td><td>  </td><td></td><td>  </td><td valign=center><input class="button doit multibuy" type=button rel='shop.php?whichshop=arcade&action=buyitem&quantity=1&whichrow=366&pwd=xxx' value='Buy'></td></tr><tr rel="4631"><td valign=center><input type=radio name=whichrow value=367></td><td><img src="/images/itemimages/inflatabat.gif" class=hand onClick='javascript:descitem(369906394)'></td><td valign=center><a onClick='javascript:descitem(369906394)'><b>inflatable baseball bat</b>    </a></td><td><img src=/images/itemimages/ggticket.gif width=30 height=30 onClick='javascript:descitem(798956435)' alt="Game Grid ticket" title="Game Grid ticket"></td><td><b>100</b>  </td><td></td><td>  </td><td></td><td>  </td><td></td><td>  </td><td></td><td>  </td><td valign=center><input class="button doit multibuy" type=button rel='shop.php?whichshop=arcade&action=buyitem&quantity=1&whichrow=367&pwd=xxx' value='Buy'></td></tr><tr rel="4633"><td valign=center><input type=radio name=whichrow value=369></td><td><img src="/images/itemimages/balldeedle.gif" class=hand onClick='javascript:descitem(874035418)'></td><td valign=center><a onClick='javascript:descitem(874035418)'><b>googly-ball hat</b>    </a></td><td><img src=/images/itemimages/ggticket.gif width=30 height=30 onClick='javascript:descitem(798956435)' alt="Game Grid ticket" title="Game Grid ticket"></td><td><b>250</b>  </td><td></td><td>  </td><td></td><td>  </td><td></td><td>  </td><td></td><td>  </td><td valign=center><input class="button doit multibuy" type=button rel='shop.php?whichshop=arcade&action=buyitem&quantity=1&whichrow=369&pwd=xxx' value='Buy'></td></tr><tr rel="4634"><td valign=center><input type=radio name=whichrow value=370></td><td><img src="/images/itemimages/heartdeedle.gif" class=hand onClick='javascript:descitem(554873639)'></td><td valign=center><a onClick='javascript:descitem(554873639)'><b>googly-heart hat</b>    </a></td><td><img src=/images/itemimages/ggticket.gif width=30 height=30 onClick='javascript:descitem(798956435)' alt="Game Grid ticket" title="Game Grid ticket"></td><td><b>250</b>  </td><td></td><td>  </td><td></td><td>  </td><td></td><td>  </td><td></td><td>  </td><td valign=center><input class="button doit multibuy" type=button rel='shop.php?whichshop=arcade&action=buyitem&quantity=1&whichrow=370&pwd=xxx' value='Buy'></td></tr><tr rel="4632"><td valign=center><input type=radio name=whichrow value=368></td><td><img src="/images/itemimages/stardeedle.gif" class=hand onClick='javascript:descitem(712320983)'></td><td valign=center><a onClick='javascript:descitem(712320983)'><b>googly-star hat</b>    </a></td><td><img src=/images/itemimages/ggticket.gif width=30 height=30 onClick='javascript:descitem(798956435)' alt="Game Grid ticket" title="Game Grid ticket"></td><td><b>250</b>  </td><td></td><td>  </td><td></td><td>  </td><td></td><td>  </td><td></td><td>  </td><td valign=center><input class="button doit multibuy" type=button rel='shop.php?whichshop=arcade&action=buyitem&quantity=1&whichrow=368&pwd=xxx' value='Buy'></td></tr><tr rel="4636"><td valign=center><input type=radio name=whichrow value=371></td><td><img src="/images/itemimages/librarycard.gif" class=hand onClick='javascript:descitem(695582777)'></td><td valign=center><a onClick='javascript:descitem(695582777)'><b>Game Grid valued membership card</b>    </a></td><td><img src=/images/itemimages/ggticket.gif width=30 height=30 onClick='javascript:descitem(798956435)' alt="Game Grid ticket" title="Game Grid ticket"></td><td><b>2,000</b>  </td><td></td><td>  </td><td></td><td>  </td><td></td><td>  </td><td></td><td>  </td><td valign=center><input class="button doit multibuy" type=button rel='shop.php?whichshop=arcade&action=buyitem&quantity=1&whichrow=371&pwd=xxx' value='Buy'></td></tr><tr rel="4635"><td valign=center><input type=radio name=whichrow value=372></td><td><img src="/images/itemimages/radiogaga.gif" class=hand onClick='javascript:descitem(179311534)'></td><td valign=center><a onClick='javascript:descitem(179311534)'><b>super-sweet boom box</b>    </a></td><td><img src=/images/itemimages/ggticket.gif width=30 height=30 onClick='javascript:descitem(798956435)' alt="Game Grid ticket" title="Game Grid ticket"></td><td><b>5,000</b>  </td><td></td><td>  </td><td></td><td>  </td><td></td><td>  </td><td></td><td>  </td><td valign=center><input class="button doit multibuy" type=button rel='shop.php?whichshop=arcade&action=buyitem&quantity=1&whichrow=372&pwd=xxx' value='Buy'></td></tr><tr rel="4647"><td valign=center><input type=radio name=whichrow value=374></td><td><img src="/images/itemimages/dungeonfist.gif" class=hand onClick='javascript:descitem(352191111)'></td><td valign=center><a onClick='javascript:descitem(352191111)'><b>Dungeon Fist gauntlet</b>    </a></td><td><img src=/images/itemimages/ggticket.gif width=30 height=30 onClick='javascript:descitem(798956435)' alt="Game Grid ticket" title="Game Grid ticket"></td><td><b>1,000</b>  </td><td></td><td>  </td><td></td><td>  </td><td></td><td>  </td><td></td><td>  </td><td valign=center><input class="button doit multibuy" type=button rel='shop.php?whichshop=arcade&action=buyitem&quantity=1&whichrow=374&pwd=xxx' value='Buy'></td></tr><tr rel="4646"><td valign=center><input type=radio name=whichrow value=376></td><td><img src="/images/itemimages/armcannon.gif" class=hand onClick='javascript:descitem(605999944)'></td><td valign=center><a onClick='javascript:descitem(605999944)'><b>Meteoid ice beam</b>    </a></td><td><img src=/images/itemimages/ggticket.gif width=30 height=30 onClick='javascript:descitem(798956435)' alt="Game Grid ticket" title="Game Grid ticket"></td><td><b>1,000</b>  </td><td></td><td>  </td><td></td><td>  </td><td></td><td>  </td><td></td><td>  </td><td valign=center><input class="button doit multibuy" type=button rel='shop.php?whichshop=arcade&action=buyitem&quantity=1&whichrow=376&pwd=xxx' value='Buy'></td></tr><tr rel="4637"><td valign=center><input type=radio name=whichrow value=365></td><td><img src="/images/itemimages/sinimask.gif" class=hand onClick='javascript:descitem(768015517)'></td><td valign=center><a onClick='javascript:descitem(768015517)'><b>sinister demon mask</b>    </a></td><td><img src=/images/itemimages/ggticket.gif width=30 height=30 onClick='javascript:descitem(798956435)' alt="Game Grid ticket" title="Game Grid ticket"></td><td><b>1,000</b>  </td><td></td><td>  </td><td></td><td>  </td><td></td><td>  </td><td></td><td>  </td><td valign=center><input class="button doit multibuy" type=button rel='shop.php?whichshop=arcade&action=buyitem&quantity=1&whichrow=365&pwd=xxx' value='Buy'></td></tr><tr rel="4639"><td valign=center><input type=radio name=whichrow value=373></td><td><img src="/images/itemimages/headphones.gif" class=hand onClick='javascript:descitem(733978831)'></td><td valign=center><a onClick='javascript:descitem(733978831)'><b>Space Trip safety headphones</b>    </a></td><td><img src=/images/itemimages/ggticket.gif width=30 height=30 onClick='javascript:descitem(798956435)' alt="Game Grid ticket" title="Game Grid ticket"></td><td><b>1,000</b>  </td><td></td><td>  </td><td></td><td>  </td><td></td><td>  </td><td></td><td>  </td><td valign=center><input class="button doit multibuy" type=button rel='shop.php?whichshop=arcade&action=buyitem&quantity=1&whichrow=373&pwd=xxx' value='Buy'></td></tr><tr rel="4638"><td valign=center><input type=radio name=whichrow value=375></td><td><img src="/images/itemimages/champbelt.gif" class=hand onClick='javascript:descitem(238240856)'></td><td valign=center><a onClick='javascript:descitem(238240856)'><b>streetfighting champion's belt</b>    </a></td><td><img src=/images/itemimages/ggticket.gif width=30 height=30 onClick='javascript:descitem(798956435)' alt="Game Grid ticket" title="Game Grid ticket"></td><td><b>1,000</b>  </td><td></td><td>  </td><td></td><td>  </td><td></td><td>  </td><td></td><td>  </td><td valign=center><input class="button doit multibuy" type=button rel='shop.php?whichshop=arcade&action=buyitem&quantity=1&whichrow=375&pwd=xxx' value='Buy'></td></tr></table><center><input class=button type=submit value="Buy Item"> <input class=text type=text name=quantity size=2 value=1></center></form></form><div id="ass" style="font-size: .8em; text-align: center; width: 100%">*Right-Click to Multi-Buy</div><p><b>You have:</b><table><tr><td><img src=/images/itemimages/ggticket.gif width=30 height=30 onClick='javascript:descitem(798956435)' alt="Game Grid ticket" title="Game Grid ticket"></td><td>10 Game Grid tickets</td></tr></table><p><a href="place.php?whichplace=arcade">Back to The Game Grid Arcade</a></center></td></tr></table></center></td></tr><tr><td height=4></td></tr></table>
 

Attachments

  • DEBUG_20140930.txt
    10 KB · Views: 68

parastra

New member
This change also causes problems with scripting a Dungeon Fist game.

From looking at the source of the arcade page, doing visit_url("place.php?whichplace=arcade&action=arcade_fist") should start a game, but doing print(visit_url(...)) shows that it's just returning the html for the main arcade page again.

But if I paste the url "http://127.0.0.1:60081/place.php?whichplace=arcade&action=arcade_fist" into a new browser tab, it does actually start a new dungeon fist game...

Anyone have any idea how to script this now?
 

PeKaJe

Member
This change also breaks the "defective token" daily deed. The new URL is
Code:
place.php?whichplace=arcade&action=arcade_plumber
 

parastra

New member
Tried 14766 after rollover:
Still seems to have some problems - I clicked the defective token button in Daily Deeds, and the button changed to the "already checked for a defective token" text, but when I went to the arcade in the browser and clicked on Jackass Plumber I got the message about checking the slot for a token. Clicking in the browser again after that gave the "you've already checked today" message.

I tried doing ashq print(visit_url("place.php?whichplace=arcade&action=arcade_plumber")) and instead of getting the html for the "already checked today" page, I got the html for the main arcade page, exactly the same as when I try using 'action=arcade_fist' to start a Dungeon Fist game. So it looks like there's still something odd going on in the arcade.
Edit: It's almost as though the '&action=xxx' part of the URL is being removed or ignored somehow
 
Last edited:

Fluxxdog

Active member
Purchasing still not working. Got this from the debug log:
Code:
Verifying ingredients for coffee pixie stick (1)...
Purchasing coffee pixie stick (1 @ 10 tickets)...
Visiting the Arcade Ticket Counter...
class net.sourceforge.kolmafia.request.TicketCounterRequest
Connecting to shop.php...

Requesting: http://www.kingdomofloathing.com/shop.php?whichshop=arcade&action=redeem&whichitem=4625&quantity=1
Should be 'action=buyitem' and whichitem should be 'whichrow=xxx' for the appropriate item.
 

Darzil

Developer
r14774 fixes the ticket counter to use buyitem and whichrow.

Skeeball looking odd. The according to debug, url requested is the same from both coinmaster and relay browser, but there is an extra field passed by the coinmaster frame request (Content-type). The same applies to jackass plumber, maybe to all of them. (We also seem to reduce the number of tokens in inventory twice if successful and once if not!)

This seems to be set in GenericRequest.prepareConnection, but that also looks like it'd send Content-Length, which isn't sent.

Debug log contains four attempted transactions. Skeeball from coinmaster frame, skeeball from relay browser, jackass plumber from daily deed, jackass plumber from relay browser.
 

Attachments

  • DEBUG_20141001.txt
    256.3 KB · Views: 45

Veracity

Developer
Staff member
I notice that the browser is doing GET requests but we are, presumably, doing POST requests. I tried this:

> debug on

> ashq visit_url("place.php?whichplace=arcade&action=arcade_plumber");

> ashq visit_url("place.php?whichplace=arcade&action=arcade_plumber",false);

> debug off
Here is the result of the first one (with the "head" section trimmed):

Code:
<html><head>...</head><body><centeR><table  width=95%  cellspacing=0 cellpadding=0><tr><td style="color: white;" align=center bgcolor=blue><b>The Game Grid Arcade</b></td></tr><tr><td style="padding: 5px; border: 1px solid blue;"><center><table><tr><td><center><div id=background style='position:relative;'><img src="http://images.kingdomofloathing.com/otherimages/1x1trans.gif" width=340 height=460 border=0><div id=arcade_bordertop style=' position: absolute; top: 0; left: 0; height: 75; width: 340;'><img src="http://images.kingdomofloathing.com/otherimages/arcade/top.gif" width=340 height=75 border=0 alt="" title=""></div><div id=arcade_borderbottom style=' position: absolute; top: 375; left: 0; height: 80; width: 340;'><img src="http://images.kingdomofloathing.com/otherimages/arcade/bottom.gif" width=340 height=80 border=0 alt="" title=""></div><div id=arcade_borderleft style=' position: absolute; top: 75; left: 0; height: 300; width: 20;'><img src="http://images.kingdomofloathing.com/otherimages/arcade/left.gif" width=20 height=300 border=0 alt="" title=""></div><div id=arcade_borderright style=' position: absolute; top: 75; left: 320; height: 300; width: 20;'><img src="http://images.kingdomofloathing.com/otherimages/arcade/right.gif" width=20 height=300 border=0 alt="" title=""></div><div id=arcade_highscores style=' position: absolute; top: 275; left: 20; height: 100; width: 100;'><a  href=place.php?whichplace=arcade&action=arcade_highscores><img src="http://images.kingdomofloathing.com/otherimages/arcade/highscores.gif" width=100 height=100 border=0 alt="Today's High Scores" title="Today's High Scores"></a></div><div id=arcade_demonstar style=' position: absolute; top: 75; left: 220; height: 100; width: 100;'><a  href=place.php?whichplace=arcade&action=arcade_demonstar><img src="http://images.kingdomofloathing.com/otherimages/arcade/demonstar.gif" width=100 height=100 border=0 alt="Play DemonStar (5 Adv, 1 token)" title="Play DemonStar (5 Adv, 1 token)"></a></div><div id=arcade_meteoid style=' position: absolute; top: 175; left: 20; height: 100; width: 100;'><a  href=place.php?whichplace=arcade&action=arcade_meteoid><img src="http://images.kingdomofloathing.com/otherimages/arcade/meteoid.gif" width=100 height=100 border=0 alt="Play Meteoid (5 Adv, 1 token)" title="Play Meteoid (5 Adv, 1 token)"></a></div><div id=arcade_fist style=' position: absolute; top: 175; left: 220; height: 100; width: 100;'><a  href=place.php?whichplace=arcade&action=arcade_fist><img src="http://images.kingdomofloathing.com/otherimages/arcade/dungeonfist.gif" width=100 height=100 border=0 alt="Play Dungeon Fist! (5 Adv, 1 token)" title="Play Dungeon Fist! (5 Adv, 1 token)"></a></div><div id=arcade_spacetrip style=' position: absolute; top: 275; left: 120; height: 100; width: 100;'><a  href=place.php?whichplace=arcade&action=arcade_spacetrip><img src="http://images.kingdomofloathing.com/otherimages/arcade/spacetrip.gif" width=100 height=100 border=0 alt="Play Space Trip (5 Adv, 1 token)" title="Play Space Trip (5 Adv, 1 token)"></a></div><div id=arcade_fighters style=' position: absolute; top: 175; left: 120; height: 100; width: 100;'><a  href=place.php?whichplace=arcade&action=arcade_fighters><img src="http://images.kingdomofloathing.com/otherimages/arcade/fighters.gif" width=100 height=100 border=0 alt="Play The Fighters of Fighting (5 Adv, 1 token)" title="Play The Fighters of Fighting (5 Adv, 1 token)"></a></div><div id=arcade_skeeball style=' position: absolute; top: 75; left: 120; height: 100; width: 100;'><a  href=place.php?whichplace=arcade&action=arcade_skeeball><img src="http://images.kingdomofloathing.com/otherimages/arcade/skeeball.gif" width=100 height=100 border=0 alt="Broken Skee-Ball Machine (1 token)" title="Broken Skee-Ball Machine (1 token)"></a></div><div id=arcade_plumber style=' position: absolute; top: 275; left: 220; height: 100; width: 100;'><a  href=place.php?whichplace=arcade&action=arcade_plumber><img src="http://images.kingdomofloathing.com/otherimages/arcade/jackass_oo.gif" width=100 height=100 border=0 alt="Play Jackass Plumber (5 Adv, 1 token)" title="Play Jackass Plumber (5 Adv, 1 token)"></a></div><div id=arcade_counter style=' position: absolute; top: 75; left: 20; height: 100; width: 100;'><a  href=shop.php?whichshop=arcade><img src="http://images.kingdomofloathing.com/otherimages/arcade/ticketcounter.gif" width=100 height=100 border=0 alt="Ticket Redemption Counter" title="Ticket Redemption Counter"></a></div><div id=arcade_submit style=' position: absolute; top: 0; left: 0; height: 0; width: 0;'><a  href=place.php?whichplace=arcade&action=arcade_submit><img src="http://images.kingdomofloathing.com/otherimages/1x1trans.gif" width=0 height=0 border=0 alt="" title=""></a></div></div><p><a href="town_wrong.php">Back to the Wrong Side of the Tracks</a></center></td></tr></table></center></td></tr><tr><td height=4></td></tr></table></center></body></html>
That is just the map. Here is the result of the second one:

Code:
<html><head>...</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>Acting on a hunch, you check the coin return of Jackass Plumber to see if maybe somebody put in a token without reading the OUT OF ORDER sign and then were so ashamed of their stupidity that they also forgot to retrieve the token before they left.<p>No such luck, though.</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>The Game Grid Arcade</b></td></tr><tr><td style="padding: 5px; border: 1px solid blue;"><center><table><tr><td><center><div id=background style='position:relative;'><img src="http://images.kingdomofloathing.com/otherimages/1x1trans.gif" width=340 height=460 border=0><div id=arcade_bordertop style=' position: absolute; top: 0; left: 0; height: 75; width: 340;'><img src="http://images.kingdomofloathing.com/otherimages/arcade/top.gif" width=340 height=75 border=0 alt="" title=""></div><div id=arcade_borderbottom style=' position: absolute; top: 375; left: 0; height: 80; width: 340;'><img src="http://images.kingdomofloathing.com/otherimages/arcade/bottom.gif" width=340 height=80 border=0 alt="" title=""></div><div id=arcade_borderleft style=' position: absolute; top: 75; left: 0; height: 300; width: 20;'><img src="http://images.kingdomofloathing.com/otherimages/arcade/left.gif" width=20 height=300 border=0 alt="" title=""></div><div id=arcade_borderright style=' position: absolute; top: 75; left: 320; height: 300; width: 20;'><img src="http://images.kingdomofloathing.com/otherimages/arcade/right.gif" width=20 height=300 border=0 alt="" title=""></div><div id=arcade_highscores style=' position: absolute; top: 275; left: 20; height: 100; width: 100;'><a  href=place.php?whichplace=arcade&action=arcade_highscores><img src="http://images.kingdomofloathing.com/otherimages/arcade/highscores.gif" width=100 height=100 border=0 alt="Today's High Scores" title="Today's High Scores"></a></div><div id=arcade_demonstar style=' position: absolute; top: 75; left: 220; height: 100; width: 100;'><a  href=place.php?whichplace=arcade&action=arcade_demonstar><img src="http://images.kingdomofloathing.com/otherimages/arcade/demonstar.gif" width=100 height=100 border=0 alt="Play DemonStar (5 Adv, 1 token)" title="Play DemonStar (5 Adv, 1 token)"></a></div><div id=arcade_meteoid style=' position: absolute; top: 175; left: 20; height: 100; width: 100;'><a  href=place.php?whichplace=arcade&action=arcade_meteoid><img src="http://images.kingdomofloathing.com/otherimages/arcade/meteoid.gif" width=100 height=100 border=0 alt="Play Meteoid (5 Adv, 1 token)" title="Play Meteoid (5 Adv, 1 token)"></a></div><div id=arcade_fist style=' position: absolute; top: 175; left: 220; height: 100; width: 100;'><a  href=place.php?whichplace=arcade&action=arcade_fist><img src="http://images.kingdomofloathing.com/otherimages/arcade/dungeonfist.gif" width=100 height=100 border=0 alt="Play Dungeon Fist! (5 Adv, 1 token)" title="Play Dungeon Fist! (5 Adv, 1 token)"></a></div><div id=arcade_spacetrip style=' position: absolute; top: 275; left: 120; height: 100; width: 100;'><a  href=place.php?whichplace=arcade&action=arcade_spacetrip><img src="http://images.kingdomofloathing.com/otherimages/arcade/spacetrip.gif" width=100 height=100 border=0 alt="Play Space Trip (5 Adv, 1 token)" title="Play Space Trip (5 Adv, 1 token)"></a></div><div id=arcade_fighters style=' position: absolute; top: 175; left: 120; height: 100; width: 100;'><a  href=place.php?whichplace=arcade&action=arcade_fighters><img src="http://images.kingdomofloathing.com/otherimages/arcade/fighters.gif" width=100 height=100 border=0 alt="Play The Fighters of Fighting (5 Adv, 1 token)" title="Play The Fighters of Fighting (5 Adv, 1 token)"></a></div><div id=arcade_skeeball style=' position: absolute; top: 75; left: 120; height: 100; width: 100;'><a  href=place.php?whichplace=arcade&action=arcade_skeeball><img src="http://images.kingdomofloathing.com/otherimages/arcade/skeeball.gif" width=100 height=100 border=0 alt="Broken Skee-Ball Machine (1 token)" title="Broken Skee-Ball Machine (1 token)"></a></div><div id=arcade_plumber style=' position: absolute; top: 275; left: 220; height: 100; width: 100;'><a  href=place.php?whichplace=arcade&action=arcade_plumber><img src="http://images.kingdomofloathing.com/otherimages/arcade/jackass_oo.gif" width=100 height=100 border=0 alt="Play Jackass Plumber (5 Adv, 1 token)" title="Play Jackass Plumber (5 Adv, 1 token)"></a></div><div id=arcade_counter style=' position: absolute; top: 75; left: 20; height: 100; width: 100;'><a  href=shop.php?whichshop=arcade><img src="http://images.kingdomofloathing.com/otherimages/arcade/ticketcounter.gif" width=100 height=100 border=0 alt="Ticket Redemption Counter" title="Ticket Redemption Counter"></a></div><div id=arcade_submit style=' position: absolute; top: 0; left: 0; height: 0; width: 0;'><a  href=place.php?whichplace=arcade&action=arcade_submit><img src="http://images.kingdomofloathing.com/otherimages/1x1trans.gif" width=0 height=0 border=0 alt="" title=""></a></div></div><p><a href="town_wrong.php">Back to the Wrong Side of the Tracks</a></center></td></tr></table></center></td></tr><tr><td height=4></td></tr></table></center></body></html>
Oh, guess what - it tried looking in the coin slot.
 

Veracity

Developer
Staff member
This change also causes problems with scripting a Dungeon Fist game.

From looking at the source of the arcade page, doing visit_url("place.php?whichplace=arcade&action=arcade_fist") should start a game, but doing print(visit_url(...)) shows that it's just returning the html for the main arcade page again.

But if I paste the url "http://127.0.0.1:60081/place.php?whichplace=arcade&action=arcade_fist" into a new browser tab, it does actually start a new dungeon fist game...

Anyone have any idea how to script this now?
Yes. The arcade now apparently requires GET rather than POST. So, instead of doing:

visit_url("place.php?whichplace=arcade&action=arcade_fist")

do:

visit_url("place.php?whichplace=arcade&action=arcade_fist",false)

Revision 14776 submits internal ArcadeRequests using GET. As far as I know, that is used only for Skeeball (from the Coinmaster Frame) and checking for the defective token (from the Daily Deeds panel). I checked both with this change, and both did what was expected: in the first case, I got the 10 tickets and in the second case, my DEBUG log showed that it actually checked the coin slot.

It still double-deducted the Game Grid token when playing skeeball, so that bug remains to be fixed.
 

Veracity

Developer
Staff member
Revision 14777 should deduct the correct number of Game Grid tokens for various actions.
 

parastra

New member
Yes. The arcade now apparently requires GET rather than POST. So, instead of doing:

visit_url("place.php?whichplace=arcade&action=arcade_fist")

do:

visit_url("place.php?whichplace=arcade&action=arcade_fist",false)

Just tried this and it works perfectly. Thanks Veracity!
 

Veracity

Developer
Staff member
I think this is fixed?

- We can use the shop
- We can check the jackass plumber game
- We can use the skeeball machine
- We can play arcade games.
 

Fluxxdog

Active member
It looks like it. I'm not getting any errors and I generally hit that shop daily. My farmer seems to love coffee pixie sticks, and today he snorted them without a hitch, buying tokens, buying sticks, etc.
 

Fluxxdog

Active member
One last hangup: CLI comand doesn't work.
Code:
> ash item_amount($item[Game Grid ticket])

Returned: 5

> skeeball

> ash cli_execute("skeeball");

Returned: true

> ash item_amount($item[Game Grid ticket])

Returned: 5
 
Top