Bale
Minion
This is weird, but easy to reproduce. Create a txt file (we'll call it error.txt) in /scripts with the following line:
Your character name can vary, but it must be a character whose password has been remembered by KoLmafia.
Now, start KoLmafia, but do not login. Then select error.txt from the scripts menu. As you would expect it will login your character without any difficulty. Yay! As far as I have discovered, everything will work perfectly until you want to logout. You cannot.
Mafia will refuse the "logout" CLI command. It will also refuse to logout if you select "File -> Logout of KoL". If you try to exit KoLmafia in any other way it will work, but it will not execute your logoutScript so something is obviously not working on exit.
The interesting thing is that the login command can be used to switch characters if you are already logged in. When you do that it will allow you to logout any way you like, just as normal. The bug only occurs if you use the login command before logging in as a character.
Code:
login Bale
Your character name can vary, but it must be a character whose password has been remembered by KoLmafia.
Now, start KoLmafia, but do not login. Then select error.txt from the scripts menu. As you would expect it will login your character without any difficulty. Yay! As far as I have discovered, everything will work perfectly until you want to logout. You cannot.
Mafia will refuse the "logout" CLI command. It will also refuse to logout if you select "File -> Logout of KoL". If you try to exit KoLmafia in any other way it will work, but it will not execute your logoutScript so something is obviously not working on exit.
The interesting thing is that the login command can be used to switch characters if you are already logged in. When you do that it will allow you to logout any way you like, just as normal. The bug only occurs if you use the login command before logging in as a character.
Last edited: