Search:

Type: Posts; User: Saklad5

Page 1 of 3 1 2 3

Search: Search took 0.00 seconds.

  1. Could you replace “print_html” with...

    Could you replace “print_html” with “vprint_html”? I don’t want it to spam text everywhere all of the time, and it should be a drop-in replacement as zlib is already a dependency.

    I’ll be making...
  2. I’ve established that the “abort” CLI command...

    I’ve established that the “abort” CLI command does not work correctly in headless mode (that is, it only skips the queue of existing commands when entered through the gCLI).

    Thanks to the advice...
  3. Bug “abort” Command Not Working in Headless CLI

    The “abort” CLI command is supposed to skip all queues and immediately stop all action upon being given. This works as expected in the gCLI, but when using KoLmafia from a headless command prompt, it...
  4. Replies
    3
    Views
    47

    What does that number indicate, exactly?

    What does that number indicate, exactly?
  5. Huh. So you cache scripts within a KoLmafia...

    Huh. So you cache scripts within a KoLmafia session, updating them based on the filesystem’s modification times, and have a linker collate imported files from that cache at execution time?...
  6. Maybe I should move this to a feature request. ...

    Maybe I should move this to a feature request.

    I want my program to run specific code if I want to interrupt it. I want to be able to interrupt it in a headless environment, so anything that...
  7. I just thought of an incredibly stupid hack to at...

    I just thought of an incredibly stupid hack to at least stop a script gracefully: have it call another ASH script that is hard-coded to return true. I can later change this other script to return...
  8. That’s the issue: I can’t get CLI input and have...

    That’s the issue: I can’t get CLI input and have it abort in the absence of said input.

    Or do you mean a user-given abort command will cause it to proceed to “finally”?
  9. What would I put in ‘try’ to get this behavior?

    What would I put in ‘try’ to get this behavior?
  10. Calling function upon interruption of ASH script

    Is it possible to have an ASH script catch an “abort” instruction and run a function to clean up, rather than simply stopping immediately?

    Alternatively, is it possible to accept user input...
  11. I always just used the cli_execute() function...

    I always just used the cli_execute() function with semicolons delimiting multiple commands. Is that less efficient than using the brace notation, or functionally equivalent?
  12. Replies
    5
    Views
    426

    I highly recommend prefacing that with ...

    I highly recommend prefacing that with
    batch_open(); and following it with
    batch_close();. That will tell KoLmafia to queue up all the server requests and execute them in bulk. For completely...
  13. Wait, so it doesn’t increment based on completed...

    Wait, so it doesn’t increment based on completed G-Lover ascensions? Is this different from how the Adventurer bobblehead works? I’m a bit worried that I won’t be able to upgrade the Garland...
  14. Replies
    1,867
    Views
    564,678

    I also modified my copy of SmartStasis to only...

    I also modified my copy of SmartStasis to only pickpocket if the monster has unspaded drops. I can post that change if anyone wants me to.

    Until I made the change, it was only pickpocketing when...
  15. Replies
    1,867
    Views
    564,678

    After carefully examining the code of...

    After carefully examining the code of SmartStasis, I have come up with an excellent solution for pickpocketing that does not routinely break automation. It is still a hack, but as far as everything...
  16. Replies
    8
    Views
    479

    Feature Sorry, I didn’t realize that was what you meant....

    Sorry, I didn’t realize that was what you meant. It was unclear.

    So as long as the code is modified to accept file paths in addition to URLs, that will work?
  17. Replies
    8
    Views
    479

    Feature buffbots.txt is where it is stored in the source,...

    buffbots.txt is where it is stored in the source, but once you compile it that is no longer editable. You have to change buffbots.txt then recompile to make the changes take effect. I call that...
  18. Replies
    2
    Views
    342

    Feature - Implemented I was thinking about asking for this myself. I...

    I was thinking about asking for this myself. I second the proposal.
  19. Replies
    8
    Views
    479

    Feature User-Defined Buffbots

    KoLmafia has built-in support for running and using buffbots, but the latter is quite limited. It currently has a hardcoded list of URLs it checks, each of which point to an XML file detailing the...
  20. Feature - Implemented [Patch] Track use of Acquire Rhinestones skill

    9132

    This patch should add tracking for the once-per-day Acquire Rhinestones skill, which is acquired from the Fortune Teller.

    I mimicked the code for tracking Boner Battalion, since the limit...
  21. Replies
    10
    Views
    440

    “tput bel” is a command included with practically...

    “tput bel” is a command included with practically every UNIX-like OS, and it simply makes the terminal produce a bell noise. I actually had to look up what it is from, since I am not familiar with...
  22. Replies
    10
    Views
    440

    I tried that almost immediately, but it seems...

    I tried that almost immediately, but it seems like it operates under the assumption that the URL is (URL pointing to KoLmafia relay local server)/(input). I might have misunderstood the...
  23. Replies
    10
    Views
    440

    Certain scripts take a while to run, and it is...

    Certain scripts take a while to run, and it is inconvenient to have to check it repeatedly to see if everything is done. It’d be even better if it could send HTTP packets or run a user-defined...
  24. Replies
    10
    Views
    440

    I suppose that is possible, but that would be a...

    I suppose that is possible, but that would be a really crude way of doing it. Is there really no other option?
  25. Replies
    37
    Views
    1,411

    Bug - Not A Bug KoLmafia definitely uses more CPU than I would...

    KoLmafia definitely uses more CPU than I would expect it to, but that is just a result of using Java. Java is inefficient, so that’s par for the course unfortunately. I love programming in it, but I...
Results 1 to 25 of 57
Page 1 of 3 1 2 3