My personal Meat farming script

Im still having issues where it can't buy bottle of anis, drive-by shooting or Feliz Navidad. I can manually buy and have set my autobuylimit to 100000 and that covers those prices
 
What is your valueOfInventory property set to? Default is 1.8. I set it to 1.5 for my main, since I really want it to use up my personally farmed fish heads. But, here's what I get:

Code:
mallsearch "piscatini"
mallsearch "boxed wine"
mallsearch "fish head"
mallsearch "drive-by shooting"
mallsearch "grapefruit"

[4342] Mix 1 boxed wine + 1 fish head
You acquire an item: piscatini
Crafting used 1 each of boxed wine and fish head

[4342] Mix 1 piscatini + 1 grapefruit
You acquire an item: drive-by shooting
Crafting used 1 each of grapefruit and piscatini
Not that that is exactly your issue, since it used items on hand.

Hmm. Another character:

Code:
buy 1 elemental caipiroska for 101 each from shop #845708 on 20220223

drink 1 elemental caipiroska
...

buy 6 perfect ice cube for 3250 each from shop #1426611 on 20220223

buy 2 fermenting powder for 70 each from The General Store
You spent 140 Meat
You acquire fermenting powder (2)

buy 2 brown sugar cane for 180 each from shop #1053259 on 20220223

Mix 2 fermenting powder + 2 brown sugar cane
You acquire bottle of rum (6)
Crafting used 2 each of fermenting powder and brown sugar cane

Mix 6 perfect ice cube + 6 bottle of rum
You acquire perfect dark and stormy (6)
Crafting used 6 each of bottle of rum and perfect ice cube

drink 6 perfect dark and stormy
...
Which is to say, buy either completed items or ingredients which are then crafted works just fine.

Can you show me your session log and/or gCLI for the failing cases, please?
 
It seems to happen when it encounters The Back Door. choice1067 is zero.
This happens once per ascension, right?

In any case:

Code:
> get choiceAdventure1067

0
and a session log from when I last got this:

Code:
[762] Barf Mountain
Encounter: garbage tourist
...

[763] Barf Mountain
Encounter: The Back Door

[763] Barf Mountain
Encounter: horrible tourist family
Which is to say, it always works for me.

Question: had VMF accepted the "lubricate the tracks" task? If so, it is looking specifically for a different choice. Other choices - wiener dog, turtle taming (I assume) can happen, and it takes the default choice and carries on.

Huh. "The Back Door" is not a choice adventure. It's just an NC which allows access to the Barf Mountain maintenance facilities in Maint Misbehavin', which is Choice 1067, which is accessed via Maintenance Tunnels Access, not from Barf Mountain.
 
This happens once per ascension, right?

For the month of Feb., it happened twice for one ascending character, five time for another ascending character and not at all for a never ascended character, according to grep and the session logs so once per Ascension seems right.
 
And yet it literally never happens for my ascending character.
I'll think about it.

I have five ascensions queued to get You Robot factoids.
And maybe one post-Grey-You (seriously? no aftercore? This UX completely sucks. Really?). I better do this first.

Since I have no clue why your ascensions simple don't Do The Right Thing, as they do for me, this will take some thought.
 
You know something? I'm going to let you talk to zarqon about this.

With no extra scripts, when VMF encounters "The Back Door" - a non-combat - it goes right on through.
You are using zarqon's Mercenary Mood - and, when you encounter this non-combat (not a choice), it aborts?
 
I just grepped the session logs for the last two months and, what @fronobulax is reporting, never happened to my character. I too have Mercenary Mood active. I could go back further but I don't recall it ever happening to me.
 
Last edited:
The back door is an autostop adventure, did you override that in you own build somehow Veracity?
I build from source, but I have no custom changes. If I have an open PR, yes, but I submit that as soon as I can and then I’m back to plain old KoLmafia.

Autostop, eh? I’ll think about that. Since my ascending character has Pantsgiving, she does one adventure at a time, looking for fullness gains, rather than letting adventure() do a bunch and then get interrupted early.

Hmm. I did change the loop when I made that work, recently. Let me look again.
 
Ah. That's it. I used to ignore the return value of adventure(). But when I refactored the adventure loop, I started paying attention to it - which means stopping for autostops.

My thinking was that KoLmafia can actually stop adventuring for other reasons - like auto recovery failing. (I have unascended characters who have no healing spells and depend on, for example, scrolls of drastic healing. The only time they end up needing those is in Spacegate, but they theoretically COULD run out of them elsewhere.)

Well, the autostop thing is a real issue. I'll go back to ignoring adventure() telling me to stop. :)
 
This is all I get in my logs

mallsearch "double entendre"
mallsearch "bottle of tequila"
mallsearch "bottle of anís"
mallsearch "bottle of anís"
> VMF.RoboDrinks: unable to acquire 'double entendre'; acquire it manually and try again.
mallsearch "Feliz Navidad"
mallsearch "mentholated wine"
mallsearch "boxed wine"
mallsearch "peppermint sprig"
mallsearch "orange"
> VMF.RoboDrinks: unable to acquire 'Feliz Navidad'; acquire it manually and try again.
mallsearch "drive-by shooting"
mallsearch "piscatini"
mallsearch "fish head"
mallsearch "grapefruit"
> VMF.RoboDrinks: unable to acquire 'drive-by shooting'; acquire it manually and try again.
> VMF.FamiliarEquipment: 'ittah bittah hookah' is unavailable; using whatever is equipped.
 
I am surprised to see "bottle of anís" searched for twice.
I am also surprised to not see the ingredients to make a bottle of tequila or boxed wine searched for.

What happens when this character does this (freshly logged in):

set debugBuy=true
acquire? double entendre
acquire? Feliz Navidad
acquire? drive-by shooting

(The "?" makes it do a "simulation" and might help.)
 
> set debugBuy=true

debugBuy => true

> acquire? double entendre

Searching for "double entendre"...
Search complete.
Searching for "bottle of tequila"...
Search complete.
☯ bottle of tequila onhand=1 price = 286
Searching for "bottle of anís"...
Search complete.
☯ bottle of anís mall=34900 make=2147483647
☯ bottle of tequila onhand=1 price = 286
☯ bottle of anís mall=34900 make=2147483647
☯ double entendre mall=36849 make=35186
double entendre: create

> acquire? Feliz Navidad

Searching for "Feliz Navidad"...
Search complete.
Searching for "mentholated wine"...
Search complete.
Searching for "boxed wine"...
Search complete.
☯ boxed wine onhand=1 price = 35
Searching for "peppermint sprig"...
Search complete.
☯ peppermint sprig mall=39900 make=2147483647
☯ boxed wine onhand=1 price = 35
☯ peppermint sprig mall=39900 make=2147483647
☯ mentholated wine mall=35000 make=39935
Searching for "orange"...
Search complete.
☯ orange onhand=1 price = 35
☯ boxed wine onhand=1 price = 35
☯ peppermint sprig mall=39900 make=2147483647
☯ mentholated wine mall=35000 make=39935
☯ orange onhand=1 price = 35
☯ Feliz Navidad mall=28999 make=35035
Feliz Navidad: buy

> acquire? drive-by shooting

Searching for "drive-by shooting"...
Search complete.
Searching for "piscatini"...
Search complete.
☯ boxed wine onhand=1 price = 35
Searching for "fish head"...
Search complete.
☯ fish head mall=23000 make=2147483647
☯ boxed wine onhand=1 price = 35
☯ fish head mall=23000 make=2147483647
☯ piscatini mall=21800 make=23035
Searching for "grapefruit"...
Search complete.
☯ grapefruit onhand=1 price = 35
☯ boxed wine onhand=1 price = 35
☯ fish head mall=23000 make=2147483647
☯ piscatini mall=21800 make=23035
☯ grapefruit onhand=1 price = 35
☯ drive-by shooting mall=18899 make=21835
drive-by shooting: buy
 
Last edited:
Since my ascending character has Pantsgiving, she does one adventure at a time, looking for fullness gains, rather than letting adventure() do a bunch and then get interrupted early.

Hmm. I did change the loop when I made that work, recently. Let me look again.
And this explains why I didn't encounter this issue: my character has Pantsgiving.
 
it works if I buy or acquire from the command line from the gcli only from the script does it fail
The acquire command calls this: InventoryManager.retrieveItem(item, true);
--> which calls InventoryManager.retrieveItem(item, true, true, true);

The retrieve_item function calls this: InventoryManager.retrieveItem(ItemPool.get(item, count));
--> which calls InventoryManager.retrieveItem(item, true, true, true);

It makes no sense that the script fails and the command from the gCLI succeeds. They call the exact same method with the exact same arguments.

Next time you try the script, set debugBuy=true
 
Im still having issues where it can't buy bottle of anis, drive-by shooting or Feliz Navidad. I can manually buy and have set my autobuylimit to 100000 and that covers those prices
OK, I have to ask.

When you say you have set your "autobuylimit to 100000", you meant autoBuyPriceLimit, right? Exactly that, including capitalization?
Do you have a buyScript? (get "buyScript"). If so, can I see it?
 
Back
Top