NicknineTheEagle / Frostbite-Scripts

Python scripts for extracting Frostbite Engine assets
Other
87 stars 14 forks source link

Error when trying to run dumper.py #25

Closed 13Stewartc closed 3 years ago

13Stewartc commented 3 years ago

Traceback (most recent call last): File "d:\Stews-Stuff\13Stewartc(A) Tools\Frostbite Scripts\frostbite3\dumper.py", line 7, in import payload File "d:\Stews-Stuff\13Stewartc(A) Tools\Frostbite Scripts\frostbite3\payload.py", line 8, in liblz4 = ctypes.cdll.LoadLibrary(r"..\thirdparty\liblz4") File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.1776.0_x64qbz5n2kfra8p0\lib\ctypes__init__.py", line 452, in LoadLibrary return self._dlltype(name) File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.1776.0_x64qbz5n2kfra8p0\lib\ctypes__init.py", line 374, in init__ self._handle = _dlopen(self._name, mode) FileNotFoundError: Could not find module 'C:\Users\thirdparty\liblz4' (or one of its dependencies). Try using the full path with constructor syntax.

Same error happens if the frostbite scripts folder is anywhere on my system. Adding thirdparty to C:\Users\ removes this error but generates a new one. (still fails). I have Python 3.9 Windows Store edition as well as the standard edition installed.

NicknineTheEagle commented 3 years ago

Your working directory is set to C:\Users\%username% while it should be the dir where dumper.py is. If you're running the script using IDLE editor or with a double-click in Explorer, this shouldn't happen.

13Stewartc commented 3 years ago

Using Visual Studio Code to run the script. Appreciate your suggestion, set the workspace to the correct location, but it keeps throwing a different error now :/ Too many errors, not worth my time. Appreciate your help.