Page 11 of 13 FirstFirst ... 9 10 11 12 13 LastLast
Results 101 to 110 of 123

Thread: Automatically download the newest daily build

  1. #101
    Junior Member Efftien's Avatar
    Join Date
    Mar 2016
    Posts
    2

    Default

    Anyone have access to the C# code that was posted in the OP?
    Originally Posted by heeheehee View Post
    Is this what you're looking for?

    https://dl.dropboxusercontent.com/u/...MafiaUpdate.cs

  2. #102
    Developer
    Join Date
    Aug 2009
    Posts
    2,567

    Default

    Looks like it, thanks!

  3. #103
    Developer
    Join Date
    Aug 2009
    Posts
    2,567

    Default

    See attached for the updated exe. Also uploaded the modified source code (as a .txt because of file extension restrictions in the upload process) in case we run into this sort of issue in the future.
    Attached Files

  4. #104
    Senior Member Theraze's Avatar
    Join Date
    Mar 2010
    Posts
    8,568

    Default

    Thanks! I used the DailyDownloader for the past week, but this is just so much faster... downloads and launches in under 5 seconds rather than giving up at 64 percent after 40 seconds.

  5. #105

    Default

    Thanks! I used the DailyDownloader for the past week, but this is just so much faster... downloads and launches in under 5 seconds rather than giving up at 64 percent after 40 seconds.
    Originally Posted by Theraze View Post
    Hi Theraze, not sure why that would be. You know Java, right? Could you do me a favor and look at the source for DailyDownloader's downloader? Here's the link if you need it: https://github.com/wrldwzrd89/kolmaf...gressTask.java

  6. #106
    Junior Member Efftien's Avatar
    Join Date
    Mar 2016
    Posts
    2

    Default

    Looks like it, thanks!
    Originally Posted by heeheehee View Post
    Oh, good. Now I'm glad I decided to keep the source code. I use Mafia quite often, so of course, I had to register just to make the code available for updating. Thanks for updating it!

  7. #107
    Senior Member Theraze's Avatar
    Join Date
    Mar 2010
    Posts
    8,568

    Default

    Hi Theraze, not sure why that would be. You know Java, right? Could you do me a favor and look at the source for DailyDownloader's downloader? Here's the link if you need it: https://github.com/wrldwzrd89/kolmaf...gressTask.java
    Originally Posted by wrldwzrd89 View Post
    Two major possibilities come to mind.
    One, the C# implementation of WebClient.DownloadFile is faster than the Java implementation of InputStream.read into FileOutputString.write. It makes sense that something designed to download files works faster than something meant to show individual characters.
    Two, displaying the download progress might potentially slow down the download itself - though on repeated attempts, the DLPT did skip numbers when it actually got more than a percent in a second. Most runs though, I did get every percentage point marked. This is more likely related to the first point though.

    I briefly considered whether flash mode was actually causing slowness, but on examining the source saw that it could also be called 'portable mode' or something similar, as it merely controls whether the settings files (xml and version timestamp) are used from the folder or from inside your profile. No chance of that causing the problems, and it did have the same results (sometimes fast, sometimes slow) regardless on multiple runs - my first few runs didn't make that clear as the flash were always slow and profile was not due to random luck. That did help me to remove the scattered 'cache' files which weren't useful though, so at least that's something.

    I think it's just a feature of how the file is being collected off the server. Based on a bit of quick reading, it looks like changing from IS.r/FOS.w to something else might speed things up.
    http://stackoverflow.com/questions/3...94778#30394778

    There's a bunch of different options, but most either are noted as similar, slower, or security issues.
    http://stackoverflow.com/questions/9...net-using-java

    Anyways, looks like the core issue is simply that Java's legacy implementation isn't the fastest at downloading.

  8. #108
    Senior Member
    Join Date
    Oct 2013
    Posts
    209

    Default

    re DailyDownloader, without any of the dialogs displayed this has been saturating my 5mbps connection every time. anecdata.

  9. #109
    Senior Member
    Join Date
    Jan 2011
    Posts
    493

    Default

    Hm. The link to the exe in the main post is failing for me.

  10. #110
    Senior Member Theraze's Avatar
    Join Date
    Mar 2010
    Posts
    8,568

    Default

    It's true. You need to use hee*3's update from post 103. That one works great.

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
  •