pak and ue4 asset parser
Usages
Basic Usages
from UE4Parse.Assets.Objects.FGuid import FGuid
from UE4Parse.Provider import DefaultFileProvider, MappingProvider
from UE4Parse.Versions import EUEVersion, VersionContainer
from UE4Parse.Encryption import FAESKey
import logging
logging.getLogger("UE4Parse").setLevel(logging.INFO) # set logging level
path = r"C:\Program Files\Epic Games\Fortnite\FortniteGame\Content\Paks"
aeskeys = {
FGuid(0,0,0,0): FAESKey("0xFE478B39DF1B1D4E8D8DFD38272F216DBE933E7F80ADCC45DC4108D70428F37D"),
}
import gc; gc.disable() # temporarily disabling garbage collector gives a huge performance boost
provider = DefaultFileProvider(path, VersionContainer(EUEVersion.LATEST))
provider.initialize()
provider.submit_keys(aeskeys) # mount files
gc.enable() # enable garbage collector again
provider.mappings = MappingProvider()
package_path = 'FortniteGame/Content/Animation/Game/MainPlayer/Skydive/ParaGlide/MechanicalEngineer/BS_MechanicalEngineer_Into_NoPack_GLIDER'
package = provider.try_load_package(package_path)
if package is not None:
package_dict = package.get_dict() # get json serializable dict
# write package_dict to json
import json
with open('something.json', 'w') as f:
json.dump(package_dict, f, indent=4)
Converting Textures
if texture := package.find_export_of_type("Texture2D"):
image = texture.decode() # returns PIL Image object
image.save("cool_image.png", "PNG") # save image
# for more information refer to https://pillow.readthedocs.io/en/stable/reference/Image.html?highlight=Image#PIL.Image.Image
Links
Notes for Developers
-
Developers can use pyximport for development purposes
import pyximport pyximport.install()
Metadata
Release files for UE4Parse 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| UE4Parse-0.0.1.tar.gz | 123.6 kB | Without provenance | Details for UE4Parse-0.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| UE4Parse-0.0.1-cp39-cp39-win_amd64.whl | CPython 3.9 | CPython 3.9 | Windows x86-64 | Details for UE4Parse-0.0.1-cp39-cp39-win_amd64.whl |
Total release size: 284.6 kB
Release files / UE4Parse-0.0.1.tar.gz
| Download URL | UE4Parse-0.0.1.tar.gz |
|---|---|
| Size | 123.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b8d7f55c85f257ce5f58f440d207c9722f8801ec976849040426290bedcd810d
|
|
BLAKE2b-256 checksum How to use checksums |
d0ff80e895de92a072c168de2bd43abd040c47713fc10afbee63800d1b9a93c7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.5
|
Release files / UE4Parse-0.0.1-cp39-cp39-win_amd64.whl
| Download URL | UE4Parse-0.0.1-cp39-cp39-win_amd64.whl |
|---|---|
| Size | 160.9 kB |
| Tags | CPython 3.9 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
b7f21a0be600ee97c0bd3bd7eb03d6c133926ee290e9ddc7891ac9889600a605
|
|
BLAKE2b-256 checksum How to use checksums |
1de4d160affd38b4806026a33b1bc9f531ea9554ccebc463e11250b32f1b3360
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.5
|
Security for UE4Parse 0.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.