Introducing KoLmafia Daily Downloader

Sanmei

New member
As of today the Daily Downloader has started giving me run-time errors. I'm not sure what caused it to start happening or how to fix it. Attached is the DailyDownloaderErrors.txt file.
 

Attachments

  • DailyDownloaderErrors.txt
    1.1 KB · Views: 44
It looks like there was a manually launched build that resulted in a message that doesn't match the version number pattern that the downloader looks for.

It has an error log:
Code:
java.lang.NumberFormatException: For input string: "16908No changes.</td></tr><tr><td><img style="width: 48px; height: 48px; " class="icon-orange-square icon-xlg" src="/static/d492b818/images/48x48/orange-square.png" /></td><td style="vertical-align:middle"><p><span>Started by user <a href="/user/fewyn">Daniel Clements</a></span></p></td></tr></table></div></div><footer><div class="container-fluid"><div class="row"><div class="col-md-6" id="footer"></div><div class="col-md-18"><span class="page_generated">Page generated: Apr 25, 2016 11:31:10 PM EDT</span><span class="rest_api"><a href="api/">REST API</a></span><span class="jenkins_ver"><a href="http://jenkins-ci.org/">Jenkins ver. 2.0</a></span><div id="l10n-dialog" class="dialog"></div><div id="l10n-footer" style="display:none; float:left"><a href="#" onclick="return showTranslationDialog();"><img src="/static/d492b818/plugin/translation/flags.png" />"
	at java.lang.NumberFormatException.forInputString(Unknown Source)
	at java.lang.Integer.parseInt(Unknown Source)
	at java.lang.Integer.parseInt(Unknown Source)
	at com.puttysoftware.dailydownloader.DailyDownloader.main(DailyDownloader.java:137)

My guess is it will be back to normal when the next normally triggered build occurs. Could look into the code to be sure, but it seems likely enough for now.

(edit/meta: why does that code block look so much better on the post preview, than when posted? and I noticed late that you had already included a log.)
 
Last edited:

Lxndr

Member
Is it even possible to code the Daily Downloader to just automatically launch the current version of Mafia when something like this happens?
 
Is it even possible to code the Daily Downloader to just automatically launch the current version of Mafia when something like this happens?
It is indeed possible to skip the rest of the update check and simply launch the current version, in case of errors parsing the latest version. Furthermore, DailyDownloader self update behavior is currently sub-optimal; if it detects a newer version of itself it tells you this then unceremoniously exits. I will add both of these issues to the GitHub issue tracker, so I know I need to fix them.
 
Issues are now on the tracker. The run-time error problem's fixed now in v7.0.2 - or at least doesn't cause the program to halt.
 

bonerici

New member
Can't read the source code right now, but if anyone knows if you can somehow autoconfirm all the boxes you need to click in order to run this? I like to run my dailyupdate from a script and it doesn't like having boxes you need to click. Thanks, sorry if this was already answered.
 
You sure can. Switch on silent mode by starting DD with the /p or -p arguments, which will bring up the preferences dialog, then enable it and restart DD. Voila, no more dialogs to click through.
 

adeyke

Member
Lately, I've been having trouble with my Mafia downloads. They'll just stop partway through. This means that I have to use my browser to download them, since that has the ability to resume failed partial downloads. I realize that adding that sort of functionality may be too much to ask, but if it's possible, I'd appreciate it.
 
Lately, I've been having trouble with my Mafia downloads. They'll just stop partway through. This means that I have to use my browser to download them, since that has the ability to resume failed partial downloads. I realize that adding that sort of functionality may be too much to ask, but if it's possible, I'd appreciate it.
I don't know if Java supports downloading a file starting at somewhere other than byte 0. If it does, adding that feature requires nothing more than tracking bytes downloaded and whether or not the last file download completed. I occasionally have network dropouts unrelated to DailyDownloader, for which this feature would make my life easier.
 
It's done! I've just released v8.0.0 with the following changes:
* Try and resume failed partial downloads.
* Handle self update more gracefully.
* Fixed a minor visual issue parsing the release notes.
 

Sanmei

New member
Hmm. 8.1 doesn't seem to be working for me at all. No window, no error or error dump, no sign the .jar file is executing at all.
 
Hmm. 8.1 doesn't seem to be working for me at all. No window, no error or error dump, no sign the .jar file is executing at all.
Do you have Java 8? If not you'll get an invalid class format error, but it doesn't display anywhere except the command line. I find that behavior of Java quite annoying.
 

nikcool

New member
I have a macbook pro, and have been unable to get this update to work. I've updated Java, and the update still will not work for me.

It stops at 'starting your current version'. I can't download an older version. It just won't work for me at all.
 
Last edited:
Top