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.
Anonymous
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.
I did use it with a "clean" cards.xml when I made that error happen, so I'll attach my MSE file here.
It says it's awaiting moderation, i assume you have access to do that? :p
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
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.
Nah, the templates don't have anything to do with it.
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
4 IMPORTANT - Did you actually try exporting the single card set that you posted above?
Really glad that you're actually putting down time into this project btw :D
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.
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)
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
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
Is your system on a non-American localization?
Last edit: Kirk Joppy 2014-04-03
Indeed it is
I'm from Sweden
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.
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.
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.
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.
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.