Universal Recovery Script

bumcheekcity

Active member
[418] Itznotyerzitz Mine (in Disguise)
You lose 37 hit points
You've had the crap beaten out of you... attempting to find some more crap.
Visiting Relaxing Hot Tub in clan VIP lounge
You lose an effect: Beaten Up
You gain 45 hit points

[419] Itznotyerzitz Mine (in Disguise)
You lose 63 hit points
You've had the crap beaten out of you... attempting to find some more crap.
Visiting Relaxing Hot Tub in clan VIP lounge
You lose an effect: Beaten Up
You gain 45 hit points

The script is healing me at the Mine, just thought I'd give you a heads up. Using v3.51.
 

Bale

Minion
That seems rather impossible to me. Unless you did something weird to call the script with a set HP target, rather than the default values, it shouldn't ever get to the point of using a hot tub. Were you running a mining script of some sort?
 

Raven434

Member
I ascended and had the following '/0' error:

No matching commands found!
Untinkering bitchin' meatcar...
untinker * bitchin' meatcar
You acquire an item: meat engine
You acquire an item: dope wheels
Successfully untinkered bitchin' meatcar
Visiting Crimbo Cafe...
Menu retrieved.
Autoselling items to NPCs...
You gain 80 Meat
Items sold.
Taking off string of dingle balls...
Equipment changed.
_version_BalesUniversalRecovery => 3.51
Already updated from http://zachbardon.com/mafiatools/updateprices.php?action=getmap in this session.
Already updated from http://nixietube.info/mallprices.txt in this session.
Pricelist updated.
Searching for "black cherry soda"...
Searching for "honey-dipped locust"...
Searching for "sugar shard"...
Searching for "unrefined mountain stream syrup"...
Division by zero (Universal_Recovery.ash, line 706)
 

Bale

Minion
Really? I can't imagine why.

Can you edit the beginning of the script to verbose = true?

Edit: Hold it! I've got an idea... Is this a casual ascension? (Though I still might need verbose mode to debug it...)
 
Last edited:

icon315

Member
I Get this message

Code:
_meatperhp => 1.5999957
Using 1 scroll of drastic healing...
Finished using 1 scroll of drastic healing.
Using 1 scroll of drastic healing...
Finished using 1 scroll of drastic healing.
Using 1 scroll of drastic healing...
Finished using 1 scroll of drastic healing.
Did not fully restore HP for some reason.

For some reason i think Mafia is thinking that i have a scroll even though i don't....is it the script or mafia?
 

Raven434

Member
Really? I can't imagine why.

Can you edit the beginning of the script to verbose = true?

Edit: Hold it! I've got an idea... Is this a casual ascension? (Though I still might need verbose mode to debug it...)

I did do that because I was a retard and picked casual.

However, that same error message also occurred on my HC multi when I ascended.

:-(
 

Muhandes

Member
It is still doing this:

Restoring HP! Currently at 350 of 6649 HP, 195 of 5122 MP, current meat: 485286 ... Target HP = 6649.
Get thee to a nunnery!
You gain 1,000 hit points
Get thee to a nunnery!
You gain 1,000 hit points
_meatperhp => 0.16282853
Using 1 scroll of drastic healing...
Finished using 1 scroll of drastic healing.
 

Raven434

Member
I did do that because I was a retard and picked casual.

However, that same error message also occurred on my HC multi when I ascended.
:-(

This was ascending as a casual AT into a softcore AT.

Calling Universal Recovery for type=HP, amount=0
_version_BalesUniversalRecovery => 3.51
Already updated from http://zachbardon.com/mafiatools/updateprices.php?action=getmap in this session.
Already updated from http://nixietube.info/mallprices.txt in this session.
Pricelist updated.
To heal with Doc Galaktik would cost 0.0 meat. Now to beat that price...
testing Blatantly Canadian...
Could heal 0MP with 0 Blatantly Canadian for 0.0 meat.
testing Cherry Cloaca Cola...
Searching for "cherry cloaca cola"...
Could heal 0MP with 0 Cherry Cloaca Cola for 0.0 meat.
testing Cloaca-Cola...
Searching for "cloaca-cola"...
Could heal 0MP with 0 Cloaca-Cola for 0.0 meat.
testing Diet Cloaca Cola...
Searching for "diet cloaca cola"...
Could heal 0MP with 0 Diet Cloaca Cola for 0.0 meat.
testing Dyspepsi-Cola...
Could heal 0MP with 0 Dyspepsi-Cola for 0.0 meat.
testing Knob Goblin seltzer...
Could heal 0MP with 0 Knob Goblin seltzer for 0.0 meat.
testing Knob Goblin superseltzer...
Could heal 0MP with 0 Knob Goblin superseltzer for 0.0 meat.
testing Monstar energy beverage...
Could heal 0MP with 0 Monstar energy beverage for 0.0 meat.
testing Mountain Stream soda...
Could heal 0MP with 0 Mountain Stream soda for 0.0 meat.
testing Nardz energy beverage...
Searching for "nardz energy beverage"...
Could heal 0MP with 0 Nardz energy beverage for 0.0 meat.
testing New Cloaca-Cola...
Searching for "new cloaca-cola"...
Could heal 0MP with 0 New Cloaca-Cola for 0.0 meat.
testing Regular Cloaca Cola...
Searching for "regular cloaca cola"...
Could heal 0MP with 0 Regular Cloaca Cola for 0.0 meat.
testing Wint-O-Fresh mint...
Searching for "wint-o-fresh mint"...
Could heal 0MP with 0 Wint-O-Fresh mint for 0.0 meat.
testing Wolfman Nardz...
Searching for "wolfman nardz"...
Could heal 0MP with 0 Wolfman Nardz for 0.0 meat.
testing ancient Magi-Wipes...
Could heal 0MP with 0 ancient Magi-Wipes for 0.0 meat.
testing banana spritzer...
Could heal 0MP with 0 banana spritzer for 0.0 meat.
testing black cherry soda...
Could heal 0MP with 0 black cherry soda for 0.0 meat.
testing blue pixel potion...
Could heal 0MP with 0 blue pixel potion for 0.0 meat.
testing bottle of Monsieur Bubble...
Could heal 0MP with 0 bottle of Monsieur Bubble for 0.0 meat.
testing bottle of Vangoghbitussin...
Could heal 0MP with 0 bottle of Vangoghbitussin for 0.0 meat.
testing carbonated soy milk...
Could heal 0MP with 0 carbonated soy milk for 0.0 meat.
testing carbonated water lily...
Could heal 0MP with 0 carbonated water lily for 0.0 meat.
testing cotton candy bale...
Could heal 0MP with 0 cotton candy bale for 0.0 meat.
testing cotton candy cone...
Could heal 0MP with 0 cotton candy cone for 0.0 meat.
testing cotton candy pillow...
Could heal 0MP with 0 cotton candy pillow for 0.0 meat.
testing cotton candy pinch...
Could heal 0MP with 0 cotton candy pinch for 0.0 meat.
testing cotton candy plug...
Could heal 0MP with 0 cotton candy plug for 0.0 meat.
testing cotton candy skoshe...
Could heal 0MP with 0 cotton candy skoshe for 0.0 meat.
testing cotton candy smidgen...
Could heal 0MP with 0 cotton candy smidgen for 0.0 meat.
testing delicious shimmering moth...
testing green pixel potion...
Could heal 0MP with 0 green pixel potion for 0.0 meat.
testing high-pressure seltzer bottle...
Could heal 0MP with 0 high-pressure seltzer bottle for 0.0 meat.
testing honey-dipped locust...
Could heal 0MP with 0 honey-dipped locust for 0.0 meat.
testing magical mystery juice...
testing natural fennel soda...
Could heal 0MP with 0 natural fennel soda for 0.0 meat.
testing palm frond...
Could heal 0MP with 0 palm frond for 0.0 meat.
testing palm-frond fan...
Could heal 0MP with 0 palm-frond fan for 0.0 meat.
testing phonics down...
Could heal 0MP with 0 phonics down for 0.0 meat.
testing six-pack of New Cloaca-Cola...
Searching for "six-pack of new cloaca-cola"...
Could heal 0MP with 0 six-pack of New Cloaca-Cola for 0.0 meat.
testing soda water...
Could heal 0MP with 0 soda water for 0.0 meat.
testing sugar shard...
Could heal 0MP with 0 sugar shard for 0.0 meat.
testing tiny house...
Could heal 0MP with 0 tiny house for 0.0 meat.
testing tonic water...
Could heal 0MP with 0 tonic water for 0.0 meat.
testing unrefined Mountain Stream syrup...
Could heal 0MP with 0 unrefined Mountain Stream syrup for 0.0 meat.
In mallmode, best MP restorative is: Doc Galaktik's services. Huh?
Division by zero (Universal_Recovery.ash, line 706)


Start New Life
Refreshing session data...
Synchronizing moon data...
Retrieving character data...
Refreshing closet...
Updating consumable items...
Updating miscellaneous items...
Refreshing stickers...
Retrieving familiar data...
Familiar data retrieved.
Retrieving campground data...
Retrieving storage list...
Session data refreshed.
Checking for updates (running ZLib ver. : 12)...
_version_zlib => : 12
You have a current version of ZLib.
Checking for updates (running newLife ver. 1.21)...
_version_Bale_newLife => 1.21
You have a current version of newLife.
Ballroom song: Non-combat
choiceAdventure106 => 2
Fantasy Airship, Lack of an Encounter: Get Stats
choiceAdventure182 => 3
Setting choice adventures for Moxie class.
Turn Castle wheel by way of Moxie
choiceAdventure9 => 2
choiceAdventure11 => 3
choiceAdventure12 => 2
Library, Fall of the House of Spookyraven: Unlock stairs
choiceAdventure81 => 99
Bathroom, Having a Medicine Ball: Skip adventure
choiceAdventure105 => 2
Optimal ascension choices set.
Resetting HP/MP restoration settings to minimal
hpAutoRecovery => 0.1
hpAutoRecoveryTarget => 0.95
mpAutoRecoveryTarget => 0.2
manaBurningThreshold => 0.90

hope that helps!
 

Bale

Minion
That helps. I've now fixed that bug. (It was typo.) This should not effect hardcore ascension though, so your other character's bug must have an entirely different cause.


Universal recovery v 3.52 released!


Changelog:
version 3.52 January 4, 2010
  • Fixed meat per mp bug on first run.


PS. It's kinda cool to see you using my newLife script. :D
 
Last edited:

jcowley

New member
I would like to know how to prevent it from buying MMJ or selter for "in-combat" use, I couldn't find anything about how to do this.
 

Bale

Minion
I never added any way to turn off that feature. The subject came up only once before, but the response from everyone else in this thread was so positive about how good the feature is that I never added an off switch. It isn't hard for you to delete though.

In main(), you'll find a line that says reserve_healing();. You can just delete that line and you won't be troubled by it again.
 

forsaken1111

New member
Is there a reason it won't rest in my campground if/when I run out of meat? When the recovery runs and I am low on meat (poor multi) it says "Running out of meat! Time to take some out of the closet..." and stops the script.

It's also ignoring the scrolls of drastic healing/tiny houses in my inventory in favor of trying to buy things off the mall. :/

I may have to switch back to the default recovery, at least it used inventory items.
 

Bale

Minion
When you are in mallmode, it will try to use the cheapest item even if you have items in your inventory. The assumption is that you can sell those items for meat and use only a fraction of that meat to purchase cheaper healing items. It will save you meat to do that.

If you're allergic to selling expensive items to get some meat to purchase cheap items, then you can lock it into hardcore mode (so it will use up your inventory) by editing a variable at the top of the script (in the options section). Change never_mall = true

As for resting in the campground, if you don't have free disco rests, it will consider an adventure to be too high a price to squander. If you want to automatically use up adventures in that way, then in kolmafia's HP/MP Usage preferences, find a box labeled "rest at your campground" on the Hp and/or Mp side and check it.

Finally, concerning scrolls of drastic healing. It does seem weird that it would ignore those since they're frequently the cheapest method of healing HP, but you haven't given me nearly enough information to tell you why it thinks those are a bad idea. If you copy/pasted your CLI output it would tell me something about your HP, MP and healing settings that might give me such a clue.

If this is all too complicated or annoying for you, then I guess you're not someone that will benefit from my script so you should feel free to return to mafia's default recovery.
 

forsaken1111

New member
When you are in mallmode, it will try to use the cheapest item even if you have items in your inventory. The assumption is that you can sell those items for meat and use only a fraction of that meat to purchase cheaper healing items. It will save you meat to do that.
I appreciate the swift response to my question. I hadn't thought of that, but it's a good point and does make sense. It hadn't occurred to me that it was checking mall prices and not using the items at hand because they were less meat-efficient for healing. Pretty remarkable.

If you're allergic to selling expensive items to get some meat to purchase cheap items, then you can lock it into hardcore mode (so it will use up your inventory) by editing a variable at the top of the script (in the options section). Change never_mall = true
Good to know that this is a possibility, but now that I understand why it is skipping some items I am ok with it remaining in its default mode. Always nice to have the option though.

As for resting in the campground, if you don't have free disco rests, it will consider an adventure to be too high a price to squander. If you want to automatically use up adventures in that way, then in kolmafia's HP/MP Usage preferences, find a box labeled "rest at your campground" on the Hp and/or Mp side and check it.
I have this box checked, but it was still ending the script with what I quoted above instead of resting. I'm not sure why this is happening, and it is the main reason I came here.

Finally, concerning scrolls of drastic healing. It does seem weird that it would ignore those since they're frequently the cheapest method of healing HP, but you haven't given me nearly enough information to tell you why it thinks those are a bad idea. If you copy/pasted your CLI output it would tell me something about your HP, MP and healing settings that might give me such a clue.
Next time I run into this I will certainly do that. Perhaps it will shed some light on the whole thing. I'm sorry I didn't think to do that when I posted the initial question.

If this is all too complicated or annoying for you, then I guess you're not someone that will benefit from my script so you should feel free to return to mafia's default recovery.
Really? Why would you throw this in there? Makes you sound arrogant and elitist. If it was 'too complicated or annoying' for me to bother with, I wouldn't be using the script in the first place or seeking help and understanding. If it is a response to my comment about my switching back to the default recovery, then it's a bit uncalled for really. I didn't intend that as a slight or insult, just a statement of fact that if one script doesn't fulfill a need I would use another.
 
Top