Search results

  1. bleary

    Feature - Implemented "relay" CLI command should not attempt to launch a browser window when headless

    I view "telling firefox to go ahead and open up http://127.0.0.1:60080/game.php" as the side-effect, and "starting the process that responds to http requests on local port 60080" as the main effect. I can always open up firefox and paste in a URL, I don't need mafia to do that for me.
  2. bleary

    Feature - Implemented "relay" CLI command should not attempt to launch a browser window when headless

    I might be an edge case. Sometimes I ssh into my home computer, and launch mafia from the command line with "-Djava.awt.headless=true" and "--CLI". I'll then tunnel a connection to the relay browser through my ssh connection. Then I type "relay" into the CLI. This lets me play at work from...
  3. bleary

    Feature - Implemented "relay" CLI command should not attempt to launch a browser window when headless

    "relay" CLI command should not attempt to launch a browser window when headless I think this patch ought to achieve the intended result. --- RelayLoader.java (revision 10904) +++ RelayLoader.java (working copy) @@ -46,6 +46,8 @@ import net.sourceforge.kolmafia.utilities.PauseObject...
  4. bleary

    Bug - Fixed Rain-doh items are combat reusable

    Index: tradeitems.txt =================================================================== --- tradeitems.txt (revision 10479) +++ tradeitems.txt (working copy) @@ -5563,11 +5563,11 @@ 5554 empty Rain-Doh can none display 0 5555 5556 Rain-Doh red wings accessory...
  5. bleary

    Feature - Implemented Cyrpt Evilness tracking in Relay Browser

    Yeah. Line 29 of the patch is: int nicheEvil = Preferences.getInteger( "cyrptCrannyEvilness" ); and should be int nicheEvil = Preferences.getInteger( "cyrptNicheEvilness" ); Edit: I see this was fixed while I was still whining about it. Thanks!
  6. bleary

    embedding Jython

    Well, if at some point, kolmafia could be taught to run python scripts alongside ash scripts, scripts could be written in python (which would give all of the advantages/disadvantages of a full-fledged scripting language, including its standard libraries), with full access to all of the mafia...
  7. bleary

    embedding Jython

    slyz, that sounds to me like your kolmafia can't find the jython.jar at runtime. kolmafia for windows gets packaged up into an exe by jsmooth, which appears to lack the ability to stuff multiple jars into the executable. I guess you need to figure out how to make jsmooth (in util/windows) set...
  8. bleary

    embedding Jython

    I made a self-contained jython.jar using the jython installer. I made sure that it ended up in the same place as my kolmafia jar, and that my application bundle referenced the jython jar as well as the kolmafia jar. I'm not exactly sure how CLASSPATH works. I also put the jython jar into the...
  9. bleary

    embedding Jython

    It's possible: I'm still not sure how to get it to build automatically, and I'm not sure that the ultimate binary would be distributable. Which is funny, because I'm a lawyer, not a programmer. Can anyone think of a good use for it?
  10. bleary

    Character Info Toolbox

    Oh, also: 1173a1174,1196 > void pickPants() { > string pref = vars["chit.familiar.pants"]; > if (pref != "") { > string [int] pantsmap = split_string(pref, ","); > item pants; > foreach i in pantsmap...
  11. bleary

    Character Info Toolbox

    Here's a patch (that also adds stomping boot support!) 1327c1327 < matcher dropMatcher = create_matcher("<b\>Familiar:</b\> \\((.*?)\\)</font\>", source); --- > matcher dropMatcher = create_matcher("<b\>Familiar:</b\><br\>\\((.*?)\\)</font\>", source); 1333a1334,1336 >...
  12. bleary

    Feature - Implemented Localhost referrer blocked

    Soooo, I was wrong, but I got my way anyway!
  13. bleary

    Feature - Implemented Localhost referrer blocked

    Some time in the future, won't this cause an IPv6 related problem?
  14. bleary

    Bug - Fixed r9981 fails to launch main interface, quitting after refreshing session instead

    Based on my (limited) understanding of the changes in r9979, I think there's a race condition. It looks like the code that makes the main window visible is firing off after whatever causes mafia to quit when no windows are visible.
  15. bleary

    Bug - Fixed r9981 fails to launch main interface, quitting after refreshing session instead

    I was having the problem as well. Backing down to 9978 solved it. java version "1.6.0_26" Java(TM) SE Runtime Environment (build 1.6.0_26-b03-383-11A511) Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02-383, mixed mode) Mac OS X 10.7.2
  16. bleary

    Bug - Fixed kludges remain in scarecrow code

    Excellent! Thanks for the quick fix!
  17. bleary

    Bug - Fixed kludges remain in scarecrow code

    revision 9957 didn't remove all the kludges implementing the weight bugs. (at least) one remained in Modifiers.java. Index: Modifiers.java =================================================================== --- Modifiers.java (revision 9962) +++ Modifiers.java (working copy) @@...
  18. bleary

    Bug - Fixed build fails on macosx somewhere between versions 8923 and 8933

    On macosx (at least for recent versions), I guess JAVA_HOME should be set to "/Library/Java/Home" Building using the following command works for me: $ JAVA_HOME=/Library/Java/Home ant
  19. bleary

    Slime Tube Adventuring Script

    I find that just holding down the escape key in the gCLI will eventually get it to stop. Here's some code which attempts to be slightly more clever about how to get spleen drops, going for the higher-percentage drops first. if( verbose ) print( "I'm feeling rather... dry. Let's go get slimy!"...
  20. bleary

    Familiar Feeder

    This is great! I'll get right to work testing and maybe coming up with some improvements. 'frilly shirt' probably ought to be 'frilly skirt' in line 66. Maybe also add the bugbear outfit and stainless/plexi/brimstone stuff to the exclusion list? I'm always afraid I'm going to accidentally feed...
Back
Top