Page 1 of 2

Failure when dumping BF3/BF4 game files

Posted: Tue Jan 03, 2017 8:29 pm
by Portugalotaku
Whenever I try dumping the files of either of these games, I get this error:

Python 2.7 (r27:82525, Jul 4 2010, 09:01:59) [MSC v.1500 32 bit (Intel)] on win32
Type "copyright", "credits" or "license()" for more information.
>>> ================================ RESTART ================================
>>>
Chunks0.toc
F:f3\dump\chunks\5484aa0d99720e7cbe7a9998d6128d71.chunk

Traceback (most recent call last):
File "F:\Python_Scripts\dumper.py", line 366, in <module>
main()
File "F:\Python_Scripts\dumper.py", line 363, in main
dump(fname,outputfolder)
File "F:\Python_Scripts\dumper.py", line 194, in dump
casHandlePayload(entry,chunkPathToc+hexlify(entry.elems["id"].content)+".chunk")
File "F:\Python_Scripts\dumper.py", line 347, in casHandlePayload
makedirs2(outPath)
File "F:\Python_Scripts\dumper.py", line 68, in makedirs2
if not os.path.isdir(manualPart): os.makedirs(manualPart)
File "C:\Python27\lib\os.py", line 150, in makedirs
makedirs(head, mode)
File "C:\Python27\lib\os.py", line 157, in makedirs
mkdir(name, mode)
WindowsError: [Error 123] The filename, directory name, or volume label syntax is incorrect: 'F:\x08f3'
>>>

Anyone know how to fix this damn thing?

Re: Failure when dumping BF3/BF4 game files

Posted: Tue Jan 31, 2017 1:12 pm
by Portugalotaku
Anyone? I cannot get this to work no matter how hard I try.

Re: Failure when dumping BF3/BF4 game files

Posted: Thu Feb 02, 2017 5:08 am
by Wobble
[out]

Re: Failure when dumping BF3/BF4 game files

Posted: Thu Feb 02, 2017 10:43 pm
by Portugalotaku
That's the thing, the paths are correct in the dumper script:

##Adjust paths here. The script doesn't overwrite existing files so set tocRoot to the patched files first,
##then run the script again with the unpatched ones to get all files at their most recent version.

bf4Directory=r"F:\origin\Battlefield 3"
outputfolder="F:\bf3\dump"

This is what the paths are set as.

Re: Failure when dumping BF3/BF4 game files

Posted: Thu Feb 02, 2017 11:46 pm
by Wobble
[out]

Re: Failure when dumping BF3/BF4 game files

Posted: Fri Feb 03, 2017 1:33 am
by Portugalotaku
I did not remove it, it came like that.
In fact, I did not edit the script on any way, shape or form. I just changed the paths.
It's still not working.

Re: Failure when dumping BF3/BF4 game files

Posted: Fri Feb 03, 2017 2:08 am
by Wobble
[out]

Re: Failure when dumping BF3/BF4 game files

Posted: Fri Feb 03, 2017 8:29 pm
by Portugalotaku
Well editing the script did jack shit. I will try getting yet another different version and report back.

Re: Failure when dumping BF3/BF4 game files

Posted: Sat Feb 04, 2017 2:11 am
by Wobble
[out]

Re: Failure when dumping BF3/BF4 game files

Posted: Sat Feb 04, 2017 12:40 pm
by daemon1
Wobble wrote:Well, if it came like that, then the original script was buggy.
The script was not buggy. Python user can put a string without "r" if he knows there will be no symbols recognized as escape sequences. So if it was for example,

outputfolder="F:\games\dragonage", it will work with no problems. Because "\g" will not be escape seq.
it will also work as outputfolder="F:/bf3/dump"
he could even use "F:\field3\dump"

Until Portugalotaku will understand how to write strings in python, nobody can help him.

Re: Failure when dumping BF3/BF4 game files

Posted: Sat Feb 04, 2017 1:48 pm
by Portugalotaku
I will never understand how to write strings in python, nor do I want to understand, otherwise I would not be asking for help.

I just want the script to work. The BF1 extraction script worked fine, I do not understand why this one does not.

Daemon1, I did not make the script, in case that was not obvious enough already. I do not understand coding at all, that's why I came to this forum, to ask about this with people that do understand.

Re: Failure when dumping BF3/BF4 game files

Posted: Sat Feb 04, 2017 3:55 pm
by daemon1
Portugalotaku wrote:I do not understand coding at all
You don't have to. This "r" is not a part of the script, its a part of path that you want to change.

So now, what happens if you do it like wobble said?

Code: Select all

outputfolder=r"F:\bf3\dump"

Re: Failure when dumping BF3/BF4 game files

Posted: Sat Feb 04, 2017 4:01 pm
by Portugalotaku
I already tried that before, it does not work.

Re: Failure when dumping BF3/BF4 game files

Posted: Sat Feb 04, 2017 4:32 pm
by daemon1
Portugalotaku wrote:I already tried that before, it does not work.
what EXACTLY happens?

Re: Failure when dumping BF3/BF4 game files

Posted: Sat Feb 04, 2017 5:07 pm
by Acewell
Portugalotaku wrote:F:f3\dump\chunks\5484aa0d99720e7cbe7a9998d6128d71.chunk
....
WindowsError: [Error 123] The filename, directory name, or volume label syntax is incorrect: 'F:\x08f3'
you can see the first slash + b is being interpreted as a backspace escape character, it is omitted
from that printed path, placing an r before the string like Wobble said earlier should correct it. (: