Search results

  1. H

    autoscend - a sl_ascend fork/continuation

    FYI -- you'll have an easier time getting your change(s) accepted if you break up your PR into several smaller PRs so it's not as daunting to review all at once. (One PR per logical fix or perhaps per challenge path is a good rule of thumb. Bundling too many changes together makes it hard to...
  2. H

    Issues running java/kolmafia

    If you're using `java` from the command line, you'll need to specify `java -jar Kolmafia-28594.jar`.
  3. H

    I need some help troubleshooting my installation

    Hopefully you then reinstalled Java 21, since we require that at a minimum. fronobulax's suggestion to use multitool may also help.
  4. H

    Bug SMOOCH appearance rates sometimes starts off wrong

    appearance_rates has a two-parameter version. if you want stateful results, specify `true` as the second argument. This forces Mafia to call AreaCombatData.recalculate(), which in turn calls the code in adjustConditionalWeighting in the linked PR. Once recalculate() is called (one way or...
  5. H

    Bug - Fixed hermit() command cannot grab jabanero peppers

    https://github.com/kolmafia/kolmafia/blob/main/src/net/sourceforge/kolmafia/textui/command/HermitCommand.java#L61 Could probably be augmented to use the same fuzzy find that we use elsewhere. I may make that change over the weekend if nobody beats me to it.
  6. H

    trivialskills: Automate casting the "trivial" skills

    Ah, see, this is where I'd just write: // You could write 1000, 2000, 3000, 4000, 5000, 6000 if you wanted, but that's less obvious to the reader. foreach s in $skills[ Seal Clubbing Frenzy, Patience of the Tortoise, Manicotti Meditation, Sauce Contemplation, Disco Aerobics, Moxie of...
  7. H

    paid script request

    (obligatory instructions: install that as, say, scripts/buy_from_mall_stores.ash, then run it by invoking `call buy_from_mall_stores` in the graphical CLI.)
  8. H

    paid script request

    Actually, I looked into this. We only ban mall searches, not queries of individual mall stores. Individual mall stores are at mallstore.php. // Player ID -> item -> quantity int[int, item] items_to_buy { 121572: { $item[roll in the hay]: 2, $item[slap and tickle]: 1, }, 354981...
  9. H

    Feature Commit (or Close) PR #1889

    I'm curious if anyone has any experience with https://checkerframework.org/manual/#lock-checker (gradle plugin) or https://github.com/google/error-prone (specifically GuardedBy)? I could see enforcement of lock acquisition order being possible with @GuardedBy (namely: by stating that each lock...
  10. H

    Feature Commit (or Close) PR #1889

    So, I ("obviously") can't self-approve it, since I originated the PR. I have two remaining thoughts / concerns, but otherwise am fine with merging the commit and seeing what happens. 1. What are the performance implications of holding these locks on Preferences operations that can be invoked...
  11. H

    Bug - Confirmed Maximizer didn't equip a weapon

    Put simply, yes. The best way to help us figure out this problem is to help us figure out how to reproduce the problem consistently. In particular, if you have some setup that consistently triggers the bug across multiple characters with differing sets of skills, available items, ascension...
  12. H

    Feature Namespaces - "packages" - for ASH

    A possibly terrible idea I had when starting to read this post: what if we generalized this such that if you import a script with a conflicting function func (or, generally, any symbol), it's only imported as func@script? And otherwise (for backwards compatibility purposes), all other functions...
  13. H

    Bug Certain NPC purchasable items cannot be "acquire"d without purchasable currency

    Perhaps we should be checking InventoryManager.getAccessibleCount(TOXIC_GLOBULE) == 0, since in order to purchase anything from that coinmaster, you need toxic globules, which trivially satisfies the accessibility requirement.
  14. 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( () -> {...
  15. 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?
  16. 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".
  17. 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.
  18. 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...
  19. 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...
Back
Top