Picture links?

aphroguy

New member
I don't really know enough about the making of KoLmafia to know why it would be doing this, but for some reason, when I open up a mini-browser, the grand majority of the pictures do not work. I don't do it too often, so it's not that big of a deal, but if I'm trying to free the King, or check out the Mr. Store, or something to that effect, where it would be easier to see the in-game graphics, they're not there. All I get are broken picture links. As far as I can remember, it's done it ever since KoLmafia got up and running on my machine.

It displays most of the pics from the main page, all the ones from the town, but beyond that, nothing. And if I click anything else on the main page, it's an entire area of broken picture links. Any ideas?
 
I once had this problem with logging in via my web browser. I finally found the cause. I had accidentally right clicked an image and selected block images from this domain, an option built into my firewall application. Though I doubt this is your problem, it may be.

Are you using an up-to date version of kolmafia?
 

aphroguy

New member
I don't think it's a firewall issue, as Kubuntu (as with most linux distros) has a firewall config file, so there's no 'program' running that I've modified at all. I'll check into that and see if maybe it's just automatically blocking the mini-browser picture files, but KoLmafia pulls those pics straight from the KOL servers, no?

I did find a couple of folders that contain map-style pictures in them, with the different locations and things, and it seemed to be only the ones that appear in the mini-browser. So could this mean that KoLmafia pulls those <img> tags from a directory on my system, NOT from the actual servers?

If this is the case, how could I go about getting the entire list, so I'm not looking at broken picture links and having to guess and check whenever I go somewhere that's not Seaside Town or the Main page? If there's a repository of pics that I can download, or if someone would be so kind as to temporarily upload them here so that I may place them in the appropriate directory, I'd be much obliged. Not sure what the size limit would be for adding attachments to a post on this forum, so I'd also be looking for some approval from Alexander Daychilde if we were to go about it from that route.

Again, thanks a lot guys!
 
I don't have all of the pictures, and never imagined trying to get them because I am thinking there are thousands of them.
Kolmafia pulls the images from the kol image server once kolmafia has obtained an image from the server, kolmafia saves the image to the images folder, or a subfolder of that folder. I believe kolmafia then loads the image from there to display in the mini browser. If the file is already in the images folder before kolmafia tries to download it, I believe kolmafia just uses the image in that directory.

You might try moving the images folder to somewhere else and see if kolmafia starts getting the images again. Kolmafia should re-create the folder. If it fixes the problem you are good to go. If this only makes the problem worse, move the folder back, you might have a Java problem. If no change it may also be a java problem.
 

holatuwol

Developer
Sounds like Java doesn't have write permissions to the images folder it created, which can happen if you run KoLmafia as root the first time around and then run things as a non-root user later.  I believe if you type in the following while running under the user you usually run KoLmafia with, it will fix your problems:

chown -R images
chmod -R a+rwx images
 
I was thinking the same thing.
Holatuwol's way should equal the right way.
My way is the way that a Windows user on an unfamiliar platform would do it.
 

aphroguy

New member
Okay, so a month and a half later, I finally figured it out, after trying everything else. (In fact, I think I've even tried the method that worked this time, at an earlier time, and it didn't work then.....) But yeah, a little background on my setup first:

As you know, I run Kubuntu Linux, so I use the .jar version of KoLmafia. When I first installed it, I made a new directory in /home/me/KoLmafia and threw the .jar in there. But for some reason, KoLmafia decided it didn't want to put all of its auto-created directories in /home/me/KoLmafia and decided to put them into /home/me instead. So I've had directories like /home/me/scripts; /home/me/settings; /home/me/chats; and of course, /home/me/images.

And somewhere along the line, it decided against those directories and put more of the same in my /home/me/KoLmafia directory. But it still kept throwing any new items into the /home/me directories, despite the fact that it pulls its information from the /home/me/KoLmafia ones.

All I had to do was copy the contents of /home/me/images to /home/me/KoLmafia/images and I was in business. No more broken picture links. However, if I navigate to any new places in the mini-browser, it still downloads the pics to /home/me/images and I have to go through and copy them back into /home/me/KoLmafia/images. Not a big deal, but if anyone knows of a workaround or how to start fresh, I'm all ears!
 
Top