Search results

  1. H

    Support for Java 21 (new LTS)?

    Bumping this thread -- as far as I'm aware, we are now able to build with Java 21. Spotless is now on 6.23.3, the task errors are now resolved, we're on Gradle 8.8. Most warnings are gone (there's still a warning for lib/darrylbu/util/MenuScroller.java since Object.finalize is marked for...
  2. H

    Bug IO Exception almost daily on manual adventuring.

    The command I specifically listed should open a log, make a single (small) request, and then turn off the log, so you can run it both at the start of your session and right after encountering the problem.
  3. H

    r28087 - What's Changed [*]Create JSON API for relay scripts. by ]@phulin] in

    I was not going to mention the China angle, but since you mention it: I don't think there's any verification needed to state that Alibaba is a Chinese-owned company headquartered in China, and the vast majority of their employees are also based in China. I am not saying by any means that the...
  4. H

    r28087 - What's Changed [*]Create JSON API for relay scripts. by ]@phulin] in

    fastjson2 has me worried because it's hundreds of thousands of lines of Java across thousands of files over thousands of commits, and it has a bunch of features we don't need (read: broad attack surface). Based on the "projects using us" list, I also don't see much adoption by other large...
  5. H

    r28087 - What's Changed [*]Create JSON API for relay scripts. by ]@phulin] in

    @fronobulax raised some points in the pull request that I feel warrant more discussion / visibility. @ikzann @Ryo_Sangnoir The obvious place where faster JSON might be relevant is in parsing api.php, but it's also not clear to me that JSON handling is a bottleneck at this time. It's also not...
  6. H

    Bug IO Exception almost daily on manual adventuring.

    Hm. For the next time this happens again, mind grabbing a debug log at the start of your session, then again right after it occurs? Specifically, debug on; text game.php; debug off should be enough to grab some response headers, which'll tell us which version of nginx is issuing the GOAWAY...
  7. H

    Bug IO Exception almost daily on manual adventuring.

    KoL is apparently using both nginx/1.18.0 and nginx/1.8.1, per the returned headers (the AWSALB cookie pins you to a particular backend). Perhaps they've recently started a migration, which would explain why this started happening again. (HTTP/2 support in nginx was added in 1.9.5.)...
  8. H

    Bug IO Exception almost daily on manual adventuring.

    That said, r26388 implemented the nominal "reset the HttpClient every X requests" (which was later refined in r27798). I would be a little surprised if we're running into the headers-too-big problem. I'd be more inclined to believe that something isn't actually using the ResettingHttpClient.
  9. H

    Bug IO Exception almost daily on manual adventuring.

    If that were the case, then ~every request would result in a GOAWAY. We do not have our own hand-rolled HTTP codec, as we're relying on Java's standard library implementation. As such, I'm very skeptical of the notion that Mafia is doing something that's standards-noncompliant. We have seen...
  10. H

    Way to recover old stored passwords?

    As xKiv points out, you're probably best off updating Mafia to a more recent build. That said... The passwords are stored in settings/GLOBAL_prefs.txt as saveState.<your username> as a number, after having gone through a couple of encoding steps. Let's suppose you find...
  11. H

    JSON

    It looks like the URL has moved to https://museum.loathers.net/api/player/2115655?routes/player.$id._index (as @Ryo_Sangnoir pointed out in May) let kolmafia = require("kolmafia") let results = {}; for (let playerId of [1, 354981]) { let url =...
  12. H

    Bug You are too drunk to continue

    Hm. I wonder if this is related to being locked in a chain of choice adventures at the time we're trying to refresh our list of skills.
  13. H

    Bug You are too drunk to continue

    I don't suppose you can share any maximization strings or details re: exactly what got equipped when? If you can find a sequence of actions (beyond "run a specific script that adventures and otherwise depends a lot on current player state") that reproduces the bad state consistently from a...
  14. H

    Bug Meat amount is not detected

    Anyways, let us know if you still see this problem with r28033 (or later). I can't test readily because I don't think I have access to an account with > 2 billion meat on hand.
  15. H

    Bug Meat amount is not detected

    CharSheetRequest still uses StringUtilities.parseInt in this and a few related contexts, which results in clobbering the value we parse from api.php / charpane.php. edit: https://github.com/kolmafia/kolmafia/pull/2416
  16. H

    Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.

    I see the same error on r28030 (i.e. before my dependency bump). It seems nominally benign, although I believe it's tied to the greclipse() line in the spotless stanza.
  17. H

    Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.

    I saw that too. It's probably related to at least one of the dependencies I bumped. When I tried upgrading spotless, that yielded some actual diffs, so I held off for the time being. I'll look into it some more.
  18. H

    Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.

    > NOTE: This plugin changed the core maintainer and has new coordinates:https://plugins.gradle.org/plugin/com.gradleup.shadow https://plugins.gradle.org/plugin/com.github.johnrengelman.shadow I'll send a PR in a bit.
  19. H

    Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.

    Looks like the shadow plugin. https://github.com/GradleUp/shadow/issues/924
Back
Top