Menu

#18 Says three cards won't be exported, actually none are.

1.0
open
nobody
None
2014-04-05
2014-03-20
Anonymous
No

It claims managed to export most of the set, but it wouldn't export three of the cards.

Also, I can't find any of my cards in cockatrice in the new cards.xml file generated. In addition, the file size of cards.xml is now smaller than my backup file.

This is the error message I get:
Card Divine Verdict already in set Cockatrice (COCKATRICE)
Card Savage Surge already in set Cockatrice (COCKATRICE)
Card Last Breath already in set Cockatrice (COCKATRICE)
D:\Gustav\Downloads\magicHack-windows-internetTest\library.zip\util.py:67: Unico
deWarning: Unicode equal comparison failed to convert both arguments to Unicode
- interpreting them as being unequal
D:\Gustav\Downloads\magicHack-windows-internetTest\library.zip\util.py:70: Unico
deWarning: Unicode equal comparison failed to convert both arguments to Unicode
- interpreting them as being unequal

Keep in mind that none of my cards are named Divine Verdict, Savage surge or Last breath.

Discussion

  • Kirk Joppy

    Kirk Joppy - 2014-03-21

    This is a bit funky. Can you try starting with an "original" cards.xml file and then export your custom set? If you still get this error, then attach your MSE file to a post here so that I can try to reproduce the problem.

     
  • Anonymous

    Anonymous - 2014-03-21

    I did use it with a "clean" cards.xml when I made that error happen, so I'll attach my MSE file here.

     
  • Anonymous

    Anonymous - 2014-03-24

    It says it's awaiting moderation, i assume you have access to do that? :p

     
  • Kirk Joppy

    Kirk Joppy - 2014-03-24
    1. Make the smallest set you can that reproduces the error.
    2. Post the MSE file
    3. I will look at and fix the problem.
     
  • Anonymous

    Anonymous - 2014-03-27

    Okay, I made a set containing a single card and I get this error message

    Card Divine Verdict already in set Cockatrice (COCKATRICE)
    Card Last Breath already in set Cockatrice (COCKATRICE)
    Card Savage Surge already in set Cockatrice (COCKATRICE)
    Traceback (most recent call last):
    File "gui.pyc", line 152, in export
    File "gui.pyc", line 242, in doExport
    File "mws.pyc", line 139, in importCards
    File "codecs.pyc", line 679, in next
    File "codecs.pyc", line 610, in next
    File "codecs.pyc", line 525, in readline
    File "codecs.pyc", line 472, in read
    UnicodeDecodeError: 'utf8' codec can't decode bytes in position 10-13: invalid d
    ata

     
  • Anonymous

    Anonymous - 2014-03-27

    Could it have anything to do with my additional templates? I have some extra ones like 4-ability planeswalkers and such, but I'm not using them in these sets.

     
    • Kirk Joppy

      Kirk Joppy - 2014-03-29

      Nah, the templates don't have anything to do with it.

       
  • Kirk Joppy

    Kirk Joppy - 2014-03-29

    Here's what I've found:

    Firt of all, let's ignore those lines that said

    Card Divine Verdict already in set Cockatrice (COCKATRICE)
    Card Last Breath already in set Cockatrice (COCKATRICE)
    Card Savage Surge already in set Cockatrice (COCKATRICE)

    That's a separate issue and actually not really a problem. Trust me for now. Let's focus on why you can't get your single card set to export.

    I Downloaded the .mse-set file you posted. Then I opened MSE and exported set to mws format, and also exported the jpg images. Then I opened magicHack from source using python 2.6 (2.7 doesn't work). I selected the appropriate drive paths for the set and images, and exported the test set to Cockatrice. The card exported fine, but the image linking didn't work. The reason for this already noted in an existing ticket which I've been meaning to address. Note that my procedure did not reproduce the error you describe.

    I also tried this with the packaged Windows exe and it worked.

    This leads me to believe that the error arises on your end. I need some more information

    1. What system are you on (ie Windows, Linux, Mac)
    2. Are you running the Windows .exe file or are you running the source directly through python?
    3. If you're running directly through python, what version are you using? magicHack only works with 2.6.

    4 IMPORTANT - Did you actually try exporting the single card set that you posted above?

     
  • Anonymous

    Anonymous - 2014-03-30
    1. Windows 7, Home Premium
    2. I'm using the .exe
    3. See above
    4. I did

    Really glad that you're actually putting down time into this project btw :D

     
    • Kirk Joppy

      Kirk Joppy - 2014-03-30

      Woah, wait a second... I just noticed in the error message you posted that the program is trying to run something from inside a .zip archive. You have to unzip the archive before you can run the program inside. Please try that.

       
  • Anonymous

    Anonymous - 2014-03-31

    The folder called "magicHack-windows-internetTest" Is unzipped. I now noticed there's another folder inside that called library.zip, but I figured that I did not need to unzip that. (And after I tried that, the same error message appeared anyway)

     
    • Kirk Joppy

      Kirk Joppy - 2014-03-31

      Oh, ok.

      Try this: Using exactly the set you posted above, change the title of the card to "mycard" with no other characters. Then go through the usual export steps.

      If there are any errors post them and a screenshot. Also post the .txt file that is generated when you do MSE's magic workstation export.

       

      Last edit: Kirk Joppy 2014-03-31
  • Anonymous

    Anonymous - 2014-04-02

    Same error as I before:

    Card Savage Surge already in set Cockatrice (COCKATRICE)
    Card Divine Verdict already in set Cockatrice (COCKATRICE)
    Card Last Breath already in set Cockatrice (COCKATRICE)
    Traceback (most recent call last):
    File "gui.pyc", line 152, in export
    File "gui.pyc", line 242, in doExport
    File "mws.pyc", line 139, in importCards
    File "codecs.pyc", line 679, in next
    File "codecs.pyc", line 610, in next
    File "codecs.pyc", line 525, in readline
    File "codecs.pyc", line 472, in read
    UnicodeDecodeError: 'utf8' codec can't decode bytes in position 10-13: invalid d
    ata

     
    • Kirk Joppy

      Kirk Joppy - 2014-04-03

      Is your system on a non-American localization?

       

      Last edit: Kirk Joppy 2014-04-03
  • Anonymous

    Anonymous - 2014-04-04

    Indeed it is

     
  • Anonymous

    Anonymous - 2014-04-04

    I'm from Sweden

     
    • Kirk Joppy

      Kirk Joppy - 2014-04-04

      That's probably the source of the problem, and if so it's going to be kind of hard for me to debug.

      Are you proficient with Python? If so I would strongly recommend you to download the source files and do a little bit of debugging yourself. In fact, this would really help the project because we could find a way to make it work on different localizations.

      The issue here seems to be something with the unicode string processing.

       
    • Kirk Joppy

      Kirk Joppy - 2014-05-12

      Could you please download the newest version from the website and try it? I think it will fix your problem. Please let me know if it works.

       
  • Anonymous

    Anonymous - 2014-04-05

    I have never learned Python, and I'm still a pretty inexperienced coder, so I don't know how much I could get out of it, but I could look through the code I suppose.

     
    • Kirk Joppy

      Kirk Joppy - 2014-04-05

      If you're inclined to try to debug I will definitely help you. Note that the program uses Qt, which is a graphical interface library. That makes some parts of the code look a little weird because it's not "pure python". It's not hard, just different in some ways.

       
    • Kirk Joppy

      Kirk Joppy - 2014-04-27

      Oh man. I just looked through the code to fix some other stuff and I realized it's pretty badly organized. This was, in some way, the first real programming project I did and it shows. I apologize for that. I am beginning to rewrite the code base and clean it up. Hopefully in doing this I can fix the string handling and therefore fix this bug.

       

Anonymous
Anonymous

Add attachments
Cancel