Page 241 of 242 FirstFirst ... 141 191 231 239 240 241 242 LastLast
Results 2,401 to 2,410 of 2417

Thread: Universal Recovery Script

  1. #2401
    Developer fronobulax's Avatar
    Join Date
    Feb 2009
    Location
    Central Virginia, USA
    Posts
    4,583

    Default

    Attempted a fix. Can't test because I have no Chateau.

  2. #2402
    Senior Member
    Join Date
    Feb 2010
    Posts
    1,112

    Default

    It seems to have worked. Thank you.

  3. #2403
    Developer fronobulax's Avatar
    Join Date
    Feb 2009
    Location
    Central Virginia, USA
    Posts
    4,583

    Default

    It seems to have worked. Thank you.
    Originally Posted by Magus_Prime View Post
    Yo're weclome, but I should note veracity's comment also helped.
    Well, thank you.
    Originally Posted by Veracity View Post

  4. #2404
    Developer fronobulax's Avatar
    Join Date
    Feb 2009
    Location
    Central Virginia, USA
    Posts
    4,583

    Default

    n kingdom of explothing doc galactic is unavailable. So if you run out of other restorers and it tries to resort to buying from galactic it gives the following infinite loop
    Noted. Galaktik availability is assumed in a lot of places and I have not found a quick fix. But I am looking. Thank you.

  5. #2405
    Senior Member
    Join Date
    Oct 2017
    Posts
    445

    Default

    Noted. Galaktik availability is assumed in a lot of places and I have not found a quick fix. But I am looking. Thank you.
    Originally Posted by fronobulax View Post
    How about using this function
    https://wiki.kolmafia.us/index.php?title=My_path

    Make a bool called galaktik_avail which is used in various galaktik bought restorers to check if galactic is available.
    on running the script it can check if my path is exploathing, and if it is then set galaktik_avail to false. otherwise set it to true. (it will pretty much need to be checked every time it is run, because breaking prism makes it available again)

    If other paths are added in the future that block galactic, they can be added to that check

  6. #2406
    Senior Member
    Join Date
    Feb 2010
    Posts
    1,112

    Default

    You can disable the use of, most restorers, from Doc's in the relay settings for the script.

  7. #2407
    Developer fronobulax's Avatar
    Join Date
    Feb 2009
    Location
    Central Virginia, USA
    Posts
    4,583

    Default

    How about using this function
    https://wiki.kolmafia.us/index.php?title=My_path

    Make a bool called galaktik_avail which is used in various galaktik bought restorers to check if galactic is available.
    on running the script it can check if my path is exploathing, and if it is then set galaktik_avail to false. otherwise set it to true. (it will pretty much need to be checked every time it is run, because breaking prism makes it available again)

    If other paths are added in the future that block galactic, they can be added to that check
    Originally Posted by taltamir View Post
    That was the quick fix I was hoping for :-) but I don't see how to do it quickly.

    There are 5-10 places where Galaktik is hard coded. There are several places where the script assumes success because it assumes Galaktik is available. However the script can fail if (for example) there is no meat to purchase Galaktik so I'm thinking I need to trigger the failure if Galaktik is unavailable as well. I am also trying to resist the Coder's Curse and decide it is easier to rewrite something than to understand it.
    Well, thank you.
    Originally Posted by Veracity View Post

  8. #2408
    Developer fronobulax's Avatar
    Join Date
    Feb 2009
    Location
    Central Virginia, USA
    Posts
    4,583

    Default

    What is baleUr_AlwaysContinue for you?

    If it is true, setting it to false might get around the infinite loop.

  9. #2409
    Senior Member
    Join Date
    Apr 2006
    Posts
    145

    Default

    Just had a critical error with UR. I was in the middle of running FantasyRealm.ash
    Session and error logs included.
    Attached Files

  10. #2410
    Developer fronobulax's Avatar
    Join Date
    Feb 2009
    Location
    Central Virginia, USA
    Posts
    4,583

    Default

    Just had a critical error with UR. I was in the middle of running FantasyRealm.ash
    Session and error logs included.
    Originally Posted by Terrabull View Post
    I'm not getting anything from the logs I can use. Maybe someone smarter than me will look at them?

    It looks like some recovery is happening in FantasyRealm so I am not sure what the trigger might have been. The debug log suggests checking the Dispensary so if that is unavailable perhaps something is assuming that rather than checking? I sometimes see null pointers when manipulating lists so there also might be KoLmafia bug that has not been dealt with - i.e. a list that needs to be synchronized.

    I would verify that the Dispensary is available or that lastDispensaryOpen is set properly. I would look at the list of restores UR is allowed to use and see if there is something that is not actually available. But I'm just throwing ideas out.
    Well, thank you.
    Originally Posted by Veracity View Post

Similar Threads

  1. Anecdote - Recovery Script not firing between auto-adventures?
    By fronobulax in forum Community Support
    Replies: 1
    Last Post: 02-20-2015, 07:36 PM
  2. Replies: 0
    Last Post: 09-21-2013, 05:50 PM
  3. what are all the ways mafia can consult a script? like recovery, breakfast
    By forgot my password in forum Scripting Discussion
    Replies: 5
    Last Post: 06-11-2009, 09:05 PM
  4. Recovery Script for Hardcore
    By Bale in forum Buff Upkeep Scripts
    Replies: 84
    Last Post: 03-04-2009, 08:17 AM
  5. Very New, Need a MP Recovery Script
    By Willie0248 in forum Scripting Discussion
    Replies: 2
    Last Post: 04-15-2006, 09:30 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
  •