NCSorcerer
New member
Thanks very much! This is quite useful.
Yeah I know about this, I just haven't had any time to add the catch for the exception.It's a minor thing, but it looks like if it runs when KoLMafia happens to be already running (I was away from the computer and forgot about the scheduled task), then it crashes with a fatal exception. It's not a huge deal since I can just run it manually again after closing out Mafia, but I thought I'd bring it to your attention anyway. (I mean, obviously you wouldn't be able to delete the JAR while it's running still, but I just mean have it close nicely rather than passing the exception.)
Hmm. I'm executing this, it says "Checking builds.kolmafia for the latest version", then "Kolmafia-7798 is the latest version, then just stops executing. I'd like it to automatically open up the latest version of Mafia every single time after it executes.
Also, it seems to download very slowly. Is there something I need to do?
Edit: Oh, no. It just downloaded v7799 properly and opened it. Perhaps it was just being weird because there'd been an update recently. Well, it's working now.
You need to install .NET to run this program. (see post #7)
if [[ -a index.html ]] ;then
rm index.html
fi
rm KoLmafia-*
wget http://builds.kolmafia.us/
latest=$(grep KoLmafia- index.html | cut -c11-53 )
wget ${latest}
filenm=$(ls | grep KoL)
chmod 700 $filenm
I've been getting the following exception since 4/27.
An error occurred while downloading data from http://builds.kolmafia.us/
Exception Message: Unable to connect to the remote server
I am able to manually download builds fine, though.
just downloaded and tested (compiled myself) works fine for me, are you still getting the error ?
Most people don't make two different things to use the same argument... though I suppose it's possible that "-o" both stops deleting old files and tells it not to open. My guess though is that it actually wants -d: for the "don't delete" choice.Command Line Arguments:
-o: Don't automatically delete old versions after updating
-o: Don't automatically open KoLmafia-latest.jar after updating
-h: Show this help message
Press any key to exit.
That exception is thrown whenever your computer is unable to connect to the mafia server. Currently if that error is encountered the application exits, while what it should do is at least continue on to run mafia (if it exists). I just haven't gotten around to updating it to do so since you can just run any preexisting jar by hand.I've been getting the following exception since 4/27.
An error occurred while downloading data from http://builds.kolmafia.us/
Exception Message: Unable to connect to the remote server
I am able to manually download builds fine, though.