Closed anaik-zam closed 8 years ago
That's cardxml0.unity3d from Hearthstone? On ubuntu with python 3.5? I'm not getting that issue at all :/
Try the version from git master.
(hs) [18:39:18] adys@azura ~/.local/games/Hearthstone/Data/Win % unityextract --text cardxml0.unity3d
Written 1745002 bytes to '/home/adys/.local/share/wineprefixes/default/drive_c/Program Files (x86)/Hearthstone/Data/Win/plPL.txt'
Written 1732881 bytes to '/home/adys/.local/share/wineprefixes/default/drive_c/Program Files (x86)/Hearthstone/Data/Win/enUS.txt'
Written 1647645 bytes to '/home/adys/.local/share/wineprefixes/default/drive_c/Program Files (x86)/Hearthstone/Data/Win/jaJP.txt'
Written 1750750 bytes to '/home/adys/.local/share/wineprefixes/default/drive_c/Program Files (x86)/Hearthstone/Data/Win/ptBR.txt'
Written 1765836 bytes to '/home/adys/.local/share/wineprefixes/default/drive_c/Program Files (x86)/Hearthstone/Data/Win/deDE.txt'
Written 1606346 bytes to '/home/adys/.local/share/wineprefixes/default/drive_c/Program Files (x86)/Hearthstone/Data/Win/zhTW.txt'
Written 1735577 bytes to '/home/adys/.local/share/wineprefixes/default/drive_c/Program Files (x86)/Hearthstone/Data/Win/thTH.txt'
Written 1732881 bytes to '/home/adys/.local/share/wineprefixes/default/drive_c/Program Files (x86)/Hearthstone/Data/Win/enGB.txt'
Written 1772247 bytes to '/home/adys/.local/share/wineprefixes/default/drive_c/Program Files (x86)/Hearthstone/Data/Win/frFR.txt'
Written 1615480 bytes to '/home/adys/.local/share/wineprefixes/default/drive_c/Program Files (x86)/Hearthstone/Data/Win/zhCN.txt'
Written 1758836 bytes to '/home/adys/.local/share/wineprefixes/default/drive_c/Program Files (x86)/Hearthstone/Data/Win/esES.txt'
Written 1761145 bytes to '/home/adys/.local/share/wineprefixes/default/drive_c/Program Files (x86)/Hearthstone/Data/Win/ruRU.txt'
Written 1753776 bytes to '/home/adys/.local/share/wineprefixes/default/drive_c/Program Files (x86)/Hearthstone/Data/Win/itIT.txt'
Written 1761209 bytes to '/home/adys/.local/share/wineprefixes/default/drive_c/Program Files (x86)/Hearthstone/Data/Win/esMX.txt'
Written 1646973 bytes to '/home/adys/.local/share/wineprefixes/default/drive_c/Program Files (x86)/Hearthstone/Data/Win/koKR.txt'
thanks for the quick reply. I tried the master but I still get the ascii error. cardxml0.unity3d is from Hearthstone build 5.0.0.12574 (Win) I'm running this in a docker container which runs a ubuntu 16.04 base image and has python 3.5.1. What os are you using?
Arch Linux. There's no reason it wouldnt work :/
I'd say make sure your system encoding is utf-8 but there's just about no way it wouldn't be on Linux.
Triple check that it is running on Python 3.5. /usr/bin/env python --version
should say 3.5.1
.
sys.getdefaultencoding() is 'utf-8' and python version is 3.5.1 It is working now. I was executing python3.5 /tools/python-unitypack-master/bin/unityextract ... I had to do the following
thanks for looking into it.
No data is being passed to write_to_file function when obj.type is "TextAsset", resulting in txt files containing "w". After passing d.script I get a traceback:
I'm running this on ubuntu 16.04 and python 3.5.1 d.script.encode("utf-8") with mode="wb" seems to work