Page 221 of 222 FirstFirst ... 121 171 211 219 220 221 222 LastLast
Results 2,201 to 2,210 of 2219

Thread: EatDrink.ash: Optimize your daily diet (and see how your old diet stacks up).

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

    Default

    Oh so it was a display issue then... that makes sense. Derp. All I ever do is look at is kolmafia client.
    Originally Posted by Ima Felyn View Post
    Nope. It was a change in the underlying game which KoLmafia responded to before Harvest and/or EatDrink.
    You just vehemently agreed with me
    Originally Posted by Veracity View Post
    I agree with frono.
    Originally Posted by Veracity View Post

  2. #2202

    Default First try to implement the shotglass

    I have made a couple of changes to the script to handle the shotglass. It seems to work well for me but use it at your own risk. The main function should be fine, I'm just afraid I haven't think the overloader correctly for all the scripts.

    It will warn you if you input true for the shotglass but can't use it ( don't have it or used it already ). It will simply skip it, it will not abort. It's not a bug it's a feature

    Main() will now ask for a boolean for shotglass so if you try to use it from another script it is now eatdrink(int foodMax, int drinkMax, int spleenMax, boolean overdrink, boolean shotglass, boolean sim) or if you want to skip simulation use eatdrinkdo(int foodMax, int drinkMax, int spleenMax, boolean overdrink, boolean shotglass).

    Please note that I have renamed the main eatdrink function to eatdrinkdo to prevent a conflict between (int foodMax, int drinkMax, int spleenMax, boolean overdrink, boolean shotglass) and (int foodMax, int drinkMax, int spleenMax, boolean overdrink, boolean sim).

    I also tried to make an overloader for the old eatdrink ( int, int, int, boolean ), it will assume that if you are maxing your liver, you might as well try the shotglass. Maybe do the shotglass even if you don't max it out? I'm open to suggestions but this should prevent harvest from hanging.

    --Grab

    P.S. I'm not sure what "int EATDRINK_VERSION_PAGE = 1519;" does but I named this version 3.3 ?\_(ツ)_/?

    EatDrink.ash

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

    Default

    P.S. I'm not sure what "int EATDRINK_VERSION_PAGE = 1519;" does but I named this version 3.3 ?\_(ツ)_/?
    Originally Posted by Grabuge View Post
    In the days before SVN a script author could use zlib functions to check for versions. Basically the function went to the first post in a thread on kolmafia,us and looked for a version number on that page. If the version number of the script being run and the version on the page were different then the user would be told there was an update available and directed to that page to get the update. So you did the right thing to support the legacy version checking, except that the updated version is no longer attached to the first page. But that is what EATDRINK_VERSION_PAGE = 1519 is used for.

    I will note that I don't use Harvest and this fixes what I consider a logic error in Harvest at the cost of making me enter one more parameter when running manually and having to check all the places I call eatdrink from a script. I probably won't adopt it ;-)
    You just vehemently agreed with me
    Originally Posted by Veracity View Post
    I agree with frono.
    Originally Posted by Veracity View Post

  4. #2204

    Default

    It isn't just a Harvest error. From what I can tell from the script, that means you are either not using size 1 item and don't see that you aren't using the shotglass, or you are using the shotglass and end up short on your drinking and have to run the script again. Also that is the idea for the overloader. It should, at least if your script calls for inebriety_limit(), works just like usual.
    Last edited by Grabuge; 02-25-2018 at 02:31 AM.

  5. #2205

    Default

    Past few days I've been getting this error whenever the script tries to purchase items for consumption


    Starting EatDrink.ash (version 3.2).
    Consuming up to 15 food, 20 booze, and 15 spleen
    Considering food from inventory Hagnk's Coinmasters NPCs the mall. Per-item budget cap is 75000.0.
    Retrieval cap is 1000. Price will be a factor if you own it already.
    An adventure has the value of 3000 meat. Muscle subpoint is 0.0. Nonprime stat subpoint is 0.0.
    Pass 1: booze.
    booze: At 0, consuming to 20 with 2502350 meat.
    Getting 6 perfect mimosa in 1 seconds
    Countdown: 1 second...
    Waiting completed.
    autoBuyPriceLimit => 1250.0
    Searching for "boxed wine"...
    Search complete.
    Searching for "fermenting powder"...
    Search complete.
    Searching for "bunch of square grapes"...
    Search complete.
    Searching for "perfect mimosa"...
    Search complete.
    Searching for "perfect ice cube"...
    Search complete.
    Using cached search results for perfect mimosa...
    Desired purchase quantity not reached (wanted 6, got 0)
    Using cached search results for perfect mimosa...
    Desired purchase quantity not reached (wanted 6, got 0)
    You need 6 more perfect mimosa to continue.
    autoBuyPriceLimit => 1000
    Something went wrong with getting perfect mimosa for 3111. Recalculating.
    Getting 1 chocolate turtle totem in 1 seconds
    Countdown: 1 second...
    Waiting completed.
    autoBuyPriceLimit => 1250.0
    Searching for "chocolate turtle totem"...
    Search complete.
    Desired purchase quantity not reached (wanted 1, got 0)
    Using cached search results for chocolate turtle totem...
    Desired purchase quantity not reached (wanted 1, got 0)
    You need 1 more chocolate turtle totem to continue.
    Has anyone encountered this issue?

    My current manual workaround to stop the script and purchase it manually and re-run the script.

  6. #2206

    Default

    Past few days I've been getting this error whenever the script tries to purchase items for consumption...
    Has anyone encountered this issue?...
    My current manual workaround to stop the script and purchase it manually and re-run the script.
    Originally Posted by littlereddot11 View Post
    From what i can see, the items costs exceeded the autoBuyPriceLimit.

  7. #2207

    Default

    From what i can see, the items costs exceeded the autoBuyPriceLimit.
    Originally Posted by Born Identities View Post
    Yes, is there a way to fix this issue?

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

    Default

    Yes, is there a way to fix this issue?
    Originally Posted by littlereddot11 View Post
    Change the autoBuyPrice limit?
    You just vehemently agreed with me
    Originally Posted by Veracity View Post
    I agree with frono.
    Originally Posted by Veracity View Post

  9. #2209

    Default

    Change the autoBuyPrice limit?
    Originally Posted by fronobulax View Post
    Would you be able to guide me through how to amend the .ash script to make the necessary changes?

    It's strange how it only occurs for those booze drinks such as perfect cosmopolitan, perfect dark and stormy (basically those drinks that include the perfect cube).
    Last edited by littlereddot11; 03-11-2018 at 07:30 AM.

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

    Default

    It's a KoLmafia property.

    Run mafia, open the gCLI, and type 'set autoBuyPriceLimit xxxxx' where xxxxx is the most meat you want to allow KoLmafia to spend on one item automatically.

    See http://wiki.kolmafia.us/index.php?ti...fia_Properties for a somewhat incomplete and out of date list of Kolmafia properties.

    See http://wiki.kolmafia.us/index.php?title=CLI_Reference for the commands the command line understands.

Similar Threads

  1. 14784: optimize a bit by reusing the same xml serializer
    By RSS Bot in forum Latest SVN Changes
    Replies: 0
    Last Post: 10-02-2014, 02:21 AM
  2. 600 - 700 ADV diet!! T
    By scrambles in forum Item Handling Scripts
    Replies: 20
    Last Post: 08-08-2012, 06:32 AM
  3. 11060: optimize table renderer a bit
    By RSS Bot in forum Latest SVN Changes
    Replies: 0
    Last Post: 06-01-2012, 04:50 PM
  4. consumption.ash -- an EatDrink alternative
    By heeheehee in forum Informational Scripts
    Replies: 6
    Last Post: 11-17-2011, 05:43 AM
  5. PvP Diet Balance and Wine tasting. [spoilers]
    By Darkness in forum Scripting Discussion
    Replies: 2
    Last Post: 03-12-2007, 03:29 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
  •