Search results

  1. MCroft

    Feature RFC: Pre-Rollover Script Concept

    I've thought about `interruptScript` as well. It doesn't (immediately) let me automate, but it would keep scripters from needing to invent their own. And it might give me the infrastructure to make the automated change. Let me take a look!
  2. MCroft

    Feature RFC: Pre-Rollover Script Concept

    I am thinking of a feature that is is being worked on for Autoscend that might make a useful platform feature. The idea is that a specified time before rollover, stop whatever we're doing and execute a Day-Ending Script. I'm thinking it would need to 1: stop any running script 2: clear the...
  3. MCroft

    Ash Master Function List

    The page you linked is the source that registers all the library functions. It is compiled into the executable and is how ash knows what a function is. Looking at in in a particular blob is going to show you the version of that file as of Veracity's fix to get_location(); If you want whatever...
  4. MCroft

    Ash Master Function List

    Excellent work finishing the wiki update, and thanks! Did you script it? Is is a script we could put in the talk page to replace the 13 year old one?
  5. MCroft

    Ash Master Function List

    So it sorta does. It does this by showing you all the acceptable variants of a function. > ashref adv1 boolean adv1( location, int, string ) boolean adv1( location, int ) boolean adv1( location ) You can send adv1 with either a location, a location and an int, or a location, an int, and a...
  6. MCroft

    Bug - Fixed nowToInt() vs. now_to_int()

    I asked @phreddrickk to mention it in the forum even if he didn't think this was a bug so that others might find it in a search. In ASH, that's returning 9223372036854775807 or 2^63-1. While I cannot read the mind of the long-ago developer of it, it is a reasonable value, because using MAXINT...
  7. MCroft

    TheSea.ash - Automated Underwater Quests

    No worries. I'm using this as an opportunity to fill out my own and to work on scripting It looks like it stopped for me three times: Once when it wasn't sure I had Mom Seamonkey. Once to manually get the the seahorse. I think it was my fault for dying a lot. Script could be more aware of...
  8. MCroft

    TheSea.ash - Automated Underwater Quests

    No Aftercore today. reminder: // How do you want to complete the Outfit quest? // 0 - Skip. 1 - Violence. 2 - Hatred. 3 - Loathing. Let's look. Line 635: if (TS_OUTFIT_QUEST > 2). This is after the seahorse. You're going for Hatred, 2, so it's not greater than 2. Line 696-8...
  9. MCroft

    TheSea.ash - Automated Underwater Quests

    Well, I don't know the script, but I would like to get the pieces, so I'm happy to look at it with you. Need to finish my current run and get into aftercore.
  10. MCroft

    Feature - Implemented Allow set_location($location[none]) to set your location to none

    Hmm. I would be concerned that that change might introduce churn to existing scripts that, sometime in the last decade, had used the existing behavior in some way and would now break. It might be ok to create a new command like clear_location().
  11. MCroft

    Feature - Implemented Allow set_location($location[none]) to set your location to none

    It looks like it's been that way since at least 2013: public static void setNextAdventure(final KoLAdventure adventure) { if (adventure == null) { return; }
  12. MCroft

    Feature - Rejected Stop suiciding on Guy Made of Bees?

    Well, this is a script for a feature that hasn't changed much in 10-15 years. It's pretty static and since you can call both BALLS steps and Consult scripts from a CCS, it doesn't really seem like a candidate for improvement. Anything you might suggest, someone would likely say "meh. Use a...
  13. MCroft

    Bug Null Pointer Exception if maximizing while being fought in pvp or receiving a kmail

    hmm. Did you have items added or removed from your inventory while maximizing?
  14. MCroft

    Breakfast suddenly stopped working.

    glad it's working!
  15. MCroft

    Breakfast suddenly stopped working.

    So, I can't find it in in that debug log, but that's a huge log. There are definitely team members who are much better with log parsing than I am. I see ClanRumpusRequest, which is the first step of Breakfast for me... Here's my recommendation for how to debug this. Test with the latest build...
  16. MCroft

    Feature Builders: GitHub RCA key rotation may cause failures updating your GitHub project(s)

    Not our bug, but useful information. If there's a better category for this, we can move this... https://github.blog/2023-03-23-we-updated-our-rsa-ssh-host-key/ If you see the error below (in your terminal or IDE of choice), the blog post above recommends the following two commands to fix it...
  17. MCroft

    JSON

    It would be possible to write a JSON_to_map function for ASH, but it's not a perfect fit. 1: JSON doesn't require each object to have the same format, so parsing needs to be careful. 2: JSON doesn't enforce any structure on the keys, and map will overwrite a key-value pair if the key is a...
  18. MCroft

    JSON

    I started writing something up and googled for a piece I needed and found this fine guide: https://codingbeautydev.com/blog/javascript-convert-json-to-map/ here's the meat of it: const json = '{"user1":"John","user2":"Kate","user3":"Peter"}'; const map = new...
  19. MCroft

    Bug - Fixed nowToInt() vs. now_to_int()

    well, I went to merge it, it required an update and invalidated the approval. Also, it seems to be stuck waiting for tests that it says aren't being run. Can I get some help getting this over the finish line?
  20. MCroft

    Bug - Fixed nowToInt() vs. now_to_int()

    Wiki updated: https://wiki.kolmafia.us/index.php/Data_Types
Back
Top