choiceAdventureScript and browser play

AlbinoRhino

Active member
Code:
clicked "auto" button that mafia adds to the KoL CAB
--to other choice and then skip adv option

1608325247361: To Browser: HTTP/1.1 200 OK: /KoLmafia/submitCommand?cmd=debug+trace+on&pwd=REMOVED (1 bytes)
1608325249079: From Browser: GET /choice.php?action=auto HTTP/1.1
1608325249768: Starting choice adventure script: choose.ash
1608325249775: Requesting: https://www.kingdomofloathing.com/choice.php?whichchoice=678&option=4&pwd
1608325250041: Retrieved: https://www.kingdomofloathing.com/choice.php?whichchoice=678&option=4&pwd (11400 bytes)
1608325250046: Finished choice adventure script: choose.ash
1608325250079: Starting choice adventure script: choose.ash
1608325250081: Requesting: https://www.kingdomofloathing.com/choice.php?whichchoice=676&option=3&pwd
1608325250273: Retrieved: https://www.kingdomofloathing.com/choice.php?whichchoice=676&option=3&pwd (9648 bytes)
1608325250274: Finished choice adventure script: choose.ash
1608325250275: To Browser: HTTP/1.1 200 OK: /choice.php?action=auto (10637 bytes)
1608325252004: From Browser: GET /shorts-uisw-esm.js HTTP/1.1
1608325252004: Requesting: http://www.kingdomofloathing.com/shorts-uisw-esm.js
1608325252078: To Browser: HTTP/1.1 200 OK: /shorts-uisw-esm.js (1 bytes)
1608325253140: From Browser: GET /KoLmafia/submitCommand?cmd=debug+trace+off&pwd=REMOVED HTTP/1.1

The above results in the browser loading the original choice page again MINUS the decorations (such as the choice spoilers)


Then...
click "reload frame" and get results page should have got in step above?

1608325312807: To Browser: HTTP/1.1 200 OK: /KoLmafia/submitCommand?cmd=debug+trace+on&pwd=REMOVED (1 bytes)
1608325315989: From Browser: GET /choice.php?action=auto HTTP/1.1
1608325315990: To Browser: HTTP/1.1 200 OK: /choice.php?action=auto (9372 bytes)
1608325317583: From Browser: GET /shorts-uisw-esm.js HTTP/1.1
1608325317583: Requesting: http://www.kingdomofloathing.com/shorts-uisw-esm.js
1608325317688: To Browser: HTTP/1.1 200 OK: /shorts-uisw-esm.js (1 bytes)
1608325318082: From Browser: GET /KoLmafia/submitCommand?cmd=debug+trace+off&pwd=REMOVED HTTP/1.1

The actual results page appears in the browser

Now that Crimbo is here, I have actually been adventuring in the browser a bit. My choiceAdventureScript I have been developing, since that became a thing, and has always worked well in the gCLI, seems to have a quirk when deployed while adventuring in the browser. It still makes the choices appropriately as seen in the (commented) TRACE log above. However, in the browser, after it runs, I end up with an undecorated copy of the original page rather than the results page I should see. If I use the browser right-click menu to reload the frame, I will then see the results page as normal.

Perhaps this is unrelated to the choiceAdventureScript; it was just my first suspect, I guess.

Anyhow...I am at a loss...and if anyone has any advice as to what may be causing this behavior, I sure would appreciate it.
 
Top