Page 241 of 241 FirstFirst ... 141 191 231 239 240 241
Results 2,401 to 2,408 of 2408

Thread: Universal Recovery Script

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

    Default

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

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

    Default

    It seems to have worked. Thank you.

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

    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,517

    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
    436

    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,094

    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,517

    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,517

    Default

    What is baleUr_AlwaysContinue for you?

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

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
  •