Universal Recovery Script

I've been trying to get to the bottom of a significant slow-down since yesterday when auto-adventuring in mafia. After looking at a debug log, I thought I'd unset UR as the recovery script and mafia is now almost back to full speed. Just wondering if anyone else has had a similar experience or has any ideas as to why UR might be causing lag recently.

Edit: Today (4 Dec) mafia is back to its former speed.
 
Last edited:
Dunno whats up, I have had this problem frequently, I'm out of ronin, just finished up a run and freed the king.
I have plenty of meat but it just won't restore mp for me.

Restoring MP! Currently at 459 of 477 HP, 13 of 227 MP, current meat: 3013339 ... Target MP = 46.
baleUr_MPtrouble => true
Did not fully restore MP for some reason.
Could not restore enough mana to cast The Sonata of Sneakiness.
KoLmafia declares world peace.

Also this is the map I have:
Code:
ancient Magi-Wipes	50	60	50	60	55.0	55.0
ancient turtle shell powder	58	98	0	0	78.0	0.0
banana spritzer	0	0	40	100	0.0	70.0
beer-scented teddy bear	0	0	15	20	0.0	17.5
black cherry soda	0	0	9	11	0.0	10.0
Blatantly Canadian	0	0	20	25	0.0	22.5
blue paisley oyster egg	0	0	30	35	0.0	32.5
blue pixel potion	0	0	50	80	0.0	65.0
blue polka-dot oyster egg	0	0	30	35	0.0	32.5
blue striped oyster egg	0	0	30	35	0.0	32.5
bottle of Monsieur Bubble	0	0	45	65	0.0	55.0
bottle of Vangoghbitussin	100	100	100	100	100.0	100.0
carbonated soy milk	0	0	70	80	0.0	75.0
carbonated water lily	0	0	60	70	0.0	65.0
cast	15	20	0	0	17.5	0.0
Cherry Cloaca Cola	0	0	7	9	0.0	8.0
Cloaca-Cola	0	0	10	14	0.0	12.0
cotton candy bale	41	82	41	82	61.5	61.5
cotton candy cone	26	52	26	52	39.0	39.0
cotton candy pillow	34	68	34	68	51.0	51.0
cotton candy pinch	9	9	12	12	9.0	12.0
cotton candy plug	19	38	19	38	28.5	28.5
cotton candy skoshe	15	30	15	30	22.5	22.5
cotton candy smidgen	11	23	11	23	17.0	17.0
delicious shimmering moth	0	0	30	40	0.0	35.0
Diet Cloaca Cola	0	0	7	9	0.0	8.0
Doc Galaktik's Ailment Ointment	8	10	0	0	9.0	0.0
Doc Galaktik's Homeopathic Elixir	18	20	0	0	19.0	0.0
Doc Galaktik's Pungent Unguent	3	5	0	0	4.0	0.0
Doc Galaktik's Restorative Balm	13	15	0	0	14.0	0.0
Dyspepsi-Cola	0	0	10	14	0.0	12.0
elven magi-pack	0	0	40	50	0.0	45.0
elven medi-pack	80	100	0	0	90.0	0.0
filthy poultice	80	120	0	0	100.0	0.0
forest tears	5	10	0	0	7.5	0.0
gauze garter	80	120	0	0	100.0	0.0
green pixel potion	40	60	30	40	50.0	35.0
high-pressure seltzer bottle	0	0	150	200	0.0	175.0
honey-dipped locust	30	40	30	39	35.0	34.5
Knob Goblin seltzer	0	0	8	12	0.0	10.0
Knob Goblin superseltzer	0	0	25	29	0.0	27.0
magical mystery juice	0	0	666666666	666666666	0.0	6666666.0
Marquis de Poivre soda	0	0	30	40	0.0	35.0
Medicinal Herb's medicinal herbs	999999999	999999999	0	0	9999999.0	0.0
Monstar energy beverage	0	0	70	80	0.0	75.0
Mountain Stream soda	0	0	6	9	0.0	7.5
Nardz energy beverage	0	0	50	80	0.0	65.0
natural fennel soda	0	0	80	120	0.0	100.0
New Cloaca-Cola	0	0	140	160	0.0	150.0
Notes from the Elfpocalypse, Chapter I	30	40	30	40	35.0	35.0
Notes from the Elfpocalypse, Chapter II	30	40	30	40	35.0	35.0
Notes from the Elfpocalypse, Chapter III	30	40	30	40	35.0	35.0
Notes from the Elfpocalypse, Chapter IV	30	40	30	40	35.0	35.0
Notes from the Elfpocalypse, Chapter V	30	40	30	40	35.0	35.0
Notes from the Elfpocalypse, Chapter VI	30	40	30	40	35.0	35.0
palm-frond fan	35	45	35	45	40.0	40.0
personal massager	8	10	0	0	9.0	0.0
phonics down	46	50	46	50	48.0	48.0
pixellated candy heart	4	5	0	0	4.5	0.0
plump juicy grub	90	100	0	0	95.0	0.0
really thick bandage	100	120	0	0	110.0	0.0
red paisley oyster egg	30	35	0	0	32.5	0.0
red pixel potion	100	120	0	0	110.0	0.0
red polka-dot oyster egg	30	35	0	0	32.5	0.0
red striped oyster egg	30	35	0	0	32.5	0.0
Regular Cloaca Cola	0	0	7	9	0.0	8.0
scented massage oil	999999999	999999999	0	0	9999999.0	0.0
scroll of drastic healing	999999999	999999999	0	0	9999999.0	0.0
soda water	0	0	3	5	0.0	4.0
sugar shard	10	20	5	10	15.0	7.5
tiny house	20	24	20	24	22.0	22.0
tonic water	0	0	30	50	0.0	40.0
unrefined Mountain Stream syrup	0	0	50	60	0.0	55.0
Wint-O-Fresh mint	0	0	3	5	0.0	4.0
Wolfman Nardz	0	0	200	300	0.0	250.0
 
Last edited:
Dunno whats up, I have had this problem frequently, I'm out of ronin, just finished up a run and freed the king.
I have plenty of meat but it just won't restore mp for me.

Have you turned off mall & NPC purchasing in KoLmafia's preferences?
 
To your knowledge? Please check. They are in the "General" section of Preferences.

They are very much all enabled.

If it helps, this is my start-up.

Retrieving familiar data...
Familiar data retrieved.
Retrieving campground data...
Session data refreshed.
You have a present under the Crimbo tree in your clan's VIP lounge!
7 days until Labór Day, Moxie bonus tomorrow (not today).
Restoring MP! Currently at 459 of 477 HP, 1 of 227 MP, current meat: 3013339 ... Target MP = 46.
Did not fully restore MP for some reason.
Could not restore enough mana to cast Advanced Saucecrafting.
Restoring MP! Currently at 459 of 477 HP, 1 of 227 MP, current meat: 3013339 ... Target MP = 50.
Did not fully restore MP for some reason.
Could not restore enough mana to cast Pastamastery.
Restoring MP! Currently at 459 of 477 HP, 1 of 227 MP, current meat: 3013339 ... Target MP = 46.
Did not fully restore MP for some reason.
Could not restore enough mana to cast Lunch Break.
Restoring MP! Currently at 459 of 477 HP, 1 of 227 MP, current meat: 3013339 ... Target MP = 46.
Did not fully restore MP for some reason.
Could not restore enough mana to cast Summon Sugar Sheets.
Restoring MP! Currently at 459 of 477 HP, 1 of 227 MP, current meat: 3013339 ... Target MP = 46.
Did not fully restore MP for some reason.
Could not restore enough mana to cast Summon Alice's Army Cards.
17 prices updated from http://kolmafia.us/scripts/updateprices.php?action=getmap
 
> get baleUr_Purchase

3

Validating adventure sequence...

Restoring MP! Currently at 459 of 477 HP, 1 of 227 MP, current meat: 3013339 ... Target MP = 46.
Did not fully restore MP for some reason.
Could not restore enough mana to cast The Sonata of Sneakiness.
KoLmafia declares world peace.

:(
 
Okay, I'm stumped. I cannot imagine why the script refuses to purchase items from NPCs or the mall. You've already stated that you have plenty of meat. You've verified that both the script and mafia are fine with purchasing. You've even demonstrated that the script has successfully downloaded the restoration map.

Let's turn up verbosity in the hope that it reveals something I did not consider. In the gCLI copy/paste this: (capitalization counts, so copy/paste is preferred to typing.)

set baleUr_Verbosity = 3


You can turn it back down to 1 after you've got some interesting results.
 
Code:
Calling Universal Recovery for type=MP, amount=38
Restoring MP! Currently at 477 of 477 HP, 8 of 227 MP, current meat: 3015531 ... Target MP = 46.
To heal with Doc Galaktik would cost 456.0 meat. Now to beat that price...
testing ancient Magi-Wipes...
Could heal 38MP with 1 ancient Magi-Wipes for 179.63637 meat.
ancient Magi-Wipes is now the best for restoring MP.
testing banana spritzer...
Could heal 38MP with 1 banana spritzer for 2116.0571 meat.
testing black cherry soda...
Could heal 38MP with 4 black cherry soda for 304.0 meat.
testing Blatantly Canadian...
Could heal 38MP with 2 Blatantly Canadian for 253.33334 meat.
testing blue pixel potion...
Could heal 38MP with 1 blue pixel potion for 477.04617 meat.
testing bottle of Monsieur Bubble...
Could heal 38MP with 1 bottle of Monsieur Bubble for 272.9091 meat.
testing bottle of Vangoghbitussin...
Could heal 38MP with 1 bottle of Vangoghbitussin for 303.24 meat.
testing bubbly potion...
Could heal 38MP with 4 bubbly potion for 1067.7999 meat.
testing carbonated soy milk...
Could heal 38MP with 1 carbonated soy milk for 304.0 meat.
testing carbonated water lily...
Could heal 38MP with 1 carbonated water lily for 183.56924 meat.
testing Cherry Cloaca Cola...
Could heal 38MP with 5 Cherry Cloaca Cola for 380.0 meat.
testing Cloaca-Cola...
Could heal 38MP with 4 Cloaca-Cola for 364.1667 meat.
testing cotton candy bale...
Could heal 38MP with 1 cotton candy bale for 1266.6666 meat.
testing cotton candy cone...
Could heal 38MP with 1 cotton candy cone for 243.58974 meat.
testing cotton candy pillow...
Could heal 38MP with 1 cotton candy pillow for 208.62746 meat.
testing cotton candy pinch...
Could heal 38MP with 4 cotton candy pinch for 1029.1667 meat.
testing cotton candy plug...
Could heal 38MP with 2 cotton candy plug for 6600.0 meat.
testing cotton candy skoshe...
Could heal 38MP with 2 cotton candy skoshe for 844.44446 meat.
testing cotton candy smidgen...
Could heal 38MP with 3 cotton candy smidgen for 7812.353 meat.
testing delicious shimmering moth...
testing Diet Cloaca Cola...
Could heal 38MP with 5 Diet Cloaca Cola for 475.0 meat.
testing Dyspepsi-Cola...
Could heal 38MP with 4 Dyspepsi-Cola for 329.33334 meat.
testing elven magi-pack...
Could heal 38MP with 1 elven magi-pack for 253.33334 meat.
testing green pixel potion...
Could heal 38MP with 2 green pixel potion for 376.7429 meat.
testing high-pressure seltzer bottle...
Could heal 38MP with 1 high-pressure seltzer bottle for 608.0 meat.
testing honey-dipped locust...
Could heal 38MP with 2 honey-dipped locust for 253.33333 meat.
testing Knob Goblin seltzer...
Could heal 38MP with 4 Knob Goblin seltzer for 380.0 meat.
testing Knob Goblin superseltzer...
Could heal 38MP with 2 Knob Goblin superseltzer for 246.2963 meat.
testing magical mystery juice...
Could heal 38MP with 2 magical mystery juice for 138.18182 meat.
magical mystery juice is now the best for restoring MP.
testing Monstar energy beverage...
Could heal 38MP with 1 Monstar energy beverage for 302.98666 meat.
testing Mountain Stream soda...
Could heal 38MP with 6 Mountain Stream soda for 587.73334 meat.
testing Nardz energy beverage...
Could heal 38MP with 1 Nardz energy beverage for 280.6154 meat.
testing natural fennel soda...
Could heal 38MP with 1 natural fennel soda for 247.0 meat.
testing New Cloaca-Cola...
Could heal 38MP with 1 New Cloaca-Cola for 1241.3334 meat.
testing Notes from the Elfpocalypse, Chapter I...
Could heal 38MP with 2 Notes from the Elfpocalypse, Chapter I for 217.14287 meat.
testing Notes from the Elfpocalypse, Chapter II...
Could heal 38MP with 2 Notes from the Elfpocalypse, Chapter II for 217.14287 meat.
testing Notes from the Elfpocalypse, Chapter III...
Could heal 38MP with 2 Notes from the Elfpocalypse, Chapter III for 217.14287 meat.
testing Notes from the Elfpocalypse, Chapter IV...
Could heal 38MP with 2 Notes from the Elfpocalypse, Chapter IV for 217.14287 meat.
testing Notes from the Elfpocalypse, Chapter V...
Could heal 38MP with 2 Notes from the Elfpocalypse, Chapter V for 217.14287 meat.
testing Notes from the Elfpocalypse, Chapter VI...
Could heal 38MP with 2 Notes from the Elfpocalypse, Chapter VI for 217.14287 meat.
testing palm frond...
Could heal 38MP with 2 palm frond for 190.0 meat.
testing palm-frond fan...
Could heal 38MP with 1 palm-frond fan for 242.25 meat.
testing phonics down...
Could heal 38MP with 1 phonics down for 227.20834 meat.
testing Regular Cloaca Cola...
Could heal 38MP with 5 Regular Cloaca Cola for 475.0 meat.
testing six-pack of New Cloaca-Cola...
Could heal 38MP with 1 six-pack of New Cloaca-Cola for 869.7778 meat.
testing soda water...
Could heal 38MP with 10 soda water for 665.0 meat.
testing sugar shard...
Could heal 38MP with 6 sugar shard for 506.66666 meat.
testing tiny house...
Could heal 38MP with 2 tiny house for 369.63638 meat.
testing tonic water...
Could heal 38MP with 1 tonic water for 1900.0 meat.
testing unrefined Mountain Stream syrup...
Could heal 38MP with 1 unrefined Mountain Stream syrup for 276.36365 meat.
testing Wint-O-Fresh mint...
Could heal 38MP with 10 Wint-O-Fresh mint for 950.0 meat.
testing Wolfman Nardz...
Could heal 38MP with 1 Wolfman Nardz for 912.0 meat.
In mallmode, best MP restorative is: magical mystery juice @ 138.18182 meat total.
Trying to use 0 magical mystery juice
Current HP: 477, MP: 8
To heal with Doc Galaktik would cost 456.0 meat. Now to beat that price...
testing ancient Magi-Wipes...
Could heal 38MP with 1 ancient Magi-Wipes for 179.63637 meat.
ancient Magi-Wipes is now the best for restoring MP.
testing banana spritzer...
Could heal 38MP with 1 banana spritzer for 2116.0571 meat.
testing black cherry soda...
Could heal 38MP with 4 black cherry soda for 304.0 meat.
testing Blatantly Canadian...
Could heal 38MP with 2 Blatantly Canadian for 253.33334 meat.
testing blue pixel potion...
Could heal 38MP with 1 blue pixel potion for 477.04617 meat.
testing bottle of Monsieur Bubble...
Could heal 38MP with 1 bottle of Monsieur Bubble for 272.9091 meat.
testing bottle of Vangoghbitussin...
Could heal 38MP with 1 bottle of Vangoghbitussin for 303.24 meat.
testing bubbly potion...
Could heal 38MP with 4 bubbly potion for 1067.7999 meat.
testing carbonated soy milk...
Could heal 38MP with 1 carbonated soy milk for 304.0 meat.
testing carbonated water lily...
Could heal 38MP with 1 carbonated water lily for 183.56924 meat.
testing Cherry Cloaca Cola...
Could heal 38MP with 5 Cherry Cloaca Cola for 380.0 meat.
testing Cloaca-Cola...
Could heal 38MP with 4 Cloaca-Cola for 364.1667 meat.
testing cotton candy bale...
Could heal 38MP with 1 cotton candy bale for 1266.6666 meat.
testing cotton candy cone...
Could heal 38MP with 1 cotton candy cone for 243.58974 meat.
testing cotton candy pillow...
Could heal 38MP with 1 cotton candy pillow for 208.62746 meat.
testing cotton candy pinch...
Could heal 38MP with 4 cotton candy pinch for 1029.1667 meat.
testing cotton candy plug...
Could heal 38MP with 2 cotton candy plug for 6600.0 meat.
testing cotton candy skoshe...
Could heal 38MP with 2 cotton candy skoshe for 844.44446 meat.
testing cotton candy smidgen...
Could heal 38MP with 3 cotton candy smidgen for 7812.353 meat.
testing delicious shimmering moth...
testing Diet Cloaca Cola...
Could heal 38MP with 5 Diet Cloaca Cola for 475.0 meat.
testing Dyspepsi-Cola...
Could heal 38MP with 4 Dyspepsi-Cola for 329.33334 meat.
testing elven magi-pack...
Could heal 38MP with 1 elven magi-pack for 253.33334 meat.
testing green pixel potion...
Could heal 38MP with 2 green pixel potion for 376.7429 meat.
testing high-pressure seltzer bottle...
Could heal 38MP with 1 high-pressure seltzer bottle for 608.0 meat.
testing honey-dipped locust...
Could heal 38MP with 2 honey-dipped locust for 253.33333 meat.
testing Knob Goblin seltzer...
Could heal 38MP with 4 Knob Goblin seltzer for 380.0 meat.
testing Knob Goblin superseltzer...
Could heal 38MP with 2 Knob Goblin superseltzer for 246.2963 meat.
testing magical mystery juice...
Could heal 38MP with 2 magical mystery juice for 138.18182 meat.
magical mystery juice is now the best for restoring MP.
testing Monstar energy beverage...
Could heal 38MP with 1 Monstar energy beverage for 302.98666 meat.
testing Mountain Stream soda...
Could heal 38MP with 6 Mountain Stream soda for 587.73334 meat.
testing Nardz energy beverage...
Could heal 38MP with 1 Nardz energy beverage for 280.6154 meat.
testing natural fennel soda...
Could heal 38MP with 1 natural fennel soda for 247.0 meat.
testing New Cloaca-Cola...
Could heal 38MP with 1 New Cloaca-Cola for 1241.3334 meat.
testing Notes from the Elfpocalypse, Chapter I...
Could heal 38MP with 2 Notes from the Elfpocalypse, Chapter I for 217.14287 meat.
testing Notes from the Elfpocalypse, Chapter II...
Could heal 38MP with 2 Notes from the Elfpocalypse, Chapter II for 217.14287 meat.
testing Notes from the Elfpocalypse, Chapter III...
Could heal 38MP with 2 Notes from the Elfpocalypse, Chapter III for 217.14287 meat.
testing Notes from the Elfpocalypse, Chapter IV...
Could heal 38MP with 2 Notes from the Elfpocalypse, Chapter IV for 217.14287 meat.
testing Notes from the Elfpocalypse, Chapter V...
Could heal 38MP with 2 Notes from the Elfpocalypse, Chapter V for 217.14287 meat.
testing Notes from the Elfpocalypse, Chapter VI...
Could heal 38MP with 2 Notes from the Elfpocalypse, Chapter VI for 217.14287 meat.
testing palm frond...
Could heal 38MP with 2 palm frond for 190.0 meat.
testing palm-frond fan...
Could heal 38MP with 1 palm-frond fan for 242.25 meat.
testing phonics down...
Could heal 38MP with 1 phonics down for 227.20834 meat.
testing Regular Cloaca Cola...
Could heal 38MP with 5 Regular Cloaca Cola for 475.0 meat.
testing six-pack of New Cloaca-Cola...
Could heal 38MP with 1 six-pack of New Cloaca-Cola for 869.7778 meat.
testing soda water...
Could heal 38MP with 10 soda water for 665.0 meat.
testing sugar shard...
Could heal 38MP with 6 sugar shard for 506.66666 meat.
testing tiny house...
Could heal 38MP with 2 tiny house for 369.63638 meat.
testing tonic water...
Could heal 38MP with 1 tonic water for 1900.0 meat.
testing unrefined Mountain Stream syrup...
Could heal 38MP with 1 unrefined Mountain Stream syrup for 276.36365 meat.
testing Wint-O-Fresh mint...
Could heal 38MP with 10 Wint-O-Fresh mint for 950.0 meat.
testing Wolfman Nardz...
Could heal 38MP with 1 Wolfman Nardz for 912.0 meat.
In mallmode, best MP restorative is: magical mystery juice @ 138.18182 meat total.
Trying to use 0 magical mystery juice
Current HP: 477, MP: 8
To heal with Doc Galaktik would cost 456.0 meat. Now to beat that price...
testing ancient Magi-Wipes...
Could heal 38MP with 1 ancient Magi-Wipes for 179.63637 meat.
ancient Magi-Wipes is now the best for restoring MP.
testing banana spritzer...
Could heal 38MP with 1 banana spritzer for 2116.0571 meat.
testing black cherry soda...
Could heal 38MP with 4 black cherry soda for 304.0 meat.
testing Blatantly Canadian...
Could heal 38MP with 2 Blatantly Canadian for 253.33334 meat.
testing blue pixel potion...
Could heal 38MP with 1 blue pixel potion for 477.04617 meat.
testing bottle of Monsieur Bubble...
Could heal 38MP with 1 bottle of Monsieur Bubble for 272.9091 meat.
testing bottle of Vangoghbitussin...
Could heal 38MP with 1 bottle of Vangoghbitussin for 303.24 meat.
testing bubbly potion...
Could heal 38MP with 4 bubbly potion for 1067.7999 meat.
testing carbonated soy milk...
Could heal 38MP with 1 carbonated soy milk for 304.0 meat.
testing carbonated water lily...
Could heal 38MP with 1 carbonated water lily for 183.56924 meat.
testing Cherry Cloaca Cola...
Could heal 38MP with 5 Cherry Cloaca Cola for 380.0 meat.
testing Cloaca-Cola...
Could heal 38MP with 4 Cloaca-Cola for 364.1667 meat.
testing cotton candy bale...
Could heal 38MP with 1 cotton candy bale for 1266.6666 meat.
testing cotton candy cone...
Could heal 38MP with 1 cotton candy cone for 243.58974 meat.
testing cotton candy pillow...
Could heal 38MP with 1 cotton candy pillow for 208.62746 meat.
testing cotton candy pinch...
Could heal 38MP with 4 cotton candy pinch for 1029.1667 meat.
testing cotton candy plug...
Could heal 38MP with 2 cotton candy plug for 6600.0 meat.
testing cotton candy skoshe...
Could heal 38MP with 2 cotton candy skoshe for 844.44446 meat.
testing cotton candy smidgen...
Could heal 38MP with 3 cotton candy smidgen for 7812.353 meat.
testing delicious shimmering moth...
testing Diet Cloaca Cola...
Could heal 38MP with 5 Diet Cloaca Cola for 475.0 meat.
testing Dyspepsi-Cola...
Could heal 38MP with 4 Dyspepsi-Cola for 329.33334 meat.
testing elven magi-pack...
Could heal 38MP with 1 elven magi-pack for 253.33334 meat.
testing green pixel potion...
Could heal 38MP with 2 green pixel potion for 376.7429 meat.
testing high-pressure seltzer bottle...
Could heal 38MP with 1 high-pressure seltzer bottle for 608.0 meat.
testing honey-dipped locust...
Could heal 38MP with 2 honey-dipped locust for 253.33333 meat.
testing Knob Goblin seltzer...
Could heal 38MP with 4 Knob Goblin seltzer for 380.0 meat.
testing Knob Goblin superseltzer...
Could heal 38MP with 2 Knob Goblin superseltzer for 246.2963 meat.
testing magical mystery juice...
Could heal 38MP with 2 magical mystery juice for 138.18182 meat.
magical mystery juice is now the best for restoring MP.
testing Monstar energy beverage...
Could heal 38MP with 1 Monstar energy beverage for 302.98666 meat.
testing Mountain Stream soda...
Could heal 38MP with 6 Mountain Stream soda for 587.73334 meat.
testing Nardz energy beverage...
Could heal 38MP with 1 Nardz energy beverage for 280.6154 meat.
testing natural fennel soda...
Could heal 38MP with 1 natural fennel soda for 247.0 meat.
testing New Cloaca-Cola...
Could heal 38MP with 1 New Cloaca-Cola for 1241.3334 meat.
testing Notes from the Elfpocalypse, Chapter I...
Could heal 38MP with 2 Notes from the Elfpocalypse, Chapter I for 217.14287 meat.
testing Notes from the Elfpocalypse, Chapter II...
Could heal 38MP with 2 Notes from the Elfpocalypse, Chapter II for 217.14287 meat.
testing Notes from the Elfpocalypse, Chapter III...
Could heal 38MP with 2 Notes from the Elfpocalypse, Chapter III for 217.14287 meat.
testing Notes from the Elfpocalypse, Chapter IV...
Could heal 38MP with 2 Notes from the Elfpocalypse, Chapter IV for 217.14287 meat.
testing Notes from the Elfpocalypse, Chapter V...
Could heal 38MP with 2 Notes from the Elfpocalypse, Chapter V for 217.14287 meat.
testing Notes from the Elfpocalypse, Chapter VI...
Could heal 38MP with 2 Notes from the Elfpocalypse, Chapter VI for 217.14287 meat.
testing palm frond...
Could heal 38MP with 2 palm frond for 190.0 meat.
testing palm-frond fan...
Could heal 38MP with 1 palm-frond fan for 242.25 meat.
testing phonics down...
Could heal 38MP with 1 phonics down for 227.20834 meat.
testing Regular Cloaca Cola...
Could heal 38MP with 5 Regular Cloaca Cola for 475.0 meat.
testing six-pack of New Cloaca-Cola...
Could heal 38MP with 1 six-pack of New Cloaca-Cola for 869.7778 meat.
testing soda water...
Could heal 38MP with 10 soda water for 665.0 meat.
testing sugar shard...
Could heal 38MP with 6 sugar shard for 506.66666 meat.
testing tiny house...
Could heal 38MP with 2 tiny house for 369.63638 meat.
testing tonic water...
Could heal 38MP with 1 tonic water for 1900.0 meat.
testing unrefined Mountain Stream syrup...
Could heal 38MP with 1 unrefined Mountain Stream syrup for 276.36365 meat.
testing Wint-O-Fresh mint...
Could heal 38MP with 10 Wint-O-Fresh mint for 950.0 meat.
testing Wolfman Nardz...
Could heal 38MP with 1 Wolfman Nardz for 912.0 meat.
In mallmode, best MP restorative is: magical mystery juice @ 138.18182 meat total.
Trying to use 0 magical mystery juice
Current HP: 477, MP: 8
My meat: 3015531. Sadly I think healing failed...
Did not fully restore MP for some reason.
Could not restore enough mana to cast Empathy of the Newt.
KoLmafia declares world peace.
 
The heck?! Okay, at least that homes in on the problem a bit. I see that bazaaretw is a level 15 Turtle Tamer. Is that the character with the problem? Interesting. I've got some new questions.

What is your character class and level? How many magical mystery juice are in your inventory? Are they in closet or main inventory? Is mafia allowed to use items in your closet? What is the result when you copy/paste the following into the gCLI?

get baleUr_UseMmjStock
 
Could also be in storage, since the old behaviour was to use anything in storage automatically, and the new behaviour is to only use it if they've enabled that preference (which is enabled by default, I believe, but...) so it's possible to break scripts that expect it to be available to them.
 
The heck?! Okay, at least that homes in on the problem a bit. I see that bazaaretw is a level 15 Turtle Tamer. Is that the character with the problem? Interesting. I've got some new questions.

What is your character class and level? How many magical mystery juice are in your inventory? Are they in closet or main inventory? Is mafia allowed to use items in your closet? What is the result when you copy/paste the following into the gCLI?

get baleUr_UseMmjStock

There is nothing in storage or closet but Mafia has access to them, I do have 4 MMJ's in my inventory. And yea those are my current toon specs. I don't use multi's so thats me. :)

> get baleUr_UseMmjStock

true

And just for giggles I gave it one more go around.
Code:
In mallmode, best MP restorative is: magical mystery juice @ 138.18182 meat total.
Trying to use 0 magical mystery juice
Current HP: 477, MP: 8
My meat: 3015531. Sadly I think healing failed...
Did not fully restore MP for some reason.
Could not restore enough mana to cast Empathy of the Newt.
KoLmafia declares world peace.

Also I can note, I always use the most current version of Mafia.

I also have the most current version of every script I use, including yours.
 
Last edited:
Hmm... from my checking, I'm guessing that UR is saving your four MMJs for combat restoration. This is based on this section:
Code:
		if(!buy_mmj && (item_amount($item[magical mystery juice]) > 2 && UseMmjStock)
		  && reserve_purch != $item[magical mystery juice]) {
			value = heal[$item[magical mystery juice]].avemp /100.0;
			if(value > best_value) {
				reserve_purch = $item[magical mystery juice];
				best_value = value;
			}
		}
		if(reserve_purch != null)
			reserve_num = ceil(100.0/heal[reserve_purch].minmp);
from the function choose_reserve_purch().

Looks like you can probably fix it by turning this line from best_mall:
Code:
		if(cost < best_cost && cost > 0) { 	// Unpurchasable items have a ZERO cost.
to this:
Code:
		if(cost < best_cost && cost > 0 && for_use(key) > 0) { 	// Unpurchasable items have a ZERO cost.
since we do HAVE MMJs, we're just reserving those for combat, so they're not usable...
 
I believe that Theraze nailed the problem exactly. However I don't think his proposed solution was right. (You put the call to for_use() in the wrong place. I was also able to tidy those lines while I was at it.)

Bazaaretw, please download the new version and let me know if it fixes your problem!
 
So I didn't mention this either, but I am getting this between each combat, dunno if it's normal.

Calling Universal Recovery for type=HP, amount=0
Calling Universal Recovery for type=MP, amount=0

Also I changed the script text, and this is what I now have:
Code:
Calling Universal Recovery for type=MP, amount=38
Restoring MP! Currently at 477 of 477 HP, 8 of 227 MP, current meat: 3015531 ... Target MP = 46.
To heal with Doc Galaktik would cost 456.0 meat. Now to beat that price...
testing ancient Magi-Wipes...
Could heal 38MP with 1 ancient Magi-Wipes for 200.36363 meat.
testing banana spritzer...
Could heal 38MP with 1 banana spritzer for 1900.0001 meat.
testing black cherry soda...
Could heal 38MP with 4 black cherry soda for 304.0 meat.
testing Blatantly Canadian...
Could heal 38MP with 2 Blatantly Canadian for 253.33334 meat.
testing blue pixel potion...
Could heal 38MP with 1 blue pixel potion for 467.69232 meat.
testing bottle of Monsieur Bubble...
Could heal 38MP with 1 bottle of Monsieur Bubble for 317.12726 meat.
bottle of Monsieur Bubble is now the best for restoring MP.
testing bottle of Vangoghbitussin...
Could heal 38MP with 1 bottle of Vangoghbitussin for 266.0 meat.
testing bubbly potion...
Could heal 38MP with 4 bubbly potion for 1067.7999 meat.
testing carbonated soy milk...
Could heal 38MP with 1 carbonated soy milk for 380.0 meat.
testing carbonated water lily...
Could heal 38MP with 1 carbonated water lily for 204.61539 meat.
carbonated water lily is now the best for restoring MP.
testing Cherry Cloaca Cola...
Could heal 38MP with 5 Cherry Cloaca Cola for 380.0 meat.
testing Cloaca-Cola...
Could heal 38MP with 4 Cloaca-Cola for 348.33334 meat.
testing cotton candy bale...
Could heal 38MP with 1 cotton candy bale for 1266.6666 meat.
testing cotton candy cone...
Could heal 38MP with 1 cotton candy cone for 243.58974 meat.
testing cotton candy pillow...
Could heal 38MP with 1 cotton candy pillow for 208.62746 meat.
testing cotton candy pinch...
Could heal 38MP with 4 cotton candy pinch for 1029.1667 meat.
testing cotton candy plug...
Could heal 38MP with 2 cotton candy plug for 6600.0 meat.
testing cotton candy skoshe...
Could heal 38MP with 2 cotton candy skoshe for 844.44446 meat.
testing cotton candy smidgen...
Could heal 38MP with 3 cotton candy smidgen for 7812.353 meat.
testing delicious shimmering moth...
testing Diet Cloaca Cola...
Could heal 38MP with 5 Diet Cloaca Cola for 380.0 meat.
testing Dyspepsi-Cola...
Could heal 38MP with 4 Dyspepsi-Cola for 329.33334 meat.
testing elven magi-pack...
Could heal 38MP with 1 elven magi-pack for 253.33334 meat.
testing green pixel potion...
Could heal 38MP with 2 green pixel potion for 324.6286 meat.
testing high-pressure seltzer bottle...
Could heal 38MP with 1 high-pressure seltzer bottle for 608.0 meat.
testing honey-dipped locust...
Could heal 38MP with 2 honey-dipped locust for 253.33333 meat.
testing Knob Goblin seltzer...
Could heal 38MP with 4 Knob Goblin seltzer for 380.0 meat.
testing Knob Goblin superseltzer...
Could heal 38MP with 2 Knob Goblin superseltzer for 215.33333 meat.
testing magical mystery juice...
Could heal 38MP with 2 magical mystery juice for 138.18182 meat.
testing Monstar energy beverage...
Could heal 38MP with 1 Monstar energy beverage for 303.49332 meat.
testing Mountain Stream soda...
Could heal 38MP with 6 Mountain Stream soda for 587.73334 meat.
testing Nardz energy beverage...
Could heal 38MP with 1 Nardz energy beverage for 346.67694 meat.
testing natural fennel soda...
Could heal 38MP with 1 natural fennel soda for 418.0 meat.
testing New Cloaca-Cola...
Could heal 38MP with 1 New Cloaca-Cola for 1241.3334 meat.
testing Notes from the Elfpocalypse, Chapter I...
Could heal 38MP with 2 Notes from the Elfpocalypse, Chapter I for 217.14287 meat.
testing Notes from the Elfpocalypse, Chapter II...
Could heal 38MP with 2 Notes from the Elfpocalypse, Chapter II for 217.14287 meat.
testing Notes from the Elfpocalypse, Chapter III...
Could heal 38MP with 2 Notes from the Elfpocalypse, Chapter III for 217.14287 meat.
testing Notes from the Elfpocalypse, Chapter IV...
Could heal 38MP with 2 Notes from the Elfpocalypse, Chapter IV for 217.14287 meat.
testing Notes from the Elfpocalypse, Chapter V...
Could heal 38MP with 2 Notes from the Elfpocalypse, Chapter V for 217.14287 meat.
testing Notes from the Elfpocalypse, Chapter VI...
Could heal 38MP with 2 Notes from the Elfpocalypse, Chapter VI for 217.14287 meat.
testing palm frond...
Could heal 38MP with 2 palm frond for 190.0 meat.
testing palm-frond fan...
Could heal 38MP with 1 palm-frond fan for 241.3 meat.
testing phonics down...
Could heal 38MP with 1 phonics down for 226.41667 meat.
testing Regular Cloaca Cola...
Could heal 38MP with 5 Regular Cloaca Cola for 380.0 meat.
testing six-pack of New Cloaca-Cola...
Could heal 38MP with 1 six-pack of New Cloaca-Cola for 869.7778 meat.
testing soda water...
Could heal 38MP with 10 soda water for 665.0 meat.
testing sugar shard...
Could heal 38MP with 6 sugar shard for 506.66666 meat.
testing tiny house...
Could heal 38MP with 2 tiny house for 369.63638 meat.
testing tonic water...
Could heal 38MP with 1 tonic water for 2373.0999 meat.
testing unrefined Mountain Stream syrup...
Could heal 38MP with 1 unrefined Mountain Stream syrup for 276.36365 meat.
testing Wint-O-Fresh mint...
Could heal 38MP with 10 Wint-O-Fresh mint for 950.0 meat.
testing Wolfman Nardz...
Could heal 38MP with 1 Wolfman Nardz for 912.0 meat.
In mallmode, best MP restorative is: carbonated water lily @ 204.61539 meat total.
_meatpermp => 5.3846154
Trying to use 1 carbonated water lily
Using 1 carbonated water lily...
You gain 60 Muscularity Points
Finished using 1 carbonated water lily.
Current HP: 477, MP: 68
My meat: 3015531. Should be successfully healed...
baleUr_MPtrouble => false
So it's restoring, but it's clearly not the cheapest, MMJ bought from the mall is.
As well as several other options right around the 200 meat per MP. But still cheaper then what it did choose.

I also forgot to mention, but I doubt it would make a difference, this is a post Bee's run. (King Freed.)
 
Wrong. You cannot buy MMJ from the mall. Try it yourself and you'll discover the truth of that.

lol, well regardless,
Could heal 38MP with 1 ancient Magi-Wipes for 200.36363 meat.
Could heal 38MP with 2 palm frond for 190.0 meat.
are both cheaper options then the water lily's.
 
ok well that didn't last long, hit another road block:

Code:
Restoring MP! Currently at 484 of 513 HP, 27 of 212 MP, current meat: 2955188 ... Target MP = 149.
Using 8 Wint-O-Fresh mint...
You gain 20 Muscularity Points
You acquire an effect: Sugar Rush (duration: 24 Adventures)
Finished using 8 Wint-O-Fresh mint.
Division by zero (Universal_recovery.ash, line 607)
Autorecovery failed.

Noting that both of these are checked:
Prefer using inventory instead of mall, regardless of value
Use MMJ in stock, even if it cannot be purchased this ascension

I will also note that with the previous problem I didn't have this checked:
Prefer using inventory instead of mall, regardless of value

baleUr_Verbosity => 3
Validating adventure sequence...

Code:
Calling Universal Recovery for type=HP, amount=0
Calling Universal Recovery for type=MP, amount=0
Restoring MP! Currently at 484 of 513 HP, 47 of 212 MP, current meat: 2955188 ... Target MP = 149.
To heal with Doc Galaktik would cost 1224.0 meat. Now to beat that price...
testing ancient Magi-Wipes...
Could heal 102MP with 2 ancient Magi-Wipes for 537.8182 meat.
testing banana spritzer...
Could heal 102MP with 2 banana spritzer for 5100.0 meat.
testing black cherry soda...
Could heal 102MP with 11 black cherry soda for 816.0 meat.
testing Blatantly Canadian...
Could heal 102MP with 5 Blatantly Canadian for 680.0 meat.
testing blue pixel potion...
Could heal 102MP with 2 blue pixel potion for 1255.3846 meat.
testing bottle of Monsieur Bubble...
Could heal 102MP with 2 bottle of Monsieur Bubble for 851.2364 meat.
testing bottle of Vangoghbitussin...
Could heal 102MP with 2 bottle of Vangoghbitussin for 714.0 meat.
testing bubbly potion...
Could heal 102MP with 11 bubbly potion for 2866.2 meat.
testing carbonated soy milk...
Could heal 102MP with 2 carbonated soy milk for 1020.0 meat.
testing carbonated water lily...
Could heal 102MP with 2 carbonated water lily for 549.2308 meat.
testing Cherry Cloaca Cola...
Could heal 102MP with 13 Cherry Cloaca Cola for 1020.0 meat.
testing Cloaca-Cola...
Could heal 102MP with 9 Cloaca-Cola for 935.0 meat.
testing cotton candy bale...
Could heal 102MP with 2 cotton candy bale for 3400.0 meat.
testing cotton candy cone...
Could heal 102MP with 3 cotton candy cone for 653.8461 meat.
testing cotton candy pillow...
Could heal 102MP with 2 cotton candy pillow for 560.0 meat.
testing cotton candy pinch...
Could heal 102MP with 9 cotton candy pinch for 2762.5 meat.
testing cotton candy plug...
Could heal 102MP with 4 cotton candy plug for 17715.79 meat.
testing cotton candy skoshe...
Could heal 102MP with 5 cotton candy skoshe for 2266.6667 meat.
testing cotton candy smidgen...
Could heal 102MP with 6 cotton candy smidgen for 20970.0 meat.
testing delicious shimmering moth...
testing Diet Cloaca Cola...
Could heal 102MP with 13 Diet Cloaca Cola for 1020.0 meat.
testing Dyspepsi-Cola...
Could heal 102MP with 9 Dyspepsi-Cola for 884.0 meat.
testing elven magi-pack...
Could heal 102MP with 3 elven magi-pack for 680.0 meat.
testing green pixel potion...
Could heal 102MP with 3 green pixel potion for 871.3714 meat.
testing high-pressure seltzer bottle...
Could heal 102MP with 1 high-pressure seltzer bottle for 1632.0 meat.
testing honey-dipped locust...
Could heal 102MP with 3 honey-dipped locust for 680.0 meat.
testing Knob Goblin seltzer...
Could heal 102MP with 11 Knob Goblin seltzer for 1020.0 meat.
testing Knob Goblin superseltzer...
Could heal 102MP with 4 Knob Goblin superseltzer for 578.0 meat.
testing magical mystery juice...
Could heal 102MP with 4 magical mystery juice for 351.72415 meat.
testing Monstar energy beverage...
Could heal 102MP with 2 Monstar energy beverage for 814.64 meat.
testing Mountain Stream soda...
Could heal 102MP with 14 Mountain Stream soda for 1577.6001 meat.
testing Nardz energy beverage...
Could heal 102MP with 2 Nardz energy beverage for 930.55383 meat.
testing natural fennel soda...
Could heal 102MP with 2 natural fennel soda for 1122.0 meat.
testing New Cloaca-Cola...
Could heal 102MP with 1 New Cloaca-Cola for 3332.0 meat.
testing Notes from the Elfpocalypse, Chapter I...
Could heal 102MP with 3 Notes from the Elfpocalypse, Chapter I for 582.8571 meat.
testing Notes from the Elfpocalypse, Chapter II...
Could heal 102MP with 3 Notes from the Elfpocalypse, Chapter II for 582.8571 meat.
testing Notes from the Elfpocalypse, Chapter III...
Could heal 102MP with 3 Notes from the Elfpocalypse, Chapter III for 582.8571 meat.
testing Notes from the Elfpocalypse, Chapter IV...
Could heal 102MP with 3 Notes from the Elfpocalypse, Chapter IV for 582.8571 meat.
testing Notes from the Elfpocalypse, Chapter V...
Could heal 102MP with 3 Notes from the Elfpocalypse, Chapter V for 582.8571 meat.
testing Notes from the Elfpocalypse, Chapter VI...
Could heal 102MP with 3 Notes from the Elfpocalypse, Chapter VI for 582.8571 meat.
testing palm frond...
Could heal 102MP with 6 palm frond for 510.0 meat.
testing palm-frond fan...
Could heal 102MP with 3 palm-frond fan for 647.7 meat.
testing phonics down...
Could heal 102MP with 3 phonics down for 607.75 meat.
testing Regular Cloaca Cola...
Could heal 102MP with 13 Regular Cloaca Cola for 1020.0 meat.
testing six-pack of New Cloaca-Cola...
Could heal 102MP with 1 six-pack of New Cloaca-Cola for 2334.6667 meat.
testing soda water...
Could heal 102MP with 26 soda water for 1785.0 meat.
testing sugar shard...
Could heal 102MP with 14 sugar shard for 1360.0 meat.
testing tiny house...
Could heal 102MP with 5 tiny house for 992.18176 meat.
testing tonic water...
Could heal 102MP with 3 tonic water for 6369.9 meat.
testing unrefined Mountain Stream syrup...
Could heal 102MP with 2 unrefined Mountain Stream syrup for 741.8182 meat.
testing Wint-O-Fresh mint...
Could heal 102MP with 26 Wint-O-Fresh mint for 2550.0 meat.
testing Wolfman Nardz...
Could heal 102MP with 1 Wolfman Nardz for 2448.0 meat.
In mallmode, best MP restorative is: Doc Galaktik's services. Huh?
Division by zero (Universal_recovery.ash, line 607)
Autorecovery failed.

Of coarse I tried with these checked and unchecked with noted changes:
Prefer using inventory instead of mall, regardless of value
Use MMJ in stock, even if it cannot be purchased this ascension
Never abort automation, even if restoration fails
 
Last edited:
I was too impatient for slowness of palm-frond fan making. (not a ding on your script. stupid crimbo lag). So I tried to prefer inventory. It didn't work as I expected:
Code:
Running Universal Recovery Configuration version: 1.2
Checking for updates (running Universal Recovery Configuration ver. 1.2)...
_version_BalesUniversalRecoveryUI => 1.2
You have a current version of Universal Recovery Configuration.

baleUr_UseInventoryInMallmode => true

> restore mp

Restoring MP! Currently at 677 of 677 HP, 131 of 500 MP, current meat: 951965 ... Target MP = 132.
_meatpermp => 0.006666667
Searching for "six-pack of New Cloaca-Cola"...
Search complete.
Purchasing six-pack of New Cloaca-Cola (1 @ 20,000)...
You acquire an item: six-pack of New Cloaca-Cola
Purchases complete.
Using 1 six-pack of New Cloaca-Cola...
You acquire New Cloaca-Cola (6)
Finished using 1 six-pack of New Cloaca-Cola.
Using 1 New Cloaca-Cola...
You gain 145 Mojo Points
Finished using 1 New Cloaca-Cola.
 
Back
Top