I already had a campground.ash relay script, but I adjusted it:
Code:
void main()
{
if (my_path() == "Actually Ed the Undying") {
visit_url( "place.php?whichplace=edbase", false ).writeln();
}
else {
string page = visit_url();
write(page);
}
}
DEBUG log:
Code:
Starting relay script: campground.ash
class net.sourceforge.kolmafia.request.RelayRequest
Connecting to campground.php...
Requesting: https://www.kingdomofloathing.com/campground.php?action=workshed
Retrieved: https://www.kingdomofloathing.com/campground.php?action=workshed
Field: location = [choice.php?forceoption=0]
Starting relay script: choice.ash
class net.sourceforge.kolmafia.request.RelayRequest
Connecting to choice.php...
Retrieved: https://www.kingdomofloathing.com/choice.php?forceoption=0
Retrieving server reply
ResponseText has 39331 characters.
Processing results...
Finished relay script: choice.ash (40239 bytes)
Finished relay script: campground.ash (40239 bytes)
---------------
Moved scale models around.
That was all Javascript, so no requests were submitted.
---------------
Starting relay script: campground.ash
class net.sourceforge.kolmafia.request.RelayRequest
Connecting to campground.php...
Requesting: https://www.kingdomofloathing.com/campground.php?action=workshed&whichchoice=1485&option=1&pwd&slot[0]=2&slot[1]=7&slot[2]=19&slot[3]=16&slot[4]=14&slot[5]=1&slot[6]=8&slot[7]=3
Retrieved: https://www.kingdomofloathing.com/campground.php?action=workshed&whichchoice=1485&option=1&pwd&slot[0]=2&slot[1]=7&slot[2]=19&slot[3]=16&slot[4]=14&slot[5]=1&slot[6]=8&slot[7]=3
Field: location = [choice.php?forceoption=0]
Starting relay script: choice.ash
class net.sourceforge.kolmafia.request.RelayRequest
Connecting to choice.php...
Retrieved: https://www.kingdomofloathing.com/choice.php?forceoption=0
Retrieving server reply
ResponseText has 39331 characters.
Processing results...
Finished relay script: choice.ash (40239 bytes)
Finished relay script: campground.ash (40239 bytes)
Browser submits request for campground.php?action=workshed.
That invokes campground.ash, which does visit_url()
That redirects to choice.php?forceoption=0
That invokes choice.ash, which does visit_url()
It's not interested in that choice, so it does write(page)
I assume that is what campground.ash gets as its page.
campground.ash does a write(page)
I think I need to turn on browser interaction logging.
That page is really difficult to understand; the image of each model piece is there about 8 times.