Bug - Fixed Auto-purchasing white lightning

VinnyB

Member
For some reason, every time (at least, this is the third time it's happened) the microbrewery has white lightning, mafia buys and drinks one in between any action I take (and continues to try to do so even once it's gotten me drunk). Any idea wtf is going on?

My mood currently is:
Code:
Always, ashq if (my_mp()>=mp_cost($skill[Summon Dice])+10000) use_skill(1, $skill[Summon Dice])
Always, ashq if (run_combat().contains_text("last of the Blank-Out")) use(1, $item[bottle of blank-out])
Always, stickers unicorn, unicorn, unicorn
When I get Burning, Man, abort
When I get Haiku State of Mind, uneffect Haiku State of Mind
 

Bale

Minion
Check your Preferences -> Automation. Do you have anything listed for Pre-Adventure, Post-Adventure or Recovery?
 

VinnyB

Member
Nope, everything there is empty. :/

It only starts doing this once I open the relay browser, if that tells you anything.

A couple months back, I had a kinda similar problem: once I opened the relay browser, every time I did anything, mafia would first try to consume Northern pemmican. I have no idea why--Northern pemmican isn't even a consumable (in that sense), so I just had a perpetual "Northern pemmican can't be consumed" error message up. This issue vanished sometime in the last month.
 
Last edited:

Veracity

Developer
Staff member
A couple months back, I had a kinda similar problem: once I opened the relay browser, every time I did anything, mafia would first try to consume Northern pemmican. I have no idea why--Northern pemmican isn't even a consumable (in that sense), so I just had a perpetual "Northern pemmican can't be consumed" error message up. This issue vanished sometime in the last month.
This bug report talked about the issue with Northern Pemmican. It had something to do with "Cast buffs not defined in moods during mana burning". Since White Lightning gives you Temporary Blindness, I imagine that mana burning might be attempting to keep it active for you in the same way.
 

slyz

Developer
Could you get a debug log of this happening?

- In the top menu: Help -> Start debug log
- do whatever you do to make it try to consume a white lightning
- In the top menu: Help -> Stop debug log
- attach the resulting debug file (in your KoLMafia directory) to your post.

Thanks.

EDIT:
In the bug report Veracity linked to, we treated the symptom without looking for the actual cause of the problem. I guess the implicit (and probably unfair) assumption was user error.

I don't see how mana burning could cause this. At least not ManaBurnManager.getNextBurnCast().
 
Last edited:

VinnyB

Member
That narrows it down to either a relay override script or greasemonkey, I think.
I don't use greasemonkey, and I was having this issue before I started using a relay override script (just started using CHIT last week)
Anything in your mood?
Only what I initially posted
This bug report talked about the issue with Northern Pemmican. It had something to do with "Cast buffs not defined in moods during mana burning". Since White Lightning gives you Temporary Blindness, I imagine that mana burning might be attempting to keep it active for you in the same way.
Unchecking that option doesn't seem to have had any effect.

Okay, I removed CHIT, which reduced the debug file from 53 to 1 MB. Here it is:
 

Attachments

  • DEBUG_20121003.txt
    64.7 KB · Views: 1,141
Last edited:

lostcalpolydude

Developer
Staff member
You have an effect that both mafia and the wiki seem to not know about.
PHP:
<tr><td><img src="http://images.kingdomofloathing.com/itemimages/tinykitty.gif" width=30 height=30  onClick='eff("5b6c1ff235ac38c3b8ace81f8ccfbde5");'></td><td valign=center><font size=2>Om Nom Nom (1516)</font><br></td></tr>
And there are weird results like
PHP:
Processing result: Om Nom Nom (-21)
Processing result: Om Nom Nom (-15)
Processing result: Om Nom Nom (-12)
Processing result: Om Nom Nom (-12)
Processing result: Om Nom Nom (-12)
Processing result: Om Nom Nom (-9)
Processing result: Om Nom Nom (-9)
Processing result: Om Nom Nom (-9)
which seems related. I don't know how that's related to drinking white lightnings though.
 

Bale

Minion
You have an effect that both mafia and the wiki seem to not know about.
PHP:
<tr><td><img src="http://images.kingdomofloathing.com/itemimages/tinykitty.gif" width=30 height=30  onClick='eff("5b6c1ff235ac38c3b8ace81f8ccfbde5");'></td><td valign=center><font size=2>Om Nom Nom (1516)</font><br></td></tr>

KoL result of effect description 5b6c1ff235ac38c3b8ace81f8ccfbde5 was odd.
 

VinnyB

Member
And there are weird results like
PHP:
Processing result: Om Nom Nom (-21)
Processing result: Om Nom Nom (-15)
Processing result: Om Nom Nom (-12)
Processing result: Om Nom Nom (-12)
Processing result: Om Nom Nom (-12)
Processing result: Om Nom Nom (-9)
Processing result: Om Nom Nom (-9)
Processing result: Om Nom Nom (-9)
which seems related. I don't know how that's related to drinking white lightnings though.
What do those "Processing result" lines signify mafia is trying to do?


Oh lord it's doing it again today, with the 'brewery's World's Most Unappetizing Beverage, presumably to get me more Literally Insane...
 
Last edited:

Bale

Minion
What does it say when you copy/paste get allowNonMoodBurning into the CLI? Please copy/paste since capitalization counts.
 

slyz

Developer
What do those "Processing result" lines signify mafia is trying to do?
This means that it parsed the effects in charpane.php and decided that you had less turns of the "Om Nom Nom" effect than Mafia thought, so it is adjusting.

The problem is that it adjusted 8 times in a row. And it doesn't look like Om Nom Nom is an effect Mafia knows.

In your debug log, the HTML of charpane.php was REDACTED. Could you do the following:

- disable your charpane.php override, if you have one (by removing charpane.ash from your /relay folder)
- Help -> Start debug log
- in the gCLI, copy : ashq visit_url( "charpane.php" )
- Help -> Stop debug log

and post the result here.

If you want to redact something, you can simply remove any reference to PHPSESSID. Or leave them and simply log out then back in before posting.
 
Last edited:

slyz

Developer
And still no idea where this "Om Nom Nom" effect is coming from?

EDIT: Just to be clear, did Mafia drink anything from the microbrewery when you generated the last debug log?

EDIT2: are you wearing metallic foil cat ears ?

EDIT3: oh right, you have 1399 turns of "Yes, Can Haz". Can you uneffect it and see if reloading the charpane causes Mafia to drink from the microbrewery?
 
Last edited:

VinnyB

Member
EDIT: Just to be clear, did Mafia drink anything from the microbrewery when you generated the last debug log?
Yes, it drank from the microbrewery when I first opened the relay browser, then every time I did something other than chat (e.g. use a skill, try to go manage my store) with it still open.

No, I'm not wearing cat ears, but uneffecting an effect I have no way to get again is not really an option >_> Surely that's not actually the issue? I've had that for at least a year or two
 
Top