CryingWestern Posted December 22, 2014 Posted December 22, 2014 When I Just put the word in ("BGI_dump.py") it always gives me this error: http://puu.sh/dEMf7.png Even when inputting the full code ("BGI_dump.py <binaryfile"), I just want to know how to fix this error, because no matter what i do it just doesn't want to work. Quote
Kelebek1 Posted December 22, 2014 Posted December 22, 2014 I remember trying those tools and getting the same error. I don't have a file to test it on anymore though, can you up an example? Quote
CryingWestern Posted December 22, 2014 Author Posted December 22, 2014 here is what happens when i use it also on anything: http://puu.sh/dFare.png though here is the script, but i hope that someone can help me figure this out soon: https://www.mediafire.com/?4638bveevrnvze7 Quote
Kelebek1 Posted December 22, 2014 Posted December 22, 2014 Ah, yes, it's because the file is saved as ASCII but he's used non-ascii characters on that line. The easiest way to fix it is to just replace the 【】 characters on line 103 in bgi_common with ASCII []. Quote
CryingWestern Posted December 22, 2014 Author Posted December 22, 2014 ........................................ -___________________________- [], 【】 why can't they be the same thing.... But, thank you it actually worked. Now hopefully i can sleep. Quote
CryingWestern Posted December 22, 2014 Author Posted December 22, 2014 Now another prolem starts a new, i'm now getting an error for this: fo = open(script+bgi_setup.dext, 'w', encoding=bgi_setup.denc) apparrently 'encoding' is an invalid argument. Quote
Kelebek1 Posted December 22, 2014 Posted December 22, 2014 Alright, I had to just fix the same thing, I wasn't sure how it'd be on your Python. I guess you're using Python 2.7 (the script was made for 3). Ok so in bgi_dump, under 'import sys' add the line 'import io' Then on line 43, change the "fo = open" part into "fo = io.open" Then everywhere you see a fo.write, you need to add a "u" in front of the apostrophe that starts the string. If you don't know what I mean, here just use this instead: http://pastebin.com/VEfZXttZ Quote
CryingWestern Posted December 22, 2014 Author Posted December 22, 2014 Alright now it's fully working thanks again XD Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.