It is currently 16 Apr 2024, 23:40
   
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 » 21 Oct 2018, 13:30

Mtgjson developer confirmed they dropped the field. He explained me how ImageName was calculated so now I am re-implementing the same calculation in Mtgdb.Gui. The algorythm itself is easy, the difficulty is that there are exceptions to it, which are plenty. Correcting them all will take some time. The good thing is that we do have time, because you pointed me to v4 early.
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 allergic2digitalcats » 09 Dec 2018, 11:33

MTGArena deck export runs into a couple of issues:

Spit and Two-Faced cards export in a format MTGA doesn't read.

Code: Select all
1 Discovery (GRN) 223a
1 Status (GRN) 230a
1 Invert (GRN) 228a
1 Treasure Map (XLN) 250a
Needs to be
Code: Select all
1 Discovery // Dispersal (GRN) 223
1 Status // Statue (GRN) 230
1 Invert // Invent (GRN) 228
1 Treasure Map (XLN) 250
Additionally Dominaria cards export with [DOM] but MTGA reads for [DAR]

mtgdb:
Code: Select all
2 History of Benalia (DOM) 21
mtga:
Code: Select all
2 History of Benalia (DAR) 21
allergic2digitalcats
 
Posts: 1
Joined: 09 Dec 2018, 11:16
Has thanked: 0 time
Been thanked: 1 time

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

Postby Qumojo » 11 Dec 2018, 14:39

Hi, fantastic app, thank you so much for your hard work.

Today just got the new update and few new sets where added but there seems to be a problem with (MPS) set.

.....
Failed to download C:\Users\xxx\Downloads\Mtgdb.Gui.v3.7.2.4\images\Mtgdb.Pictures\LQ\MPS.7z from drive google com / uc?export= download& id=1YF613NQDLr7VvHHwE2G5I09DaubJ9fQj
Looking up downloaded images...
Art: 0/1 directories, 0/7947 files
LQ: 226/227 directories, 35531/35585 files
MQ: 226/227 directories, 35531/35585 files

(can't post urls by the way, that's why the drive google link is all over the place, sorry)

It seems that it is trying to download the same set of MPS_AKH instead of just MPS.

Thanks again for your work and the next update. =D>
Qumojo
 
Posts: 31
Joined: 11 Dec 2018, 14:32
Has thanked: 3 times
Been thanked: 2 times

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

Postby hidalgo » 12 Dec 2018, 01:01

MTGArena deck export runs into a couple of issues:
I will fix it more or less by the weekend, thanks for reporting!

UPDATE: fixed in 3.7.2.6

there seems to be a problem with (MPS) set.
Fixed in 3.7.2.5, thanks for reporting too :)
Last edited by hidalgo on 16 Dec 2018, 22:30, edited 1 time in total.
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 lorddraggin » 14 Dec 2018, 22:22

Hey man!

Firstly thank you for your work.

Im having some troubles importing collection from mtg arena. I installed it on other D:/ device, and when i click import collection it tells me "mtg arena installation was not detected" and indicates me to change the config file.

I already did it but problem still appears, also i found what i think is a mistake on the file bin/Mtgdb.Gui.exe.config where instead of etc\ it is placed Etc\ with that E on uppers ( not sure if on windows the caps matters on paths ).

Anyway y tried all, re-unziped the program on other folder ( not on desktop nor root ), changing the config and the default config but I didnt found any solution.

Could you help me?

Thank you very much
lorddraggin
 
Posts: 1
Joined: 14 Dec 2018, 22:13
Has thanked: 0 time
Been thanked: 0 time

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

Postby hidalgo » 15 Dec 2018, 17:28

You are welcome!
Im having some troubles importing collection from mtg arena
Captialization does not matter in Windows so Etc and etc are the same thing.

I need 2 things to figure out what went wrong
1. Send me (attach to reply) a .zip file with \etc directory so I can see how did you modify the config.
2. I need to know the full path where you have Mtg Arena installed.

P.S. did you restart Mtgdb.Gui after changing the config?
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 Qumojo » 19 Dec 2018, 03:08

Can't thank you enough for your amazing app, makes the process of searching for specifics cards so much more easier.

I am not sure if I am missing some tooltip info but I can't seem to figure out how to quickly reset filters inserted as text in the search bar as we can do with the others buttons using that fantastic middle mouse click shortcut.

I think it would be cool if we could do a middle mouse click in the bar or click at the a magnifying glass, and remove all text/filter in one go instead of having to select/triple click on it and press a backspace key.

Just a thought.

Thanks again in any case.
Qumojo
 
Posts: 31
Joined: 11 Dec 2018, 14:32
Has thanked: 3 times
Been thanked: 2 times

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

Postby hidalgo » 19 Dec 2018, 12:38

Hi Qumojo, you are welcome.

I think it's a good idea to add a possibility to clear the search bar using mouse only, including middle mouse click shortcut, for consistency with other filters. The same applies to legality filter, which misses fast clearing functionality.

Finally I would add another single button to reset absolutely all filters.

I am missing the possibility to quickly reset all filters too.

UPDATE: done in 3.8.0.0
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 » 02 Jan 2019, 10:44

Hi, how to re edit the ect file as if i change the directory path like old rule like this
<Directory Path="X:\Magic the Gathering\Card sets\XLHQ" Zoom="Any" >
<Directory Path="X:\Magic the Gathering\Card sets\Zoom" Zoom="Any" >
<Directory Path="X:\Magic the Gathering\Card sets\No Zoom" >
<Directory Path="X:\Magic the Gathering\software for magic the gathering\Mtgdb.Gui\images\Artworks\Artists" Art="True" ReadMetadataFromAttributes="False" />

the app won't run ( as crash of wrong setting )
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 » 02 Jan 2019, 14:14

Hi Aidscoi! The configs should work as before without any changes from your side.

Send me a .zip with logs, I believe the log specifies the failed position within config file.

If it so happens I cannot figure it out by logs only, then I will ask you to send me a .zip with etc files.

Sorry for breaking the app.

P.S.

you should close directory tags to keep XML correct:

<Directory Path="X:\Magic the Gathering\Card sets\XLHQ" Zoom="Any" />
<Directory Path="X:\Magic the Gathering\Card sets\Zoom" Zoom="Any" />
<Directory Path="X:\Magic the Gathering\Card sets\No Zoom" />
<Directory Path="X:\Magic the Gathering\software for magic the gathering\Mtgdb.Gui\images\Artworks\Artists" Art="True" ReadMetadataFromAttributes="False" />
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 » 02 Jan 2019, 14:33

Hi, as the new version messing with my bitdefender so i accidently replace the old ect config files with the new one. It's ok to try setting with new path as the set from new json file changed, you just need to tell me how to edit the path to get the right config
example
<Root Name="XLHQ" Path="X:\Magic the Gathering\Card sets\XLHQ\XLHQ Mega" Exclude="100DPI;100 DPI;200DPI;200 DPI;Crops" />
<Root Name="Promo" Path=" this one i think i have to reposition as changed before " />
<Root Name="PTour" Path=" like above " />
<Root Name="Torrent" Path=" like above " />


<!--

<Directory Group="xlhq" Zoom="Any" Root="XLHQ" Path="X:\Magic the Gathering\Card sets\XLHQ\XLHQ Mega" /> don't know if setting like this ok or not
<Directory Group="xlhq" Zoom="Any" Set="dvd" Root="XLHQ" Path="DDA - Duel Decks%3a Anthology\DVD-EN Cards 300DPI" /> change in v4 i think
<Directory Group="xlhq" Zoom="Any" Set="evg" Root="XLHQ" Path="DDA - Duel Decks%3a Anthology\EVG-EN Cards 300DPI" />
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 » 02 Jan 2019, 22:15

... Root="XLHQ" ...
don't know if setting like this ok or not
You can use @Root attribute to set base directory and @exclude (optionally) in one <Root /> tag for many <Directory /> tags:

Code: Select all
<ImageLocations>
  <Root Name="XLHQ" Path="X:\Magic the Gathering\Card sets\XLHQ\XLHQ Mega" Exclude="100DPI;100 DPI;200DPI;200 DPI;Crops" />

  <!-- path is empty because there is nothing to add to Path from Root tag -->
  <Directory Group="xlhq" Zoom="Any" Root="XLHQ" Path="" />

  <Directory Zoom="Any" Set="dvd" Root="XLHQ" Path="DDA - Duel Decks%3a Anthology\DVD-EN Cards 300DPI" /> 
  <Directory Zoom="Any" Set="evg" Root="XLHQ" Path="DDA - Duel Decks%3a Anthology\EVG-EN Cards 300DPI" />
  ...
<ImageLocations />
When reading the config the application will add

Path="X:\Magic the Gathering\Card sets\XLHQ"
Exclude="100DPI;100 DPI;200DPI;200 DPI;Crops"

to all Directory tags whose @Root = "XLHQ"
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 » 03 Jan 2019, 04:55

thank you, i manage to re edit the link to get the cards and artworks show
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 » 03 Jan 2019, 09:58

Is there any best way to re import the collection from old version ( using jsonv3 ) ? as i check the app will show the cards in Arena collection correctly but nothing show with the old collection
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 » 03 Jan 2019, 15:55

Is there any best way to re import the collection from old version ( using jsonv3 ) ? as i check the app will show the cards in Arena collection correctly but nothing show with the old collection
I suppose you have the old collection as .json file.

Mtgdb.Gui.v4 looks at
Code: Select all
history\<formNumber>\<tabNumber>.json
and converts it to
Code: Select all
history\<formNumber>\<tabNumber>.v2.json
so here is the procedure.

1. move history\0\0.v2.json file away from history directory (first form/first tab)
2. open previous version of Mtgdb.Gui v3
3. import your old collection
4. close Mtgdb.Gui v3 to make it save history\0\0.json file
5. run current version of Mtgdb.Gui v4

v4 will see history\0\0.json and create history\0\0.v2.json from it
with the collection you imported in v3.8

P.S. maybe you can replace steps 2, 3, 4 by just moving your saved .json with collection to history\0\0.json
User avatar
hidalgo
 
Posts: 354
Joined: 17 Oct 2016, 21:51
Location: Russia, Moscow
Has thanked: 58 times
Been thanked: 80 times

PreviousNext

Return to Magic: The Gathering - Duels of the Planeswalkers

Who is online

Users browsing this forum: No registered users and 19 guests


Who is online

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

Login Form