KoLMafia seems to have stopped writing to files

Jontheapple

New member
It seems that my KoLMafia suddenly stopped writing to my _moods.txt file, despite reading it fine. I'm pretty sure it's also not writing to other files. It seems like this issue came up about 3 days ago. I have not updated my KoLMafia or any preferences that might change something. The only thing I did was move my executable jar file (and all of the other folders that the jar file generates. I think.)

Not sure if this is related, but I also have some pictures that don't seem to be getting displayed properly. I've attached a screenshot of what my eleven-foot pole looks like in my inventory.

I've also tried downloading the latest executable jar from the github, and running it in a fresh directory. I do not seem to get the "doesn't write to file" issue there, but I do get the "pictures don't display properly" issue.

Any help would be appreciated!
 

Attachments

  • EFP.JPG
    EFP.JPG
    9.4 KB · Views: 4

Magus_Prime

Active member
The first thing that comes to mind, from your description is that KoLmafia, or the user under which it is running, lacks permission from the file-system to write to the first "new" location in which KoLmafia was installed.
 

Jontheapple

New member
How might I give it permission? I am the sole user of my computer, so I don't imagine I wouldn't have write permissions to...anything...
 

Magus_Prime

Active member
It depends on the operating system and the where KoLmafia is installed. Regardless of how many users there may be on the computer the operating system may protect certain locations. I may be able to help if it's a Windows OS.
  • What's the OS?
  • Where are you trying to put KoLmafia?
 

Jontheapple

New member
I am on windows 10. I am trying to put kolmafia in a folder on my desktop.

I've figured out a few things. If I move the files that kolmafia generates (like the moods.txt file), then kolmafia stops writing to it (although it's still able to read it). If I manually edit the files that kolmafia generates, kolmafia stops writing to it. Actually...I think if I do literally anything to the file(s), then kolmafia stops writing to it. I have to let kolmafia do all of the editing.
 

Jontheapple

New member
I actually created a new directory still on my desktop and ran it there, and it works fine. All files are being written to. And then I'll think "oh okay, i guess it's working now", so i'll copy-paste my preferences into the new directory (I tried copying the files directly, as well as copying the contents of the old file into the new file), and then mafia stops writing to the files again.
 

Jontheapple

New member
Basically, I've been able to work around the issue by just...running kolmafia in a fresh directory and setting all my preferences again.

The unsolved (and un-worked-around) issue, though, is the images. For some reason, new images are not being downloaded.
 

Jontheapple

New member
Actually yeah, that seems to have fixed it (both the file-writing issue and the missing images issue). Interesting that it works on the desktop totally fine, up until you manually edit the files in some way.

I feel bamboozled...having done so much testing, looking for the root cause. I totally thought it was a file permissions issue (which it probably is, just not in the way I thought it was).

But I'm glad that we (you) fixed it. Thanks a lot!
 
Top