I noticed that too. :( I fixed my copy of BatBrain by replacing every instance of "rng" found in lines 427-430 with "rang" instead. It's hacky, but it seems to work.
We have several versions of Java 21 available nowadays. Which one are you running?
FWIW, I'm running the Microsoft build of Java 21 on Windows 11 Pro. I have no problems with running mafia:
PowerShell 7.4.6
PS C:\Scripts> java --version
openjdk 21.0.4 2024-07-16 LTS
OpenJDK Runtime Environment...
That'll work. For maximum lazin... convenience, you can also use a CMD file. Just create another text file in the same folder. Paste the following contents into it:
@echo off
%windir%\System32\WindowsPowerShell\v1.0\powershell.exe -ExecutionPolicy Bypass -Command "& '%~dpn0.ps1'"
Then rename the...
I like those ideas, but I'm not sure that you're posting them in the right place. KoLmafia is an unofficial Java-based client for the Kingdom of Loathing (KoL), and these are the KoLmafia forums. The KoL staff might or might not visit these forums. I honestly don't know. 🤷♂️
You might get more...
So that bit of inefficiency always bugged me, but I wasn't sufficiently motivated to fix it. Your public shaming (;)) gave me that missing motivation. The code in the original post now checks to see if you already have the current version and won't waste time downloading a duplicate.
Thanks for...
Ooh, nice improvement! Thanks for the suggestion.
Thanks also for mentioning the PowerShell execution policy. I tend to forget them because I set mine long ago, but they are certainly a thing. I'll add a note to the original post if I can.
Like fronobulax mentioned, the move to GitHub seems to have broken this auto-updater. I also used it, and I was sad when it stopped working. So I wrote a PowerShell script that serves the same purpose: https://kolmafia.us/threads/powershell-to-auto-update-kolmafia.29816/
I know, it isn't an...
My experience is the same as xKiv. When I break the prism and "pull all," KoLmafia always takes longer than expected. It's been that way for at least a year now. I don't think it's new behavior.
For my part, I always logout of KoLmafia and logon again after I break the prism and grab all my...
As you may know, the recent move to deprecate Jenkins has broken some auto-updaters. I can't find any Windows auto-updaters that work on my (Windows 11) system. I'm a systems engineer and PowerShell fanboy in "real life," so I decided to explore the possibilities of a PowerShell script. I found...
I have to say that I like this solution, and I am very grateful to the KoLMafia dev team for implementing it. The first best outcome would be for TPTB to fix it server-side. Until then, the Mafia fix is an excellent workaround. A hearty thank you to everyone involved!