Page 48 of 49 FirstFirst ... 38 46 47 48 49 LastLast
Results 471 to 480 of 488

Thread: Guide

  1. #471
    Developer Veracity's Avatar
    Join Date
    Mar 2006
    Location
    The Unseelie Court
    Posts
    10,530

    Default

    OK, I logged in with DEBUG logging including Browser interactions.
    I started the Relay Browser:

    Code:
    -----From Browser-----
    GET /game.php HTTP/1.1
    ...
    Cookie: AWSALB=0ZFs20C8k9mQmippEgpWP91D3GwovLCS8mC0iMNrZ6QBzny0qm+x5FO1OREOEBncw/T4wRLQL6rEfkxEmGuc/KHorRihOWO4WTJ7FJQHr0yJL5nmeTxW93kAZh/E
    ----------
    2 request properties
    Field: Cookie = [PHPSESSID=bdj6g59ej1pk80qm4l8ptsg8c4; AWSALB=2puxFNpMse3drMWu47gOGbTKfM8OzQ3ImHPFJKUXjAsHZ9E2yQ4p6CEcIOEv8DcngeE+rO/k/bT3Lm1OsW95slg3UVkSv2qGu4LwFn+TL/OVtSI7JPuz5M2mYiKi]
    Field: User-Agent = [Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:49.0) Gecko/20100101 Firefox/49.0]
    
    Retrieving server reply...
    
    Retrieved: https://www.kingdomofloathing.com/game.php
    12 header fields
    Field: null = [HTTP/1.1 200 OK]
    ...
    Field: Set-Cookie = [charpwd=deleted; expires=Thu, 01-Jan-1970 00:00:01 GMT, chatpwd=deleted; expires=Thu, 01-Jan-1970 00:00:01 GMT, AWSALB=iKPiF7/vFUCL2z+/EsRTv6hJcVCELL/BskHXIkr6V2SymH+NlxEU28mSmSPUWnVY/Oyw4+EFLWA2tzw6w126Bk//oKrbpBa+wCn4ije528LSM2wLUpyCHglCstyS; Expires=Sat, 29 Oct 2016 17:04:03 GMT; Path=/]
    ...
    -----To Browser-----
    HTTP/1.1 200 OK
    ...
    Set-Cookie: charpwd=deleted; expires=Thu, 01-Jan-1970 00:00:01 GMT
    Set-Cookie: chatpwd=deleted; expires=Thu, 01-Jan-1970 00:00:01 GMT
    Set-Cookie: AWSALB=iKPiF7/vFUCL2z+/EsRTv6hJcVCELL/BskHXIkr6V2SymH+NlxEU28mSmSPUWnVY/Oyw4+EFLWA2tzw6w126Bk//oKrbpBa+wCn4ije528LSM2wLUpyCHglCstyS; Expires=Sat, 29 Oct 2016 17:04:03 GMT; Path=/
    ...
    ----------
    Looks to me like we sent all the cookies that KoL gave us down to the browser.
    Note the expiration dates: KoL is setting them to "deleted" with a date in the past in order to force the browser to delete any saved cookies with those names.

    Here is the next Browser request:

    Code:
    -----From Browser-----
    GET /topmenu.php HTTP/1.1
    ...
    Cookie: AWSALB=iKPiF7/vFUCL2z+/EsRTv6hJcVCELL/BskHXIkr6V2SymH+NlxEU28mSmSPUWnVY/Oyw4+EFLWA2tzw6w126Bk//oKrbpBa+wCn4ije528LSM2wLUpyCHglCstyS
    ...
    ----------
    class net.sourceforge.kolmafia.request.RelayRequest
    Connecting to topmenu.php...
    
    Requesting: https://www.kingdomofloathing.com/topmenu.php
    2 request properties
    Field: Cookie = [PHPSESSID=bdj6g59ej1pk80qm4l8ptsg8c4; charpwd=deleted; chatpwd=deleted; AWSALB=iKPiF7/vFUCL2z+/EsRTv6hJcVCELL/BskHXIkr6V2SymH+NlxEU28mSmSPUWnVY/Oyw4+EFLWA2tzw6w126Bk//oKrbpBa+wCn4ije528LSM2wLUpyCHglCstyS]
    Field: User-Agent = [Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:49.0) Gecko/20100101 Firefox/49.0]
    Note that the Browser is sending only th AWSLB cookie - but KoLmafia is, for some reason, sending back the expired cookies all on its own.

    I'll look at this.
    Ph'nglui mglw'nafh Cthulhu
    R'lyeh wgah-nagl fhtagn.

  2. #472
    Developer Veracity's Avatar
    Join Date
    Mar 2006
    Location
    The Unseelie Court
    Posts
    10,530

    Default

    Well, this is interesting.

    - We save all cookies that KoL sends via Set-Cookie
    - We strip off the Expires field when we save them
    - We ignore cookies that the browser sends

    That all works fine with PHPSESSID and AWSALB, but not so well for others that KoLmafia doesn't need itself.

    The idea was to future proof it so that if KoL added new cookies, we would not have to change which hardcoded ones we save.

    Perhaps we should just hardcode PHPSESSID and AWSALB and pass anything else from the browser up and override those cookies.
    Ph'nglui mglw'nafh Cthulhu
    R'lyeh wgah-nagl fhtagn.

  3. #473

    Default

    I'm now managing to consistently reproduce the incorrectly-sized frames issue outside of mafia, so this is on CDMoyer to sort out.

  4. #474
    Developer Veracity's Avatar
    Join Date
    Mar 2006
    Location
    The Unseelie Court
    Posts
    10,530

    Default

    Revision 17296 now distinguished between "special" cookies - PHPSESSID and AWSALB - and everything else.
    It will save the "special" ones and send those with every internal or external (Browser) request.
    Browser requests will save the non-"special" ones and KoLmafia will also send those for any Browser request that has any.

    Which it say, we are now no longer future proofed if KoL adds a new cookie that internal requests will need to save and transmit.

    But we shouldn't mess up browser-specific cookies that change during the session.
    Ph'nglui mglw'nafh Cthulhu
    R'lyeh wgah-nagl fhtagn.

  5. #475
    Developer Veracity's Avatar
    Join Date
    Mar 2006
    Location
    The Unseelie Court
    Posts
    10,530

    Default

    I'm now managing to consistently reproduce the incorrectly-sized frames issue outside of mafia, so this is on CDMoyer to sort out.
    Originally Posted by lostcalpolydude View Post
    Yeah, I noticed bad frames when switching back and forth between "save frames" when closing the browser window and reopening it even after we started transmitting all cookies to the browser correctly and no longer internally saving chatpwd and charpwd.
    Ph'nglui mglw'nafh Cthulhu
    R'lyeh wgah-nagl fhtagn.

  6. #476

    Default

    On the Ghostbusting tasks (alerts parsed from the Protonic Accelerator Pack), could we get a note about which element to buff resists for please?
    Some of the monsters (e.g The ghost of Lord Montague Spookyraven) can do 700+ damage when you attempt to trap them which in-run isn't easily tankable if you don't have adequate resists. This can cause you to waste one or more turns as losing the battle costs you a turn even though winning doesn't.
    Also passive damage and/or familiar damage can kill the monster before you can trap it. I had a filty child leash equipped on my Intergnat which killed some of them before I could even get a 3rd shoot ghost in. Dunno if there's much you can do about that though.
    The potential encounter list can be found at http://kol.coldfront.net/thekolwiki/...celerator_pack but you'll have to click through to each monster to get the element it attacks with.

    Also Thanksgarden support would be most appreciated. Main ones being recommending the Gravy Boat to cut turns in The Defiled Cyrpt, using Turkey Blasters to advance delay & using Stuffing Fluffers once the Battlefield is open.

    Thanks =)
    Last edited by Malibu Stacey; 11-21-2016 at 03:03 PM. Reason: Kelsey Grammar

  7. #477

    Default

    Super minor suggestion:

    When being tasked to get Fernswarthy's key during the The Wizard of Ego quest, Guide says to "Adventure at the unquiet garves" and links to place.php?whichplace=plains. I suggest a better link target would be place.php?whichplace=cemetery.

  8. #478

    Default

    Another minor suggestion:

    2 cashews
    Could make into turkey blasters to burn delay, stuffing fluffers for the war, or various foods.
    Turkey blasters and stuffing fluffers are 3 cashews each. So if you only got 2, maybe just suggest foods?

  9. #479

    Default

    Turkey blasters and stuffing fluffers are 3 cashews each. So if you only got 2, maybe just suggest foods?
    Originally Posted by Boesbert View Post
    I think they're still worth mentioning, just because you may want to save your cashews for tomorrow. I could see graying out items you can't afford right now, though.

  10. #480
    Junior Member
    Join Date
    May 2009
    Posts
    12

    Default

    Suggestion about the Avatar of West of Loathing section of the guide:

    On line 42294 you disable the entire section if the my_path_id() function doesn't say we're currently in an AWOL run. I'm still new to AWOL so I'm not sure exactly which sections of this is safe for (so I'm not going to try to suggest a patch), but I do know that Extract Oil continues working into aftercore, and I'd love to have that section of my side bar keep working!

    I'm thinking most of the section could just check for the presence of the skills themselves, since they'd be missing if you're not in AWOL or post-AWOL aftercore.

Similar Threads

  1. Replies: 9
    Last Post: 02-24-2015, 09:20 PM
  2. KolMafia Guide for Noobs.
    By SinginSally in forum Community Support
    Replies: 106
    Last Post: 12-21-2012, 06:32 AM
  3. Replies: 4
    Last Post: 01-05-2012, 04:56 PM
  4. Feature/Script request: Tour Guide Trakcer
    By Jefe in forum Community Support
    Replies: 2
    Last Post: 09-26-2010, 05:44 PM
  5. Deep Suggestion - NS Familiar Guide?
    By Anne Noise in forum Community Support
    Replies: 7
    Last Post: 08-11-2009, 09:21 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •