It is currently 20 Feb 2018, 11:36
   
Text Size

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

New decks and cards for Stainless Games' release

Moderators: Xander9009, CCGHQ Admins

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

Postby aidscoi168 » 11 Jan 2018, 08:19

Rival of Ixalan update in json data file, i'm uploading 123 new artworks for this set and in process finding other 89 artworks
aidscoi168
 
Posts: 131
Joined: 31 Dec 2016, 17:49
Has thanked: 41 times
Been thanked: 17 times

Mtgdb.Gui v3.0.9.6

Postby hidalgo » 12 Jan 2018, 07:20

New RIX Rivers of Ixalan set.
User avatar
hidalgo
 
Posts: 221
Joined: 17 Oct 2016, 21:51
Location: Russia, Moscow
Has thanked: 24 times
Been thanked: 40 times

Mtgdb.Gui v3.1.0.0 alignment in Search result and Deck

Postby hidalgo » 14 Jan 2018, 04:19

That was bothering me since the very beginning. The problem of laying out cards depending on available horizontal or vertical space.
The solution had to serve two conflicting purposes:

  • reduce large empty horizontal or vertical space when it's just not enough to show one more row or column
  • text or image truncated when the space is considered enough to display almost-entirely-fitting row or column of cards

I was never able to come up with a solution good enough so I would say "that's the right way to do this!".
Eventually I did what I did because I've come to believe ther will be no such silver bullet.

align_before.jpg
the top right card is truncated

align_after.jpg
after hitting align button if is fully displayed

align_center.jpg
When there is excessive space to display the cards, they are aligned by center
center
User avatar
hidalgo
 
Posts: 221
Joined: 17 Oct 2016, 21:51
Location: Russia, Moscow
Has thanked: 24 times
Been thanked: 40 times

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

Postby aidscoi168 » 14 Jan 2018, 15:39

Thanks you for this good new feature, i'm alway got mad about change setting for display to show the 2nd card without lose bottom part ( the number of copy in deck/collection is hard to see ) but nothing working, atleast with align feature i can choose how to display cards and thier infomations for my specific purposes ( copy card's name for naming artwork or check copy number/collection to build deck from real cards pool ). Also i notice that after update with ver 3.0.9.6 and now 3.1 the app lost infomation about collection that i think include in all the history files, i have to manual add collection with the file i save before and re-add the new cards at the momment. Do you think we better split collection list into 1 individual file that not affect when update to new version of Mtgdb.Gui ?
aidscoi168
 
Posts: 131
Joined: 31 Dec 2016, 17:49
Has thanked: 41 times
Been thanked: 17 times

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

Postby hidalgo » 15 Jan 2018, 01:16

after update with ver 3.0.9.6 and now 3.1 the app lost infomation about collection
I am really sorry for that bug!
Fixed in 3.1.0.1, thank you for reporting this and other bugs too, your help is invaluable!

Do you think we better split collection list into 1 individual file
Recently I was thinking about the problem of tracking collection and other non-tab-local
settings (language, show/hide tooltips) in the same history files with settings relative to
one tab only.

While separarting collection to its own file is better solution than the present one, it would
still not solve the problem of bugs like you just reported, when collection is not loaded from
history on program startup.

No matter where the collection is stored, there is still a need to undo/redo the changes you make to it.
If so, then the history file must contain a reference to a collection state, if not the state itself like it does now.

Suppose you have history\collection.json
Code: Select all
{
  "states": [
    {"some card id": 4, "some other id": 1, ...},
    {...},
    ...
  ]
}
then in history\0.json (1st tab history file) you would have
Code: Select all
 {
  "SettingsHistory": [
    { "Collection": 0, "Language": "en", ... },
    { "Collection": 1, ... },
    ...
  ],
  "SettingsIndex": 10
}
where "Collection": 1 tells you to look at collection.json, find the state #1 and load it.

So in principle the problem does not go away: as long as you are allowed to undo/redo collection changes, the program must use 0.json to figure out what is your collection, no matter if the actual collection state is stored in 0.json or in a separate file collection.json.

Then still there is a possibility for me to screw the code so that it forgets to load the collection state from history when starting the program.

Anyway, I believe I will eventually separate the collection, as well other settings not relative to a specific tab to a separate file,
because it is a more correct way to storing them and may prevent some other errors in the future.
User avatar
hidalgo
 
Posts: 221
Joined: 17 Oct 2016, 21:51
Location: Russia, Moscow
Has thanked: 24 times
Been thanked: 40 times

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

Postby aidscoi168 » 04 Feb 2018, 15:52

Hi, i already update to newest version but it look like the app not save the most recent history. whenever i open the app, result is not recent but days before ( maybe before 3.1.0.5 )
aidscoi168
 
Posts: 131
Joined: 31 Dec 2016, 17:49
Has thanked: 41 times
Been thanked: 17 times

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

Postby hidalgo » 05 Feb 2018, 01:08

aidscoi168 wrote:Hi, i already update to newest version but it look like the app not save the most recent history. whenever i open the app, result is not recent but days before ( maybe before 3.1.0.5 )
Hi, I cannot reproduce this on my PC

For example, I:
open Mtgdgb.Gui
add a card to deck
restart Mtgdb.Gui
The added card is in the deck

My current version is v3.1.0.5

0. Make sure the link you are using is pointing to the last version:
Right-click the shortcut Mtgdb.Gui.lnk, in context menu choose `Properties`, choose `Shortcut` tab.
`Target` and `Start in` fields should contain `v3.1.0.5`
1. Make sure Mtgdb.Gui process actually ends after you close the application:
Start Mtgdb.Gui, wait until the loading is complete.
Open windows Task Manager (default) or any other program you have to monitor running processes.
Find mtgdb.Gui.exe in a list of running processes.
Close Mtgdb.Gui window
See if Mtgdb.Gui process disappears from the list of running processes as expected.
2. Please send me .zip files with \logs and \history directories
User avatar
hidalgo
 
Posts: 221
Joined: 17 Oct 2016, 21:51
Location: Russia, Moscow
Has thanked: 24 times
Been thanked: 40 times

Previous

Return to Magic: The Gathering - Duels of the Planeswalkers

Who is online

Users browsing this forum: No registered users and 4 guests


Who is online

In total there are 4 users online :: 0 registered, 0 hidden and 4 guests (based on users active over the past 10 minutes)
Most users ever online was 279 on 11 Jul 2013, 22:03

Users browsing this forum: No registered users and 4 guests

Login Form