Some basic KoLmafia troubleshooting tips for people that have or have had problems with it.
- You have to have the Java Runtime Environment installed. Get it here:
http://java.sun.com/javase/downloads/?intcmp=1281- Windows has to be able to run the .jar file version if that's what you're using. Some programs like WinRar can hijack the .jar file extension and open it instead of running it using JRE (Java Runtime Environment). If that happens or Windows isn't running it you need to edit the file types and set Java to run .jar files. Check here:
http://windowstipoftheday.blogspot.com/2005/10/setting-jar-file-association.html- Newer Java versions auto-update and don't uninstall the old versions. This is messy and causes problems for some people. Uninstall all the old Java versions from add/remove programs in the control panel.
- Sometimes uninstalling Java/Netbeans/JDK and re-installing is needed to fix Java problems.
- Sometimes you need to manually delete the Java cache folders. Sample location on Windows XP: C:\Documents and Settings\Main\Application Data\Sun\Java (substitute your account name/login for Main). For Vista/Windows 7 - C:\Users\(account name)\AppData\LocalLow\Sun. If you wipe out all the folders in \Java you might have to re-install Java so it's a good idea to uninstall Java first, then delete them, then re-install Java.
- Spyware/Ad-ware/Viruses can make everything run like crap. If you don't keep your computer clean don't expect it to run anything right.
http://www.sevenlances.net/forum/index.php?topic=694.0- Typing "clear" in the gCLI window will clear the CLI log which can speed things up. Clearing the results from the Tools menu sometimes helps also. Closing the relay browser and opening it again can sometimes help if things seem unusually slow.
- Typing "gc" in the gCLI window will force a Java garbage collection routine to run. This is an undocumented command that can make things run better if mafia is getting bogged down.
- Sometimes KoLmafia is buggy. Try a newer/older version.
- Sometimes KoL is just slow. Can't help you here. Try playing in the early morning hours (USA time) when fewer people are on. After rollover is the worst time to play if you don't like lag.
- If KoLmafia sucks up too much CPU it's usually because something is wrong. You can try some of the above tips or set its process priority lower in the Windows Task Manager (CTRL-ALT-DEL). Don't set it too low or it won't run right, but lowering it when it isn't behaving nicely can prevent it from bringing the rest of your computer to a halt.
KoLmafia probably isn't heavily optimized (yet) so it may not run well on slower computers or computers with less RAM.
Edit: New Java versions now remove the previous version when updating. The early 6 versions and older did not.