CryingWestern Posted December 22, 2014 Share 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 Link to comment Share on other sites More sharing options...
Kelebek1 Posted December 22, 2014 Share 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 Link to comment Share on other sites More sharing options...
CryingWestern Posted December 22, 2014 Author Share 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 Link to comment Share on other sites More sharing options...
Kelebek1 Posted December 22, 2014 Share 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 Link to comment Share on other sites More sharing options...
CryingWestern Posted December 22, 2014 Author Share Posted December 22, 2014 ........................................ -___________________________- [], 【】 why can't they be the same thing.... But, thank you it actually worked. Now hopefully i can sleep. Quote Link to comment Share on other sites More sharing options...
CryingWestern Posted December 22, 2014 Author Share 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 Link to comment Share on other sites More sharing options...
Kelebek1 Posted December 22, 2014 Share 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 Link to comment Share on other sites More sharing options...
CryingWestern Posted December 22, 2014 Author Share Posted December 22, 2014 Alright now it's fully working thanks again XD Quote Link to comment Share on other sites More sharing options...
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.