It is currently 27 Aug 2025, 12:16
   
Text Size

Downloading and importing images functionality not working

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

Downloading and importing images functionality not working

Postby zaroblan » 09 Mar 2012, 12:50

Greetings,

I have installed the latest version (1.2.4) and attempted to get the images across from the old version (1.1.7).

The Import from a previous version functionality just fails with a run time error. [I will paste this error in at the end]

When this did not work I copied the images from the old "res\pics" folder to the new "res\pics" folder. As you can imagine there were a lot of missing images. When I go and run the "Download LQ Images" option, only the missing token files are downloaded. None of the missing cards were downloaded.

I am running Windows 7 with all the latest updates installed. I have also recently installed the latest version of the Java run time.

Thanks,
Robert

[ERROR RECEIVED WHEN ATTEMPTING TO PORT IMAGES]

Crash Report | Open
This is a Crash Report. An error has occurred. Please save this message to a file.
Please follow the instructions at this address to submit this Crash Report, plus what you were doing at the time:
http://tinyurl.com/3zzrnyb
Reporting bugs in Forge is very important. We thank you for your time.

String index out of range: -1


Version:
Forge version 1.2.4-r14494

OS: Windows 7 Version: 6.1 Architecture: x86

Java Version: 1.6.0_26 Vendor: Sun Microsystems Inc.

Detailed error trace:
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at java.lang.String.substring(Unknown Source)
at forge.GuiImportPicture$1.mouseClicked(GuiImportPicture.java:224)
at java.awt.AWTEventMulticaster.mouseClicked(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$000(Unknown Source)
at java.awt.EventQueue$1.run(Unknown Source)
at java.awt.EventQueue$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue$2.run(Unknown Source)
at java.awt.EventQueue$2.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.Dialog$1.run(Unknown Source)
at java.awt.Dialog$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Dialog.show(Unknown Source)
at java.awt.Component.show(Unknown Source)
at java.awt.Component.setVisible(Unknown Source)
at java.awt.Window.setVisible(Unknown Source)
at java.awt.Dialog.setVisible(Unknown Source)
at forge.control.home.ControlUtilities$7.execute(ControlUtilities.java:124)
at forge.view.toolbox.FLabel$3.mouseClicked(FLabel.java:236)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$000(Unknown Source)
at java.awt.EventQueue$1.run(Unknown Source)
at java.awt.EventQueue$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue$2.run(Unknown Source)
at java.awt.EventQueue$2.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Last edited by Chris H. on 09 Mar 2012, 15:04, edited 1 time in total.
Reason: crash Report spoiler
zaroblan
 
Posts: 59
Joined: 22 May 2009, 11:36
Has thanked: 0 time
Been thanked: 0 time

Re: Downloading and importing images functionality not worki

Postby Vernon » 10 Mar 2012, 13:21

Trying to port images from 1.1.7 to 1.2.4 will result in a lot of missing images. Best bet would be to go to moormarc's site and dl the images from there. There is a link to his site in the LQ images topic, I think. He also has HQ images, but it takes up 3 GB compared to ~365 MB for the LQ images. This is why only the LQ images are available within Forge. Also, be sure to dl the set images rather than the pictures as the set images are more complete (15,600 compared to 10,600 for the pics.)

If someone could post a link to marc's site for me, it would be appreciated.
When playing, card text is important. Read and understand it. It will usually prevent most errors.
Vernon
 
Posts: 51
Joined: 01 Feb 2012, 23:18
Location: Portland, OR
Has thanked: 3 times
Been thanked: 0 time

Re: Downloading and importing images functionality not worki

Postby moomarc » 12 Mar 2012, 14:03

Just saw this post. The site with the the various image packs are from another user, mark. Visit it here. Visiting my site just gets you to my freelance design site which is probably not what you're looking for ;)
-Marc
User avatar
moomarc
Pixel Commander
 
Posts: 2091
Joined: 04 Jun 2010, 15:22
Location: Johannesburg, South Africa
Has thanked: 371 times
Been thanked: 372 times

Re: Downloading and importing images functionality not worki

Postby mark » 14 Mar 2012, 20:36

the link is here too: viewtopic.php?f=26&t=468
And yes, we are different people :-)
mark
 
Posts: 138
Joined: 28 Dec 2011, 11:32
Has thanked: 6 times
Been thanked: 11 times

Re: Downloading and importing images functionality not worki

Postby zaroblan » 16 Mar 2012, 07:52

The problem with some of the images not being downloaded is due to invalid entries in the cards files. Some of the URLs for downloading the images has the extension "txt" in the URL and not "jpg". An example of this would be Huntmaster of the Fells.

I actually wrote a c# app to go and fetch the missing images by parsing the cards files and the looking to see if the images were present and if not download them. It also fetches both images for the transform cards. Now my Forge has all the card images.
zaroblan
 
Posts: 59
Joined: 22 May 2009, 11:36
Has thanked: 0 time
Been thanked: 0 time

Re: Downloading and importing images functionality not worki

Postby moomarc » 16 Mar 2012, 13:33

zaroblan wrote:The problem with some of the images not being downloaded is due to invalid entries in the cards files. Some of the URLs for downloading the images has the extension "txt" in the URL and not "jpg". An example of this would be Huntmaster of the Fells.

I actually wrote a c# app to go and fetch the missing images by parsing the cards files and the looking to see if the images were present and if not download them. It also fetches both images for the transform cards. Now my Forge has all the card images.
Which other cards are doing this. It seems that it's because there's NO low res pic url in the script. Fixed for the Huntmaster/Ravager.

Edit: Chris beat me to the fix. Thanks.
-Marc
User avatar
moomarc
Pixel Commander
 
Posts: 2091
Joined: 04 Jun 2010, 15:22
Location: Johannesburg, South Africa
Has thanked: 371 times
Been thanked: 372 times

Re: Downloading and importing images functionality not worki

Postby Chris H. » 16 Mar 2012, 13:46

I did a search and only found two cards that were using the extension ".txt" rather than ".jpg" and those two are now corrected.

I added the LQ pic URLs to Huntmaster of the Fells but only one of the pics were downloaded. These types of cards are using two pic SVars:

SVar:Picture:http://www.wizards.com/global/images/magic/general/huntmaster_of_the_fells.jpg

SVar:Picture1:http://www.wizards.com/global/images/magic/general/ravager_of_the_fells.jpg

and there might be a bug in the downloading code or the code might be looking for a different SVar name. Not sure what is happening in this case and do not know how to fix it.
User avatar
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


Return to Forge

Who is online

Users browsing this forum: No registered users and 31 guests

Main Menu

User Menu

Our Partners


Who is online

In total there are 31 users online :: 0 registered, 0 hidden and 31 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 31 guests

Login Form