Thank you again. I do not multi-task well and am focused on writing a document for real life and a KoLmafia test but this is next on the list.
I need to look at your failure to launch report.
*snicker*Yep, that's exactly the problem.
![]()
multitool/src/us/kolmafia/multitool/Multitool.java at main · kolmafia/multitool
A utility for managing portions of the KoLmafia local environment, downloading new versions and launching KoLmafia. - kolmafia/multitoolgithub.com
This is essentially backsliding from attempting to solve https://kolmafia.us/threads/multito...d-feature-discussion.30272/page-2#post-176348 -- you really should look into setting up tests.
Observation before you go too far down that path: Record didn't come until what, Java 15? (okay, looks like first preview was Java 14 and it was finalized in 16.)a class that I think could be a Record
You're correct that the right answer is generally "before refactoring" to prevent further backslidingSo do put the effort into tests before or after code changes to resolve those? The right answer is before but note "fundamentally lazy" ;-)
Observation before you go too far down that path: Record didn't come until what, Java 15? (okay, looks like first preview was Java 14 and it was finalized in 16.)
You're correct that the right answer is generally "before refactoring" to prevent further backsliding
Regarding the reported failure mode, I suspect the simplest fix is to use Runtime.exec(String[]) so Java doesn't need to tokenize your string for you.
Just FYI it isn't logging anything either and with the run parameter and failure it never runs mafia
I am surprised by the notion that multitool might download a new jar, and then not launch it. Would it launch the old jar? Would it do nothing?As it stands if the only KoLmafia jar files is "misnamed" then I would expect it to download latest mafia and multitool jars but launch nothing. But if you rerun multitool I would expect it to launch the mafia jar that was just downloaded because it would be named properly.
Please don't do this -- you will get many angry comments from people complaining that you nuked their Downloads folder or worse.just delete delete everything in the directory that does not fit the pattern
There are pros and cons. I personally opt to clobber my logfile because I don't really care about execution history across days, and I like not having to worry about cleaning up the log file periodically.As currently implemented the log file name is based on date and the file is overwritten, not appended to, so you probably need to look at the file to see if anything is going on and I probably need to timestamp entries and perhaps Append.