It is currently 16 Apr 2024, 22:22
   
Text Size

Mtgdb.Gui: search MTG cards, build decks, manage collection

New decks and cards for Stainless Games' release

Moderator: CCGHQ Admins

Re: Mtgdb.Gui: search MTG cards, build decks, manage collect

Postby hidalgo » 18 Sep 2018, 21:17

parkoro wrote:Is there any folder I can delete and reload, to get prices working?
No prices are showing (just 0) in the price bar graph screen, even for cards that have much value.
Do you see prices in the card text? Like for example in the image below:
Image

To check whether any price data is loaded, use following query in Search bar:
PricingMid: [5 TO *]

If you don't see any price, it seems like you have problems with some other files from
D:\Games\Mtgdb.Gui\data\
besides data\index subdirectories, because price files are
D:\Games\Mtgdb.Gui\data\price.json
D:\Games\Mtgdb.Gui\data\price.id.json

I suspect one of 2 things happened:
1. Something damaged the files you extracted from Mtgdb.Gui.zip (virus?, bad sectors on Hard Disk?)
2. Windows or some antivirus / firewall software may have restricted access to the files so the program (Mtgdb.Gui) can't read them.

I suggest you start fresh by downloading and extracting Mtgdb.Gui.zip again.

Avoid extracting to Desktop directory or root (C:\) or any system directory (C:\Program Files, MyDocuments) to keep antivirus and Windows happy
A directory like C:\games\Mtgdb.Gui or D:\portable\Mtgdb.Gui would be fine.

In case you already downloaded some images, you can copy them to new installation directory from the previous one (Mtgdb.Gui\images)
User avatar
hidalgo
 
Posts: 354
Joined: 17 Oct 2016, 21:51
Location: Russia, Moscow
Has thanked: 58 times
Been thanked: 80 times

Re: Mtgdb.Gui: search MTG cards, build decks, manage collect

Postby parkoro » 19 Sep 2018, 00:57

hidalgo wrote:
Do you see prices in the card text? Like for example in the image below:

No, I don't see the prices. I tried to re-download and extract.
Strange thing is - it will extract fine with 7zip but not with Windows "extract" submenu...
This is the error I get when trying to do native windows extract (image attached)

So I just use 7zip. and now trying to re-download price info.

Edit: Still no price info showing.

Another interesting thing, when I run the program.. in the /bin folder I get a folder that says "_shadow_copy"
Is that normal?
Looks like a copy of the whole folder "v3.7.1.7"

In regard to extracting, a quick search on the internet revealed this:
Mainly, the error 0x80004005 (access denied) during extracting a zip file is caused, because the content of the ZIP archive doesn't contain the data in a proper way. It doesn't mean, the ZIP archive is corrupted (as some assume). The reason is: Data may be stored by several compression methods and may also be password protected.

Windows zip compression library implements only a few compression methods (Deflate) and also only ZIPCrypto for password protection. If the ZIP container is protected with a AES password, or if the content is compressed with PPMd for instance, error 0x80004005 will be thrown.

The solution is simple: Use a program like 7-zip to uncompress your ZIP archive - and it should be successful. Otherwise try WinRar and use the option to repair the corrupted ZIP-archive.
Attachments
Capture.PNG
parkoro
 
Posts: 9
Joined: 17 Sep 2018, 16:18
Has thanked: 5 times
Been thanked: 1 time

Re: Mtgdb.Gui: search MTG cards, build decks, manage collect

Postby parkoro » 19 Sep 2018, 01:49

Update 1: I deleted the files:
D:\Games\Mtgdb.Gui\data\price.json
D:\Games\Mtgdb.Gui\data\price.id.json
Started to download price info again, seems it is going much slower this time.. maybe it is working?

Update 2: Nope, still won't show prices.
Will upload log file.

Update 3: Attached log file.. there is a whole bunch of "404 not found" errors in the files.
Attachments
logs.zip
(10.09 KiB) Downloaded 250 times
parkoro
 
Posts: 9
Joined: 17 Sep 2018, 16:18
Has thanked: 5 times
Been thanked: 1 time

Re: Mtgdb.Gui: search MTG cards, build decks, manage collect

Postby hidalgo » 19 Sep 2018, 20:44

parkoro wrote:Update 1: I deleted the files:
D:\Games\Mtgdb.Gui\data\price.json
D:\Games\Mtgdb.Gui\data\price.id.json
Started to download price info again, seems it is going much slower this time.. maybe it is working?

Update 2: Nope, still won't show prices.
Will upload log file.

Update 3: Attached log file.. there is a whole bunch of "404 not found" errors in the files.
Thanks for the log. I will check whether price downloading is working.Having some price downloading requests fail with 404-s is ok, because some cards don't have their web pages.

Also thanks for pointing me to the fact that you can't extract my .zip with default Windows zip manager. I will update Mtgdb.Gui Wiki's Getting Started page.

As to how yo get you see the prices.

The exact sequence of steps is:
1. Extract Mtgdb.Gui.zip to a fresh installatio directory
2. Start Mtgdb.Gui
3. Wait until indexes are loaded, typically 10-20 seconds, see index status indication in status row over deck panel.
4. Type the following query into search bar: PricingMid: [5 TO *]
5. Press enter to apply the query or wait 1 second.

After 5. any card in search result will have a price. All others will be filtered out.
If by this moment you still see any cards without prices or see no cards, then send me a screenshot to make me believe it, because I find it hard :)

Another interesting thing, when I run the program.. in the /bin folder I get a folder that says "_shadow_copy"
Is that normal?
yes, the program copies itself to _shadow_copy and then starts from there, so that it can update itself - extract new .zip overwriting original executable files if needed.
User avatar
hidalgo
 
Posts: 354
Joined: 17 Oct 2016, 21:51
Location: Russia, Moscow
Has thanked: 58 times
Been thanked: 80 times

Re: Mtgdb.Gui: search MTG cards, build decks, manage collect

Postby parkoro » 19 Sep 2018, 22:09

Hmm, just so you can see other search works fine I uploaded search for "llanowar"
And the other picture is the search PricingMid: [5 TO *]
Attachments
pic002.PNG
pic001.PNG
parkoro
 
Posts: 9
Joined: 17 Sep 2018, 16:18
Has thanked: 5 times
Been thanked: 1 time

Re: Mtgdb.Gui: search MTG cards, build decks, manage collect

Postby parkoro » 19 Sep 2018, 22:15

I don't know why but "price.json" is filesize 0KB .. empty.

Shouldn't it contain something?

Could I download a current "price.json" separately somewhere ?
parkoro
 
Posts: 9
Joined: 17 Sep 2018, 16:18
Has thanked: 5 times
Been thanked: 1 time

Re: Mtgdb.Gui: search MTG cards, build decks, manage collect

Postby hidalgo » 19 Sep 2018, 23:49

The screenshots you sent me are cut from right and bottom sides. I need a complete screenshot :)

I know for sure that in Mtgdb.Gui.zip you downloaded the price files are non empty.
Open it using 7-zip, navigate to data/ subdirectory within the arhcive and extract price.json and price.id.json files.

In case you can't use 7-zip, download attach from this post, windows .zip file browser should be able to extract it.
Attachments
price.zip
(312.09 KiB) Downloaded 230 times
User avatar
hidalgo
 
Posts: 354
Joined: 17 Oct 2016, 21:51
Location: Russia, Moscow
Has thanked: 58 times
Been thanked: 80 times

Re: Mtgdb.Gui: search MTG cards, build decks, manage collect

Postby parkoro » 20 Sep 2018, 16:10

Ok it works from re-inserting the price files that contain data.

But still seems like a lot of price data missing... no price on some mythics?
(see screenshot of the 3 mythics)

Where do you pull your price data from, if I can ask?
Maybe you could get data from multiple sources?
Attachments
noprice.PNG
prices_pic2.PNG
parkoro
 
Posts: 9
Joined: 17 Sep 2018, 16:18
Has thanked: 5 times
Been thanked: 1 time

Re: Mtgdb.Gui: search MTG cards, build decks, manage collect

Postby hidalgo » 20 Sep 2018, 18:04

parkoro wrote:But still seems like a lot of price data missing... no price on some mythics?
(see screenshot of the 3 mythics)
I checked whether price downloading still works and I confirm it is broken. Thanks by the way for pointing me to that.

I will be fixing one of the next few days.

When I am done with that, you will be able to see the prices for most cards in newly released set, either by downloading them from Mtgdb.Gui or updating to next version.

Where do you pull your price data from, if I can ask?
maggicards.info, now it's gone so I will have to decide on a new pricing data source
User avatar
hidalgo
 
Posts: 354
Joined: 17 Oct 2016, 21:51
Location: Russia, Moscow
Has thanked: 58 times
Been thanked: 80 times

Re: Mtgdb.Gui: search MTG cards, build decks, manage collect

Postby parkoro » 21 Sep 2018, 04:57

hidalgo wrote:maggicards.info, now it's gone so I will have to decide on a new pricing data source
Is there any way you can get price data from tcgplayer.com?
Its just that it always seems to be around.. they might even have an api, i'm not sure.
parkoro
 
Posts: 9
Joined: 17 Sep 2018, 16:18
Has thanked: 5 times
Been thanked: 1 time

Re: Mtgdb.Gui: search MTG cards, build decks, manage collect

Postby hidalgo » 21 Sep 2018, 10:02

tcgplayer.com rejected to give me access to their API in the past.
Yesterday night I submitted another request.

Anyway, I use Scryfall now which in turn shows prices from tcgplayer. It works so today evening I will release new prices and functional price downloading.
User avatar
hidalgo
 
Posts: 354
Joined: 17 Oct 2016, 21:51
Location: Russia, Moscow
Has thanked: 58 times
Been thanked: 80 times

Re: Mtgdb.Gui: search MTG cards, build decks, manage collect

Postby aidscoi168 » 01 Oct 2018, 19:32

GRN already available in mtgjson
aidscoi168
 
Posts: 211
Joined: 31 Dec 2016, 17:49
Has thanked: 58 times
Been thanked: 28 times

Re: Mtgdb.Gui: search MTG cards, build decks, manage collect

Postby aidscoi168 » 20 Oct 2018, 10:27

Hi, Mtgjson already update to v4, let see if you have to change the destination for json file
https://mtgjson.com/v4/
aidscoi168
 
Posts: 211
Joined: 31 Dec 2016, 17:49
Has thanked: 58 times
Been thanked: 28 times

Re: Mtgdb.Gui: search MTG cards, build decks, manage collect

Postby hidalgo » 20 Oct 2018, 14:59

Hi, Mtgjson already update to v4
Thanks for tip Aidscoi.

I have looked at their new file format, and there is an unpleasant news.
They dropped `ImageName` field, so using v4 files will require some difficult working around that problem.
User avatar
hidalgo
 
Posts: 354
Joined: 17 Oct 2016, 21:51
Location: Russia, Moscow
Has thanked: 58 times
Been thanked: 80 times

Re: Mtgdb.Gui: search MTG cards, build decks, manage collect

Postby aidscoi168 » 21 Oct 2018, 03:51

v3 still update until end of 2018 so i think they will make change of v4, you may asking they for adding 'ImageName' field back to old format, i guess that other 3rd party app using this field from their json file as well.
aidscoi168
 
Posts: 211
Joined: 31 Dec 2016, 17:49
Has thanked: 58 times
Been thanked: 28 times

PreviousNext

Return to Magic: The Gathering - Duels of the Planeswalkers

Who is online

Users browsing this forum: No registered users and 30 guests


Who is online

In total there are 30 users online :: 0 registered, 0 hidden and 30 guests (based on users active over the past 10 minutes)
Most users ever online was 4143 on 23 Jan 2024, 08:21

Users browsing this forum: No registered users and 30 guests

Login Form