Bug - Fixed Mood manager using incorrect DoD potions when switching accounts

I've been having problems with moods containing DoD potions, while using a single instance of mafia to log into multiple accounts.

One account has a mood containing:
When I run low on Object Detection, use 1 potion of detection
(username_moods.txt contains "lose_effect object detection => use 1 potion of detection")

If I open an instance of mafia, log in and out of an unrelated account, then log into the account with that mood, it changes to:
When I run low on Object Detection, use 1 potion of ettin strength
(username_moods.txt contains "lose_effect object detection => use 1 potion of ettin strength")

I'm using the current daily build r11190
 
Is it possible that this is part of the same server change that has wiped out Louvre mapping, violet fog mapping, and demon names?

I had the violet fog this morning and mafia was simply unable to find the munchies pill. And I couldn't escape out of it. Ended up bringing up the relay browser and mashing on Leave the Fog from there.

Code:
[6683] Lord Flameface's Castle Entryway
Encounter: Violet Fog
Encounter: Violet Fog
Encounter: Violet Fog
Encounter: She's So Unusual
Encounter: Violet Fog
Encounter: Violet Fog
Encounter: Violet Fog
Encounter: The Big Scary Place
Encounter: Violet Fog
Encounter: The Prince of Wishful Thinking
Encounter: Violet Fog
Encounter: Violet Fog
Encounter: Violet Fog
Encounter: Violet Fog
Encounter: She's So Unusual
Encounter: Violet Fog
Encounter: Violet Fog
Encounter: The Prince of Wishful Thinking
Encounter: Violet Fog
Encounter: Violet Fog
Encounter: Violet Fog
Encounter: Violet Fog
Encounter: She's So Unusual
Encounter: Violet Fog
Encounter: Violet Fog
Encounter: The Prince of Wishful Thinking
Encounter: Violet Fog
Encounter: Violet Fog
Encounter: Violet Fog
Encounter: Violet Fog
Encounter: She's So Unusual
Encounter: Violet Fog
Encounter: Violet Fog
Encounter: The Prince of Wishful Thinking
Encounter: Violet Fog
Encounter: Violet Fog
Encounter: Violet Fog
Encounter: Violet Fog
Encounter: She's So Unusual
Encounter: Violet Fog
Encounter: Violet Fog
Encounter: The Prince of Wishful Thinking
Encounter: Violet Fog
Encounter: Violet Fog
Encounter: Violet Fog
Encounter: Violet Fog
Encounter: She's So Unusual
Encounter: Violet Fog
KoLmafia declares world peace.
Encounter: Violet Fog
Encounter: The Prince of Wishful Thinking
Encounter: Violet Fog
Encounter: Violet Fog
Encounter: Violet Fog
Encounter: Violet Fog
Encounter: She's So Unusual
Encounter: Violet Fog
Encounter: Violet Fog
KoLmafia declares world peace.
Encounter: The Prince of Wishful Thinking
Encounter: Violet Fog
Encounter: Violet Fog
Encounter: Violet Fog
Encounter: Violet Fog
Encounter: She's So Unusual
Encounter: Violet Fog
Encounter: Violet Fog
Encounter: The Prince of Wishful Thinking
Encounter: Violet Fog
Encounter: Violet Fog
Encounter: Violet Fog
KoLmafia declares world peace.
KoLmafia declares world peace.
KoLmafia declares world peace.
KoLmafia declares world peace.
Encounter: Violet Fog
Encounter: She's So Unusual
Encounter: Violet Fog
Encounter: Violet Fog
Encounter: The Prince of Wishful Thinking
Encounter: Violet Fog
Encounter: Violet Fog
Encounter: Violet Fog
Encounter: Violet Fog
Encounter: She's So Unusual
Encounter: Violet Fog
Encounter: Violet Fog
Encounter: The Prince of Wishful Thinking
KoLmafia declares world peace.
Encounter: Violet Fog
KoLmafia declares world peace.
KoLmafia declares world peace.
Encounter: Violet Fog
KoLmafia declares world peace.
KoLmafia declares world peace.
Encounter: Violet Fog
KoLmafia declares world peace.
Encounter: Violet Fog
Encounter: She's So Unusual
Encounter: Violet Fog
Encounter: Violet Fog
Encounter: The Prince of Wishful Thinking
Encounter: Violet Fog
Encounter: Violet Fog
Encounter: Violet Fog
Encounter: Violet Fog
Encounter: She's So Unusual
Encounter: Violet Fog
giant's castle
lord flameface's castle belfry
lord flameface's castle entryway
Multiple matches against castle.
Bad location value: "castle" (charpane.ash, line 651)
Encounter: Violet Fog
Encounter: Violet Fog
Encounter: The Prince of Wishful Thinking
Encounter: Violet Fog
Encounter: Violet Fog
Encounter: Violet Fog
Encounter: Violet Fog
Encounter: She's So Unusual
Encounter: Violet Fog
Encounter: Violet Fog
Encounter: Violet Fog
Encounter: The Prince of Wishful Thinking
Encounter: Violet Fog
Encounter: Violet Fog
Encounter: Violet Fog
Encounter: Violet Fog
Encounter: She's So Unusual
Encounter: Violet Fog
Encounter: Violet Fog
Encounter: The Prince of Wishful Thinking
Encounter: Violet Fog
Encounter: Violet Fog
Encounter: Violet Fog
Encounter: Violet Fog
Encounter: She's So Unusual
KoLmafia declares world peace.
Encounter: Violet Fog
KoLmafia declares world peace.
Encounter: Violet Fog
KoLmafia declares world peace.
KoLmafia declares world peace.
KoLmafia declares world peace.
Encounter: The Prince of Wishful Thinking
KoLmafia declares world peace.
KoLmafia declares world peace.
Encounter: Violet Fog
KoLmafia declares world peace.
KoLmafia declares world peace.
Encounter: Violet Fog
Encounter: Violet Fog
Encounter: Violet Fog
Encounter: She's So Unusual
Encounter: Violet Fog
Encounter: Violet Fog
Encounter: Violet Fog
Encounter: The Prince of Wishful Thinking
Encounter: Violet Fog
Encounter: Violet Fog
Encounter: Violet Fog
Encounter: Violet Fog
Encounter: She's So Unusual
Encounter: Violet Fog
 

Catch-22

Active member
Would you be able to clarify what's happening by talking things through as username1 and username2? Including what your moods.txt file is named for each account, and at what stages the contents of the mood files change?

I'm almost exclusively using a single instance of KoLmafia to login into different accounts and I haven't seen this happen before, but perhaps I've never been in the right circumstances.
 
The moods are saved in mafia\settings\username_moods.txt

I open mafia, log onto account one. All is well.
I then switch to account two.
account_two_moods.txt is updated as I log into the account, and any moods with DoD potions named by effect are altered.

For account two, milky potions are detection. For account one, milky potions are ettin strength. The mood on account two is altered from "use 1 potion of detection" to "use 1 potion of ettin strength".

This is happening whenever I log onto any account with a DoD potion in it's mood, with the exception of the first login after opening the mafia process.

The same problem is described in this post.

I checked with a clean new install of mafia with no saved settings, and it's still happening, so I imagine it should be pretty easy to reproduce.
 

Veracity

Developer
Staff member
1) Character one sets up a mood:

When an effect is lost, Check for Object Detection -> use 1 potion of detection

For this character, "potion of detection" is a smoky potion and a dark potion is "potion of confusion"

With this mood enabled, log out and exit KoLmafia

2) Character two sets up a mood:

When an effect is lost, Check for Object Detection -> use 1 potion of detection

For this character, "potion of detection" is a dark potion and a smoky potion is "potion of inebriety"

With this mood enabled, log out and exit KoLmafia

I am now set up for testing.

1) Log into character 1

-> my mood says "When I run low on Object Detection, use 1 potion of detection"

Log out back to the logout screen. Do not exit KoLmafia

2) Log into character 2

-> my mood says "When I run low on Object Detection, use 1 potion of inebriety"

Huh.

Edit: I notice that both of my mood files have:

lose_effect object detection => use 1 potion of detection

and if I exit KoLmafia and log in to character 2 again, it says "When I run low on Object Detection, use 1 potion of detection"
 
Last edited:
Top