Search results

  1. H

    Feature Commit (or Close) PR #1889

    There is some bifurcation of logic between whether you're running this in headless mode or not. Preferences.java#L183-198: if (SwinglessUIUtils.isSwingAvailable()) { try { SwingUtilities.invokeLater( () -> {...
  2. H

    Multitool - An implementation and feature discussion.

    As in, the vast majority of our users who just download the jar and double-click on it to launch Mafia?
  3. H

    Bug - Fixed Scripts fail to cast skills granted by equipment after r28434

    I omitted a few steps in my reasoning. I was wondering if there were any situations where we would want to remove a skill for combat purposes (where we obviously cannot just change equipment) but keep it for noncombat purposes. It seems the answer, at least for now, is "no".
  4. H

    Multitool - An implementation and feature discussion.

    Yeah, the second error is because Java is in a directory with a space in the name (which primarily affects Windows users, who usually have Java under C:\Program Files\). Known issue; we'll provide an update when that's fixed.
  5. H

    Multitool - An implementation and feature discussion.

    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? IMO the "expected" behavior from what I am viewing as a launcher + auto-updater is the following steps: Update Mafia if necessary. Clean up old...
  6. H

    Multitool - An implementation and feature discussion.

    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...
  7. H

    Running in Docker on a headless server?

    In my script, I typically have `relay nobrowser` as one of the lines so that it spawns up the relay server (without explicitly launching the relay browser), and if it gets stuck I can just open 127.0.0.1:60080/game.php to click on some buttons or execute some /cli commands in chat (which then...
  8. H

    Bug Numberology with max stats

    Can confirm -- I see the charpane now says level 255 for a character with max stats. Which, I don't think anyone really cares about that distinction, although it makes certain scaling (e.g. MMJ) marginally worse. I'm happy to have consistency, either way.
  9. H

    Running in Docker on a headless server?

    For a number of years, I fully automated Mafia for several characters in an AWS VM, so yes, this is absolutely possible without any modifications. The easiest way to do this is to run something like `java -jar KoLmafia-*.jar -Djava.awt.headless=true --CLI some_script.txt` where some_script.txt...
  10. H

    Multitool - An implementation and feature discussion.

    Yep, that's exactly the problem. https://github.com/kolmafia/multitool/blob/main/src/us/kolmafia/multitool/Multitool.java#L186 This is essentially backsliding from attempting to solve https://kolmafia.us/threads/multitool-an-implementation-and-feature-discussion.30272/page-2#post-176348 -- you...
  11. H

    Multitool - An implementation and feature discussion.

    `C:/Program` sounds like we're trying to run something in C:/Program Files/ and running into a problem because of the space in the directory name.
  12. H

    Bug - Fixed Scripts fail to cast skills granted by equipment after r28434

    Hm. It seems that to date, there are no skills granted by equipment that can be used both in-combat and out-of-combat. In fact, the list of combat skills with other purposes is quite small, and hasn't been expanded in over ten years: $ grep -E 'combat,|,combat' data/classskills.txt 3009...
  13. H

    Multitool - An implementation and feature discussion.

    Short-term fix, try removing (or otherwise relocating) your existing Mafia jars. Multitool tries to find all KoLmafia-*.jar and derive the corresponding revisions; this interacts poorly with other autodownloaders such as KoLMafiaUpdate.exe which copy the latest jar to a file called...
  14. H

    Feature - Implemented Prefs file backup/restore Draft PR

    I have not given adequate thought to that PR in over a year. I saw Rinn's fix, and I think it's a very plausible explanation. I would be happier if we had better tooling to ensure that all reads / writes were properly synchronized.
  15. H

    Bug Numberology with max stats

    Thanks! I suppose there's still a secondary bug where we flip back and forth between two values due to KoL reporting an incorrect level in api.php. We're also still not detecting level from charpane.php for the titles that embed %L and don't actually mention the word "level", although I am not...
  16. H

    Bug Numberology with max stats

    Of course, the character I'm testing with doesn't have charpane.php with the default UI detect the level (custom title or not), since we apparently only handle the cases of compact charpane and regular charpane with a custom title that doesn't contain %L (where the level renders after the title...
  17. H

    Bug Numberology with max stats

    Ah, yes, r28372 would have done it -- logged into a char with max stats, and api.php shows level 255. Meanwhile r28391 is fighting with it every time charpane.php is loaded, which detects the level as 256, but the next load of api.php resets the level back to 255 again.
  18. H

    Bug Numberology with max stats

    No, the max level has been 256 for some time. I suspect that the new logic re: level parsing in r28391 broke this. edit: or possibly r28372.
  19. H

    Feature - Implemented Prefs file backup/restore Draft PR

    Ha. Yes, there are lots of advantages, like for instance durability (and the rest of the ACID properties). The main "disadvantage" is that it is less human-editable. Perhaps the biggest thing stopping us from adopting this is migration cost. I had previously attempted to start a discussion on...
  20. H

    Multitool - An implementation and feature discussion.

    Both can be true! Note that the code returned early if you were running a daily build (`KoLConstants.VERSION_NAME.startsWith( "KoLmafia r" )`). https://github.com/kolmafia/kolmafia/blob/a0b5d8ad4d0657a4f8e151152b50fbdf31060bee/src/net/sourceforge/kolmafia/KoLmafia.java#L2152 Incidentally, the...
Back
Top