Ulti
Member
My setup looks something like:
kolmafia/scripts/
kolmafia/relay/
kolmafia/KoLmafia-16261.jar
kolmafia/KoLmafia-16396.jar
Eventually, I got sick of navigating to my kolmafia directory and finding the latest jar file to open,
so I wrote a .bat file to open the latest jar file.
Store that in in your kolmafia directory. Now opening it will pull-up the windows command prompt for a split second while it opens the latest jar for you.
I decided to get a bit fancy with it. We don't wanna see a command prompt pop up even for a split second, so I created a shortcut on my desktop to the .bat file. Right click the shortcut's properties and choose to run the file minimized. Finally, the .bat default icon is a bit boring. KolMafia has a dedicated icon already with its .exe file, so I decided to use that. You can either store the .exe in your kolmafia directory then set the shortcut icon to the .exe file where you should be able to pick the limeglass image as your icon.
Ooooor, you can do what I did and generate a higher-quality icon by navigating to src/images/limeglass.gif in the mafia source or util/macosx/limeglass.icns in the mafia source then converting one or the other to an .ico which I did with https://iconverticons.com/online/
Name the icon limeglass.ico and store it in your kolmafia directory. Finally set your shortcut icon to use the limeglass.ico file you generated.
For your convenience, here's a zip with the .bat file and the .ico:
kolmafia/scripts/
kolmafia/relay/
kolmafia/KoLmafia-16261.jar
kolmafia/KoLmafia-16396.jar
Eventually, I got sick of navigating to my kolmafia directory and finding the latest jar file to open,
so I wrote a .bat file to open the latest jar file.
Code:
@echo off
setlocal enabledelayedexpansion
set max=0
for %%x in (KoLmafia-*.jar) do (
set "FN=%%~nx"
set "FN=!FN:KoLmafia-=!"
if !FN! GTR !max! set max=!FN!
)
start KoLmafia-%max%.jar
I decided to get a bit fancy with it. We don't wanna see a command prompt pop up even for a split second, so I created a shortcut on my desktop to the .bat file. Right click the shortcut's properties and choose to run the file minimized. Finally, the .bat default icon is a bit boring. KolMafia has a dedicated icon already with its .exe file, so I decided to use that. You can either store the .exe in your kolmafia directory then set the shortcut icon to the .exe file where you should be able to pick the limeglass image as your icon.
Ooooor, you can do what I did and generate a higher-quality icon by navigating to src/images/limeglass.gif in the mafia source or util/macosx/limeglass.icns in the mafia source then converting one or the other to an .ico which I did with https://iconverticons.com/online/
Name the icon limeglass.ico and store it in your kolmafia directory. Finally set your shortcut icon to use the limeglass.ico file you generated.
For your convenience, here's a zip with the .bat file and the .ico:
Attachments
Last edited: