Questions about Pictures and Prices
Post MTG Forge Related Programming Questions Here
Moderators: timmermac, Blacksmith, KrazyTheFox, Agetian, friarsol, CCGHQ Admins
16 posts
• Page 1 of 2 • 1, 2
Questions about Pictures and Prices
by Jaedayr » 05 Nov 2010, 17:09
Whenever I run Forge via Eclipse and download HQ pictures, I never get all of the pictures. For example, this morning it said there were 144 pictures to download, but probably two thirds or more of the pictures were not found with the following message.
Second question, I updated prices and then when I go into Card Shop I see several eclipse messages regarding prices.
- Code: Select all
03:03 ERROR: [HQ Pictures] Error downloading pictures
java.io.IOException: Server returned HTTP response code: 500 for URL: http://mtgpics.chutography.com/UD/Fledgling%20Osprey.full.jpg
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
at forge.Gui_DownloadPictures.run(Gui_DownloadPictures.java:268)
at java.lang.Thread.run(Unknown Source)
Second question, I updated prices and then when I go into Card Shop I see several eclipse messages regarding prices.
- Code: Select all
Card Tel-Jilad Fallen is not in the price list.
Card Vulshok Heartstoker is not in the price list.
Card Kemba's Skyguard is not in the price list.
Card Tempered Steel is not in the price list.
Card Tumble Magnet is not in the price list.
Re: Questions about Pictures and Prices
by friarsol » 05 Nov 2010, 17:28
Well the answer to your first question is right in the error "Server returned HTTP response code: 500 for URL"
The Server that holds the pictures sent back an error when you tried to download them. This doesn't mean it doesn't exist (that would be a 404 Client Error), it just means the Server sent an error when trying to return the picture. This can be for many different, unspecific meanings. And the only person that could address it is the server host.
A lot of times a server under heavy load will spit out a 500 error to lower priority traffic to allow the higher priority traffic to make it through.
The second problem seems similar to the first. The source we grab Prices from hasn't updated those cards yet, so they don't have any prices to get. The only way we could address this is by finding a different source.
The Server that holds the pictures sent back an error when you tried to download them. This doesn't mean it doesn't exist (that would be a 404 Client Error), it just means the Server sent an error when trying to return the picture. This can be for many different, unspecific meanings. And the only person that could address it is the server host.
A lot of times a server under heavy load will spit out a 500 error to lower priority traffic to allow the higher priority traffic to make it through.
The second problem seems similar to the first. The source we grab Prices from hasn't updated those cards yet, so they don't have any prices to get. The only way we could address this is by finding a different source.
- friarsol
- Global Moderator
- Posts: 7593
- Joined: 15 May 2010, 04:20
- Has thanked: 243 times
- Been thanked: 965 times
Re: Questions about Pictures and Prices
by Rob Cashwalker » 05 Nov 2010, 18:31
yes, for some reason the price server (magictraders.com) doesn't have a few cards... I double checked. Their last news update was from April... which was that Rise of the Eldrazi was added to the database. Don't know what happened to Scars of Mirrodin. Prices for cards they do have data for, were last updated today.
The Force will be with you, Always.
-
Rob Cashwalker - Programmer
- Posts: 2167
- Joined: 09 Sep 2008, 15:09
- Location: New York
- Has thanked: 5 times
- Been thanked: 40 times
Re: Questions about Pictures and Prices
by Jaedayr » 26 Dec 2010, 21:21
OK time for followup questions on pics. I just finished wiping out my Forge project in Eclipse and rebuilding it (trying to figure out how to fix the repository info, but that is another story) and then copied all of my pics over that I had previously downloaded in batch.
I started Forge and downloaded HQ pictures and when it was finished (with several "500" errors) I started it again to see how many were left. It says there are 174 missing. Then I went to the LQ download and it says there are 342 missing. Should these be the same number? I do not think I have any LQ pictures at all, except those that are in the SVN.
Also related to this and maybe confusing to me, a few weeks ago I downloaded the LQ pics for the first time and then when I checked HQ afterward it said there were none left to download. So it seems that if you download the LQ pic you will never be offered the opportunity to download the HQ version. Is this working as intended?
I started Forge and downloaded HQ pictures and when it was finished (with several "500" errors) I started it again to see how many were left. It says there are 174 missing. Then I went to the LQ download and it says there are 342 missing. Should these be the same number? I do not think I have any LQ pictures at all, except those that are in the SVN.
Also related to this and maybe confusing to me, a few weeks ago I downloaded the LQ pics for the first time and then when I checked HQ afterward it said there were none left to download. So it seems that if you download the LQ pic you will never be offered the opportunity to download the HQ version. Is this working as intended?
Re: Questions about Pictures and Prices
by Chris H. » 26 Dec 2010, 22:00
The HQ download code uses the links found in the files located in the forge/res/pics_link/ folder. The maintainer of the server containing the HQ pic has not added the HQ pics from recent sets and he has not been very active over the last year.
The LQ and HQ pics use the same /pics/ folder and file names. I would advise people to use the LQ pics at this time and to avoid the HQ pics. Some people have noticed that forge will slow to a crawl with recent builds if you use the HQ pics. The LQ pics do not cause this problem.
The LQ and HQ pics use the same /pics/ folder and file names. I would advise people to use the LQ pics at this time and to avoid the HQ pics. Some people have noticed that forge will slow to a crawl with recent builds if you use the HQ pics. The LQ pics do not cause this problem.
-
Chris H. - Forge Moderator
- Posts: 6320
- Joined: 04 Nov 2008, 12:11
- Location: Mac OS X Yosemite
- Has thanked: 644 times
- Been thanked: 643 times
Re: Questions about Pictures and Prices
by Rob Cashwalker » 27 Dec 2010, 04:04
At this point you might as well grab the full picture archives from the Pictures forum here. The current set information allows for more pictures than we ever had links to in the first place.
I'm working towards fixing the picture downloaders to support all the different pictures we will be able to support.
I'm working towards fixing the picture downloaders to support all the different pictures we will be able to support.
The Force will be with you, Always.
-
Rob Cashwalker - Programmer
- Posts: 2167
- Joined: 09 Sep 2008, 15:09
- Location: New York
- Has thanked: 5 times
- Been thanked: 40 times
Re: Questions about Pictures and Prices
by noracegres » 12 Jan 2011, 14:53
Hi all, first of all thanks for the good work.
My question goes the same way, when I update the HQ and LQ pictures it says that I've got them all but when I double check some are missing in the pics folder BUT they are in the pic_links folder.
I'm talking about card has old has Alpha edition.
My question goes the same way, when I update the HQ and LQ pictures it says that I've got them all but when I double check some are missing in the pics folder BUT they are in the pic_links folder.
I'm talking about card has old has Alpha edition.
- noracegres
- Posts: 7
- Joined: 28 Dec 2010, 13:39
- Has thanked: 0 time
- Been thanked: 0 time
Re: Questions about Pictures and Prices
by Chris H. » 12 Jan 2011, 15:14
The person responsible for the server that contains the HQ pics has not been active in the forge project for a number of months. I do not think that he has added any of the HQ pics for the new sets released in the last year.
Some people have also noticed that the HQ pics can cause the game to become too slow. Using the LQ pics instead can alleviate this problem.
Some people have also noticed that the HQ pics can cause the game to become too slow. Using the LQ pics instead can alleviate this problem.
-
Chris H. - Forge Moderator
- Posts: 6320
- Joined: 04 Nov 2008, 12:11
- Location: Mac OS X Yosemite
- Has thanked: 644 times
- Been thanked: 643 times
Re: Questions about Pictures and Prices
by noracegres » 12 Jan 2011, 15:23
Tanks Chris for your anwser, but when I do the download LQ cards
I'm still missing picture like
chaos_orb.jpg ( an old card )
It's url in the file :
http://[server]/OV/Chaos%20Orb.full.jpg
And when I double check manually the pics link it his up :
http://mtgpics.chutography.com/OV/Chaos%20Orb.full.jpg
Do we need to download an external LQ picture zip ?
Thanks again
I'm still missing picture like
chaos_orb.jpg ( an old card )
It's url in the file :
http://[server]/OV/Chaos%20Orb.full.jpg
And when I double check manually the pics link it his up :
http://mtgpics.chutography.com/OV/Chaos%20Orb.full.jpg
Do we need to download an external LQ picture zip ?
Thanks again
- noracegres
- Posts: 7
- Joined: 28 Dec 2010, 13:39
- Has thanked: 0 time
- Been thanked: 0 time
Re: Questions about Pictures and Prices
by Sloth » 12 Jan 2011, 15:41
The card Chaos Orb is not implemented yet. There is no need for its picture.noracegres wrote:Tanks Chris for your anwser, but when I do the download LQ cards
I'm still missing picture like
chaos_orb.jpg ( an old card )
It's url in the file :
http://[server]/OV/Chaos%20Orb.full.jpg
And when I double check manually the pics link it his up :
http://mtgpics.chutography.com/OV/Chaos%20Orb.full.jpg
Do we need to download an external LQ picture zip ?
Thanks again
-
Sloth - Programmer
- Posts: 3498
- Joined: 23 Jun 2009, 19:40
- Has thanked: 125 times
- Been thanked: 507 times
Re: Questions about Pictures and Prices
by noracegres » 12 Jan 2011, 15:58
Thanks Sloth for your quick answer.
Any way I can force him to download all the picture in the pics_link ?
Thanks again
Any way I can force him to download all the picture in the pics_link ?
Thanks again
Last edited by noracegres on 12 Jan 2011, 16:02, edited 1 time in total.
- noracegres
- Posts: 7
- Joined: 28 Dec 2010, 13:39
- Has thanked: 0 time
- Been thanked: 0 time
Re: Questions about Pictures and Prices
by friarsol » 12 Jan 2011, 16:01
I think the confusion here is there are two different types of pictures.noracegres wrote:Tanks Chris for your anwser, but when I do the download LQ cards
I'm still missing picture like
chaos_orb.jpg ( an old card )
It's url in the file :
http://[server]/OV/Chaos%20Orb.full.jpg
And when I double check manually the pics link it his up :
http://mtgpics.chutography.com/OV/Chaos%20Orb.full.jpg
Do we need to download an external LQ picture zip ?
Thanks again
HQ which just have all of what are available of that type of picture.
And LQ which only download cards that have been implemented in forge. Any card that hasn't been implemented, doesn't have the picture defined so no LQ would ever be downloaded for it.
- friarsol
- Global Moderator
- Posts: 7593
- Joined: 15 May 2010, 04:20
- Has thanked: 243 times
- Been thanked: 965 times
Re: Questions about Pictures and Prices
by noracegres » 12 Jan 2011, 16:08
Thanks friarsol,
But The HQ and LQ pictures goes in the same folder right ?
And if I get right what you just said, HQ pictures his all the picture in the pics_link ?
Thanks again
But The HQ and LQ pictures goes in the same folder right ?
And if I get right what you just said, HQ pictures his all the picture in the pics_link ?
Thanks again
- noracegres
- Posts: 7
- Joined: 28 Dec 2010, 13:39
- Has thanked: 0 time
- Been thanked: 0 time
Re: Questions about Pictures and Prices
by Chris H. » 12 Jan 2011, 16:18
`noracegres wrote:But The HQ and LQ pictures goes in the same folder right?
Yes, you are correct. This can be confusing. At some point the devs might decide to change the code so that forge will use two different pic folders. A "pics-lq" and a "pics-hq" folder? It might make things easier for the user base to understand the difference.
`And if I get right what you just said, HQ pictures his all the picture in the pics_link ?
The files in the "pics_link" folder contain the url links for all of the HQ card pictures that can be found on the server. Forge can download a HQ pic from this server if the card is implemented in forge and if forge can find the url link to the server pic.
-
Chris H. - Forge Moderator
- Posts: 6320
- Joined: 04 Nov 2008, 12:11
- Location: Mac OS X Yosemite
- Has thanked: 644 times
- Been thanked: 643 times
16 posts
• Page 1 of 2 • 1, 2
Who is online
Users browsing this forum: No registered users and 21 guests