Search results

  1. ikzann

    Feature Support for scripting in JavaScript

    I was just using Guide as an analogy: it is written across multiple files and compiled into one file for distribution, as is the TourGuide fork. My current draft of the patch does not implement require or any other module system for JS, and I am arguing that such an import system is a low...
  2. ikzann

    Feature Support for scripting in JavaScript

    It does not support any module system right now, and I don't think that is a high priority given that folks could bundle scripts using an off-the-shelf bundler (maybe even Babel!) and distribute the bundle. As a comparison, that is how Guide is distributed in the ASH world.
  3. ikzann

    Feature Support for scripting in JavaScript

    Thanks, frono, for those questions. JS only gives access to local files through the File interface, which is not initialized as part of initSafeStandardObjects. Similarly, fetch and XMLHttpRequest are not initialized. My intent is that the only way to access the outside world will be via...
  4. ikzann

    Feature Support for scripting in JavaScript

    I have been playing around with support for scripting in other languages. I have a preliminary version of JavaScript support working, based on Mozilla's Rhino project. If this ends up getting merged, I think this will enable some pretty cool things - like using modern web frameworks to build...
  5. ikzann

    Cargo Shorts GUI

    First crack at a relay script, so hopefully this works for folks. svn checkout https://github.com/phulin/shorts-ui/branches/master/build The UI itself is built with Preact, which is not something I've seen before in a relay script. Feel free to steal the skeleton if you want. It makes the...
  6. ikzann

    RunLogSummary

    Replacing the three substring calls with the following strip function fixed the issue: string strip(string input) { matcher start = create_matcher("^\\s+", input); input = start.replace_all(""); matcher end = create_matcher("\\s+$", input); return end.replace_all(""); }
  7. ikzann

    RunLogSummary

    Yep. This is on Mac so I suspect it's a line ending issue of some form. https://www.dropbox.com/s/yezywoh5gkwqk5b/worthawholebean-raw_0123.txt?dl=0 https://www.dropbox.com/s/8vfloog9hrkmjeu/worthawholebean-run_0123.txt?dl=0
  8. ikzann

    RunLogSummary

    For me, RunLogSum seems to cut off the last character of most of the fields it records (so adventures are "The Haunted Pantr"). I assume this is because of the code that tries to cut off the newlines. Maybe you could replace it with a trim()/split() kind of function? Happy to post a patch if...
  9. ikzann

    Bug - Fixed Sidebar resizing and showing 'no familiar' every few seconds in Ed the Undying run

    Thanks, Veracity. I appreciate Mafia as always.
  10. ikzann

    Bug - Fixed Sidebar resizing and showing 'no familiar' every few seconds in Ed the Undying run

    I'm still getting the UI flashing behavior in 20229 (and the issues Malibu Stacey described in the other thread). Let me know if any info from me would help.
  11. ikzann

    Bug - Fixed Incorrect wishability for several effects.

    Patch attached - let me know if there's a different way I should post this. Relevant log-file lines: 17966:Spiced Up is not wishable, but KoLmafia thought it was 47924:Hare-Brained is not wishable, but KoLmafia thought it was 53289:Big Smile of the Blender is not wishable, but KoLmafia thought...
  12. ikzann

    Bug - Fixed Kramco Magical Sausage daily limit is too low

    I've also experienced this bug, but it appears to be sausage creation, not eating, that is the problem. Somehow it fails to feed the last couple meat pastes to the grinder. I did some digging through my logs but I haven't been able to find an instance of it occurring, but it's happened to me a...
  13. ikzann

    Feature - Implemented Working on a somewhat large change for tracking attributes and quality of effects

    Thanks! I'm doing some stuff in-game right now which is likely to lead me to find other issues like this - should I continue posting them here or is there a better way? I'm happy to submit patches but not sure how.
  14. ikzann

    Feature - Implemented Working on a somewhat large change for tracking attributes and quality of effects

    I have a couple places where Mafia records nohookah incorrectly - let me know if I should post this somewhere else instead. 53289:Big Smile of the Blender is not wishable, but KoLmafia thought it was 3864:Bat-Adjacent Form is not wishable, but KoLmafia thought it was 30159:That's Just...
Back
Top