Page 2 of 222 FirstFirst 1 2 3 4 12 52 102 ... LastLast
Results 11 to 20 of 2215

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

  1. #11
    Senior Member
    Join Date
    Sep 2008
    Posts
    795

    Default v1.04

    I'm going to start posting new versions in the thread so the old versions are archived somewhere. Don't use this, use the one in the first post.
    Attached Files
    My scripts: Ascend for automatic ascensions, Farm to make more money than castlefarming, EatDrink for the maximum number of turns each day, LevelUp to gain a level safely, and PullCrap to manage your pulls in ronin.

  2. #12
    Senior Member
    Join Date
    Sep 2008
    Posts
    795

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

    Also, moving version history to the thread.

    Version history:

    * 1.0: release
    * 1.01: fixed divide-by-zero bug that only manifests on build 6517 and later
    * 1.02: If you don't have enough meat in your inventory, it will still recommend eating items (but not buying them). Also, you can call with more parameters if you're calling from a script. You will need the attached eatdrink_drink_data.txt and eatdrink_drink_data.txt (or add a column of 0s to the right of your existing one).
    * 1.03: Fixed a bug wherein if you aborted over-drinking, it would conclude that the drink provided 0 adventures and enter autospade results accordingly. Also, don't recommend shop-ables if you're not simulating and you're in ronin or hardcore.
    * 1.04: If an item can't be bought, it re-calcs the value of the item at the new, higher price. Minor efficiencies in recalculating. You can import the script and call it with custom parameters (void eatdrink(int foodMax, int drinkMax, boolean overdrink, int advmeat, int primemeat, int offmeat, int pullmeat)). Fixed the version number and changed ver.ash to not fail the version check twice in one day (gets around a bug as well as being less annoying).
    My scripts: Ascend for automatic ascensions, Farm to make more money than castlefarming, EatDrink for the maximum number of turns each day, LevelUp to gain a level safely, and PullCrap to manage your pulls in ronin.

  3. #13

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

    Could you provide a summary at the end of the report? The calculations for drinks started too soon for me to read the food recommendations.

  4. #14

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

    [quote author=caphector link=topic=2038.msg10298#msg10298 date=1228768001]
    Could you provide a summary at the end of the report? The calculations for drinks started too soon for me to read the food recommendations.
    [/quote]

    Something that sums it all up is definitely needed. I'm confused at to what my new diet should be...

  5. #15
    Senior Member
    Join Date
    Sep 2008
    Posts
    795

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

    Ask and ye shall receive. 1.05 now prints a summary at the end of the report.
    Attached Files
    My scripts: Ascend for automatic ascensions, Farm to make more money than castlefarming, EatDrink for the maximum number of turns each day, LevelUp to gain a level safely, and PullCrap to manage your pulls in ronin.

  6. #16
    Senior Member
    Join Date
    Sep 2008
    Posts
    795

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

    1.06 cleans up summary output and fixes a bug in pricing - basically, the "cost" of a pull was added to the price. No longer. It also prints out the assumptions being used in the summary to facilitate debugging. New functionality for planning ascensions: set SIM_LEVEL to your planned level (e.g. 4) and SIM_RONIN to true, and it'll calculate as if you were level 4 ronin (i.e. include pull costs). Known bug: if you're simulating, it will recommend consuming the same item many times, even if you only own one.
    Attached Files
    My scripts: Ascend for automatic ascensions, Farm to make more money than castlefarming, EatDrink for the maximum number of turns each day, LevelUp to gain a level safely, and PullCrap to manage your pulls in ronin.

  7. #17
    Senior Member
    Join Date
    Sep 2008
    Posts
    795

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

    I just updated getonbudget.ash as well to fix a significant bug with buying multiple items at once. eatdrink.ash doesn't do that so the bug wasn't affecting users of the script.
    My scripts: Ascend for automatic ascensions, Farm to make more money than castlefarming, EatDrink for the maximum number of turns each day, LevelUp to gain a level safely, and PullCrap to manage your pulls in ronin.

  8. #18

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

    I'm trying to understand the recommendations that EatDrink.ash is making. Trying to get max adventures from food/drink, don't care about stats. So currently VALUE_OF_ADVENTURE is 100,000, budget is 1,000,000. For my diet it's recommending Jarlsberg's Key Lime Pie x3, a cup of Mulligan Stew, and a Knob Pasty, which it calculates at 71 adventures.

    I'd been eating three Hi Meins a day, which average at 75 adventures. Is there a reason that pies are getting recommended over meins?

    Drinks calculations make a lot more sense; it recommends either Knob Coffee or Ralph IX cognac, which are far better than my normal Dirty Martinis.

    Thanks for the script; it's nice being able to run simulations.

  9. #19
    Senior Member
    Join Date
    Sep 2008
    Posts
    795

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

    That's not a bug, it's a feature!

    The attached version has a PIE_PRIORITY flag. If true, then if you're missing a key (and your level permits) you'll make the corresponding pie a priority. That's the current behavior. You want that set to "false". It's very handy for brainless consumption during an ascension, though, as you never find yourself at the NS with 15 fullness, three pies, and no keys.

    I'm not going to rev main yet but when I do this'll be in it.

    I haven't run it with high thresholds, let me know what you wind up with! Just paste the summary in to the thread.
    Attached Files
    My scripts: Ascend for automatic ascensions, Farm to make more money than castlefarming, EatDrink for the maximum number of turns each day, LevelUp to gain a level safely, and PullCrap to manage your pulls in ronin.

  10. #20

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

    Bug fix:
    Line 807 should be:
    summarize("Now at fullness of "+get_fullness()+", eating to "+foodMax+".");

    Thanks for the PIE_PRIORITY flag; that made a big difference.

    It's interesting watching the interplay between VALUE_OF_ADVENTURE and BUDGET; if you leave the VALUE_OF_ADVENTURE low with BUDGET high it goes for the most cost-effective expensive consumables.

    Here are my test runs:

    With BUDGET = 100,000, Value_of_Adventure at 10,000:
    Code:
    Now at fullness of 0, eating to 15.
    2: frozen banquet lev:15 gain:6.0 adv:45.0 musc:194.5 myst:194.5 moxie:194.5 price:54000 own:0 value:66097
    5: Knob pasty lev:1 gain:1.0 adv:6.5 musc:5.5 myst:5.5 moxie:5.5 price:10969 own:0 value:54047
    Now at inebriety of 0, drinking to 19.
    19: thermos full of Knob coffee lev:1 gain:1.0 adv:6.5 musc:5.5 myst:5.5 moxie:5.5 price:16400 own:0 value:48616
    Now finishing with one big stiff drink.
    20: jar of squeeze lev:8 gain:7.0 adv:28.0 musc:35.0 myst:35.0 moxie:35.0 price:43990 own:0 value:202384
    Finished. Spent 496497 meat. Gained Fullness: 15. Inebriety: 26. Adventures: 250. Muscle: 533. Moxie: 533. Mysticality: 533.
    With BUDGET at 20-50,000, Value_of_Adventure at 10-20,000:
    Code:
    Now at fullness of 0, eating to 15.
    15: Knob pasty lev:1 gain:1.0 adv:6.5 musc:5.5 myst:5.5 moxie:5.5 price:10969 own:0 value:54047
    Now at inebriety of 0, drinking to 19.
    19: thermos full of Knob coffee lev:1 gain:1.0 adv:6.5 musc:5.5 myst:5.5 moxie:5.5 price:16400 own:0 value:48616
    Now finishing with one big stiff drink.
    20: jar of squeeze lev:8 gain:7.0 adv:28.0 musc:35.0 myst:35.0 moxie:35.0 price:43990 own:0 value:202384
    Finished. Spent 520125 meat. Gained Fullness: 15. Inebriety: 26. Adventures: 232. Muscle: 205. Moxie: 205. Mysticality: 205.
    Eating and drinking complete. Commence merrymaking (at your own discretion).
    With BUDGET at 200,000, Value_of_Adventure at 100,000:
    Code:
    Now at fullness of 0, eating to 15.
    7: tin cup of mulligan stew lev:15 gain:2.0 adv:17.0 musc:487.5 myst:656.0 moxie:544.0 price:98500 own:4 value:801593
    8: Knob pasty lev:1 gain:1.0 adv:6.5 musc:5.5 myst:5.5 moxie:5.5 price:10969 own:0 value:639047
    Now at inebriety of 0, drinking to 19.
    9: Hodgman's blanket lev:15 gain:2.0 adv:15.0 musc:550.0 myst:550.0 moxie:550.0 price:129000 own:1 value:686325
    10: thermos full of Knob coffee lev:1 gain:1.0 adv:6.5 musc:5.5 myst:5.5 moxie:5.5 price:16400 own:0 value:633616
    Now finishing with one big stiff drink.
    11: jar of fermented pickle juice lev:13 gain:5.0 adv:32.0 musc:90.0 myst:90.0 moxie:90.0 price:90000 own:0 value:2488220
    Finished. Spent 1967869 meat. Gained Fullness: 15. Inebriety: 24. Adventures: 298. Muscle: 8459. Moxie: 8858. Mysticality: 9642.
    With BUDGET at 10,000, Value_of_Adventure at 10,000:
    Code:
    Now at fullness of 0, eating to 15.
    3: sleazy hi mein lev:7 gain:5.0 adv:25.0 musc:26.5 myst:27.0 moxie:73.0 price:288 own:7 value:49968
    Now at inebriety of 0, drinking to 19.
    4: prussian cathouse lev:6 gain:4.0 adv:16.0 musc:0.0 myst:0.0 moxie:43.5 price:320 own:0 value:39930
    7: cup of primitive beer lev:12 gain:1.0 adv:3.5 musc:57.5 myst:0.0 moxie:0.0 price:1250 own:0 value:33807
    Now finishing with one big stiff drink.
    8: grogtini lev:6 gain:6.0 adv:24.0 musc:18.0 myst:0.0 moxie:0.0 price:2156 own:0 value:198222
    Finished. Spent 8050 meat. Gained Fullness: 15. Inebriety: 25. Adventures: 172. Muscle: 267. Moxie: 391. Mysticality: 81.

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
  •