It is currently 17 Nov 2017, 21:26
   
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 - Windows app to search MTG cards and build de

Postby hidalgo » 01 Jun 2017, 13:44

Thanks! :)
User avatar
hidalgo
 
Posts: 201
Joined: 17 Oct 2016, 21:51
Location: Russia, Moscow
Has thanked: 16 times
Been thanked: 36 times

Mtgdb.Gui v1.3.6.4

Postby hidalgo » 03 Jun 2017, 21:08

  • Help button replaced by help menu.
  • Multi-field sort (For more details see help menu -> Help on Sort)
    Shift+Click sort button to sort by a field while preserving existing sort by other fields.
    Ctrl+Click sort button to stop sorting by a field.

    NOTE: Sorting by multiple fields is actually available in previous versions.
    But there were bugs I introduced by tweaking sort functionality not knowing
    about availability of multi-field sorting.
  • Added keyboard shortcuts
    Ctrl+T Open new tab
    Ctrl+Tab Move to next tab
    Ctrl+F4 close current tab
    Ctrl+O open deck
    Ctrl+S save deck
    Ctrl+P print deck
  • Added a button to open configuration file to window header.
  • Added some vertical space between filter by mana cost and other nearby filters
    to guarantee showing tooltip on filter by mana cost
  • Updated card prices
User avatar
hidalgo
 
Posts: 201
Joined: 17 Oct 2016, 21:51
Location: Russia, Moscow
Has thanked: 16 times
Been thanked: 36 times

Re: Mtgdb.Gui - Windows app to search MTG cards and build de

Postby Drglord » 09 Jun 2017, 12:35

Okay doesn't import decks no matter how hard you try.... Waited 2 days of downloading of images because it would not identify the images from xmage and after it was done Images still don't show.....

So far for me 0% use... I must be doing something wrong.....
Drglord
 
Posts: 12
Joined: 11 May 2017, 18:12
Has thanked: 1 time
Been thanked: 0 time

Re: Mtgdb.Gui - Windows app to search MTG cards and build de

Postby hidalgo » 09 Jun 2017, 16:40

Hello! Let me ask for some details to help resolve the problems.

doesn't import decks
Do you mean .dck file from XMage?
Can you please send me an example of deck that is failed to import?

because it would not identify the images from xmage
What directory with XMage images did you try to use?
I ask because in my computer the only xmage images I can find are at
Code: Select all
xmage\mage-client\plugins\images\
in .zip archives like 2ED.zip and so on. Mtgdb.Gui doesn't read images from .zip or any other archives
If you changed the configuration file etc\Mtgdb.Gui.xml to use the diretory above then no surprize the images don't show.

In case I am wrong can you please send a .zip with your config files.
The configuration files are located in \etc directory.

Waited 2 days of downloading of images ... and after it was done Images still don't show.....
1. Did you download images automatically using 'update' window or manually? If manually, what exactly did you download and to which directory?
2. Did you modify the configuration file etc\Mtgdb.Gui.xml? (I guess so, because you tried with XMage images)
If you kept a configuration file looking at XMage directory only then you should remove or comment your changes to make Mtgdb.Gui look for the images at their default location.

Again, In case I am wrong can you please send a .zip with your config files.
The configuration files are located in \etc directory.
User avatar
hidalgo
 
Posts: 201
Joined: 17 Oct 2016, 21:51
Location: Russia, Moscow
Has thanked: 16 times
Been thanked: 36 times

Mtgdb.Gui.1.3.6.5 - Display options

Postby hidalgo » 09 Jun 2017, 20:57

The attachment DisplaySettings-1.jpg is no longer available

  • New options in new configuration file
    etc\Mtgdb.Gui.Display.xml
    DisplaySettings-2.jpg
    Modified configuration

    • ShowTextualFields
      Set this option to "False" to display only card images in search result.
      With default value "True" textual card details are displayed in search result
      alongside the card image.

    • ShowDeck
      Set this option to "False" to hide the deck area in the bottow of the window.

    • AllowPartialCards
      The purpose is to use window space effectively when the window size is small.
      If you want to see only cards that completely fit whithin the window set the
      option value to "False".

    • CardSize
      Controls the size of card image shown in search result

    • ZoomedCardSize
      Controls the size of card image shown when you zoom a card
    DisplaySettings-3.jpg
    New settings in effect after restarting the program

  • Fixed zoomed image size being different depending on source file DPI.
User avatar
hidalgo
 
Posts: 201
Joined: 17 Oct 2016, 21:51
Location: Russia, Moscow
Has thanked: 16 times
Been thanked: 36 times

Mtgdb.Gui v1.3.6.6

Postby hidalgo » 12 Jun 2017, 22:43

  • Fixed a problem of 'purely negative' clauses in Lucene query language syntax.

    A pure negative clause is one that only prohibits values. Example:
    NOT (Angel OR Demon)

    Lucene search engine does not evaluate this correctly. Shortly speaking
    pure negative clause allways evaluates to FALSE. For more details see FAQ
    https://wiki.apache.org/solr/FAQ#Why_do ... sn.27t_.3F

    The fix was to add a 'Match any document' clause to any 'purely negative'
    clause turning a query like
    NOT (Angel OR Demon)
    to roughly
    * AND NOT (Angel OR Demon)

    Now the following query yields intuitively expected result:
    NOT(NOT (Angel OR Demon))
    returns any card that mentions either Angel or Demon in any field.

    Before that fix, the search result would be empty.
  • Filtering by buttons is re-implemented using Lucene indexing mechanism.

    Previously all the card texts were scanned to see if the card meets the conditions
    set by Filter buttons. The consequences are:
    1. Filtering by buttons may have become slighltly faster already.

    2. Filtering will not become slower as new sets are added.

    3. I could get rid of dirty hacky 'equip ' and 'enchant ' keyword definitions with
      trailing whitespace. A trailing whitespace was used to exclude words like 'equipped' or
      'enchanted'.
  • Improved highlighting text matched by Buttons filter.
  • Fixed search text syntax highlithing.
    In a query ANDY first 3 chars were incorrectly highlighted as AND operator.
Last edited by hidalgo on 03 Jul 2017, 01:31, edited 1 time in total.
User avatar
hidalgo
 
Posts: 201
Joined: 17 Oct 2016, 21:51
Location: Russia, Moscow
Has thanked: 16 times
Been thanked: 36 times

Mtgdb.Gui v2.0

Postby hidalgo » 03 Jul 2017, 01:27

  • CJK (Chinese/Japanese/Korean) fixes
    • Fixed not breaking lines in CJK text.
    • Fixed Search String not accepting clipboard paste with CJK characters
    • Fixed not highlighting CJK in search result. Example query: "リチ"~1
    • Prevented underlining field value in Search string query as to keep CJK
      characters readable.
  • Tooltip improvements
    • Selectable text in search result tooltips - instead of messing with tiny
      text fields.
    • Highlighting search matches in tooltip.
    • Better tooltip positioning.
  • Deck statistics window changes
    • The diagram has become more customizable.
    • There is no more table above the diagram
  • MS-Windows-version-independednt snapping. Even for Windows XP :)

    You can snap the window to the left or right side of the screen or one of 4 corners.
    To snap drag the window header to a screen side or corner. Alternatively use keyboard:
    • for sides: Win+Left, Win+Right, Win+Num4, Win+Num6
    • for corners: Win+Num1, Win+Num3, Win+Num9, Win+Num7
    • to maximize: Win+Up, Win+Num8
    • to minimize: Win+Down, Win+2
    • to center: Win+5
    • move to next screen: repeat any shortuct above
  • 2D language menu rather than a linear list
  • More precise tab header highlighting where tab trapezes intersect.
  • Fixed 'jumping' in search result and deck when clicking partially visible card.
  • Showing search string intellisense below the word you are typing.

  • Got rid of all DevExpress UI (User Interface) controls. DevExpress is a paid .NET
    Framework library providing extremly feature-rich controls to build UI. The consequences:
    • Loss of functionality
      • Custom filter is no longer available. Use search string instead.
      • No table above the diagram in deck statitics window.
    • Improved performance
      • Search result filters, sorts and scrolls faster.
      • Creating new tabs is faster.
      • Resizing form is faster and with less visual glitches.
    • Reduced download size from 70 MB to 40 MB
    • Increased UI improvement potential:

      Many improvements in this release would't be possible if keeping DevExpress.

      ~30% of code was about getting around DevExpress design flaws, bugs and gliches.
      It looks carefully designed and clean in demos and advertising pictures while on
      practice it doesn't do well some basic things.

      An example of that is search result highlighting - it is by design incapable to
      highlight more than 1 match per 1 field text (which is ridiculous!). That alone
      forced me to do all the text rendering myself. To the less degree same was true
      for scrolling, displaying partial cards, sorting, tabbed document interface...
User avatar
hidalgo
 
Posts: 201
Joined: 17 Oct 2016, 21:51
Location: Russia, Moscow
Has thanked: 16 times
Been thanked: 36 times

Re: Mtgdb.Gui - Windows app to search MTG cards and build de

Postby aidscoi168 » 09 Jul 2017, 06:44

Hour of Davastation already update in mtgjson, i'm making the list of missing artworks for this set.
aidscoi168
 
Posts: 117
Joined: 31 Dec 2016, 17:49
Has thanked: 37 times
Been thanked: 13 times

Mtgdb.Gui v2.0.5

Postby hidalgo » 10 Jul 2017, 00:57

  • Added images for
    CMA - Commander anthology
    HOU - Hours of devastation
    E01 - Archenemy: Nicol Bolas
  • Updated images for
    AKH - Amonkhet
    MPS_AKH - Amonkhet Invocations
Use Update window to download the most recent images
User avatar
hidalgo
 
Posts: 201
Joined: 17 Oct 2016, 21:51
Location: Russia, Moscow
Has thanked: 16 times
Been thanked: 36 times

Mtgdb.Gui source code

Postby hidalgo » 20 Jul 2017, 03:32

The project goes open source. You can find the source code here.

Why would you need that?
Well, I can imagine a c# developer re-using some of WinForms controls
  • Draggable tab headers
  • Tooltips with selectable text
  • Album like data viewer
  • Boolean filter buttons
These controls are located in Mtgdb.Controls project with no external dependencies just to make copy-pasting easy.
User avatar
hidalgo
 
Posts: 201
Joined: 17 Oct 2016, 21:51
Location: Russia, Moscow
Has thanked: 16 times
Been thanked: 36 times

Mtgdb.Gui v2.0.6

Postby hidalgo » 22 Jul 2017, 00:02

  • Fine-tuned tokenization for search string index. +,-,/,½ are not
    considered word separators anymore. As a result you can search +1/-1 in text
    using a following query:
    text:\+1/\-1
    It wouldn't work in previous versions as +1/-1 was indexed as
    a sequence of two words "1" and "1" with +,-,/ characters omitted from
    index.
  • Fixed search result highlighting for Korean - it does use spaces to
    separate words which I didn't know previously. An example query to see the
    difference:
    text:*신*
  • Fixed search text not working because of duplicate Id for cards Jaraku the Interloper, Scarmaker in AllSets-x.json.
  • Fixed startup delay between all sets loaded and images are selected.
    The reason was redundantly expecting artwork images lookup to complete.
  • Fixed stretching non-zoomed horizontal plane images
  • Render icon for {CHAOS} symbol
Last edited by hidalgo on 17 Sep 2017, 21:02, edited 1 time in total.
User avatar
hidalgo
 
Posts: 201
Joined: 17 Oct 2016, 21:51
Location: Russia, Moscow
Has thanked: 16 times
Been thanked: 36 times

Re: Mtgdb.Gui - Windows app to search MTG cards and build de

Postby aidscoi168 » 16 Sep 2017, 03:53

artworks still updating
aidscoi168
 
Posts: 117
Joined: 31 Dec 2016, 17:49
Has thanked: 37 times
Been thanked: 13 times

Mtgdb.Gui v2.0.7

Postby hidalgo » 17 Sep 2017, 21:07

Update_price.jpg

  • Update window: added button to update prices
  • Update window: shows progress bar when downloading images
  • Updated prices without using Gatherer Extractor because it currently fails to download prices.
  • Forge deck format: Fixed bug when loading forge 2 decks consecutively.
  • Removed card property IsMagicDuels because Magic Duels game is changing with time and the list of cards it supports needs to be maintained. I don't do it so the list gets obsolete.
User avatar
hidalgo
 
Posts: 201
Joined: 17 Oct 2016, 21:51
Location: Russia, Moscow
Has thanked: 16 times
Been thanked: 36 times

Mtgdb.Gui v 2.0.8

Postby hidalgo » 20 Sep 2017, 03:12

  • Statistics window
    1. Added 'collection price' report
    2. Added 'filter by search result' checkbox. Use it to see the price of only the
      part of your deck or collection that match search criteria from the search result window.
    collection_price_report.jpg
  • Search text input
    1. Fixed flickering in search input when text was ~100 characters or longer.
      It was usually happening when pasting big chunks of text into search input.
    2. Escaping special symbols when pasting into search input. 2004-11-20 converts to 2004\-11\-20.
      Without escaping 2004-11-20 gets interpreted as 2004 AND NOT 11 AND NOT 20
      1. Copy-pasting within search input does not involve escaping to avoid double-escaping
      2. When pasting a text into search input it gets separated by whitespaces from the rest of query to avoid field value to merge with field name of pasted text and vice-versa.
    3. When pasting text from tooltip to search text it is converted to a valid field-value query like ReleaseDate: 2004\-11\-20
      1. Allowed using $ in filter for number fields. Previously that would be considered syntax error. That makes pasting a price from a tooltip to produce valid query PricingMid: $1.50
  • Tooltips
    1. Increased tooltip font
    2. Added 'selectability' icon on selectable tootlips. I hope this helps more people see they can select and copy-paste text in card tooltips
    selectability_icon.jpg
User avatar
hidalgo
 
Posts: 201
Joined: 17 Oct 2016, 21:51
Location: Russia, Moscow
Has thanked: 16 times
Been thanked: 36 times

Re: Mtgdb.Gui - Windows app to search MTG cards and build de

Postby aidscoi168 » 20 Sep 2017, 14:16

Hi, can we set up to have all the chart type readable if we have lot of card in collection ? as i saw the chart currently just set to fit the screen ( not scroll support )
Attachments
Untitled.png
aidscoi168
 
Posts: 117
Joined: 31 Dec 2016, 17:49
Has thanked: 37 times
Been thanked: 13 times

PreviousNext

Return to Magic: The Gathering - Duels of the Planeswalkers

Who is online

Users browsing this forum: No registered users and 2 guests


Who is online

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

Login Form