jlkatz / OCTGN.OCTGNDeckConverter

A comprehensive OCTGN deck converter for OCTGN 3 which can convert several formats, websites, and plain text into the OCTGN 3 format.
http://octgngames.com/deckconverter/
7 stars 9 forks source link

Mage Wars - Text from Clipboard import not working #17

Closed sIKE23 closed 10 years ago

sIKE23 commented 10 years ago

Did some testing this evening the text from clipboard is not working now though the mage with no count is now working.

here is the file that I used for testing: https://dl.dropboxusercontent.com/u/58842665/blasting-banker-sbb-export.txt

here is a sample card from this file:

 Acid Ball Attack 1 2

card name = Acid Ball spell type = Attack count = 1 cost = 2

the line is tab delimited and cost should be ignored....

jlkatz commented 10 years ago

Code is checked in that should work now. Previously, the "text from clipboard" mode of entering data would only attempt to parse cards using generic formats such as "X Card Name" or "Card Name X". I added code specifically for MW to attempt to parse text from the clipboard using the SBB parser before falling back to the generic converter.