Closed registered-to-post-this closed 3 years ago
Are you absolutely sure this EBX is really using ISO 8859-1 encoding? I've put UTF-8 there because that's what was apparently used for string fields in Battlefield 3. Post the sample which throws an error here.
Sample of an EBX that causes the above error (there may be more, this is just the first one I found): pf_cloudpatch_01.zip
Yeah, I can't make sense of it, it just looks like garbage data. It's definitely not ISO 8859-1, though. Needs further investigation. You should create an issue regarding this.
System used: Windows 10 Enterprise ver. 19042.867 (x64), Python 3.9.2 (x64) Attempting to run ebxtoasset.py on Battlefield 1 assets results in this error:
Using ISO-8859-1 instead of utf-8 seems to work with both ebxtoasset.py and ebxtottext.py but I only tested the change on Battlefield 1 assets.