It is currently 09 Sep 2025, 17:08
   
Text Size

Uninterrupted picture downloading

Post MTG Forge Related Programming Questions Here

Moderators: timmermac, Blacksmith, KrazyTheFox, Agetian, friarsol, CCGHQ Admins

Uninterrupted picture downloading

Postby Void » 19 Jul 2010, 09:15

Hi

I want to help you with the project. I have never programmed in Java, but I have used JavaScript a bit.

First thing I would like to improve is picture downloading. Currently there are tens of unobtainable pictures, and every one of them makes a dialog pop-up with error and asks if I want to continue.
I think a better idea is to continue with downloading the remaining pictures from the list and the error should be printed only to standard output. That way I will be able to go for a coffee and have all the possible pictures when I am back to the PC.

Right now all public methods of ErrorViewer class leads to showDialog() function call.
I propose a solution with another methods beside showError, for example suppressError, which behaves the same, but doesn't pop-up a dialog.
Void
 
Posts: 5
Joined: 19 Jul 2010, 08:53
Has thanked: 0 time
Been thanked: 1 time

Re: Uninterrupted picture downloading

Postby mtgrares » 19 Jul 2010, 17:18

Yeah I coded the picture download function at the beginning. It stops on errors instead of continuing, so the only thing that needs to be changed in the "error handling" strategy. Which should be "download as many pictures as you can" instead of "stopping when you can't download 1 picture."

That is why I try to create a zip file with all of the card pictures, here.
mtgrares
DEVELOPER
 
Posts: 1352
Joined: 08 Sep 2008, 22:10
Has thanked: 3 times
Been thanked: 12 times

Re: Uninterrupted picture downloading

Postby Void » 19 Jul 2010, 17:43

mtgrares wrote:It stops on errors instead of continuing, so the only thing that needs to be changed in the "error handling" strategy.
Exactly. I have prepared a modification, but today someone was thinking about the same and already fixed it (thank you).
I wasn't aware of Log class, as I haven't checked them all yet.
Void
 
Posts: 5
Joined: 19 Jul 2010, 08:53
Has thanked: 0 time
Been thanked: 1 time


Return to Developer's Corner

Who is online

Users browsing this forum: No registered users and 61 guests

Main Menu

User Menu

Our Partners


Who is online

In total there are 61 users online :: 0 registered, 0 hidden and 61 guests (based on users active over the past 10 minutes)
Most users ever online was 7303 on 15 Jul 2025, 20:46

Users browsing this forum: No registered users and 61 guests

Login Form