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

I'm confused by this script, it recommends eating 3.0/full foods and lo meins, when I can afford hi or chow meins.
Is it trying to say the money/adventure gain is not worth it?
 
I'm confused by this script, it recommends eating 3.0/full foods and lo meins, when I can afford hi or chow meins.
Is it trying to say the money/adventure gain is not worth it?

if you want the best cheapest diet, I would suggest setting your budget at 100000 (basicly saying you can afford any item) but the important one is setting your cost of adventure to about 1500 meat, for me that puts me at drinking 3 chow meins/hi meins, same adv but it will eat the cheapest, as well as advent cock crafting drinks, and not-a-pipes and 1 rainbow wad.


Now, to recap...
******************************************
Starting EatDrink.ash (version 2.4).
Consuming up to 15 food, 19 booze, and 15 spleen
Considering food from inventory Hagnk's the mall. Per-item budget cap is 125000.0.
Price will be a factor if you own it already. Hagnk's pulls (if enabled) will cost 500 meat each.
An adventure has the value of 1500 meat. Mysticality subpoint is 10. Nonprime stat subpoint is 2.
Now at fullness of 0, eating to 15.
0: milk of magnesium price: 1075 value: 36050
1: bat wing chow mein lev:7 gain:5.0 adv:25.0 musc:0.0 myst:72.0 moxie:0.0 price:4600 own:0 pull:false make:false value:6724
2: bat wing chow mein lev:7 gain:5.0 adv:25.0 musc:0.0 myst:72.0 moxie:0.0 price:4600 own:0 pull:false make:false value:6724
3: bat wing chow mein lev:7 gain:5.0 adv:25.0 musc:0.0 myst:72.0 moxie:0.0 price:4600 own:0 pull:false make:false value:6724
Now at inebriety of 0, drinking to 19.
1: gimlet lev:6 gain:4.0 adv:16.0 musc:0.0 myst:43.0 moxie:0.0 price:5686 own:15 pull:false make:false value:4686
2: gimlet lev:6 gain:4.0 adv:16.0 musc:0.0 myst:43.0 moxie:0.0 price:5686 own:14 pull:false make:false value:4686
3: gimlet lev:6 gain:4.0 adv:16.0 musc:0.0 myst:43.0 moxie:0.0 price:5686 own:13 pull:false make:false value:4686
4: gimlet lev:6 gain:4.0 adv:16.0 musc:0.0 myst:43.0 moxie:0.0 price:5686 own:12 pull:false make:false value:4686
5: cruelty-free wine lev:10 gain:1.0 adv:3.0 musc:0.0 myst:12.0 moxie:0.0 price:200 own:10 pull:false make:false value:4420
6: cruelty-free wine lev:10 gain:1.0 adv:3.0 musc:0.0 myst:12.0 moxie:0.0 price:200 own:9 pull:false make:false value:4420
7: cruelty-free wine lev:10 gain:1.0 adv:3.0 musc:0.0 myst:12.0 moxie:0.0 price:200 own:8 pull:false make:false value:4420
Now at spleen of 0, spleening to 15.
1: not-a-pipe lev:4 gain:4.0 adv:8.0 musc:25.0 myst:25.0 moxie:25.0 price:5385 own:15 pull:false make:false value:1741
2: not-a-pipe lev:4 gain:4.0 adv:8.0 musc:25.0 myst:25.0 moxie:25.0 price:5385 own:14 pull:false make:false value:1741
3: not-a-pipe lev:4 gain:4.0 adv:8.0 musc:25.0 myst:25.0 moxie:25.0 price:5385 own:13 pull:false make:false value:1741
4: prismatic wad lev:7 gain:3.0 adv:6.0 musc:55.0 myst:55.0 moxie:55.0 price:5400 own:0 pull:false make:false value:1456
Finished. You had Milk of Magnesium in effect. Adventures listed above does not reflect that, but this does:
Spent 19200 meat. Gained Fullness: 15. Inebriety: 19. Spleen: 15. Adventures: 188. Muscle: 124. Moxie: 149. Mysticality: 565.
Eating, drinking, and spleening complete. Commence merrymaking (at your own discretion).
 
Okay, been fiddling around, and found out that no matter what I set the "price per stat" it never changes when I run the script.
I have tried reloading, refreshing, everything I can think of the clear out the old data, but it always tells me 10/2.

EDIT: Okay I decided that during Crimbo my turns were worth ~1000 and I put that in, but still got results I didn't quite understand. Why does it only suggest eating one chow mein, that makes no sense to me at all. No matter what way you cut it 25 adventures are better than 16, plus it has better stat gains, why does it show up as less valuable than the lo meins?

Starting EatDrink.ash (version 3.0).
Consuming up to 15 food, 0 booze, and 15 spleen and then finishing off with the stiffest drink we can find.
Considering food from inventory Hagnk's the mall. Per-item budget cap is 25000.0.
Price will be a factor if you own it already. Hagnk's pulls (if enabled) will cost 3000 meat each.
An adventure has the value of 1000 meat. Muscle subpoint is 10.0. Nonprime stat subpoint is 2.0.
Simulating only; no purchases or food/drink/spleen consumption.
food: At 0, consuming to 15.
0: milk of magnesium price: 1075 value: 23675
1: Knob sausage chow mein lev:7 gain:5.0 adv:25.0 musc:74.0 myst:0.0 mox:0.0 meat:4475 own:0 value:4253
2: spooky lo mein lev:6 gain:4.0 adv:18.0 musc:0.0 myst:0.0 mox:33.5 meat:1785 own:3 value:5070
3: spooky lo mein lev:6 gain:4.0 adv:18.0 musc:0.0 myst:0.0 mox:33.5 meat:1785 own:3 value:5070
4: chocolate-covered scarab beetle lev:5 gain:2.0 adv:8.5 musc:32.5 myst:32.5 mox:32.5 meat:1900 own:2 value:4902
spleen: At 0, consuming to 15.
1: twinkly wad lev:6 gain:1.0 adv:1.0 musc:9.0 myst:9.0 mox:9.0 meat:200 own:885 value:926
2: twinkly wad lev:6 gain:1.0 adv:1.0 musc:9.0 myst:9.0 mox:9.0 meat:200 own:885 value:926
3: twinkly wad lev:6 gain:1.0 adv:1.0 musc:9.0 myst:9.0 mox:9.0 meat:200 own:885 value:926
4: twinkly wad lev:6 gain:1.0 adv:1.0 musc:9.0 myst:9.0 mox:9.0 meat:200 own:885 value:926
5: twinkly wad lev:6 gain:1.0 adv:1.0 musc:9.0 myst:9.0 mox:9.0 meat:200 own:885 value:926
6: twinkly wad lev:6 gain:1.0 adv:1.0 musc:9.0 myst:9.0 mox:9.0 meat:200 own:885 value:926
7: twinkly wad lev:6 gain:1.0 adv:1.0 musc:9.0 myst:9.0 mox:9.0 meat:200 own:885 value:926
8: twinkly wad lev:6 gain:1.0 adv:1.0 musc:9.0 myst:9.0 mox:9.0 meat:200 own:885 value:926
9: twinkly wad lev:6 gain:1.0 adv:1.0 musc:9.0 myst:9.0 mox:9.0 meat:200 own:885 value:926
10: twinkly wad lev:6 gain:1.0 adv:1.0 musc:9.0 myst:9.0 mox:9.0 meat:200 own:885 value:926
11: twinkly wad lev:6 gain:1.0 adv:1.0 musc:9.0 myst:9.0 mox:9.0 meat:200 own:885 value:926
12: twinkly wad lev:6 gain:1.0 adv:1.0 musc:9.0 myst:9.0 mox:9.0 meat:200 own:885 value:926
13: twinkly wad lev:6 gain:1.0 adv:1.0 musc:9.0 myst:9.0 mox:9.0 meat:200 own:885 value:926
14: twinkly wad lev:6 gain:1.0 adv:1.0 musc:9.0 myst:9.0 mox:9.0 meat:200 own:885 value:926
15: twinkly wad lev:6 gain:1.0 adv:1.0 musc:9.0 myst:9.0 mox:9.0 meat:200 own:885 value:926
At drunkenness of 0. Overdrinking.
1: grogtini lev:6 gain:6.0 adv:24.0 musc:18.0 myst:0.0 mox:0.0 meat:2123 own:1 value:22057
choc: Checking non-filling crimbo chocolates - all 3 kinds
Finished. You had Milk of Magnesium in effect. Adventures listed above does not reflect that, but this does:
Spent 16143 meat. Gained Fullness: 15. Inebriety: 6. Spleen: 15. Adventures: 123. Muscle: 259. Moxie: 233. Mysticality: 167.
Eating, drinking, and spleening complete. Commence merrymaking (at your own discretion).
 
Last edited:
You want to change mafia's (new) value (set valueOfAdventure=X), the value the script created before is no longer used.

Where is that located?

Edit: I found it, for others looking, it's at the bottom of mafia's pref txt file for your spacific char.

Ok so after that edit and changing in mafia's preferences, from 500 to 4000 it still using the 500 value when I run eat/drink 3.0...

Edit last time: figured it out that I needed to feed it into the CLI cause if I changed it in the txt file it just reset.
 
Last edited:
Hmm, the script's looping on me again. This time it keeps trying to buy dusty bottles of marsala then stopping purchasing them (and repeating). Works fine if I buy 19 bottles, or if I fill up my liver manually, before running the script.
 
Hmm, the script's looping on me again. This time it keeps trying to buy dusty bottles of marsala then stopping purchasing them (and repeating). Works fine if I buy 19 bottles, or if I fill up my liver manually, before running the script.

The script tells you exactly what it's doing in the CLI, just read it. It's not looping, because it's not stuck, it's just trying to adjust to the correct values.

If you stop the script when it gets and error and rerun it with the same values, it will usually choose a different item to consume.

This is because the script/mafia thought that the item was going to be a certain cost, and unfortunately the mall/market cost was higher then expected.
 
The script tells you exactly what it's doing in the CLI, just read it. It's not looping, because it's not stuck, it's just trying to adjust to the correct values.

If you stop the script when it gets and error and rerun it with the same values, it will usually choose a different item to consume.

This is because the script/mafia thought that the item was going to be a certain cost, and unfortunately the mall/market cost was higher then expected.

OK, wrong terminology, but what I mean is it adjusts the price ad infinitum without ever actually buying/consuming. And as for restarting the script, no luck. It ends up trying the same item (dusty bottle of marsala) again and again. Also, my CPU usage soars to 70% or higher, and mafia lags really badly (although that's not so much an issue with mafia as with my computer). Sometimes to the extent that I have to force quit it because I can't get it to abort.

Here's the readout that I got a day or two ago, copied from my session log:

Code:
> Pass 2: drink.
> drink: At 0, consuming to 19.
> Loading drink map from Mafia's datafiles
> Filtering by type
> Filtering by level
> Finding prices
> Setting values
> Choosing drink to consume.
> <b>dusty bottle of Marsala</b> lev:1 gain:2.0 adv:6.0 musc:12.5 myst:12.5 mox:12.5 meat:230 own:0 value:1428
> Shopping for a dusty bottle of Marsala in 0 seconds
> budgeting 287 for 1 additional dusty bottle of Marsala. You have 37621632 meat.  You have 0 in inventory already.
> Purchased 0 dusty bottle of Marsala for 0 meat.
> Tried to get 1 dusty bottle of Marsala but got 0.  Pricing error.
> Setting new effective price to the greater of 287 and 1
> Failed to get dusty bottle of Marsala for a max price of 1.25*230=287.5
> FAIL: <b>dusty bottle of Marsala</b> lev:1 gain:2.0 adv:6.0 musc:12.5 myst:12.5 mox:12.5 meat:230 own:0 value:1428
> Choosing drink to consume.
> <b>dusty bottle of Marsala</b> lev:1 gain:2.0 adv:6.0 musc:12.5 myst:12.5 mox:12.5 meat:230 own:0 value:1428
> Shopping for a dusty bottle of Marsala in 0 seconds
> budgeting 287 for 1 additional dusty bottle of Marsala. You have 37621632 meat.  You have 0 in inventory already.
> Purchased 0 dusty bottle of Marsala for 0 meat.
> Tried to get 1 dusty bottle of Marsala but got 0.  Pricing error.
> Seen a problem with this one before at a price of 287.
> Setting new effective price to the greater of 287 and 288
> Failed to get dusty bottle of Marsala for a max price of 1.25*230=287.5
> FAIL: <b>dusty bottle of Marsala</b> lev:1 gain:2.0 adv:6.0 musc:12.5 myst:12.5 mox:12.5 meat:230 own:0 value:1428
> Choosing drink to consume.
> <b>dusty bottle of Marsala</b> lev:1 gain:2.0 adv:6.0 musc:12.5 myst:12.5 mox:12.5 meat:230 own:0 value:1428
> Shopping for a dusty bottle of Marsala in 0 seconds
> budgeting 287 for 1 additional dusty bottle of Marsala. You have 37621632 meat.  You have 0 in inventory already.
> Purchased 0 dusty bottle of Marsala for 0 meat.
> Tried to get 1 dusty bottle of Marsala but got 0.  Pricing error.
> Seen a problem with this one before at a price of 288.
> Setting new effective price to the greater of 287 and 289
> Failed to get dusty bottle of Marsala for a max price of 1.25*230=287.5
> FAIL: <b>dusty bottle of Marsala</b> lev:1 gain:2.0 adv:6.0 musc:12.5 myst:12.5 mox:12.5 meat:230 own:0 value:1428
And so on...
 
I'm sorry if this was discussed before, but I couldn't read through all 38 pages.
I have a TPS, and I thought TPS drinks are optimal for quite a range of prices, yet no matter what price of adventure I set it to, I can't get it to use TPS drinks. Am I doing something wrong? Do I need to set something?
 
I still don't understand this script. Is anyone else having problems?
I run it, and it tells me to buy things giving me 47.5 turns average, when I could get 50 turns average with only a slight modification.
Why is it doing that? Do I need to double check everything for turn average, and if so, why should I run this script at all?
Starting EatDrink.ash (version 3.0).
Consuming up to 15 food, 19 booze, and 15 spleen and then finishing off with the stiffest drink we can find.
Considering food from inventory Hagnk's the mall. Per-item budget cap is 25000.0.
Price will be a factor if you own it already. Hagnk's pulls (if enabled) will cost 3000 meat each.
An adventure has the value of 2000 meat. Muscle subpoint is 10.0. Nonprime stat subpoint is 2.0.
Simulating only; no purchases or food/drink/spleen consumption.
food: At 0, consuming to 15.
0: milk of magnesium price: 1035 value: 48465
1: Knob sausage chow mein lev:7 gain:5.0 adv:25.0 musc:74.0 myst:0.0 mox:0.0 meat:4475 own:0 value:9253
2: super salad lev:11 gain:3.0 adv:14.5 musc:40.0 myst:36.0 mox:35.5 meat:3995 own:0 value:11182
3: super salad lev:11 gain:3.0 adv:14.5 musc:40.0 myst:36.0 mox:35.5 meat:3995 own:0 value:11182
4: super salad lev:11 gain:3.0 adv:14.5 musc:40.0 myst:36.0 mox:35.5 meat:3995 own:0 value:11182
5: handful of nuts and berries lev:12 gain:1.0 adv:4.0 musc:0.0 myst:55.0 mox:0.0 meat:940 own:128 value:9836
drink: At 0, consuming to 19.
1: grogtini lev:6 gain:6.0 adv:24.0 musc:18.0 myst:0.0 mox:0.0 meat:2100 own:0 value:7680
2: grogtini lev:6 gain:6.0 adv:24.0 musc:18.0 myst:0.0 mox:0.0 meat:2100 own:0 value:7680
3: grogtini lev:6 gain:6.0 adv:24.0 musc:18.0 myst:0.0 mox:0.0 meat:2100 own:0 value:7680
4: herringcello lev:1 gain:1.0 adv:3.5 musc:6.0 myst:6.0 mox:6.0 meat:290 own:29 value:6794
spleen: At 0, consuming to 15.
1: not-a-pipe lev:4 gain:4.0 adv:8.0 musc:25.0 myst:25.0 mox:25.0 meat:4940 own:0 value:2852
2: not-a-pipe lev:4 gain:4.0 adv:8.0 musc:25.0 myst:25.0 mox:25.0 meat:4940 own:0 value:2852
X: 3 mojo filters price: 7050 (total)
3: not-a-pipe lev:4 gain:4.0 adv:8.0 musc:25.0 myst:25.0 mox:25.0 meat:4940 own:0 value:2852
4: not-a-pipe lev:4 gain:4.0 adv:8.0 musc:25.0 myst:25.0 mox:25.0 meat:4940 own:0 value:2852
5: twinkly wad lev:6 gain:1.0 adv:1.0 musc:9.0 myst:9.0 mox:9.0 meat:200 own:852 value:1926
6: twinkly wad lev:6 gain:1.0 adv:1.0 musc:9.0 myst:9.0 mox:9.0 meat:200 own:852 value:1926
At drunkenness of 19. Overdrinking.
1: grogtini lev:6 gain:6.0 adv:24.0 musc:18.0 myst:0.0 mox:0.0 meat:2100 own:0 value:46080
choc: Checking non-filling crimbo chocolates - all 3 kinds
Finished. You had Milk of Magnesium in effect. Adventures listed above does not reflect that, but this does:
Spent 54335 meat. Gained Fullness: 15. Inebriety: 25. Spleen: 15. Adventures: 223. Muscle: 390. Moxie: 229. Mysticality: 287.
 
For a start you're using simulation mode. If you take it off that (a box pops up when you first run the script) it'll actually buy and consume the stuff for you.

As for inefficiencies, I'm not sure. It'll probably have something to do with how you've set up the script. Go back and re-read the first post in the thread very carefully. Then try tweaking your settings very slightly until you're happy with the results.
 
I got this error when trying to run eatdrink.ash

[the ode to booze] does not match anything in the status effect database.
Bad effect value: "the ode to booze" (EatDrink.ash, line 1339)

any ideas?
 
I was wondering if EatDrink would take into consideration the Crimbo consumables, not that they are any better price per fullness per adv gain wise
 
Using items I have available?

So I have a green pixie so I get not-a-pipe's for ~free. How can I weight it to use those in inventory over twinkly wads?
 
I think mafia is calculating certain things incorrectly... it is currently choosing to create rockin' wagons when I can make Mae West's for about the same price in most cases. Not sure what information you need, but let me know and I'll get it for you.
 
So I have a green pixie so I get not-a-pipe's for ~free. How can I weight it to use those in inventory over twinkly wads?

You get absinthe for "free", not-a-pipes still cost 4.5 turns (on average) to create, making them worse than wads if you're starting from absinthe. However, even if you have not-a-pipes, you should sell them and buy wads, according to the script.

I think mafia is calculating certain things incorrectly... it is currently choosing to create rockin' wagons when I can make Mae West's for about the same price in most cases. Not sure what information you need, but let me know and I'll get it for you.
Rockin' wagons are pretty good when you wear a tuxedo shirt.
 
Back
Top