Universal Recovery Script

Theraze

Active member
UR appears less aware of Amnesia then it needs to be...
You've got Temporary Amnesia. That's bad, but only you can decide if you want to use an SGEEA to cure it.
Restoring HP! Currently at 67 of 106 HP, 62 of 180 MP, current meat: 16935 ... Target HP = 101.
Casting Disco Power Nap 1 times...
That skill is currently unavailable.
 

slyz

Developer
The debug log looks incomplete, and it doesn't tell us anything about the problem.

Just a question: when this happened, where you poisoned?
 
I'm not sure, I didn't notice when it occurred as I was in the relay browser at the time. I don't recall getting poisoned by anything though.
 

ZombyWoof

New member
I'm trying this script for the first time in conjunction with the Slime Tube script. There seems to be a few issues between the two probably due to how I configured them. I'm trying to get the recovery script to behave first. I have Cacoon and it heals me 100%. I'd think it would try and cast that first before using all these various items for healing but it doesn't.

I get stuff like this.

Restoring HP! Currently at 437 of 1645 HP, 344 of 1484 MP, current meat: 32329426 ... Target HP = 1645.
Using 12 elven medi-pack...
You gain 1,088 hit points
Finished using 12 elven medi-pack.
Using 2 ancient Magi-Wipes...
You gain 119 hit points
You gain 115 Mojo Points
Finished using 2 ancient Magi-Wipes.
Did not fully restore HP for some reason.


This is even after I unchecked elven medi-pack from the list in an attempt to get it to use Cacoon first.

Thanks for all the work on these sripts,

ZW
 

Turtle

New member
Something is going wrong because Mafia keeps insisting on using New Cloaca Cola to restore MP. Shit costs 20,000 meat in the mall for 6. It's a horribly inefficient restorative. I have 800+ mmj in my inventory, I'm a Sauceror, and I have the option set to use mmj even if I can't. But for some reason Mafia keeps trying it's ass off to purchase New Cloaca Cola and I have to do my mana restore manually.
 

Theraze

Active member
Any chance you've selected UseInventoryInMallmode? That makes anything in your inventory have a value of 1, regardless of mall price...
 

Turtle

New member
Code:
baleUr_Verbosity => 3

> set recoveryScript = Universal_recovery

recoveryScript => Universal_recovery

> cast bricko

Calling Universal Recovery for type=MP, amount=106
Restoring MP! Currently at 171 of 171 HP, 87 of 436 MP, current meat: 62192303 ... Target MP = 109.
Try to heal MP from inventory.
Searching for "six-pack of New Cloaca-Cola"...
Search complete.
Stopped purchasing six-pack of New Cloaca-Cola @ 20,000.
Using cached search results for six-pack of New Cloaca-Cola...
Stopped purchasing six-pack of New Cloaca-Cola @ 20,000.
You need 1 more six-pack of New Cloaca-Cola to continue.
Last attempt to purchase MP with meat.
Did not fully restore MP for some reason.
 

Theraze

Active member
Check if you have New Cloaca-Cola (not the six-pack, the individual items) as well. They make UR get all sorts of confused for some reason... just closet them or place them somehow else where UR can't access.
 

Turtle

New member
I did have some. Behavior fixed when I put them in my mall store, but that's not a full solution. I haven't gone to the Cola Battlefield to get them and I haven't purchased them on my own. It may be the case that having them screws with it, but there has to be another condition or I never would've had any in the first place.

I ran a grep on my entire sessions log history (Which is every day since 10/23/09, 19 days after creating my account) and these are the results:
Code:
$ grep "New Cloaca" /cygdrive/c/Dropbox/KoLMafia/sessions/*.txt
/cygdrive/c/Dropbox/KoLMafia/sessions/Turtle_Poey_Poey_Poey_Poey_20101026.txt: > Purchasing some cans of New Cloaca-Cola for use as a combat restorative.
/cygdrive/c/Dropbox/KoLMafia/sessions/Turtle_Poey_Poey_Poey_Poey_20101026.txt:buy 1 New Cloaca-Cola for 1450 each from 2127799 on 20101026
/cygdrive/c/Dropbox/KoLMafia/sessions/Turtle_Poey_Poey_Poey_Poey_20101026.txt:You acquire an item: New Cloaca-Cola
/cygdrive/c/Dropbox/KoLMafia/sessions/Turtle_Poey_Poey_Poey_Poey_20110522.txt:Adjusted combat item count: New Cloaca-Cola
/cygdrive/c/Dropbox/KoLMafia/sessions/Turtle_Poey_Poey_Poey_Poey_20110528.txt:Adjusted combat item count: New Cloaca-Cola
/cygdrive/c/Dropbox/KoLMafia/sessions/Turtle_Poey_Poey_Poey_Poey_20111201.txt:buy 1 six-pack of New Cloaca-Cola for 20000 each from 1107455 on 20111201
/cygdrive/c/Dropbox/KoLMafia/sessions/Turtle_Poey_Poey_Poey_Poey_20111201.txt:You acquire an item: six-pack of New Cloaca-Cola
/cygdrive/c/Dropbox/KoLMafia/sessions/Turtle_Poey_Poey_Poey_Poey_20111201.txt:use 1 six-pack of New Cloaca-Cola
/cygdrive/c/Dropbox/KoLMafia/sessions/Turtle_Poey_Poey_Poey_Poey_20111201.txt:You acquire New Cloaca-Cola (6)
/cygdrive/c/Dropbox/KoLMafia/sessions/Turtle_Poey_Poey_Poey_Poey_20111201.txt:use 6 New Cloaca-Cola
/cygdrive/c/Dropbox/KoLMafia/sessions/Turtle_Poey_Poey_Poey_Poey_20111203.txt:buy 1 six-pack of New Cloaca-Cola for 20000 each from 1740784 on 20111203
/cygdrive/c/Dropbox/KoLMafia/sessions/Turtle_Poey_Poey_Poey_Poey_20111203.txt:You acquire an item: six-pack of New Cloaca-Cola
/cygdrive/c/Dropbox/KoLMafia/sessions/Turtle_Poey_Poey_Poey_Poey_20111203.txt:use 1 six-pack of New Cloaca-Cola
/cygdrive/c/Dropbox/KoLMafia/sessions/Turtle_Poey_Poey_Poey_Poey_20111203.txt:You acquire New Cloaca-Cola (6)
/cygdrive/c/Dropbox/KoLMafia/sessions/Turtle_Poey_Poey_Poey_Poey_20111203.txt:use 6 New Cloaca-Cola
/cygdrive/c/Dropbox/KoLMafia/sessions/Turtle_Poey_Poey_Poey_Poey_20111209.txt:> 1 New Cloaca-Cola = 4900
/cygdrive/c/Dropbox/KoLMafia/sessions/Turtle_Poey_Poey_Poey_Poey_20111209.txt:> 1 New Cloaca-Cola = 4900
/cygdrive/c/Dropbox/KoLMafia/sessions/Turtle_Poey_Poey_Poey_Poey_20111211.txt:buy 1 six-pack of New Cloaca-Cola for 20000 each from 2280632 on 20111211
/cygdrive/c/Dropbox/KoLMafia/sessions/Turtle_Poey_Poey_Poey_Poey_20111211.txt:You acquire an item: six-pack of New Cloaca-Cola
/cygdrive/c/Dropbox/KoLMafia/sessions/Turtle_Poey_Poey_Poey_Poey_20111211.txt:use 1 six-pack of New Cloaca-Cola
/cygdrive/c/Dropbox/KoLMafia/sessions/Turtle_Poey_Poey_Poey_Poey_20111211.txt:You acquire New Cloaca-Cola (6)
/cygdrive/c/Dropbox/KoLMafia/sessions/Turtle_Poey_Poey_Poey_Poey_20111211.txt:use 1 New Cloaca-Cola
/cygdrive/c/Dropbox/KoLMafia/sessions/Turtle_Poey_Poey_Poey_Poey_20111219.txt:> 6 cans of New Cloaca-Cola @ 3400 = 20,400
/cygdrive/c/Dropbox/KoLMafia/sessions/Turtle_Poey_Poey_Poey_Poey_20111220.txt:> 6 cans of New Cloaca-Cola @ 3500 = 21,000
/cygdrive/c/Dropbox/KoLMafia/sessions/Turtle_Poey_Poey_Poey_Poey_20111221.txt:> 6 cans of New Cloaca-Cola @ 3000 = 18,000
/cygdrive/c/Dropbox/KoLMafia/sessions/Turtle_Poey_Poey_Poey_Poey_20111225.txt:buy 1 six-pack of New Cloaca-Cola for 19998 each from 714403 on 20111225
/cygdrive/c/Dropbox/KoLMafia/sessions/Turtle_Poey_Poey_Poey_Poey_20111225.txt:You acquire an item: six-pack of New Cloaca-Cola
/cygdrive/c/Dropbox/KoLMafia/sessions/Turtle_Poey_Poey_Poey_Poey_20111225.txt:use 1 six-pack of New Cloaca-Cola
/cygdrive/c/Dropbox/KoLMafia/sessions/Turtle_Poey_Poey_Poey_Poey_20111225.txt:You acquire New Cloaca-Cola (6)
/cygdrive/c/Dropbox/KoLMafia/sessions/Turtle_Poey_Poey_Poey_Poey_20111225.txt:use 1 New Cloaca-Cola
/cygdrive/c/Dropbox/KoLMafia/sessions/Turtle_Poey_Poey_Poey_Poey_20120111.txt:buy 1 six-pack of New Cloaca-Cola for 20000 each from 1886514 on 20120111
/cygdrive/c/Dropbox/KoLMafia/sessions/Turtle_Poey_Poey_Poey_Poey_20120111.txt:You acquire an item: six-pack of New Cloaca-Cola
/cygdrive/c/Dropbox/KoLMafia/sessions/Turtle_Poey_Poey_Poey_Poey_20120111.txt:use 1 six-pack of New Cloaca-Cola
/cygdrive/c/Dropbox/KoLMafia/sessions/Turtle_Poey_Poey_Poey_Poey_20120111.txt:You acquire New Cloaca-Cola (6)
/cygdrive/c/Dropbox/KoLMafia/sessions/Turtle_Poey_Poey_Poey_Poey_20120111.txt:use 1 New Cloaca-Cola
/cygdrive/c/Dropbox/KoLMafia/sessions/Turtle_Poey_Poey_Poey_Poey_20120117.txt:> 16 cans of New Cloaca-Cola @ 1000 = 16,000
/cygdrive/c/Dropbox/KoLMafia/sessions/Turtle_Poey_Poey_Poey_Poey_20120120.txt:mallsell: 16 New Cloaca-Cola

In 10/26/2010, I was in the process of doing a series of Basement runs for my Telescope pieces. So my guess is that it was determined that this was an effective item at that point in time. What seems odd though is that the script did not start attempting to buy new Cloaca Cola until December of this past year. I had New Cloaca's in my inventory for over a year before it started to have any problems.


Also, unrelated, but discovered while poking through the code. Line 193 of Universal_Recovery.ash is:
Code:
		int stock = available_amount($item[gauze garter]) + available_amount($item[gauze garter]);
I'm pretty sure what was intended was:
Code:
		int stock = available_amount($item[gauze garter]) + available_amount($item[filthy poultice]);
 
Last edited:

stannius

Member
Something is going wrong because Mafia keeps insisting on using New Cloaca Cola to restore MP. Shit costs 20,000 meat in the mall for 6. It's a horribly inefficient restorative. I have 800+ mmj in my inventory, I'm a Sauceror, and I have the option set to use mmj even if I can't. But for some reason Mafia keeps trying it's ass off to purchase New Cloaca Cola and I have to do my mana restore manually.

If UR makes you so angry, maybe you shouldn't use it.
 

Turtle

New member
Or maybe there is some bad behavior in an otherwise awesome script that could be fixed instead of just shrugging it off. I didn't include all that information in my post because I was angry, I included all that information because when you're making a bug report, you include as much information as you can so that the situation can be replicated and resolved.
 
I think Im having the same problem when my mana runs low Universal Recovery kicks in and I get

Restoring MP! Currently at 156 of 176 HP, 18 of 256 MP, current meat: 96125 ... Target MP = 180.
Searching for "six-pack of New Cloaca-Cola"...
Search complete.
Stopped purchasing six-pack of New Cloaca-Cola @ 20,600.
Using cached search results for six-pack of New Cloaca-Cola...
Stopped purchasing six-pack of New Cloaca-Cola @ 20,600.
You need 2 more six-pack of New Cloaca-Cola to continue.
Using cached search results for six-pack of New Cloaca-Cola...

This just keeps repeating over and over till I stop and manually restore my mana
 

Theraze

Active member
Closet your broken out six-packs... Any cans of New Cloaca-Cola in inventory causes UR to freak out currently.
 
Top