The Unofficial Ascend.ash support thread.

//update prices
cli_execute("update prices http://zachbardon.com/mafiatools/updateprices.php?action=getmap");
cli_execute("update prices http://nixietube.info/mallprices.txt");

do we change that one too? or just the spading one?
 
You can completely removed those lines and simply check "Share recent Mall price data with other users" in Preferences -> General.
 
got this when I ran the simulation for farm.ash
FWIW, my test of farm decided that the Haunted Conservatory was just the place for a level 62 Pastamancer. I note that canadv was reporting what may have been mis-information. Hopefully Winterbay will have some thoughts since I suspect my next exercise will be getting macguffin to behave.
 
yeah. mines been doing the conservatory for a month or so now. i've cancelled out a couple times and just farmed the castle instead.
 
Mine was running around in the conservatory, the DD and the dungeon of doom for quite some while. I did manage to make some meat from it by actually using the pile of dusty animal bones and getting a bunch of skulls and so on and the boxen has sold quite well...

But, it was some days ago and I then did an "update clear" which seems to have removed some erroneously high mall prices for some items which may have been what was throwing it off. Try that and see if it helps.
 
i've tried update clear several times and it still goes there. i've even tried just deleting the mallprices.txt from the data folder. still loves the conservatory.
 
I can't get the new farm.ash to work. It keeps stopping in the same place.
I have uncommented some of the print statements, and added a +rec.type to the end of the abort message

(running r8465)

Code:
Location 36/117: Haunted Bedroom
Item and meat reset performed
1
DROP: old coin purse worth 535. Drop rate is 25% with a modifier of 232% so actual freq is 83%
2
DROP: old leather wallet worth 545. Drop rate is 25% with a modifier of 232% so actual freq is 83%
3
An error has occurred, aborting.
mon was 0
mob was Animated Nightstand (Mahogany)
rec.drop was half of a memo
rec.rate was 0
rec.type was q

KoLmafia declares world peace.

any suggestions on how to track down the problem?

Dave
 
Last edited:
@Morgad - since I am being especially dense, did farm decide to abort or was there an error that made mafia abort the execution of farm?
 
as far as I can tell it was farm aborting
Code:
default:
print("An error has occurred, aborting.");
print("mon was "+ mon);
print("mob was "+ mob);
print("rec.drop was "+ rec.drop);
print("rec.rate was "+ rec.rate);
print("rec.type was "+ rec.type);
abort();  <--here

HTH
Dave
 
OK. Not a solution but a couple pointers while I deal with Real Life. farm is doing what it is supposed to. It does not recognize rec.type of q and so it aborts. As far as I can tell the record comes from item_drops_array which is defined and managed by zlib. If I am correct then then a band-aid would be to ignore that record type without aborting. A better solution would be to find out what it means and have farm handle it appropriately. So someone with more time than I have at the moment may want to follow up with research.
 
Presumably "quest item", since it's applied to $item[half of a memo]. That's really weird, as it should be "c" instead for conditional. Okay, the simplest solution would be to insert
PHP:
if(rec.type=="q") rec.type = "c";
right before the switch statement that ends with the bit that you posted.

Or insert
PHP:
case "q":
on its own line, right before
PHP:
case "c":

(Untested, as I have no idea what the code looks like, or what the switch statement even is. Just an educated (sorta) guess.)

[And while we're reporting errors with monsters.txt, snakehead charrrm (dropped by gaudy pirate) should be "c", not "".]
 
Last edited:
dumb question - I am using Zlib version 20, is that the correct version for farm.ash?

added the following path to ignore it, does not quite work, keeps looping on the same monster :-(
Code:
case "q":
output("DROP: " + rec.drop + " not evaluated as type is Q");
wait(5);
continue;

but the new mafia release that has just come out might fix things ... will know in a hour :-)

many thanks
Dave
 
Last edited:
I didn't know that there was a "q" category. It's not listed under the item_drops_array entry in the wiki. The script was behaving as intended since it is set to abort if item_drops_array returns an unknown value which it did in this case.

Duplicating any of the b, 0 or c entries and changing to a q really should solve that problem (unless the change to conditional drops instead of q in the recent update solved that problem).

The "print("Item and meat reset performed");" was mainly there for my debugging purposes when I redid the loops and really doesn't do anything (it can be safely removed).

On the "running to strange places" I can't really do anything since my script, which should be the same that is here (apart from a few modifications to canadv), does not do that. It currently farms the dooks for 15 turns and the goes to the castle for the rest. The changes to canadv has nothing to do with the conservatory.

As an attempt to debug this issue could you check your session log for the top 5 entries on where to go to farm?

Mine shows the following:
Code:
> McMillicancuddy's Farm: 903 meat; use maximize meat drop;familiar Leprechaun;{Wasabi Sinuses};.
> Giant's Castle: 831 meat; use maximize meat drop;familiar Leprechaun;{Wasabi Sinuses};.
> Haunted Conservatory: 799 meat; use maximize item drop;familiar Baby Gravy Fairy;{Peeled Eyeballs};.
> The Middle Chamber: 722 meat; use maximize item drop;familiar Baby Gravy Fairy;{Peeled Eyeballs};.
> Knob Goblin Kitchens: 675 meat; use maximize item drop;familiar Baby Gravy Fairy;{Peeled Eyeballs};.
 
fixed by version 8467 :-)

I a going to back out that q: switch patch, aborting was the right thing to do (it just needed a bit more info printing)

Many thanks to Fronobulax, Veracity and the rest of you on this thread.

Dave
 
Hey ya Fronobulax. Thank you for taking a crack at fixing eatdrink. Much appreciated. Your v3.0 did overdrink me tonight. Here is the log. Let me know if anything else would be helpful.

Mafia version 8470

eatdrink was called from an .ash script with "eatdrink(13,inebriety_limit(),spleen_limit(),false,1400,0,0,1400,false);"
Code:
remove from stash: 1 tiny plastic sword
You acquire an item: tiny plastic sword
 > Checking for updates (running EatDrink ver. 3.0)...
 > You have a current version of EatDrink.
> Skipping favorites.
> Starting EatDrink.ash (version 3.0).
> Consuming up to 13 food, 19 booze, and 15 spleen
> Considering food from inventory Hagnk's the mall. Per-item budget cap is 312500.0.
> Price will  be a factor if you own it already. Hagnk's pulls (if enabled) will cost 1400 meat each.
> An adventure has the value of <b>1400 meat</b>. Moxie subpoint is 0.0. Nonprime stat subpoint is 0.0.
> Pass 1: food.
> food: At 0, consuming to 13.
> Loading food map from Mafia's datafiles
> Filtering by type
> Filtering by level
> Finding prices
> Setting values
> Choosing food to consume.
> <b>rat appendix chow mein</b> lev:7 gain:5.0 adv:25.0 musc:0.0 myst:0.0 mox:72.5 meat:4750 own:0 value:6050
> Waiting to consume...
Everything goes as expected with the eating... now the drinking
Code:
> Loading drink map from Mafia's datafiles
> Filtering by type
> Filtering by level
> Finding prices
> Setting values
> Choosing drink to consume.
> <b>grogtini</b> lev:6 gain:6.0 adv:24.0 musc:18.0 myst:0.0 mox:0.0 meat:2418 own:0 value:6130
> Waiting to consume...
> Shopping for a grogtini in 3 seconds
> budgeting 2896 for 2 additional lime. You have 384317 meat.  You have 0 in inventory already.

buy 2 lime for 1159 each from 294980 on 20100602
You acquire lime (2)
> Purchased 2 lime for 2318 meat.
> budgeting 125 for 1 additional bottle of rum. You have 381999 meat.  You have 0 in inventory already.

buy 1 bottle of rum for 100 each from 1165313 on 20100602
You acquire an item: bottle of rum
> Purchased 1 bottle of rum for 100 meat.

Mix 1 bottle of rum + 1 lime
> budgeting 3022 for 1 additional grogtini. You have 381899 meat.  You have 0 in inventory already.
> Purchased 0 grogtini for 0 meat.
> Tried to get 1 grogtini but got 0.  Pricing error.
> Setting new effective price to 3022
> Failed to get grogtini for a max price of 1.25*2418=3022.5
> FAIL: <b>grogtini</b> lev:6 gain:6.0 adv:24.0 musc:18.0 myst:0.0 mox:0.0 meat:2418 own:0 value:6130
> Choosing drink to consume.
> <b>sangria del diablo</b> lev:6 gain:6.0 adv:24.0 musc:0.0 myst:18.0 mox:0.0 meat:2475 own:0 value:6120
> Waiting to consume...
> Shopping for a sangria del diablo in 3 seconds
> budgeting 2962 for 2 additional cherry. You have 381899 meat.  You have 0 in inventory already.

buy 2 cherry for 1185 each from 294980 on 20100602
You acquire cherry (2)
> Purchased 2 cherry for 2370 meat.
> Already got that many, calling that success

Mix 1 cherry + 1 tiny plastic sword
You acquire an item: skewered cherry
Crafting used 1 each of tiny plastic sword and cherry

Mix 1 boxed wine + 1 cherry
You acquire an item: sangria
Crafting used 1 each of boxed wine and cherry

Mix 1 sangria + 1 skewered cherry
You acquire an item: sangria del diablo
Crafting used 1 each of skewered cherry and sangria

drink 1 sangria del diablo
You gain 30 Adventures
You gain 19 Enchantedness
You acquire an item: tiny plastic sword
You gain 6 Drunkenness
> 1: <b>sangria del diablo</b> lev:6 gain:6.0 adv:24.0 musc:0.0 myst:18.0 mox:0.0 meat:2475 own:0 value:6120
> Choosing drink to consume.
> <b>sangria del diablo</b> lev:6 gain:6.0 adv:24.0 musc:0.0 myst:18.0 mox:0.0 meat:2475 own:0 value:6120
> Waiting to consume...
> Shopping for a sangria del diablo in 3 seconds
> budgeting 2962 for 2 additional cherry. You have 379529 meat.  You have 0 in inventory already.

buy 2 cherry for 1185 each from 294980 on 20100602
You acquire cherry (2)
> Purchased 2 cherry for 2370 meat.
> Already got that many, calling that success

Mix 1 cherry + 1 tiny plastic sword
You acquire an item: skewered cherry
Crafting used 1 each of tiny plastic sword and cherry

Mix 1 boxed wine + 1 cherry
You acquire an item: sangria
Crafting used 1 each of boxed wine and cherry

Mix 1 sangria + 1 skewered cherry
You acquire an item: sangria del diablo
Crafting used 1 each of skewered cherry and sangria

drink 1 sangria del diablo
You gain 32 Adventures
You gain 19 Enchantedness
You acquire an item: tiny plastic sword
You gain 6 Drunkenness
> 2: <b>sangria del diablo</b> lev:6 gain:6.0 adv:24.0 musc:0.0 myst:18.0 mox:0.0 meat:2475 own:0 value:6120
> Choosing drink to consume.
> <b>sangria del diablo</b> lev:6 gain:6.0 adv:24.0 musc:0.0 myst:18.0 mox:0.0 meat:2475 own:0 value:6120
> Waiting to consume...
> Shopping for a sangria del diablo in 3 seconds
> budgeting 2962 for 2 additional cherry. You have 377159 meat.  You have 0 in inventory already.

buy 2 cherry for 1185 each from 294980 on 20100602
You acquire cherry (2)
> Purchased 2 cherry for 2370 meat.
> Already got that many, calling that success

Mix 1 cherry + 1 tiny plastic sword
You acquire an item: skewered cherry
Crafting used 1 each of tiny plastic sword and cherry

Mix 1 boxed wine + 1 cherry
You acquire an item: sangria
Crafting used 1 each of boxed wine and cherry

Mix 1 sangria + 1 skewered cherry
You acquire an item: sangria del diablo
Crafting used 1 each of skewered cherry and sangria

drink 1 sangria del diablo
> FAIL: <b>sangria del diablo</b> lev:6 gain:6.0 adv:24.0 musc:0.0 myst:18.0 mox:0.0 meat:2475 own:0 value:6120
> Choosing drink to consume.
> <b>sangria del diablo</b> lev:6 gain:6.0 adv:24.0 musc:0.0 myst:18.0 mox:0.0 meat:2475 own:0 value:6120
> Waiting to consume...
> You have at least one sangria del diablo in inventory.

drink 1 sangria del diablo
> 3: <b>sangria del diablo</b> lev:6 gain:6.0 adv:24.0 musc:0.0 myst:18.0 mox:0.0 meat:2475 own:0 value:6120
> Choosing drink to consume.
> <b>sangria del diablo</b> lev:6 gain:6.0 adv:24.0 musc:0.0 myst:18.0 mox:0.0 meat:2475 own:0 value:6120
> Waiting to consume...
> Shopping for a sangria del diablo in 3 seconds
> budgeting 2962 for 2 additional cherry. You have 374789 meat.  You have 0 in inventory already.

buy 2 cherry for 1185 each from 294980 on 20100602
You acquire cherry (2)
> Purchased 2 cherry for 2370 meat.
> Already got that many, calling that success
> budgeting 3093 for 1 additional sangria del diablo. You have 372419 meat.  You have 0 in inventory already.
> Purchased 0 sangria del diablo for 0 meat.
> Tried to get 1 sangria del diablo but got 0.  Pricing error.
> Setting new effective price to 3093
> Failed to get sangria del diablo for a max price of 1.25*2475=3093.75
> FAIL: <b>sangria del diablo</b> lev:6 gain:6.0 adv:24.0 musc:0.0 myst:18.0 mox:0.0 meat:2475 own:0 value:6120
> Choosing drink to consume.
> <b>cherry bomb</b> lev:6 gain:6.0 adv:24.0 musc:0.0 myst:18.0 mox:0.0 meat:2569 own:0 value:6105
> Waiting to consume...
> Shopping for a cherry bomb in 3 seconds
> Already got that many, calling that success
> Already got that many, calling that success
> budgeting 3211 for 1 additional cherry bomb. You have 372419 meat.  You have 0 in inventory already.
> Purchased 0 cherry bomb for 0 meat.
> Tried to get 1 cherry bomb but got 0.  Pricing error.
> Setting new effective price to 3211
> Failed to get cherry bomb for a max price of 1.25*2569=3211.25
> FAIL: <b>cherry bomb</b> lev:6 gain:6.0 adv:24.0 musc:0.0 myst:18.0 mox:0.0 meat:2569 own:0 value:6105
> Choosing drink to consume.
> <b>bodyslam</b> lev:6 gain:6.0 adv:24.0 musc:18.0 myst:0.0 mox:0.0 meat:2816 own:0 value:6064
> Waiting to consume...
> Shopping for a bodyslam in 3 seconds
> Already got that many, calling that success
> Already got that many, calling that success
> budgeting 3520 for 1 additional bodyslam. You have 372419 meat.  You have 0 in inventory already.
> Purchased 0 bodyslam for 0 meat.
> Tried to get 1 bodyslam but got 0.  Pricing error.
> Setting new effective price to 3520
> Failed to get bodyslam for a max price of 1.25*2816=3520.0
> FAIL: <b>bodyslam</b> lev:6 gain:6.0 adv:24.0 musc:18.0 myst:0.0 mox:0.0 meat:2816 own:0 value:6064
> Choosing drink to consume.
> <b>dirty martini</b> lev:6 gain:6.0 adv:24.0 musc:0.0 myst:0.0 mox:18.0 meat:2827 own:0 value:6062
> Waiting to consume...
> Shopping for a dirty martini in 3 seconds
> budgeting 3296 for 2 additional jumbo olive. You have 372419 meat.  You have 0 in inventory already.

buy 1 jumbo olive for 1309 each from 2102477 on 20100602
You acquire an item: jumbo olive

buy 1 jumbo olive for 1319 each from 294980 on 20100602
You acquire an item: jumbo olive
> Purchased 2 jumbo olive for 2628 meat.
> Already got that many, calling that success
> budgeting 3533 for 1 additional dirty martini. You have 369791 meat.  You have 0 in inventory already.
> Purchased 0 dirty martini for 0 meat.
> Tried to get 1 dirty martini but got 0.  Pricing error.
> Setting new effective price to 3533
> Failed to get dirty martini for a max price of 1.25*2827=3533.75
> FAIL: <b>dirty martini</b> lev:6 gain:6.0 adv:24.0 musc:0.0 myst:0.0 mox:18.0 meat:2827 own:0 value:6062
> Choosing drink to consume.
> <b>vesper</b> lev:6 gain:6.0 adv:24.0 musc:0.0 myst:0.0 mox:18.0 meat:2838 own:0 value:6060
> Waiting to consume...
> Shopping for a vesper in 3 seconds
> Already got that many, calling that success
> budgeting 250 for 1 additional bottle of vodka. You have 369791 meat.  You have 0 in inventory already.

buy 1 bottle of vodka for 100 each from 717350 on 20100602
You acquire an item: bottle of vodka
> Purchased 1 bottle of vodka for 100 meat.
> budgeting 3547 for 1 additional vesper. You have 369691 meat.  You have 0 in inventory already.
> Purchased 0 vesper for 0 meat.
> Tried to get 1 vesper but got 0.  Pricing error.
> Setting new effective price to 3547
> Failed to get vesper for a max price of 1.25*2838=3547.5
> FAIL: <b>vesper</b> lev:6 gain:6.0 adv:24.0 musc:0.0 myst:0.0 mox:18.0 meat:2838 own:0 value:6060
> Choosing drink to consume.
> <b>rockin' wagon</b> lev:4 gain:4.0 adv:12.0 musc:0.0 myst:0.0 mox:35.0 meat:2000 own:0 value:5800
> Waiting to consume...
> Shopping for a rockin' wagon in 3 seconds
> budgeting 2500 for 1 additional rockin' wagon. You have 369691 meat.  You have 0 in inventory already.

buy 1 rockin' wagon for 1675 each from 1873474 on 20100602
You acquire an item: rockin' wagon
> Purchased 1 rockin' wagon for 1675 meat.

equip shirt tuxedo shirt

drink 1 rockin' wagon
You gain 17 Adventures
You gain 36 Cheek
You gain 4 Drunkenness

equip shirt General Sage's Lonely Diamonds Club Jacket
> 4: <b>rockin' wagon</b> lev:4 gain:4.0 adv:12.0 musc:0.0 myst:0.0 mox:35.0 meat:2000 own:0 value:5800
> Choosing drink to consume.
> <b>canteen of wine</b> lev:5 gain:3.0 adv:10.5 musc:31.0 myst:31.0 mox:31.0 meat:3300 own:0 value:5666
> Waiting to consume...
> Shopping for a canteen of wine in 3 seconds
> budgeting 4125 for 1 additional canteen of wine. You have 368016 meat.  You have 0 in inventory already.

buy 1 canteen of wine for 3300 each from 1571872 on 20100602
You acquire an item: canteen of wine
> Purchased 1 canteen of wine for 3300 meat.

drink 1 canteen of wine
> FAIL: <b>canteen of wine</b> lev:5 gain:3.0 adv:10.5 musc:31.0 myst:31.0 mox:31.0 meat:3300 own:0 value:5666
> Choosing drink to consume.
> <b>canteen of wine</b> lev:5 gain:3.0 adv:10.5 musc:31.0 myst:31.0 mox:31.0 meat:3300 own:0 value:5666
> Waiting to consume...
> You have at least one canteen of wine in inventory.

drink 1 canteen of wine
> FAIL: <b>canteen of wine</b> lev:5 gain:3.0 adv:10.5 musc:31.0 myst:31.0 mox:31.0 meat:3300 own:0 value:5666
> Choosing drink to consume.
> <b>canteen of wine</b> lev:5 gain:3.0 adv:10.5 musc:31.0 myst:31.0 mox:31.0 meat:3300 own:0 value:5666
> Waiting to consume...
> You have at least one canteen of wine in inventory.

drink 1 canteen of wine
> FAIL: <b>canteen of wine</b> lev:5 gain:3.0 adv:10.5 musc:31.0 myst:31.0 mox:31.0 meat:3300 own:0 value:5666
> Choosing drink to consume.
> <b>canteen of wine</b> lev:5 gain:3.0 adv:10.5 musc:31.0 myst:31.0 mox:31.0 meat:3300 own:0 value:5666
> Waiting to consume...
> You have at least one canteen of wine in inventory.
Would have looped the canteen until rollover.. because I'm already 22 drunk. 3 TPSs and rocking wagon.
 
Last edited:
On the "running to strange places" I can't really do anything since my script, which should be the same that is here (apart from a few modifications to canadv), does not do that. It currently farms the dooks for 15 turns and the goes to the castle for the rest. The changes to canadv has nothing to do with the conservatory.

As an attempt to debug this issue could you check your session log for the top 5 entries on where to go to farm?

Mine shows the following:
Code:
> McMillicancuddy's Farm: 903 meat; use maximize meat drop;familiar Leprechaun;{Wasabi Sinuses};.
> Giant's Castle: 831 meat; use maximize meat drop;familiar Leprechaun;{Wasabi Sinuses};.
> Haunted Conservatory: 799 meat; use maximize item drop;familiar Baby Gravy Fairy;{Peeled Eyeballs};.
> The Middle Chamber: 722 meat; use maximize item drop;familiar Baby Gravy Fairy;{Peeled Eyeballs};.
> Knob Goblin Kitchens: 675 meat; use maximize item drop;familiar Baby Gravy Fairy;{Peeled Eyeballs};.

Ok. Today mine was trying to run around in the conservatory. In order to see why I stopped it and checked my historical_price() of "pile of dusty animal bones" which turned out to be ~1600. Doing a mall_price() instead gave the result ~650 and rerunning the script after that put the conservatory way down in the list of places to try. So it seems that the reason it goes to the conservatory is due to the mall price of the dusty animal bones (which is as should be), what I can't understand is why it would vary that quick up and down. Seeing as the price seems to diminish by 1 each time I guess ti could be an effect of enough people using the farm script and thus pushing the price downwards.

If you wish to solve this I suggest typing the following into the CLI:
Code:
zlib vars farm_minAgeLookup = 0.25

That should hopefully recheck the price of your dusty animal bones. If that does not work then the following alias for farm might be a good idea:

Code:
alias farmer => ash mall_price($item[pile of dusty animal bones]); cli_execute("call /scripts/farm.ash");

where you need to change the path of your famr.ash to what it is.
 
Would have looped the canteen until rollover.. because I'm already 22 drunk. 3 TPSs and rocking wagon.
Yep. That's what it looks like. Presumably it didn't recognize you had overdrunk and stop. I'll dig into it.
(Fun fact 1 - I don't run this on my character with a TPS because sangia del diablo is cheaper to make than a cherry bomb, but I am on the cherry bomb consumption leader-board. I'd link to that but http://www.noblesse-oblige.org is showing up as a malware host at the moment. Fun fact 2 - HelpDesk support can buy lots of time and smooth feathers just by responding to a customer and restating what the customer said the problem was).
 
Update to EatDrink

I am trying to be fully automated and was getting annoyed about being asked to drink milk when I don't have any and can't get any. So change number one is a new preference eatdrink_suppressNoMilk. It defaults to false so nothing will happen unless you set the variable to true in your data\vars_USER.txt file in which case, if you are like me, you will no longer be annoyed.

The second change may address the problem Ranrar was reporting above. If you fail to drink and are already over the limit then it will stop looking for more things to drink. I think it will address the problem but I can't personally test it.

dj_d will probably spin a new release Real Soon Now with my changes. However, since my test character has yet to do the Level 11 and 12 quests and there are some concerns about Ascend in those areas, we may wait until I get through them.

Update: See the first post for a link to the latest version.
 

Attachments

Last edited:
Back
Top