daemon1 wrote:maybe its access rights. Try this version. If not, check folder names.
Tried first version on the updated full game script as you mentioned, for NFS Payback, but I had to delete the
.exe and the
.dll you made for the SWBF2 game (otherwise the .exe you made would crash instantly, since its made for SWBF obviously) and I used the
LZ77.dll and also to enable it in the script, after more than 2h of extraction an error popped out but I could not save it to post it here as python crashed.
There is a newly patched update for the NFSP game and wanted to try the script but no real success any possibility to make a version compatible please?
What files you need so I can upload for testing?
btw the script that extracts but shows error mid way, looks like this with the following modified lines by me:
Code: Select all
bf4Directory =r"R:\Origin\games\Need for Speed Payback"
targetDirectory = r"E:\3D Assets Game Geometry\NFSP_dump"
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
tocRoot = r"patch\win32" #patched and xpack files FIRST
tocRoot = r"data\win32" #unpatched vanilla files SECOND
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
catPath = r"Data\Win32\configurations\streaminginstallpackage\cas.cat"
updateCatPath = r"Patch\Win32\configurations\streaminginstallpackage\cas.cat"
catPath2 = r"Data\Win32\configurations\superbundleinstallpackage\cas.cat"
updateCatPath2 = r"Patch\Win32\configurations\superbundleinstallpackage\cas.cat"
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
LZ77 = cdll.LoadLibrary("LZ77")
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
try: readCat(cat, catPath2)
except: print "Patched cat not found."
if "tocRoot" in locals(): dumpRoot(tocRoot)
if "tocRoot2" in locals(): dumpRoot(tocRoot2)
If I still try the first script made for SWBF2 beta regardless of modification for NFSP it will not read and extract the patched cas/cat from update folder, keeps saying "Patched cat not found."