bstaple1 / MTGA_Draft_17Lands

Magic: The Gathering Arena draft tool that utilizes 17Lands data
MIT License
110 stars 31 forks source link

Tool doesn't work #17

Closed masu1208 closed 2 years ago

masu1208 commented 2 years ago

It never works in any type of game and I get a DraftStartSearch Error: 'cp932' codec can't decode byte 0x87 in position 3093: illegal multibyte sequence error in debug.log I have a problem with this. I believe the problem is probably that player.log is saved as cp932, but python uses UTF-8.

bstaple1 commented 2 years ago

Hi masu1208,

If I'm understanding the error correctly, it appears that the application is trying to open the file with a cp932 codec. The application doesn't explicitly set the codec so it's using a codec assigned by your operating system. You can check the assigned codec by following the steps in the image below.

image

The code in branch DEV_0303 sets the codec to "utf-8", which appears to be the right codec for the player.log file. Could you please run the python code in branch DEV_0303 to confirm that this is no longer an issue?

Thanks for bringing this to my attention.

masu1208 commented 2 years ago

I have confirmed that it works in Premier Draft, Quick Draft and Shield.

bstaple1 commented 2 years ago

Issue resolved in version 3.03