Important information: this site is currently scheduled to go offline indefinitely by end of the year.

Failure when dumping BF3/BF4 game files

Post questions about game models here, or help out others!
Portugalotaku
mega-veteran
mega-veteran
Posts: 164
Joined: Fri Oct 02, 2015 3:35 pm
Has thanked: 9 times
Been thanked: 4 times

Failure when dumping BF3/BF4 game files

Post 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?
Portugalotaku
mega-veteran
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

Post by Portugalotaku »

Anyone? I cannot get this to work no matter how hard I try.
User avatar
Wobble
ultra-veteran
ultra-veteran
Posts: 584
Joined: Tue Jan 04, 2005 9:47 pm
Has thanked: 43 times
Been thanked: 112 times

Re: Failure when dumping BF3/BF4 game files

Post by Wobble »

[out]
Last edited by Wobble on Sun Mar 12, 2017 10:34 am, edited 1 time in total.
Portugalotaku
mega-veteran
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

Post 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.
User avatar
Wobble
ultra-veteran
ultra-veteran
Posts: 584
Joined: Tue Jan 04, 2005 9:47 pm
Has thanked: 43 times
Been thanked: 112 times

Re: Failure when dumping BF3/BF4 game files

Post by Wobble »

[out]
Last edited by Wobble on Sun Mar 12, 2017 10:34 am, edited 2 times in total.
Portugalotaku
mega-veteran
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

Post 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.
User avatar
Wobble
ultra-veteran
ultra-veteran
Posts: 584
Joined: Tue Jan 04, 2005 9:47 pm
Has thanked: 43 times
Been thanked: 112 times

Re: Failure when dumping BF3/BF4 game files

Post by Wobble »

[out]
Last edited by Wobble on Sun Mar 12, 2017 10:34 am, edited 1 time in total.
Portugalotaku
mega-veteran
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

Post by Portugalotaku »

Well editing the script did jack shit. I will try getting yet another different version and report back.
User avatar
Wobble
ultra-veteran
ultra-veteran
Posts: 584
Joined: Tue Jan 04, 2005 9:47 pm
Has thanked: 43 times
Been thanked: 112 times

Re: Failure when dumping BF3/BF4 game files

Post by Wobble »

[out]
Last edited by Wobble on Sun Mar 12, 2017 10:34 am, edited 1 time in total.
daemon1
MEGAVETERAN
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

Post 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.
Portugalotaku
mega-veteran
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

Post 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.
daemon1
MEGAVETERAN
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

Post 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"
Portugalotaku
mega-veteran
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

Post by Portugalotaku »

I already tried that before, it does not work.
daemon1
MEGAVETERAN
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

Post by daemon1 »

Portugalotaku wrote:I already tried that before, it does not work.
what EXACTLY happens?
Acewell
VIP member
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

Post 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. (:
Last edited by Acewell on Sat Feb 04, 2017 5:22 pm, edited 2 times in total.
Post Reply