doppel222 Posted November 11, 2014 Share Posted November 11, 2014 Update: TOPIC SOLVED. CASE CLOSED. I don't see anything wrong in here, I have Python v.3.4.2 My command line is not wrong and my file has no extension. So what's the problem? I would be really happy if someone can help me the extract the scripts on this file "data01100.arc" Quote Link to comment Share on other sites More sharing options...
Mephisto Posted November 11, 2014 Share Posted November 11, 2014 Not really familiar with using python, but are you sure the command line is correct? Seems kind of weird for the command to be a file name itself. ./bgi_dump.py <filename> or if there exists a python command or something py bgi_dump.py <filename> makes a bit more sense. Not familiar with what you're trying to do though sorry :< Quote Link to comment Share on other sites More sharing options...
binaryfail Posted November 11, 2014 Share Posted November 11, 2014 There's something a little bit different about the game scripts here... Try this... open up bgi_common.py and look for the line that says..... res = data.find(b'\x1B\x00\x00\x00', pos+1) Change the 1B into F4 then try running the dumper again. I don't know if that's all that needs to be done, but it should do something. Quote Link to comment Share on other sites More sharing options...
doppel222 Posted November 11, 2014 Author Share Posted November 11, 2014 There's something a little bit different about the game scripts here... Try this... open up bgi_common.py and look for the line that says..... res = data.find(b'\x1B\x00\x00\x00', pos+1) Change the 1B into F4 then try running the dumper again. I don't know if that's all that needs to be done, but it should do something. Still the same nothing happens. I extract the .arc data using AE - VN Tools and I got some plain raw files (no extensions). Now I need to dump it (using BGI Tools) to get the scripts but I always get the same error. It look like it doesn't even read the file. Quote Link to comment Share on other sites More sharing options...
binaryfail Posted November 11, 2014 Share Posted November 11, 2014 Are you sure that you edited the line in bgi_common.py and then ran bgi_dump.py again? Quote Link to comment Share on other sites More sharing options...
doppel222 Posted November 11, 2014 Author Share Posted November 11, 2014 Are you sure that you edited the line in bgi_common.py and then ran bgi_dump.py again? Yeah I changed it to f4 Quote Link to comment Share on other sites More sharing options...
binaryfail Posted November 11, 2014 Share Posted November 11, 2014 It should work then.... Quote Link to comment Share on other sites More sharing options...
doppel222 Posted November 11, 2014 Author Share Posted November 11, 2014 Not really familiar with using python, but are you sure the command line is correct? Seems kind of weird for the command to be a file name itself. ./bgi_dump.py <filename> or if there exists a python command or something py bgi_dump.py <filename> makes a bit more sense. Not familiar with what you're trying to do though sorry :< Thanks Mephisto it works. It should work then.... I did what Mephisto told me by having a py at the beginning of the code. Why does your works w/out that? Edit: Oh I saw it, its python. Its not even in the tut Quote Link to comment Share on other sites More sharing options...
binaryfail Posted November 11, 2014 Share Posted November 11, 2014 I did what Mephisto told me by having a py at the beginning of the code. Why does your works w/out that? I used the command for python ... which should be the same thing. Quote Link to comment Share on other sites More sharing options...
doppel222 Posted November 11, 2014 Author Share Posted November 11, 2014 I used the command for python ... which should be the same thing. Is it always necessary to have that at the beginning of the code? Quote Link to comment Share on other sites More sharing options...
binaryfail Posted November 11, 2014 Share Posted November 11, 2014 Is it always necessary to have that at the beginning of the code? It's usually a good idea to do that. It's a habit for me. Quote Link to comment Share on other sites More sharing options...
Mephisto Posted November 11, 2014 Share Posted November 11, 2014 Glad to see it worked, thought the command was kind of weird. You need the py since you're running it from command prompt. The py is the command that you are running, and what you are running through it is the .py file, which is passed an argument <filename>. Quote Link to comment Share on other sites More sharing options...
ILOVEPIE Posted November 12, 2014 Share Posted November 12, 2014 it has nothing to do with the filename it has everything to do with the number of parameters python ./bgi_dump.py filename param 0 1 2 wheras: ./bgi_dump.py filename param 0 1 there's no param 2 so it freaks out and says your file isn't right 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.