Page 2 of 13 FirstFirst 1 2 3 4 12 ... LastLast
Results 11 to 20 of 127

Thread: Automatically download the newest daily build

  1. #11
    Senior Member zarqon's Avatar
    Join Date
    Nov 2007
    Location
    Seoul, Korea
    Posts
    3,491

    Default

    Truly Awesome. You have saved me lots of clicking, and probably kolmafia.us server bandwidth (not fetching images/CSS, also avoiding cases of re-downloading because you're not sure if it's the latest or not).
    Sig by JakAtk
    My scripts: Prefref Plus | One-Click Wossname | Om******t (??) | Psychose-a-Matic | RandBot
    Combat suite: Best Between Battle | Mer********d (?!) | SmartStasis | BatMan | BatMan RE
    For script authors: ASH Wiki | ZLib | BatBrain | CLI Links | CanAdv | Script Registry | Map Manager | About Bats
    If you appreciate my work, help me become BAT KING OF THE WORLD! Thanks to all donators!

  2. #12
    Senior Member
    Join Date
    May 2008
    Posts
    203

    Default

    Very cool indeed. Thank you for this simple, yet very useful, idea.

  3. #13
    Junior Member
    Join Date
    Feb 2009
    Location
    Ohio
    Posts
    16

    Default

    I love the idea of deleting all the old programs, however it seems to do good of a job
    Deleting old version AscensionLogVisualizer 2.1.0.jar
    Is there anyway it can just del old versions of mafia and not all jar files?

  4. #14
    Senior Member
    Join Date
    Mar 2006
    Posts
    118

    Default

    Is there anyway it can just del old versions of mafia and not all jar files?
    Originally Posted by Bors View Post
    I haven't used this application so I don't know exactly how it functions, but would another directory help?

    The AutoIt script that I wrote to compile my .jar also backs up and timestamps the previous .jar and puts it in another directory. (with the extension renamed to .bak) It then goes through and deletes all the backups that are older than 7 days. This makes it very easy to rollback to previous builds if necessary.

    Perhaps something like this would work for this application? It may be making things a bit more complicated, but it seems more forgiving if the application was pointed to a directory that you can be assured only the files you want to would be removed.

  5. #15

    Default

    The change for that should be easy.
    Code:
    FileInfo[] dirFiles = dir.GetFiles("*.jar");
    should be
    Code:
    FileInfo[] dirFiles = dir.GetFiles("KoLmafia*.jar");
    At least I think so, I can't exactly check on this computer, probably.

  6. #16
    Developer
    Join Date
    Apr 2006
    Posts
    884

    Default

    Yeah that's exactly it, I didn't expect anyone to have other jar files but here we are.

    Okay new version up.
    Last edited by Rinn; 11-02-2009 at 02:10 AM.
    Automatically download the newest daily build - Version 1.8
    Better Basement Automation
    - Version 1.??? Someone else is maintaining this
    Get an effect from a buffbot
    - Version 1.4

  7. #17
    Junior Member
    Join Date
    Feb 2009
    Location
    Ohio
    Posts
    16

    Default

    Works great! Thanks for the fix.

  8. #18
    Senior Member
    Join Date
    May 2008
    Posts
    203

    Default

    Could it be that when there is no new jar file, it wont run the existing one, or am I just imagining?

  9. #19
    Developer
    Join Date
    Apr 2006
    Posts
    884

    Default

    If KoLmafia-latest.jar exists it should run it regardless. If this is the first time you've run this program and you already have the latest daily build downloaded, it's not going to make a copy as KoLmafia-latest.jar until it actually downloads something.
    Automatically download the newest daily build - Version 1.8
    Better Basement Automation
    - Version 1.??? Someone else is maintaining this
    Get an effect from a buffbot
    - Version 1.4

  10. #20
    Senior Member
    Join Date
    May 2008
    Posts
    203

    Default

    It started working today. I think there were some permission problems, I played with them. Anyway, problem solved.

Similar Threads

  1. Getting the latest daily build
    By matt.chugg in forum Community Support
    Replies: 1
    Last Post: 11-21-2011, 05:19 AM
  2. Bug - Not A Bug Relay Browser won't open in newest Firefox build (6.0.2)
    By maximillian the red in forum Bug Reports
    Replies: 9
    Last Post: 09-14-2011, 02:14 PM
  3. Problems with the daily build
    By linguinelad in forum Unofficial Builds
    Replies: 5
    Last Post: 09-16-2010, 11:41 PM
  4. Using the daily build
    By Jt in forum Community Support
    Replies: 2
    Last Post: 12-06-2007, 02:06 AM
  5. Replies: 1
    Last Post: 06-02-2006, 03:50 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •