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?
Important information: this site is currently scheduled to go offline indefinitely by end of the year.
Failure when dumping BF3/BF4 game files
-
- mega-veteran
- Posts: 164
- Joined: Fri Oct 02, 2015 3:35 pm
- Has thanked: 9 times
- Been thanked: 4 times
-
- mega-veteran
- Posts: 164
- Joined: Fri Oct 02, 2015 3:35 pm
- Has thanked: 9 times
- Been thanked: 4 times
Re: Failure when dumping BF3/BF4 game files
Anyone? I cannot get this to work no matter how hard I try.
-
- mega-veteran
- Posts: 164
- Joined: Fri Oct 02, 2015 3:35 pm
- Has thanked: 9 times
- Been thanked: 4 times
Re: Failure when dumping BF3/BF4 game files
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.
##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.
-
- mega-veteran
- Posts: 164
- Joined: Fri Oct 02, 2015 3:35 pm
- Has thanked: 9 times
- Been thanked: 4 times
Re: Failure when dumping BF3/BF4 game files
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.
In fact, I did not edit the script on any way, shape or form. I just changed the paths.
It's still not working.
-
- mega-veteran
- Posts: 164
- Joined: Fri Oct 02, 2015 3:35 pm
- Has thanked: 9 times
- Been thanked: 4 times
Re: Failure when dumping BF3/BF4 game files
Well editing the script did jack shit. I will try getting yet another different version and report back.
-
- MEGAVETERAN
- Posts: 2647
- Joined: Tue Mar 24, 2015 8:12 pm
- Has thanked: 65 times
- Been thanked: 2870 times
Re: Failure when dumping BF3/BF4 game files
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,Wobble wrote:Well, if it came like that, then the original script was buggy.
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.
-
- mega-veteran
- Posts: 164
- Joined: Fri Oct 02, 2015 3:35 pm
- Has thanked: 9 times
- Been thanked: 4 times
Re: Failure when dumping BF3/BF4 game files
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.
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.
-
- MEGAVETERAN
- Posts: 2647
- Joined: Tue Mar 24, 2015 8:12 pm
- Has thanked: 65 times
- Been thanked: 2870 times
Re: Failure when dumping BF3/BF4 game files
You don't have to. This "r" is not a part of the script, its a part of path that you want to change.Portugalotaku wrote:I do not understand coding at all
So now, what happens if you do it like wobble said?
Code: Select all
outputfolder=r"F:\bf3\dump"
-
- mega-veteran
- Posts: 164
- Joined: Fri Oct 02, 2015 3:35 pm
- Has thanked: 9 times
- Been thanked: 4 times
-
- MEGAVETERAN
- Posts: 2647
- Joined: Tue Mar 24, 2015 8:12 pm
- Has thanked: 65 times
- Been thanked: 2870 times
Re: Failure when dumping BF3/BF4 game files
what EXACTLY happens?Portugalotaku wrote:I already tried that before, it does not work.
-
- VIP member
- Posts: 1330
- Joined: Wed Nov 05, 2008 12:16 pm
- Has thanked: 2710 times
- Been thanked: 884 times
Re: Failure when dumping BF3/BF4 game files
you can see the first slash + b is being interpreted as a backspace escape character, it is omittedPortugalotaku wrote:F:f3\dump\chunks\5484aa0d99720e7cbe7a9998d6128d71.chunk
....
WindowsError: [Error 123] The filename, directory name, or volume label syntax is incorrect: 'F:\x08f3'
from that printed path, placing an r before the string like Wobble said earlier should correct it.
Last edited by Acewell on Sat Feb 04, 2017 5:22 pm, edited 2 times in total.